diff --git a/client-java-contrib/admissionreview/pom.xml b/client-java-contrib/admissionreview/pom.xml index 2aa9012860..66ccde47aa 100644 --- a/client-java-contrib/admissionreview/pom.xml +++ b/client-java-contrib/admissionreview/pom.xml @@ -7,10 +7,10 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../../pom.xml - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT diff --git a/client-java-contrib/cert-manager/pom.xml b/client-java-contrib/cert-manager/pom.xml index 2a3c9d25d5..2ef01e29fd 100644 --- a/client-java-contrib/cert-manager/pom.xml +++ b/client-java-contrib/cert-manager/pom.xml @@ -6,11 +6,11 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../../pom.xml - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT io.kubernetes diff --git a/client-java-contrib/prometheus-operator/pom.xml b/client-java-contrib/prometheus-operator/pom.xml index 80d8c00a83..ae31839a78 100644 --- a/client-java-contrib/prometheus-operator/pom.xml +++ b/client-java-contrib/prometheus-operator/pom.xml @@ -3,13 +3,13 @@ client-java-parent io.kubernetes - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../../pom.xml 4.0.0 client-java-prometheus-operator-models - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT io.kubernetes diff --git a/e2e/pom.xml b/e2e/pom.xml index 31d2362444..092b3abe38 100644 --- a/e2e/pom.xml +++ b/e2e/pom.xml @@ -10,7 +10,7 @@ client-java-parent io.kubernetes - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/examples/examples-release-13/pom.xml b/examples/examples-release-13/pom.xml index aee0d3804c..d07f97e5b7 100644 --- a/examples/examples-release-13/pom.xml +++ b/examples/examples-release-13/pom.xml @@ -4,7 +4,7 @@ io.kubernetes client-java-examples-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT .. diff --git a/examples/examples-release-14/pom.xml b/examples/examples-release-14/pom.xml index 748d1a45a4..25e926a56b 100644 --- a/examples/examples-release-14/pom.xml +++ b/examples/examples-release-14/pom.xml @@ -4,7 +4,7 @@ io.kubernetes client-java-examples-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT .. diff --git a/examples/examples-release-15/pom.xml b/examples/examples-release-15/pom.xml index b4f55e7d82..da7e00a975 100644 --- a/examples/examples-release-15/pom.xml +++ b/examples/examples-release-15/pom.xml @@ -4,7 +4,7 @@ io.kubernetes client-java-examples-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT .. diff --git a/examples/pom.xml b/examples/pom.xml index e97ff3e70a..10838cf1b9 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -4,11 +4,11 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT client-java-examples-parent pom diff --git a/extended/pom.xml b/extended/pom.xml index e4771b983f..3d31956f8b 100644 --- a/extended/pom.xml +++ b/extended/pom.xml @@ -9,7 +9,7 @@ client-java-parent io.kubernetes - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/fluent-gen/pom.xml b/fluent-gen/pom.xml index 3984bb403a..1d4ec8c353 100644 --- a/fluent-gen/pom.xml +++ b/fluent-gen/pom.xml @@ -13,7 +13,7 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/fluent/pom.xml b/fluent/pom.xml index 5b461c5770..570c8e2c8d 100644 --- a/fluent/pom.xml +++ b/fluent/pom.xml @@ -8,7 +8,7 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java index f39907563d..7226c01bd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java @@ -1,33 +1,22 @@ -/* -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.fluent; -import java.util.AbstractMap; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; import java.util.LinkedHashSet; -import java.util.List; import java.util.Map.Entry; -import java.util.Objects; -import java.util.Set; import java.util.stream.Collectors; - -public class BaseFluent> implements Fluent, Visitable { +import java.util.Set; +import java.util.ArrayList; +import java.lang.String; +import java.util.AbstractMap; +import java.util.Objects; +import java.lang.Class; +import java.lang.Object; +import java.util.List; +import java.util.Arrays; +import java.util.Collections; +public class BaseFluent> implements Fluent,Visitable{ public static final String VISIT = "visit"; public final VisitableMap _visitables = new VisitableMap(); - - public static VisitableBuilder builderOf(T item) { + public static VisitableBuilder builderOf(T item) { if (item instanceof Editable) { Object editor = ((Editable) item).edit(); if (editor instanceof VisitableBuilder) { @@ -36,122 +25,89 @@ public class BaseFluent> implements Fluent, Visitable } try { - return (VisitableBuilder) - Class.forName(item.getClass().getName() + "Builder") - .getConstructor(item.getClass()) - .newInstance(item); + return (VisitableBuilder) Class.forName(item.getClass().getName() + "Builder").getConstructor(item.getClass()) + .newInstance(item); } catch (Exception e) { throw new IllegalStateException("Failed to create builder for: " + item.getClass(), e); } } - - public static List build( - List> list) { - return list == null - ? null - : new ArrayList(list.stream().map(Builder::build).collect(Collectors.toList())); + public static List build(List> list) { + return list == null ? null : new ArrayList(list.stream().map(Builder::build).collect(Collectors.toList())); } - - public static Set build( - Set> set) { - return set == null - ? null - : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); + public static Set build(Set> set) { + return set == null ? null : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); } - - public static List aggregate(List... lists) { - return new ArrayList( - Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); + public static List aggregate(List... lists) { + return new ArrayList(Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); } - - public static Set aggregate(Set... sets) { - return new LinkedHashSet( - Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); + public static Set aggregate(Set... sets) { + return new LinkedHashSet(Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); } - public F accept(io.kubernetes.client.fluent.Visitor... visitors) { return accept(Collections.emptyList(), visitors); } + public F accept(Class type,Visitor visitor) { + return accept(Collections.emptyList(), new Visitor() { + @Override + public Class getType() { + return type; + } - public F accept(Class type, Visitor visitor) { - return accept( - Collections.emptyList(), - new Visitor() { - @Override - public Class getType() { - return type; - } - - @Override - public void visit(List> path, V element) { - visitor.visit(path, element); - } + @Override + public void visit(List> path, V element) { + visitor.visit(path, element); + } - @Override - public void visit(V element) { - visitor.visit(element); - } - }); + @Override + public void visit(V element) { + visitor.visit(element); + } + }); } - - public F accept( - List> path, io.kubernetes.client.fluent.Visitor... visitors) { + public F accept(List> path,io.kubernetes.client.fluent.Visitor... visitors) { return accept(path, "", visitors); } - - public F accept( - List> path, - String currentKey, - io.kubernetes.client.fluent.Visitor... visitors) { + public F accept(List> path,String currentKey,io.kubernetes.client.fluent.Visitor... visitors) { Arrays.stream(visitors) .map(v -> VisitorListener.wrap(v)) .filter(v -> ((Visitor) v).canVisit(path, this)) .sorted((l, r) -> ((Visitor) r).order() - ((Visitor) l).order()) - .forEach( - v -> { - ((Visitor) v).visit(path, this); - }); + .forEach(v -> { + ((Visitor) v).visit(path, this); + }); List> copyOfPath = path != null ? new ArrayList(path) : new ArrayList<>(); copyOfPath.add(new AbstractMap.SimpleEntry(currentKey, this)); - _visitables.forEach( - (key, visitables) -> { - List> newPath = Collections.unmodifiableList(copyOfPath); - // Copy visitables to avoid ConcurrrentModificationException when Visitors add/remove - // Visitables - new ArrayList<>(visitables) - .forEach( - visitable -> { - Arrays.stream(visitors) - .filter( - v -> - v.getType() != null - && v.getType().isAssignableFrom(visitable.getClass())) - .forEach(v -> visitable.accept(newPath, key, v)); - - Arrays.stream(visitors) - .filter( - v -> - v.getType() == null - || !v.getType().isAssignableFrom(visitable.getClass())) - .forEach(v -> visitable.accept(newPath, key, v)); - }); - }); + _visitables.forEach((key, visitables) -> { + List> newPath = Collections.unmodifiableList(copyOfPath); + // Copy visitables to avoid ConcurrrentModificationException when Visitors add/remove Visitables + new ArrayList<>(visitables).forEach(visitable -> { + Arrays.stream(visitors) + .filter(v -> v.getType() != null && v.getType().isAssignableFrom(visitable.getClass())) + .forEach(v -> visitable.accept(newPath, key, v)); + + Arrays.stream(visitors) + .filter(v -> v.getType() == null || !v.getType().isAssignableFrom(visitable.getClass())) + .forEach(v -> visitable.accept(newPath, key, v)); + }); + }); return (F) this; } - public int hashCode() { final int prime = 31; int result = 1; result = prime * result + 0; return result; } - public boolean equals(Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (getClass() != obj.getClass()) return false; + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; return true; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java index a1d340ae7f..dfe60382bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java @@ -1,18 +1,8 @@ -/* -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.fluent; -@FunctionalInterface -public interface Builder { +import java.lang.FunctionalInterface; + @FunctionalInterface + public interface Builder{ T build(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java index 9ef24e6866..fa32884318 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java @@ -1,47 +1,32 @@ -/* -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.fluent; -import java.util.List; import java.util.Map.Entry; +import java.lang.Class; +import java.lang.Object; +import java.util.List; +import java.lang.String; import java.util.function.Predicate; - -public class DelegatingVisitor implements Visitor { - DelegatingVisitor(Class type, Visitor delegate) { +public class DelegatingVisitor implements Visitor{ + DelegatingVisitor(Class type,Visitor delegate) { this.type = type; this.delegate = delegate; } - private final Class type; private final Visitor delegate; - public Class getType() { return type; } - public void visit(T target) { delegate.visit(target); } - public int order() { return delegate.order(); } - - public void visit(List> path, T target) { + public void visit(List> path,T target) { delegate.visit(path, target); } - - public Predicate>> getRequirement() { + public Predicate>> getRequirement() { return delegate.getRequirement(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java index bbb46bd513..1d4922af27 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java @@ -1,17 +1,6 @@ -/* -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.fluent; -public interface Editable { +public interface Editable{ T edit(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Fluent.java b/fluent/src/main/java/io/kubernetes/client/fluent/Fluent.java index 5ed2d2f153..01f01f4f86 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Fluent.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Fluent.java @@ -1,15 +1,5 @@ -/* -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.fluent; -public interface Fluent> {} +public interface Fluent>{ + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java index 3defd20e86..edeb4d4e7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java @@ -1,17 +1,6 @@ -/* -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.fluent; -public interface Nested { +public interface Nested{ F and(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java index 9cbf594b4b..f605cb92a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java @@ -1,45 +1,33 @@ -/* -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.fluent; -import java.util.List; import java.util.Map.Entry; - -public class PathAwareTypedVisitor extends TypedVisitor { +import java.lang.Class; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.lang.reflect.Method; +public class PathAwareTypedVisitor extends TypedVisitor{ PathAwareTypedVisitor() { List args = Visitors.getTypeArguments(PathAwareTypedVisitor.class, getClass()); if (args == null || args.isEmpty()) { - throw new IllegalStateException( - "Could not determine type arguments for path aware typed visitor."); + throw new IllegalStateException("Could not determine type arguments for path aware typed visitor."); } this.type = (Class) args.get(0); this.parentType = (Class

) args.get(1); } - private final Class type; private final Class

parentType; - - public void visit(V element) {} - - public void visit(List> path, V element) { + public void visit(V element) { + + } + public void visit(List> path,V element) { visit(element); } - - public P getParent(List> path) { + public P getParent(List> path) { return path.size() - 1 >= 0 ? (P) path.get(path.size() - 1) : null; } - public Class

getParentType() { return parentType; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java index 3996b39920..b8e8257f0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java @@ -1,19 +1,9 @@ -/* -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.fluent; -public abstract class TypedVisitor implements Visitor { +import java.lang.Class; +public abstract class TypedVisitor implements Visitor{ public Class getType() { return (Class) Visitors.getTypeArguments(TypedVisitor.class, getClass()).get(0); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java index 353b6a30cc..328092d661 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java @@ -1,37 +1,25 @@ -/* -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.fluent; -import java.util.Collections; -import java.util.List; import java.util.Map.Entry; +import java.lang.Class; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.Collections; +public interface Visitable{ + default T accept(Class type,Visitor visitor) { + return accept(new Visitor() { + @Override + public Class getType() { + return type; + } -public interface Visitable { - default T accept(Class type, Visitor visitor) { - return accept( - new Visitor() { - @Override - public Class getType() { - return type; - } - - @Override - public void visit(V element) { - visitor.visit(element); - } - }); + @Override + public void visit(V element) { + visitor.visit(element); + } + }); } - default T accept(io.kubernetes.client.fluent.Visitor... visitors) { for (Visitor visitor : visitors) { if (visitor.canVisit(Collections.emptyList(), this)) { @@ -40,16 +28,10 @@ default T accept(io.kubernetes.client.fluent.Visitor... visitors) { } return getTarget(this); } - - default T accept( - List> path, io.kubernetes.client.fluent.Visitor... visitors) { + default T accept(List> path,io.kubernetes.client.fluent.Visitor... visitors) { return accept(path, "", visitors); } - - default T accept( - List> path, - String currentKey, - io.kubernetes.client.fluent.Visitor... visitors) { + default T accept(List> path,String currentKey,io.kubernetes.client.fluent.Visitor... visitors) { for (Visitor visitor : visitors) { if (visitor.canVisit(path, this)) { visitor.visit(path, this); @@ -57,8 +39,8 @@ default T accept( } return getTarget(this); } - default T getTarget(Visitable visitable) { return (T) visitable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java index 15d2a8b262..6c5172906b 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java @@ -1,16 +1,5 @@ -/* -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.fluent; -public interface VisitableBuilder> - extends Builder, Visitable {} +public interface VisitableBuilder> extends Builder,Visitable{ + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java index b1f43452ac..d889f05d2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java @@ -1,47 +1,33 @@ -/* -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.fluent; -import java.util.ArrayList; +import java.util.stream.Collectors; +import java.lang.Iterable; +import java.util.function.Consumer; import java.util.HashMap; +import java.util.ArrayList; import java.util.Iterator; +import java.lang.Object; import java.util.List; +import java.lang.String; import java.util.Spliterator; -import java.util.function.Consumer; -import java.util.stream.Collectors; - -public class VisitableMap extends HashMap>> - implements Iterable> { +public class VisitableMap extends HashMap>> implements Iterable>{ public List> get(Object key) { if (!containsKey(key)) { put(String.valueOf(key), new ArrayList()); } return super.get(key); } - public List> aggregate() { return values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); } - public Iterator> iterator() { return aggregate().iterator(); } - public void forEach(Consumer> action) { aggregate().forEach(action); } - public Spliterator spliterator() { return aggregate().spliterator(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java index 720d808bc6..1070725dfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java @@ -1,24 +1,16 @@ -/* -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.fluent; -import java.lang.reflect.Method; -import java.util.List; import java.util.Map.Entry; +import java.lang.Class; +import java.lang.FunctionalInterface; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.lang.reflect.Method; +import java.lang.Boolean; import java.util.function.Predicate; - -@FunctionalInterface -public interface Visitor { + @FunctionalInterface + public interface Visitor{ default Class getType() { List args = Visitors.getTypeArguments(Visitor.class, getClass()); if (args == null || args.isEmpty()) { @@ -26,18 +18,14 @@ default Class getType() { } return (Class) args.get(0); } - void visit(T element); - default int order() { return 0; } - - default void visit(List> path, T element) { + default void visit(List> path,T element) { visit(element); } - - default Boolean canVisit(List> path, F target) { + default Boolean canVisit(List> path,F target) { if (target == null) { return false; } @@ -56,8 +44,7 @@ default Boolean canVisit(List> path, F target) { return false; } } - - default Boolean hasVisitMethodMatching(F target) { + default Boolean hasVisitMethodMatching(F target) { for (Method method : getClass().getMethods()) { if (!method.getName().equals("visit") || method.getParameterTypes().length != 1) { continue; @@ -71,27 +58,17 @@ default Boolean hasVisitMethodMatching(F target) { } return false; } - - default Predicate>> getRequirement() { + default Predicate>> getRequirement() { return p -> true; } - - default Predicate>> hasItem( - Class type, Predicate predicate) { - Predicate>> result = - l -> - l.stream() - .map(Entry::getValue) - .filter(i -> type.isInstance(i)) - .map(i -> type.cast(i)) - .anyMatch(predicate); + default Predicate>> hasItem(Class type,Predicate predicate) { + Predicate>> result = l -> l.stream().map(Entry::getValue).filter(i -> type.isInstance(i)) + .map(i -> type.cast(i)).anyMatch(predicate); return result; } - - default

Visitor addRequirement(Class

type, Predicate

predicate) { + default

Visitor addRequirement(Class

type,Predicate

predicate) { return addRequirement(predicate); } - default Visitor addRequirement(Predicate predicate) { return new DelegatingVisitor(getType(), this) { @Override @@ -100,4 +77,5 @@ public Predicate> getRequirement() { } }; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java index df65cbae4d..c977b940ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java @@ -1,42 +1,30 @@ -/* -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.fluent; -import java.util.HashSet; -import java.util.List; import java.util.Map.Entry; import java.util.ServiceLoader; -import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; - -public interface VisitorListener { +import java.util.Set; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.HashSet; +public interface VisitorListener{ static AtomicBoolean loaded = new AtomicBoolean(); static Set listeners = new HashSet<>(); - public static Set getListeners() { if (loaded.get()) { return listeners; } synchronized (loaded) { - listeners.add(new VisitorListener() {}); - for (VisitorListener listener : - ServiceLoader.load(VisitorListener.class, VisitorListener.class.getClassLoader())) { + listeners.add(new VisitorListener() { + }); + for (VisitorListener listener : ServiceLoader.load(VisitorListener.class, + VisitorListener.class.getClassLoader())) { listeners.add(listener); } if (Thread.currentThread().getContextClassLoader() != null) { - for (VisitorListener listener : - ServiceLoader.load( - VisitorListener.class, Thread.currentThread().getContextClassLoader())) { + for (VisitorListener listener : ServiceLoader.load(VisitorListener.class, + Thread.currentThread().getContextClassLoader())) { listeners.add(listener); } } @@ -44,22 +32,23 @@ public static Set getListeners() { } return listeners; } - - public static Visitor wrap(Visitor visitor) { + public static Visitor wrap(Visitor visitor) { return VisitorWiretap.create(visitor, getListeners()); } - public static void register(VisitorListener listener) { listeners.add(listener); } - public static void unregister(VisitorListener listener) { listeners.add(listener); } - - default void beforeVisit(Visitor v, List> path, T target) {} - - default void afterVisit(Visitor v, List> path, T target) {} - - default void onCheck(Visitor v, boolean canVisit, T target) {} -} + default void beforeVisit(Visitor v,List> path,T target) { + + } + default void afterVisit(Visitor v,List> path,T target) { + + } + default void onCheck(Visitor v,boolean canVisit,T target) { + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java index e3761ec320..9193e40630 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java @@ -1,62 +1,47 @@ -/* -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.fluent; +import java.util.Map.Entry; import java.util.Collection; -import java.util.Collections; +import java.lang.Class; +import java.lang.Object; import java.util.List; -import java.util.Map.Entry; - -public final class VisitorWiretap implements Visitor { - private VisitorWiretap(Visitor delegate, Collection listeners) { +import java.lang.String; +import java.lang.Boolean; +import java.util.Collections; +import java.util.function.Predicate; +public final class VisitorWiretap implements Visitor{ + private VisitorWiretap(Visitor delegate,Collection listeners) { this.delegate = delegate; this.listeners = listeners; } - private final Collection listeners; private final Visitor delegate; - - public static VisitorWiretap create( - Visitor visitor, Collection listeners) { + public static VisitorWiretap create(Visitor visitor,Collection listeners) { if (visitor instanceof VisitorWiretap) { return (VisitorWiretap) visitor; } return new VisitorWiretap(visitor, listeners); } - public Class getType() { return delegate.getType(); } - public void visit(T target) { listeners.forEach(l -> l.beforeVisit(delegate, Collections.emptyList(), target)); delegate.visit(target); listeners.forEach(l -> l.afterVisit(delegate, Collections.emptyList(), target)); } - public int order() { return delegate.order(); } - - public void visit(List> path, T target) { + public void visit(List> path,T target) { listeners.forEach(l -> l.beforeVisit(delegate, path, target)); delegate.visit(path, target); listeners.forEach(l -> l.afterVisit(delegate, path, target)); } - - public Boolean canVisit(List> path, F target) { + public Boolean canVisit(List> path,F target) { boolean canVisit = delegate.canVisit(path, target); listeners.forEach(l -> l.onCheck(delegate, canVisit, target)); return canVisit; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java index 48db76be17..7a2a53d475 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java @@ -1,52 +1,35 @@ -/* -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.fluent; -import java.lang.reflect.Array; +import java.util.Optional; +import java.util.ArrayList; +import java.lang.String; import java.lang.reflect.GenericArrayType; +import java.util.LinkedHashMap; +import java.lang.reflect.Array; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashMap; +import java.lang.Class; import java.util.List; +import java.util.Arrays; import java.util.Map; -import java.util.Optional; - -public final class Visitors { +public final class Visitors{ private Visitors() { - // Utility Class + //Utility Class } - - public static Visitor newVisitor(Class type, Visitor visitor) { + public static Visitor newVisitor(Class type,Visitor visitor) { return new DelegatingVisitor(type, visitor); } - - protected static List getTypeArguments( - Class baseClass, Class childClass) { + protected static List getTypeArguments(Class baseClass,Class childClass) { Map resolvedTypes = new LinkedHashMap(); Type type = childClass; // start walking up the inheritance hierarchy until we hit baseClass - for (Class cl = getClass(type); - cl != null && cl != Object.class && !baseClass.getName().equals(cl.getName()); - cl = getClass(type)) { + for (Class cl = getClass(type); cl != null && cl != Object.class + && !baseClass.getName().equals(cl.getName()); cl = getClass(type)) { if (type instanceof Class) { Class c = (Class) type; - Optional nextInterface = - baseClass.isInterface() - ? getMatchingInterface(baseClass, c.getGenericInterfaces()) - : Optional.empty(); + Optional nextInterface = baseClass.isInterface() ? getMatchingInterface(baseClass, c.getGenericInterfaces()) + : Optional.empty(); if (nextInterface.isPresent()) { type = nextInterface.get(); } else { @@ -92,13 +75,9 @@ protected static List getTypeArguments( } return typeArgumentsAsClasses; } - private static String getRawName(Type type) { - return type instanceof ParameterizedType - ? ((ParameterizedType) type).getRawType().getTypeName() - : type.getTypeName(); + return type instanceof ParameterizedType ? ((ParameterizedType) type).getRawType().getTypeName() : type.getTypeName(); } - private static Class getClass(Type type) { if (type instanceof Class) { return (Class) type; @@ -116,16 +95,12 @@ private static Class getClass(Type type) { return null; } } - - private static Optional getMatchingInterface( - Class targetInterface, java.lang.reflect.Type... candidates) { + private static Optional getMatchingInterface(Class targetInterface,java.lang.reflect.Type... candidates) { if (candidates == null || candidates.length == 0) { return Optional.empty(); } - Optional match = - Arrays.stream(candidates) - .filter(c -> getRawName(c).equals(targetInterface.getTypeName())) - .findFirst(); + Optional match = Arrays.stream(candidates).filter(c -> getRawName(c).equals(targetInterface.getTypeName())) + .findFirst(); if (match.isPresent()) { return match; } else { @@ -141,4 +116,5 @@ private static Optional getMatchingInterface( return Optional.empty(); } } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java index 502f11f3ff..cddc395782 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class AdmissionregistrationV1ServiceReferenceBuilder - extends AdmissionregistrationV1ServiceReferenceFluentImpl< - AdmissionregistrationV1ServiceReferenceBuilder> - implements VisitableBuilder< - AdmissionregistrationV1ServiceReference, AdmissionregistrationV1ServiceReferenceBuilder> { +import java.lang.Boolean; +public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluentImpl implements VisitableBuilder{ public AdmissionregistrationV1ServiceReferenceBuilder() { this(false); } - public AdmissionregistrationV1ServiceReferenceBuilder(Boolean validationEnabled) { this(new AdmissionregistrationV1ServiceReference(), validationEnabled); } - - public AdmissionregistrationV1ServiceReferenceBuilder( - AdmissionregistrationV1ServiceReferenceFluent fluent) { + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent) { this(fluent, false); } - - public AdmissionregistrationV1ServiceReferenceBuilder( - AdmissionregistrationV1ServiceReferenceFluent fluent, Boolean validationEnabled) { + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new AdmissionregistrationV1ServiceReference(), validationEnabled); } - - public AdmissionregistrationV1ServiceReferenceBuilder( - AdmissionregistrationV1ServiceReferenceFluent fluent, - AdmissionregistrationV1ServiceReference instance) { + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,AdmissionregistrationV1ServiceReference instance) { this(fluent, instance, false); } - - public AdmissionregistrationV1ServiceReferenceBuilder( - AdmissionregistrationV1ServiceReferenceFluent fluent, - AdmissionregistrationV1ServiceReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,AdmissionregistrationV1ServiceReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); @@ -56,17 +28,13 @@ public AdmissionregistrationV1ServiceReferenceBuilder( fluent.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public AdmissionregistrationV1ServiceReferenceBuilder( - AdmissionregistrationV1ServiceReference instance) { - this(instance, false); + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReference instance) { + this(instance,false); } - - public AdmissionregistrationV1ServiceReferenceBuilder( - AdmissionregistrationV1ServiceReference instance, Boolean validationEnabled) { - this.fluent = this; + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); @@ -75,19 +43,17 @@ public AdmissionregistrationV1ServiceReferenceBuilder( this.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - AdmissionregistrationV1ServiceReferenceFluent fluent; Boolean validationEnabled; - public AdmissionregistrationV1ServiceReference build() { - AdmissionregistrationV1ServiceReference buildable = - new AdmissionregistrationV1ServiceReference(); + AdmissionregistrationV1ServiceReference buildable = new AdmissionregistrationV1ServiceReference(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); buildable.setPath(fluent.getPath()); buildable.setPort(fluent.getPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java index c4177da0d3..1ecc6ff316 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java @@ -1,44 +1,25 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface AdmissionregistrationV1ServiceReferenceFluent< - A extends AdmissionregistrationV1ServiceReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface AdmissionregistrationV1ServiceReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java index ae584ee5a0..3de1176740 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java @@ -1,28 +1,20 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class AdmissionregistrationV1ServiceReferenceFluentImpl< - A extends AdmissionregistrationV1ServiceReferenceFluent> - extends BaseFluent implements AdmissionregistrationV1ServiceReferenceFluent { - public AdmissionregistrationV1ServiceReferenceFluentImpl() {} - - public AdmissionregistrationV1ServiceReferenceFluentImpl( - AdmissionregistrationV1ServiceReference instance) { +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class AdmissionregistrationV1ServiceReferenceFluentImpl> extends BaseFluent implements AdmissionregistrationV1ServiceReferenceFluent{ + public AdmissionregistrationV1ServiceReferenceFluentImpl() { + } + public AdmissionregistrationV1ServiceReferenceFluentImpl(AdmissionregistrationV1ServiceReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); @@ -30,102 +22,70 @@ public AdmissionregistrationV1ServiceReferenceFluentImpl( this.withPath(instance.getPath()); this.withPort(instance.getPort()); - } + } private String name; private String namespace; private String path; private Integer port; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - AdmissionregistrationV1ServiceReferenceFluentImpl that = - (AdmissionregistrationV1ServiceReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; + AdmissionregistrationV1ServiceReferenceFluentImpl that = (AdmissionregistrationV1ServiceReferenceFluentImpl) o; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); + return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (port != null) { sb.append("port:"); sb.append(port); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java index b8a3a9d462..51c44675cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java @@ -1,89 +1,54 @@ -/* -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.VisitableBuilder; - -public class AdmissionregistrationV1WebhookClientConfigBuilder - extends AdmissionregistrationV1WebhookClientConfigFluentImpl< - AdmissionregistrationV1WebhookClientConfigBuilder> - implements VisitableBuilder< - AdmissionregistrationV1WebhookClientConfig, - AdmissionregistrationV1WebhookClientConfigBuilder> { +import java.lang.Boolean; +public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluentImpl implements VisitableBuilder{ public AdmissionregistrationV1WebhookClientConfigBuilder() { this(false); } - public AdmissionregistrationV1WebhookClientConfigBuilder(Boolean validationEnabled) { this(new AdmissionregistrationV1WebhookClientConfig(), validationEnabled); } - - public AdmissionregistrationV1WebhookClientConfigBuilder( - AdmissionregistrationV1WebhookClientConfigFluent fluent) { + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent) { this(fluent, false); } - - public AdmissionregistrationV1WebhookClientConfigBuilder( - AdmissionregistrationV1WebhookClientConfigFluent fluent, Boolean validationEnabled) { + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,Boolean validationEnabled) { this(fluent, new AdmissionregistrationV1WebhookClientConfig(), validationEnabled); } - - public AdmissionregistrationV1WebhookClientConfigBuilder( - AdmissionregistrationV1WebhookClientConfigFluent fluent, - AdmissionregistrationV1WebhookClientConfig instance) { + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,AdmissionregistrationV1WebhookClientConfig instance) { this(fluent, instance, false); } - - public AdmissionregistrationV1WebhookClientConfigBuilder( - AdmissionregistrationV1WebhookClientConfigFluent fluent, - AdmissionregistrationV1WebhookClientConfig instance, - Boolean validationEnabled) { - this.fluent = fluent; + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,AdmissionregistrationV1WebhookClientConfig instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCaBundle(instance.getCaBundle()); fluent.withService(instance.getService()); fluent.withUrl(instance.getUrl()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public AdmissionregistrationV1WebhookClientConfigBuilder( - AdmissionregistrationV1WebhookClientConfig instance) { - this(instance, false); + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfig instance) { + this(instance,false); } - - public AdmissionregistrationV1WebhookClientConfigBuilder( - AdmissionregistrationV1WebhookClientConfig instance, Boolean validationEnabled) { - this.fluent = this; + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfig instance,Boolean validationEnabled) { + this.fluent = this; this.withCaBundle(instance.getCaBundle()); this.withService(instance.getService()); this.withUrl(instance.getUrl()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - AdmissionregistrationV1WebhookClientConfigFluent fluent; Boolean validationEnabled; - public AdmissionregistrationV1WebhookClientConfig build() { - AdmissionregistrationV1WebhookClientConfig buildable = - new AdmissionregistrationV1WebhookClientConfig(); + AdmissionregistrationV1WebhookClientConfig buildable = new AdmissionregistrationV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); buildable.setService(fluent.getService()); buildable.setUrl(fluent.getUrl()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java index 523356e079..be55513a88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java @@ -1,81 +1,50 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; import java.util.Collection; +import java.lang.Boolean; -/** Generated */ -public interface AdmissionregistrationV1WebhookClientConfigFluent< - A extends AdmissionregistrationV1WebhookClientConfigFluent> - extends Fluent { + /** + * Generated + */ +public interface AdmissionregistrationV1WebhookClientConfigFluent> extends Fluent{ public A withCaBundle(byte... caBundle); - public byte[] getCaBundle(); - - public A addToCaBundle(Integer index, Byte item); - - public A setToCaBundle(Integer index, Byte item); - + public A addToCaBundle(Integer index,Byte item); + public A setToCaBundle(Integer index,Byte item); public A addToCaBundle(java.lang.Byte... items); - public A addAllToCaBundle(Collection items); - public A removeFromCaBundle(java.lang.Byte... items); - public A removeAllFromCaBundle(Collection items); - public Boolean hasCaBundle(); - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public AdmissionregistrationV1ServiceReference getService(); - public AdmissionregistrationV1ServiceReference buildService(); - public A withService(AdmissionregistrationV1ServiceReference service); - public Boolean hasService(); - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewService(); - - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( - AdmissionregistrationV1ServiceReference item); - + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReference item); public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editService(); - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewService(); - - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( - AdmissionregistrationV1ServiceReference item); - + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike(AdmissionregistrationV1ServiceReference item); public String getUrl(); - public A withUrl(String url); - public Boolean hasUrl(); - - public interface ServiceNested - extends Nested, - AdmissionregistrationV1ServiceReferenceFluent< - AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested> { + public interface ServiceNested extends Nested,AdmissionregistrationV1ServiceReferenceFluent>{ public N and(); - public N endService(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java index 3465875891..e82d077d50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java @@ -1,250 +1,159 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class AdmissionregistrationV1WebhookClientConfigFluentImpl< - A extends AdmissionregistrationV1WebhookClientConfigFluent> - extends BaseFluent implements AdmissionregistrationV1WebhookClientConfigFluent { - public AdmissionregistrationV1WebhookClientConfigFluentImpl() {} - - public AdmissionregistrationV1WebhookClientConfigFluentImpl( - AdmissionregistrationV1WebhookClientConfig instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class AdmissionregistrationV1WebhookClientConfigFluentImpl> extends BaseFluent implements AdmissionregistrationV1WebhookClientConfigFluent{ + public AdmissionregistrationV1WebhookClientConfigFluentImpl() { + } + public AdmissionregistrationV1WebhookClientConfigFluentImpl(AdmissionregistrationV1WebhookClientConfig instance) { this.withCaBundle(instance.getCaBundle()); this.withService(instance.getService()); this.withUrl(instance.getUrl()); - } + } private List caBundle; private AdmissionregistrationV1ServiceReferenceBuilder service; private String url; - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } - } - return (A) this; + if (this.caBundle != null) {this.caBundle.clear();} + if (caBundle != null) {for (byte item :caBundle){ this.addToCaBundle(item);}} return (A) this; } - public byte[] getCaBundle() { - // This needs to work with primitives, so we use arrays. - int size = caBundle != null ? caBundle.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : caBundle) { - result[index++] = item; - } - return result; - } + //This needs to work with primitives, so we use arrays. +int size = caBundle != null ? caBundle.size() : 0; +byte[] result = new byte[size]; +if (size == 0) { + return result; +} +int index = 0; +for (byte item : caBundle) { + result[index++]=item; +} +return result; - public A addToCaBundle(Integer index, Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } + } + public A addToCaBundle(Integer index,Byte item) { + if (this.caBundle == null) {this.caBundle = new ArrayList();} this.caBundle.add(index, item); - return (A) this; + return (A)this; } - - public A setToCaBundle(Integer index, Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.set(index, item); - return (A) this; + public A setToCaBundle(Integer index,Byte item) { + if (this.caBundle == null) {this.caBundle = new ArrayList();} + this.caBundle.set(index, item); return (A)this; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - for (Byte item : items) { - this.caBundle.add(item); - } - return (A) this; + if (this.caBundle == null) {this.caBundle = new ArrayList();} + for (Byte item : items) {this.caBundle.add(item);} return (A)this; } - public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - for (Byte item : items) { - this.caBundle.add(item); - } - return (A) this; + if (this.caBundle == null) {this.caBundle = new ArrayList();} + for (Byte item : items) {this.caBundle.add(item);} return (A)this; } - public A removeFromCaBundle(java.lang.Byte... items) { - for (Byte item : items) { - if (this.caBundle != null) { - this.caBundle.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.caBundle!= null){ this.caBundle.remove(item);}} return (A)this; } - public A removeAllFromCaBundle(Collection items) { - for (Byte item : items) { - if (this.caBundle != null) { - this.caBundle.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.caBundle!= null){ this.caBundle.remove(item);}} return (A)this; } - public Boolean hasCaBundle() { return caBundle != null && !caBundle.isEmpty(); } - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public AdmissionregistrationV1ServiceReference getService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public AdmissionregistrationV1ServiceReference buildService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public A withService(AdmissionregistrationV1ServiceReference service) { _visitables.get("service").remove(this.service); - if (service != null) { - this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); - _visitables.get("service").add(this.service); - } else { - this.service = null; - _visitables.get("service").remove(this.service); - } - return (A) this; + if (service!=null){ this.service= new AdmissionregistrationV1ServiceReferenceBuilder(service); _visitables.get("service").add(this.service);} else { this.service = null; _visitables.get("service").remove(this.service); } return (A) this; } - public Boolean hasService() { return this.service != null; } - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewService() { return new AdmissionregistrationV1WebhookClientConfigFluentImpl.ServiceNestedImpl(); } - - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( - AdmissionregistrationV1ServiceReference item) { + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReference item) { return new AdmissionregistrationV1WebhookClientConfigFluentImpl.ServiceNestedImpl(item); } - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewService() { - return withNewServiceLike( - getService() != null - ? getService() - : new AdmissionregistrationV1ServiceReferenceBuilder().build()); + return withNewServiceLike(getService() != null ? getService(): new AdmissionregistrationV1ServiceReferenceBuilder().build()); } - - public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( - AdmissionregistrationV1ServiceReference item) { - return withNewServiceLike(getService() != null ? getService() : item); + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike(AdmissionregistrationV1ServiceReference item) { + return withNewServiceLike(getService() != null ? getService(): item); } - public String getUrl() { return this.url; } - public A withUrl(String url) { - this.url = url; - return (A) this; + this.url=url; return (A) this; } - public Boolean hasUrl() { return this.url != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - AdmissionregistrationV1WebhookClientConfigFluentImpl that = - (AdmissionregistrationV1WebhookClientConfigFluentImpl) o; - if (caBundle != null ? !caBundle.equals(that.caBundle) : that.caBundle != null) return false; - if (service != null ? !service.equals(that.service) : that.service != null) return false; - if (url != null ? !url.equals(that.url) : that.url != null) return false; + AdmissionregistrationV1WebhookClientConfigFluentImpl that = (AdmissionregistrationV1WebhookClientConfigFluentImpl) o; + if (caBundle != null ? !caBundle.equals(that.caBundle) :that.caBundle != null) return false; + if (service != null ? !service.equals(that.service) :that.service != null) return false; + if (url != null ? !url.equals(that.url) :that.url != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(caBundle, service, url, super.hashCode()); + return java.util.Objects.hash(caBundle, service, url, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { - sb.append("caBundle:"); - sb.append(caBundle + ","); - } - if (service != null) { - sb.append("service:"); - sb.append(service + ","); - } - if (url != null) { - sb.append("url:"); - sb.append(url); - } + if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } + if (service != null) { sb.append("service:"); sb.append(service + ","); } + if (url != null) { sb.append("url:"); sb.append(url); } sb.append("}"); return sb.toString(); } - - class ServiceNestedImpl - extends AdmissionregistrationV1ServiceReferenceFluentImpl< - AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested> - implements AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested, Nested { + class ServiceNestedImpl extends AdmissionregistrationV1ServiceReferenceFluentImpl> implements AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested,Nested{ ServiceNestedImpl(AdmissionregistrationV1ServiceReference item) { this.builder = new AdmissionregistrationV1ServiceReferenceBuilder(this, item); } - ServiceNestedImpl() { this.builder = new AdmissionregistrationV1ServiceReferenceBuilder(this); } - AdmissionregistrationV1ServiceReferenceBuilder builder; - public N and() { - return (N) - AdmissionregistrationV1WebhookClientConfigFluentImpl.this.withService(builder.build()); + return (N) AdmissionregistrationV1WebhookClientConfigFluentImpl.this.withService(builder.build()); } - public N endService() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java index 47b6ba1407..70f6161423 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class ApiextensionsV1ServiceReferenceBuilder - extends ApiextensionsV1ServiceReferenceFluentImpl - implements VisitableBuilder< - ApiextensionsV1ServiceReference, ApiextensionsV1ServiceReferenceBuilder> { +import java.lang.Boolean; +public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluentImpl implements VisitableBuilder{ public ApiextensionsV1ServiceReferenceBuilder() { this(false); } - public ApiextensionsV1ServiceReferenceBuilder(Boolean validationEnabled) { this(new ApiextensionsV1ServiceReference(), validationEnabled); } - public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent) { this(fluent, false); } - - public ApiextensionsV1ServiceReferenceBuilder( - ApiextensionsV1ServiceReferenceFluent fluent, Boolean validationEnabled) { + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new ApiextensionsV1ServiceReference(), validationEnabled); } - - public ApiextensionsV1ServiceReferenceBuilder( - ApiextensionsV1ServiceReferenceFluent fluent, ApiextensionsV1ServiceReference instance) { + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance) { this(fluent, instance, false); } - - public ApiextensionsV1ServiceReferenceBuilder( - ApiextensionsV1ServiceReferenceFluent fluent, - ApiextensionsV1ServiceReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); @@ -53,16 +28,13 @@ public ApiextensionsV1ServiceReferenceBuilder( fluent.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference instance) { - this(instance, false); + this(instance,false); } - - public ApiextensionsV1ServiceReferenceBuilder( - ApiextensionsV1ServiceReference instance, Boolean validationEnabled) { - this.fluent = this; + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); @@ -71,12 +43,10 @@ public ApiextensionsV1ServiceReferenceBuilder( this.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - ApiextensionsV1ServiceReferenceFluent fluent; Boolean validationEnabled; - public ApiextensionsV1ServiceReference build() { ApiextensionsV1ServiceReference buildable = new ApiextensionsV1ServiceReference(); buildable.setName(fluent.getName()); @@ -85,4 +55,5 @@ public ApiextensionsV1ServiceReference build() { buildable.setPort(fluent.getPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java index 52aa478ca3..6407767d5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java @@ -1,44 +1,25 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface ApiextensionsV1ServiceReferenceFluent< - A extends ApiextensionsV1ServiceReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface ApiextensionsV1ServiceReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java index c124391b61..a281260b79 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class ApiextensionsV1ServiceReferenceFluentImpl< - A extends ApiextensionsV1ServiceReferenceFluent> - extends BaseFluent implements ApiextensionsV1ServiceReferenceFluent { - public ApiextensionsV1ServiceReferenceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class ApiextensionsV1ServiceReferenceFluentImpl> extends BaseFluent implements ApiextensionsV1ServiceReferenceFluent{ + public ApiextensionsV1ServiceReferenceFluentImpl() { + } public ApiextensionsV1ServiceReferenceFluentImpl(ApiextensionsV1ServiceReference instance) { this.withName(instance.getName()); @@ -29,101 +22,70 @@ public ApiextensionsV1ServiceReferenceFluentImpl(ApiextensionsV1ServiceReference this.withPath(instance.getPath()); this.withPort(instance.getPort()); - } + } private String name; private String namespace; private String path; private Integer port; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ApiextensionsV1ServiceReferenceFluentImpl that = (ApiextensionsV1ServiceReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); + return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (port != null) { sb.append("port:"); sb.append(port); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java index 096c2cdd6b..fc3e089dcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java @@ -1,80 +1,48 @@ -/* -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.VisitableBuilder; - -public class ApiextensionsV1WebhookClientConfigBuilder - extends ApiextensionsV1WebhookClientConfigFluentImpl - implements VisitableBuilder< - ApiextensionsV1WebhookClientConfig, ApiextensionsV1WebhookClientConfigBuilder> { +import java.lang.Boolean; +public class ApiextensionsV1WebhookClientConfigBuilder extends ApiextensionsV1WebhookClientConfigFluentImpl implements VisitableBuilder{ public ApiextensionsV1WebhookClientConfigBuilder() { this(false); } - public ApiextensionsV1WebhookClientConfigBuilder(Boolean validationEnabled) { this(new ApiextensionsV1WebhookClientConfig(), validationEnabled); } - - public ApiextensionsV1WebhookClientConfigBuilder( - ApiextensionsV1WebhookClientConfigFluent fluent) { + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent) { this(fluent, false); } - - public ApiextensionsV1WebhookClientConfigBuilder( - ApiextensionsV1WebhookClientConfigFluent fluent, Boolean validationEnabled) { + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,Boolean validationEnabled) { this(fluent, new ApiextensionsV1WebhookClientConfig(), validationEnabled); } - - public ApiextensionsV1WebhookClientConfigBuilder( - ApiextensionsV1WebhookClientConfigFluent fluent, - ApiextensionsV1WebhookClientConfig instance) { + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,ApiextensionsV1WebhookClientConfig instance) { this(fluent, instance, false); } - - public ApiextensionsV1WebhookClientConfigBuilder( - ApiextensionsV1WebhookClientConfigFluent fluent, - ApiextensionsV1WebhookClientConfig instance, - Boolean validationEnabled) { - this.fluent = fluent; + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,ApiextensionsV1WebhookClientConfig instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCaBundle(instance.getCaBundle()); fluent.withService(instance.getService()); fluent.withUrl(instance.getUrl()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfig instance) { - this(instance, false); + this(instance,false); } - - public ApiextensionsV1WebhookClientConfigBuilder( - ApiextensionsV1WebhookClientConfig instance, Boolean validationEnabled) { - this.fluent = this; + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfig instance,Boolean validationEnabled) { + this.fluent = this; this.withCaBundle(instance.getCaBundle()); this.withService(instance.getService()); this.withUrl(instance.getUrl()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - ApiextensionsV1WebhookClientConfigFluent fluent; Boolean validationEnabled; - public ApiextensionsV1WebhookClientConfig build() { ApiextensionsV1WebhookClientConfig buildable = new ApiextensionsV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); @@ -82,4 +50,5 @@ public ApiextensionsV1WebhookClientConfig build() { buildable.setUrl(fluent.getUrl()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java index 659fcd65a9..8f7265079c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java @@ -1,81 +1,50 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; import java.util.Collection; +import java.lang.Boolean; -/** Generated */ -public interface ApiextensionsV1WebhookClientConfigFluent< - A extends ApiextensionsV1WebhookClientConfigFluent> - extends Fluent { + /** + * Generated + */ +public interface ApiextensionsV1WebhookClientConfigFluent> extends Fluent{ public A withCaBundle(byte... caBundle); - public byte[] getCaBundle(); - - public A addToCaBundle(Integer index, Byte item); - - public A setToCaBundle(Integer index, Byte item); - + public A addToCaBundle(Integer index,Byte item); + public A setToCaBundle(Integer index,Byte item); public A addToCaBundle(java.lang.Byte... items); - public A addAllToCaBundle(Collection items); - public A removeFromCaBundle(java.lang.Byte... items); - public A removeAllFromCaBundle(Collection items); - public Boolean hasCaBundle(); - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public ApiextensionsV1ServiceReference getService(); - public ApiextensionsV1ServiceReference buildService(); - public A withService(ApiextensionsV1ServiceReference service); - public Boolean hasService(); - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewService(); - - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( - ApiextensionsV1ServiceReference item); - + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item); public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editService(); - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewService(); - - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( - ApiextensionsV1ServiceReference item); - + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike(ApiextensionsV1ServiceReference item); public String getUrl(); - public A withUrl(String url); - public Boolean hasUrl(); - - public interface ServiceNested - extends Nested, - ApiextensionsV1ServiceReferenceFluent< - ApiextensionsV1WebhookClientConfigFluent.ServiceNested> { + public interface ServiceNested extends Nested,ApiextensionsV1ServiceReferenceFluent>{ public N and(); - public N endService(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java index 779eca7c4b..5f3be86bdb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java @@ -1,246 +1,159 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class ApiextensionsV1WebhookClientConfigFluentImpl< - A extends ApiextensionsV1WebhookClientConfigFluent> - extends BaseFluent implements ApiextensionsV1WebhookClientConfigFluent { - public ApiextensionsV1WebhookClientConfigFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class ApiextensionsV1WebhookClientConfigFluentImpl> extends BaseFluent implements ApiextensionsV1WebhookClientConfigFluent{ + public ApiextensionsV1WebhookClientConfigFluentImpl() { + } public ApiextensionsV1WebhookClientConfigFluentImpl(ApiextensionsV1WebhookClientConfig instance) { this.withCaBundle(instance.getCaBundle()); this.withService(instance.getService()); this.withUrl(instance.getUrl()); - } + } private List caBundle; private ApiextensionsV1ServiceReferenceBuilder service; private String url; - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } - } - return (A) this; + if (this.caBundle != null) {this.caBundle.clear();} + if (caBundle != null) {for (byte item :caBundle){ this.addToCaBundle(item);}} return (A) this; } - public byte[] getCaBundle() { - // This needs to work with primitives, so we use arrays. - int size = caBundle != null ? caBundle.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : caBundle) { - result[index++] = item; - } - return result; - } + //This needs to work with primitives, so we use arrays. +int size = caBundle != null ? caBundle.size() : 0; +byte[] result = new byte[size]; +if (size == 0) { + return result; +} +int index = 0; +for (byte item : caBundle) { + result[index++]=item; +} +return result; - public A addToCaBundle(Integer index, Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } + } + public A addToCaBundle(Integer index,Byte item) { + if (this.caBundle == null) {this.caBundle = new ArrayList();} this.caBundle.add(index, item); - return (A) this; + return (A)this; } - - public A setToCaBundle(Integer index, Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.set(index, item); - return (A) this; + public A setToCaBundle(Integer index,Byte item) { + if (this.caBundle == null) {this.caBundle = new ArrayList();} + this.caBundle.set(index, item); return (A)this; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - for (Byte item : items) { - this.caBundle.add(item); - } - return (A) this; + if (this.caBundle == null) {this.caBundle = new ArrayList();} + for (Byte item : items) {this.caBundle.add(item);} return (A)this; } - public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - for (Byte item : items) { - this.caBundle.add(item); - } - return (A) this; + if (this.caBundle == null) {this.caBundle = new ArrayList();} + for (Byte item : items) {this.caBundle.add(item);} return (A)this; } - public A removeFromCaBundle(java.lang.Byte... items) { - for (Byte item : items) { - if (this.caBundle != null) { - this.caBundle.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.caBundle!= null){ this.caBundle.remove(item);}} return (A)this; } - public A removeAllFromCaBundle(Collection items) { - for (Byte item : items) { - if (this.caBundle != null) { - this.caBundle.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.caBundle!= null){ this.caBundle.remove(item);}} return (A)this; } - public Boolean hasCaBundle() { return caBundle != null && !caBundle.isEmpty(); } - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public ApiextensionsV1ServiceReference getService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public ApiextensionsV1ServiceReference buildService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public A withService(ApiextensionsV1ServiceReference service) { _visitables.get("service").remove(this.service); - if (service != null) { - this.service = new ApiextensionsV1ServiceReferenceBuilder(service); - _visitables.get("service").add(this.service); - } else { - this.service = null; - _visitables.get("service").remove(this.service); - } - return (A) this; + if (service!=null){ this.service= new ApiextensionsV1ServiceReferenceBuilder(service); _visitables.get("service").add(this.service);} else { this.service = null; _visitables.get("service").remove(this.service); } return (A) this; } - public Boolean hasService() { return this.service != null; } - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewService() { return new ApiextensionsV1WebhookClientConfigFluentImpl.ServiceNestedImpl(); } - - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( - ApiextensionsV1ServiceReference item) { + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item) { return new ApiextensionsV1WebhookClientConfigFluentImpl.ServiceNestedImpl(item); } - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewService() { - return withNewServiceLike( - getService() != null ? getService() : new ApiextensionsV1ServiceReferenceBuilder().build()); + return withNewServiceLike(getService() != null ? getService(): new ApiextensionsV1ServiceReferenceBuilder().build()); } - - public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( - ApiextensionsV1ServiceReference item) { - return withNewServiceLike(getService() != null ? getService() : item); + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike(ApiextensionsV1ServiceReference item) { + return withNewServiceLike(getService() != null ? getService(): item); } - public String getUrl() { return this.url; } - public A withUrl(String url) { - this.url = url; - return (A) this; + this.url=url; return (A) this; } - public Boolean hasUrl() { return this.url != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - ApiextensionsV1WebhookClientConfigFluentImpl that = - (ApiextensionsV1WebhookClientConfigFluentImpl) o; - if (caBundle != null ? !caBundle.equals(that.caBundle) : that.caBundle != null) return false; - if (service != null ? !service.equals(that.service) : that.service != null) return false; - if (url != null ? !url.equals(that.url) : that.url != null) return false; + ApiextensionsV1WebhookClientConfigFluentImpl that = (ApiextensionsV1WebhookClientConfigFluentImpl) o; + if (caBundle != null ? !caBundle.equals(that.caBundle) :that.caBundle != null) return false; + if (service != null ? !service.equals(that.service) :that.service != null) return false; + if (url != null ? !url.equals(that.url) :that.url != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(caBundle, service, url, super.hashCode()); + return java.util.Objects.hash(caBundle, service, url, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { - sb.append("caBundle:"); - sb.append(caBundle + ","); - } - if (service != null) { - sb.append("service:"); - sb.append(service + ","); - } - if (url != null) { - sb.append("url:"); - sb.append(url); - } + if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } + if (service != null) { sb.append("service:"); sb.append(service + ","); } + if (url != null) { sb.append("url:"); sb.append(url); } sb.append("}"); return sb.toString(); } - - class ServiceNestedImpl - extends ApiextensionsV1ServiceReferenceFluentImpl< - ApiextensionsV1WebhookClientConfigFluent.ServiceNested> - implements ApiextensionsV1WebhookClientConfigFluent.ServiceNested, Nested { + class ServiceNestedImpl extends ApiextensionsV1ServiceReferenceFluentImpl> implements ApiextensionsV1WebhookClientConfigFluent.ServiceNested,Nested{ ServiceNestedImpl(ApiextensionsV1ServiceReference item) { this.builder = new ApiextensionsV1ServiceReferenceBuilder(this, item); } - ServiceNestedImpl() { this.builder = new ApiextensionsV1ServiceReferenceBuilder(this); } - ApiextensionsV1ServiceReferenceBuilder builder; - public N and() { return (N) ApiextensionsV1WebhookClientConfigFluentImpl.this.withService(builder.build()); } - public N endService() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java index 5c2b26ee59..25fc48ca39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java @@ -1,80 +1,48 @@ -/* -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.VisitableBuilder; - -public class ApiregistrationV1ServiceReferenceBuilder - extends ApiregistrationV1ServiceReferenceFluentImpl - implements VisitableBuilder< - ApiregistrationV1ServiceReference, ApiregistrationV1ServiceReferenceBuilder> { +import java.lang.Boolean; +public class ApiregistrationV1ServiceReferenceBuilder extends ApiregistrationV1ServiceReferenceFluentImpl implements VisitableBuilder{ public ApiregistrationV1ServiceReferenceBuilder() { this(false); } - public ApiregistrationV1ServiceReferenceBuilder(Boolean validationEnabled) { this(new ApiregistrationV1ServiceReference(), validationEnabled); } - - public ApiregistrationV1ServiceReferenceBuilder( - ApiregistrationV1ServiceReferenceFluent fluent) { + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent) { this(fluent, false); } - - public ApiregistrationV1ServiceReferenceBuilder( - ApiregistrationV1ServiceReferenceFluent fluent, Boolean validationEnabled) { + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new ApiregistrationV1ServiceReference(), validationEnabled); } - - public ApiregistrationV1ServiceReferenceBuilder( - ApiregistrationV1ServiceReferenceFluent fluent, - ApiregistrationV1ServiceReference instance) { + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,ApiregistrationV1ServiceReference instance) { this(fluent, instance, false); } - - public ApiregistrationV1ServiceReferenceBuilder( - ApiregistrationV1ServiceReferenceFluent fluent, - ApiregistrationV1ServiceReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,ApiregistrationV1ServiceReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); fluent.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReference instance) { - this(instance, false); + this(instance,false); } - - public ApiregistrationV1ServiceReferenceBuilder( - ApiregistrationV1ServiceReference instance, Boolean validationEnabled) { - this.fluent = this; + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - ApiregistrationV1ServiceReferenceFluent fluent; Boolean validationEnabled; - public ApiregistrationV1ServiceReference build() { ApiregistrationV1ServiceReference buildable = new ApiregistrationV1ServiceReference(); buildable.setName(fluent.getName()); @@ -82,4 +50,5 @@ public ApiregistrationV1ServiceReference build() { buildable.setPort(fluent.getPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java index f77a27fb39..97b6b2e6fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java @@ -1,38 +1,22 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface ApiregistrationV1ServiceReferenceFluent< - A extends ApiregistrationV1ServiceReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface ApiregistrationV1ServiceReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java index 61471dee98..5d58abf9f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java @@ -1,109 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class ApiregistrationV1ServiceReferenceFluentImpl< - A extends ApiregistrationV1ServiceReferenceFluent> - extends BaseFluent implements ApiregistrationV1ServiceReferenceFluent { - public ApiregistrationV1ServiceReferenceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class ApiregistrationV1ServiceReferenceFluentImpl> extends BaseFluent implements ApiregistrationV1ServiceReferenceFluent{ + public ApiregistrationV1ServiceReferenceFluentImpl() { + } public ApiregistrationV1ServiceReferenceFluentImpl(ApiregistrationV1ServiceReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withPort(instance.getPort()); - } + } private String name; private String namespace; private Integer port; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - ApiregistrationV1ServiceReferenceFluentImpl that = - (ApiregistrationV1ServiceReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; + ApiregistrationV1ServiceReferenceFluentImpl that = (ApiregistrationV1ServiceReferenceFluentImpl) o; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, namespace, port, super.hashCode()); + return java.util.Objects.hash(name, namespace, port, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (port != null) { sb.append("port:"); sb.append(port); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java index 05bb0dbac4..c190fa5d1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class AuthenticationV1TokenRequestBuilder - extends AuthenticationV1TokenRequestFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class AuthenticationV1TokenRequestBuilder extends AuthenticationV1TokenRequestFluentImpl implements VisitableBuilder{ public AuthenticationV1TokenRequestBuilder() { this(false); } - public AuthenticationV1TokenRequestBuilder(Boolean validationEnabled) { this(new AuthenticationV1TokenRequest(), validationEnabled); } - public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent) { this(fluent, false); } - - public AuthenticationV1TokenRequestBuilder( - AuthenticationV1TokenRequestFluent fluent, Boolean validationEnabled) { + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,Boolean validationEnabled) { this(fluent, new AuthenticationV1TokenRequest(), validationEnabled); } - - public AuthenticationV1TokenRequestBuilder( - AuthenticationV1TokenRequestFluent fluent, AuthenticationV1TokenRequest instance) { + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,AuthenticationV1TokenRequest instance) { this(fluent, instance, false); } - - public AuthenticationV1TokenRequestBuilder( - AuthenticationV1TokenRequestFluent fluent, - AuthenticationV1TokenRequest instance, - Boolean validationEnabled) { - this.fluent = fluent; + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,AuthenticationV1TokenRequest instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public AuthenticationV1TokenRequestBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequest instance) { - this(instance, false); + this(instance,false); } - - public AuthenticationV1TokenRequestBuilder( - AuthenticationV1TokenRequest instance, Boolean validationEnabled) { - this.fluent = this; + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequest instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public AuthenticationV1TokenRequestBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - AuthenticationV1TokenRequestFluent fluent; Boolean validationEnabled; - public AuthenticationV1TokenRequest build() { AuthenticationV1TokenRequest buildable = new AuthenticationV1TokenRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public AuthenticationV1TokenRequest build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java index 7f7b057b34..e0e1199a56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java @@ -1,132 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface AuthenticationV1TokenRequestFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface AuthenticationV1TokenRequestFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadata(); - - public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public AuthenticationV1TokenRequestFluent.MetadataNested editMetadata(); - public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadata(); - - public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1TokenRequestSpec getSpec(); - public V1TokenRequestSpec buildSpec(); - public A withSpec(V1TokenRequestSpec spec); - public Boolean hasSpec(); - public AuthenticationV1TokenRequestFluent.SpecNested withNewSpec(); - public AuthenticationV1TokenRequestFluent.SpecNested withNewSpecLike(V1TokenRequestSpec item); - public AuthenticationV1TokenRequestFluent.SpecNested editSpec(); - public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpec(); - - public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpecLike( - V1TokenRequestSpec item); - + public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpecLike(V1TokenRequestSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1TokenRequestStatus getStatus(); - public V1TokenRequestStatus buildStatus(); - public A withStatus(V1TokenRequestStatus status); - public Boolean hasStatus(); - public AuthenticationV1TokenRequestFluent.StatusNested withNewStatus(); - - public AuthenticationV1TokenRequestFluent.StatusNested withNewStatusLike( - V1TokenRequestStatus item); - + public AuthenticationV1TokenRequestFluent.StatusNested withNewStatusLike(V1TokenRequestStatus item); public AuthenticationV1TokenRequestFluent.StatusNested editStatus(); - public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatus(); - - public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatusLike( - V1TokenRequestStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatusLike(V1TokenRequestStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1TokenRequestSpecFluent> { + public interface SpecNested extends Nested,V1TokenRequestSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1TokenRequestStatusFluent> { + public interface StatusNested extends Nested,V1TokenRequestStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java index 05786f73e3..187ca90ff7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class AuthenticationV1TokenRequestFluentImpl> - extends BaseFluent implements AuthenticationV1TokenRequestFluent { - public AuthenticationV1TokenRequestFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class AuthenticationV1TokenRequestFluentImpl> extends BaseFluent implements AuthenticationV1TokenRequestFluent{ + public AuthenticationV1TokenRequestFluentImpl() { + } public AuthenticationV1TokenRequestFluentImpl(AuthenticationV1TokenRequest instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,304 +25,205 @@ public AuthenticationV1TokenRequestFluentImpl(AuthenticationV1TokenRequest insta this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1TokenRequestSpecBuilder spec; private V1TokenRequestStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadata() { return new AuthenticationV1TokenRequestFluentImpl.MetadataNestedImpl(); } - - public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new AuthenticationV1TokenRequestFluentImpl.MetadataNestedImpl(item); } - public AuthenticationV1TokenRequestFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1TokenRequestSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1TokenRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1TokenRequestSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1TokenRequestSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1TokenRequestSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public AuthenticationV1TokenRequestFluent.SpecNested withNewSpec() { return new AuthenticationV1TokenRequestFluentImpl.SpecNestedImpl(); } - public AuthenticationV1TokenRequestFluent.SpecNested withNewSpecLike(V1TokenRequestSpec item) { return new AuthenticationV1TokenRequestFluentImpl.SpecNestedImpl(item); } - public AuthenticationV1TokenRequestFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1TokenRequestSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1TokenRequestSpecBuilder().build()); } - - public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpecLike( - V1TokenRequestSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpecLike(V1TokenRequestSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1TokenRequestStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1TokenRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1TokenRequestStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1TokenRequestStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1TokenRequestStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public AuthenticationV1TokenRequestFluent.StatusNested withNewStatus() { return new AuthenticationV1TokenRequestFluentImpl.StatusNestedImpl(); } - - public AuthenticationV1TokenRequestFluent.StatusNested withNewStatusLike( - V1TokenRequestStatus item) { + public AuthenticationV1TokenRequestFluent.StatusNested withNewStatusLike(V1TokenRequestStatus item) { return new AuthenticationV1TokenRequestFluentImpl.StatusNestedImpl(item); } - public AuthenticationV1TokenRequestFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1TokenRequestStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1TokenRequestStatusBuilder().build()); } - - public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatusLike( - V1TokenRequestStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatusLike(V1TokenRequestStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AuthenticationV1TokenRequestFluentImpl that = (AuthenticationV1TokenRequestFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements AuthenticationV1TokenRequestFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements AuthenticationV1TokenRequestFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) AuthenticationV1TokenRequestFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1TokenRequestSpecFluentImpl> - implements AuthenticationV1TokenRequestFluent.SpecNested, Nested { + class SpecNestedImpl extends V1TokenRequestSpecFluentImpl> implements AuthenticationV1TokenRequestFluent.SpecNested,Nested{ SpecNestedImpl(V1TokenRequestSpec item) { this.builder = new V1TokenRequestSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1TokenRequestSpecBuilder(this); } - V1TokenRequestSpecBuilder builder; - public N and() { return (N) AuthenticationV1TokenRequestFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1TokenRequestStatusFluentImpl> - implements AuthenticationV1TokenRequestFluent.StatusNested, Nested { + class StatusNestedImpl extends V1TokenRequestStatusFluentImpl> implements AuthenticationV1TokenRequestFluent.StatusNested,Nested{ StatusNestedImpl(V1TokenRequestStatus item) { this.builder = new V1TokenRequestStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1TokenRequestStatusBuilder(this); } - V1TokenRequestStatusBuilder builder; - public N and() { return (N) AuthenticationV1TokenRequestFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java index 2094361ee4..d003ad45ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class CoreV1EndpointPortBuilder - extends CoreV1EndpointPortFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class CoreV1EndpointPortBuilder extends CoreV1EndpointPortFluentImpl implements VisitableBuilder{ public CoreV1EndpointPortBuilder() { this(false); } - public CoreV1EndpointPortBuilder(Boolean validationEnabled) { this(new CoreV1EndpointPort(), validationEnabled); } - public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent) { this(fluent, false); } - - public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent, Boolean validationEnabled) { + public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,Boolean validationEnabled) { this(fluent, new CoreV1EndpointPort(), validationEnabled); } - - public CoreV1EndpointPortBuilder( - CoreV1EndpointPortFluent fluent, CoreV1EndpointPort instance) { + public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,CoreV1EndpointPort instance) { this(fluent, instance, false); } - - public CoreV1EndpointPortBuilder( - CoreV1EndpointPortFluent fluent, CoreV1EndpointPort instance, Boolean validationEnabled) { - this.fluent = fluent; + public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,CoreV1EndpointPort instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAppProtocol(instance.getAppProtocol()); fluent.withName(instance.getName()); @@ -49,15 +28,13 @@ public CoreV1EndpointPortBuilder( fluent.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance) { - this(instance, false); + this(instance,false); } - - public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance, Boolean validationEnabled) { - this.fluent = this; + public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance,Boolean validationEnabled) { + this.fluent = this; this.withAppProtocol(instance.getAppProtocol()); this.withName(instance.getName()); @@ -66,12 +43,10 @@ public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance, Boolean validation this.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - CoreV1EndpointPortFluent fluent; Boolean validationEnabled; - public CoreV1EndpointPort build() { CoreV1EndpointPort buildable = new CoreV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -80,4 +55,5 @@ public CoreV1EndpointPort build() { buildable.setProtocol(fluent.getProtocol()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java index 4733c8ff1e..dd7d3ee6fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java @@ -1,42 +1,25 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface CoreV1EndpointPortFluent> extends Fluent { + /** + * Generated + */ +public interface CoreV1EndpointPortFluent> extends Fluent{ public String getAppProtocol(); - public A withAppProtocol(String appProtocol); - public Boolean hasAppProtocol(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); - public String getProtocol(); - public A withProtocol(String protocol); - public Boolean hasProtocol(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java index 47b4fa3565..d96c115e50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java @@ -1,25 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class CoreV1EndpointPortFluentImpl> - extends BaseFluent implements CoreV1EndpointPortFluent { - public CoreV1EndpointPortFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class CoreV1EndpointPortFluentImpl> extends BaseFluent implements CoreV1EndpointPortFluent{ + public CoreV1EndpointPortFluentImpl() { + } public CoreV1EndpointPortFluentImpl(CoreV1EndpointPort instance) { this.withAppProtocol(instance.getAppProtocol()); @@ -28,101 +22,70 @@ public CoreV1EndpointPortFluentImpl(CoreV1EndpointPort instance) { this.withPort(instance.getPort()); this.withProtocol(instance.getProtocol()); - } + } private String appProtocol; private String name; private Integer port; private String protocol; - public String getAppProtocol() { return this.appProtocol; } - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + this.appProtocol=appProtocol; return (A) this; } - public Boolean hasAppProtocol() { return this.appProtocol != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + this.protocol=protocol; return (A) this; } - public Boolean hasProtocol() { return this.protocol != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CoreV1EndpointPortFluentImpl that = (CoreV1EndpointPortFluentImpl) o; - if (appProtocol != null ? !appProtocol.equals(that.appProtocol) : that.appProtocol != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; + if (appProtocol != null ? !appProtocol.equals(that.appProtocol) :that.appProtocol != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; + if (protocol != null ? !protocol.equals(that.protocol) :that.protocol != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); + return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { - sb.append("appProtocol:"); - sb.append(appProtocol + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port + ","); - } - if (protocol != null) { - sb.append("protocol:"); - sb.append(protocol); - } + if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (port != null) { sb.append("port:"); sb.append(port + ","); } + if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java index d1cebec34d..09f10849d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class CoreV1EventBuilder extends CoreV1EventFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class CoreV1EventBuilder extends CoreV1EventFluentImpl implements VisitableBuilder{ public CoreV1EventBuilder() { this(false); } - public CoreV1EventBuilder(Boolean validationEnabled) { this(new CoreV1Event(), validationEnabled); } - public CoreV1EventBuilder(CoreV1EventFluent fluent) { this(fluent, false); } - - public CoreV1EventBuilder(CoreV1EventFluent fluent, Boolean validationEnabled) { + public CoreV1EventBuilder(CoreV1EventFluent fluent,Boolean validationEnabled) { this(fluent, new CoreV1Event(), validationEnabled); } - - public CoreV1EventBuilder(CoreV1EventFluent fluent, CoreV1Event instance) { + public CoreV1EventBuilder(CoreV1EventFluent fluent,CoreV1Event instance) { this(fluent, instance, false); } - - public CoreV1EventBuilder( - CoreV1EventFluent fluent, CoreV1Event instance, Boolean validationEnabled) { - this.fluent = fluent; + public CoreV1EventBuilder(CoreV1EventFluent fluent,CoreV1Event instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAction(instance.getAction()); fluent.withApiVersion(instance.getApiVersion()); @@ -73,15 +54,13 @@ public CoreV1EventBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public CoreV1EventBuilder(CoreV1Event instance) { - this(instance, false); + this(instance,false); } - - public CoreV1EventBuilder(CoreV1Event instance, Boolean validationEnabled) { - this.fluent = this; + public CoreV1EventBuilder(CoreV1Event instance,Boolean validationEnabled) { + this.fluent = this; this.withAction(instance.getAction()); this.withApiVersion(instance.getApiVersion()); @@ -116,12 +95,10 @@ public CoreV1EventBuilder(CoreV1Event instance, Boolean validationEnabled) { this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - CoreV1EventFluent fluent; Boolean validationEnabled; - public CoreV1Event build() { CoreV1Event buildable = new CoreV1Event(); buildable.setAction(fluent.getAction()); @@ -143,4 +120,5 @@ public CoreV1Event build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java index c0a40318ea..292ae98b22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java @@ -1,249 +1,152 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.lang.Boolean; -/** Generated */ -public interface CoreV1EventFluent> extends Fluent { + /** + * Generated + */ +public interface CoreV1EventFluent> extends Fluent{ public String getAction(); - public A withAction(String action); - public Boolean hasAction(); - public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Integer getCount(); - public A withCount(Integer count); - public Boolean hasCount(); - public OffsetDateTime getEventTime(); - public A withEventTime(OffsetDateTime eventTime); - public Boolean hasEventTime(); - public OffsetDateTime getFirstTimestamp(); - public A withFirstTimestamp(OffsetDateTime firstTimestamp); - public Boolean hasFirstTimestamp(); - + /** * This method has been deprecated, please use method buildInvolvedObject instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getInvolvedObject(); - public V1ObjectReference buildInvolvedObject(); - public A withInvolvedObject(V1ObjectReference involvedObject); - public Boolean hasInvolvedObject(); - public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObject(); - - public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObjectLike( - V1ObjectReference item); - + public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item); public CoreV1EventFluent.InvolvedObjectNested editInvolvedObject(); - public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObject(); - - public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObjectLike( - V1ObjectReference item); - + public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObjectLike(V1ObjectReference item); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public OffsetDateTime getLastTimestamp(); - public A withLastTimestamp(OffsetDateTime lastTimestamp); - public Boolean hasLastTimestamp(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public CoreV1EventFluent.MetadataNested withNewMetadata(); - public CoreV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public CoreV1EventFluent.MetadataNested editMetadata(); - public CoreV1EventFluent.MetadataNested editOrNewMetadata(); - public CoreV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - + /** * This method has been deprecated, please use method buildRelated instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getRelated(); - public V1ObjectReference buildRelated(); - public A withRelated(V1ObjectReference related); - public Boolean hasRelated(); - public CoreV1EventFluent.RelatedNested withNewRelated(); - public CoreV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item); - public CoreV1EventFluent.RelatedNested editRelated(); - public CoreV1EventFluent.RelatedNested editOrNewRelated(); - public CoreV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item); - public String getReportingComponent(); - public A withReportingComponent(String reportingComponent); - public Boolean hasReportingComponent(); - public String getReportingInstance(); - public A withReportingInstance(String reportingInstance); - public Boolean hasReportingInstance(); - + /** * This method has been deprecated, please use method buildSeries instead. - * * @return The buildable object. */ @Deprecated public CoreV1EventSeries getSeries(); - public CoreV1EventSeries buildSeries(); - public A withSeries(CoreV1EventSeries series); - public Boolean hasSeries(); - public CoreV1EventFluent.SeriesNested withNewSeries(); - public CoreV1EventFluent.SeriesNested withNewSeriesLike(CoreV1EventSeries item); - public CoreV1EventFluent.SeriesNested editSeries(); - public CoreV1EventFluent.SeriesNested editOrNewSeries(); - public CoreV1EventFluent.SeriesNested editOrNewSeriesLike(CoreV1EventSeries item); - + /** * This method has been deprecated, please use method buildSource instead. - * * @return The buildable object. */ @Deprecated public V1EventSource getSource(); - public V1EventSource buildSource(); - public A withSource(V1EventSource source); - public Boolean hasSource(); - public CoreV1EventFluent.SourceNested withNewSource(); - public CoreV1EventFluent.SourceNested withNewSourceLike(V1EventSource item); - public CoreV1EventFluent.SourceNested editSource(); - public CoreV1EventFluent.SourceNested editOrNewSource(); - public CoreV1EventFluent.SourceNested editOrNewSourceLike(V1EventSource item); - public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface InvolvedObjectNested - extends Nested, V1ObjectReferenceFluent> { + public interface InvolvedObjectNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endInvolvedObject(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface RelatedNested - extends Nested, V1ObjectReferenceFluent> { + public interface RelatedNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endRelated(); + } - - public interface SeriesNested - extends Nested, CoreV1EventSeriesFluent> { + public interface SeriesNested extends Nested,CoreV1EventSeriesFluent>{ public N and(); - public N endSeries(); + } - - public interface SourceNested - extends Nested, V1EventSourceFluent> { + public interface SourceNested extends Nested,V1EventSourceFluent>{ public N and(); - public N endSource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java index 006d8a694d..2d21824ba3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java @@ -1,27 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class CoreV1EventFluentImpl> extends BaseFluent - implements CoreV1EventFluent { - public CoreV1EventFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class CoreV1EventFluentImpl> extends BaseFluent implements CoreV1EventFluent{ + public CoreV1EventFluentImpl() { + } public CoreV1EventFluentImpl(CoreV1Event instance) { this.withAction(instance.getAction()); @@ -56,8 +51,8 @@ public CoreV1EventFluentImpl(CoreV1Event instance) { this.withSource(instance.getSource()); this.withType(instance.getType()); - } + } private String action; private String apiVersion; private Integer count; @@ -75,656 +70,412 @@ public CoreV1EventFluentImpl(CoreV1Event instance) { private CoreV1EventSeriesBuilder series; private V1EventSourceBuilder source; private String type; - public String getAction() { return this.action; } - public A withAction(String action) { - this.action = action; - return (A) this; + this.action=action; return (A) this; } - public Boolean hasAction() { return this.action != null; } - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Integer getCount() { return this.count; } - public A withCount(Integer count) { - this.count = count; - return (A) this; + this.count=count; return (A) this; } - public Boolean hasCount() { return this.count != null; } - public OffsetDateTime getEventTime() { return this.eventTime; } - public A withEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; + this.eventTime=eventTime; return (A) this; } - public Boolean hasEventTime() { return this.eventTime != null; } - public OffsetDateTime getFirstTimestamp() { return this.firstTimestamp; } - public A withFirstTimestamp(OffsetDateTime firstTimestamp) { - this.firstTimestamp = firstTimestamp; - return (A) this; + this.firstTimestamp=firstTimestamp; return (A) this; } - public Boolean hasFirstTimestamp() { return this.firstTimestamp != null; } - + /** * This method has been deprecated, please use method buildInvolvedObject instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getInvolvedObject() { - return this.involvedObject != null ? this.involvedObject.build() : null; + return this.involvedObject!=null ?this.involvedObject.build():null; } - public V1ObjectReference buildInvolvedObject() { - return this.involvedObject != null ? this.involvedObject.build() : null; + return this.involvedObject!=null ?this.involvedObject.build():null; } - public A withInvolvedObject(V1ObjectReference involvedObject) { _visitables.get("involvedObject").remove(this.involvedObject); - if (involvedObject != null) { - this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); - _visitables.get("involvedObject").add(this.involvedObject); - } else { - this.involvedObject = null; - _visitables.get("involvedObject").remove(this.involvedObject); - } - return (A) this; + if (involvedObject!=null){ this.involvedObject= new V1ObjectReferenceBuilder(involvedObject); _visitables.get("involvedObject").add(this.involvedObject);} else { this.involvedObject = null; _visitables.get("involvedObject").remove(this.involvedObject); } return (A) this; } - public Boolean hasInvolvedObject() { return this.involvedObject != null; } - public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObject() { return new CoreV1EventFluentImpl.InvolvedObjectNestedImpl(); } - - public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObjectLike( - V1ObjectReference item) { + public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) { return new CoreV1EventFluentImpl.InvolvedObjectNestedImpl(item); } - public CoreV1EventFluent.InvolvedObjectNested editInvolvedObject() { return withNewInvolvedObjectLike(getInvolvedObject()); } - public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObject() { - return withNewInvolvedObjectLike( - getInvolvedObject() != null ? getInvolvedObject() : new V1ObjectReferenceBuilder().build()); + return withNewInvolvedObjectLike(getInvolvedObject() != null ? getInvolvedObject(): new V1ObjectReferenceBuilder().build()); } - - public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObjectLike( - V1ObjectReference item) { - return withNewInvolvedObjectLike(getInvolvedObject() != null ? getInvolvedObject() : item); + public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObjectLike(V1ObjectReference item) { + return withNewInvolvedObjectLike(getInvolvedObject() != null ? getInvolvedObject(): item); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public OffsetDateTime getLastTimestamp() { return this.lastTimestamp; } - public A withLastTimestamp(OffsetDateTime lastTimestamp) { - this.lastTimestamp = lastTimestamp; - return (A) this; + this.lastTimestamp=lastTimestamp; return (A) this; } - public Boolean hasLastTimestamp() { return this.lastTimestamp != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public CoreV1EventFluent.MetadataNested withNewMetadata() { return new CoreV1EventFluentImpl.MetadataNestedImpl(); } - public CoreV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new CoreV1EventFluentImpl.MetadataNestedImpl(item); } - public CoreV1EventFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public CoreV1EventFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public CoreV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - + /** * This method has been deprecated, please use method buildRelated instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getRelated() { - return this.related != null ? this.related.build() : null; + return this.related!=null ?this.related.build():null; } - public V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; + return this.related!=null ?this.related.build():null; } - public A withRelated(V1ObjectReference related) { _visitables.get("related").remove(this.related); - if (related != null) { - this.related = new V1ObjectReferenceBuilder(related); - _visitables.get("related").add(this.related); - } else { - this.related = null; - _visitables.get("related").remove(this.related); - } - return (A) this; + if (related!=null){ this.related= new V1ObjectReferenceBuilder(related); _visitables.get("related").add(this.related);} else { this.related = null; _visitables.get("related").remove(this.related); } return (A) this; } - public Boolean hasRelated() { return this.related != null; } - public CoreV1EventFluent.RelatedNested withNewRelated() { return new CoreV1EventFluentImpl.RelatedNestedImpl(); } - public CoreV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item) { return new CoreV1EventFluentImpl.RelatedNestedImpl(item); } - public CoreV1EventFluent.RelatedNested editRelated() { return withNewRelatedLike(getRelated()); } - public CoreV1EventFluent.RelatedNested editOrNewRelated() { - return withNewRelatedLike( - getRelated() != null ? getRelated() : new V1ObjectReferenceBuilder().build()); + return withNewRelatedLike(getRelated() != null ? getRelated(): new V1ObjectReferenceBuilder().build()); } - public CoreV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item) { - return withNewRelatedLike(getRelated() != null ? getRelated() : item); + return withNewRelatedLike(getRelated() != null ? getRelated(): item); } - public String getReportingComponent() { return this.reportingComponent; } - public A withReportingComponent(String reportingComponent) { - this.reportingComponent = reportingComponent; - return (A) this; + this.reportingComponent=reportingComponent; return (A) this; } - public Boolean hasReportingComponent() { return this.reportingComponent != null; } - public String getReportingInstance() { return this.reportingInstance; } - public A withReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; - return (A) this; + this.reportingInstance=reportingInstance; return (A) this; } - public Boolean hasReportingInstance() { return this.reportingInstance != null; } - + /** * This method has been deprecated, please use method buildSeries instead. - * * @return The buildable object. */ @Deprecated public CoreV1EventSeries getSeries() { - return this.series != null ? this.series.build() : null; + return this.series!=null ?this.series.build():null; } - public CoreV1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; + return this.series!=null ?this.series.build():null; } - public A withSeries(CoreV1EventSeries series) { _visitables.get("series").remove(this.series); - if (series != null) { - this.series = new CoreV1EventSeriesBuilder(series); - _visitables.get("series").add(this.series); - } else { - this.series = null; - _visitables.get("series").remove(this.series); - } - return (A) this; + if (series!=null){ this.series= new CoreV1EventSeriesBuilder(series); _visitables.get("series").add(this.series);} else { this.series = null; _visitables.get("series").remove(this.series); } return (A) this; } - public Boolean hasSeries() { return this.series != null; } - public CoreV1EventFluent.SeriesNested withNewSeries() { return new CoreV1EventFluentImpl.SeriesNestedImpl(); } - public CoreV1EventFluent.SeriesNested withNewSeriesLike(CoreV1EventSeries item) { return new CoreV1EventFluentImpl.SeriesNestedImpl(item); } - public CoreV1EventFluent.SeriesNested editSeries() { return withNewSeriesLike(getSeries()); } - public CoreV1EventFluent.SeriesNested editOrNewSeries() { - return withNewSeriesLike( - getSeries() != null ? getSeries() : new CoreV1EventSeriesBuilder().build()); + return withNewSeriesLike(getSeries() != null ? getSeries(): new CoreV1EventSeriesBuilder().build()); } - public CoreV1EventFluent.SeriesNested editOrNewSeriesLike(CoreV1EventSeries item) { - return withNewSeriesLike(getSeries() != null ? getSeries() : item); + return withNewSeriesLike(getSeries() != null ? getSeries(): item); } - + /** * This method has been deprecated, please use method buildSource instead. - * * @return The buildable object. */ @Deprecated public V1EventSource getSource() { - return this.source != null ? this.source.build() : null; + return this.source!=null ?this.source.build():null; } - public V1EventSource buildSource() { - return this.source != null ? this.source.build() : null; + return this.source!=null ?this.source.build():null; } - public A withSource(V1EventSource source) { _visitables.get("source").remove(this.source); - if (source != null) { - this.source = new V1EventSourceBuilder(source); - _visitables.get("source").add(this.source); - } else { - this.source = null; - _visitables.get("source").remove(this.source); - } - return (A) this; + if (source!=null){ this.source= new V1EventSourceBuilder(source); _visitables.get("source").add(this.source);} else { this.source = null; _visitables.get("source").remove(this.source); } return (A) this; } - public Boolean hasSource() { return this.source != null; } - public CoreV1EventFluent.SourceNested withNewSource() { return new CoreV1EventFluentImpl.SourceNestedImpl(); } - public CoreV1EventFluent.SourceNested withNewSourceLike(V1EventSource item) { return new CoreV1EventFluentImpl.SourceNestedImpl(item); } - public CoreV1EventFluent.SourceNested editSource() { return withNewSourceLike(getSource()); } - public CoreV1EventFluent.SourceNested editOrNewSource() { - return withNewSourceLike( - getSource() != null ? getSource() : new V1EventSourceBuilder().build()); + return withNewSourceLike(getSource() != null ? getSource(): new V1EventSourceBuilder().build()); } - public CoreV1EventFluent.SourceNested editOrNewSourceLike(V1EventSource item) { - return withNewSourceLike(getSource() != null ? getSource() : item); + return withNewSourceLike(getSource() != null ? getSource(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CoreV1EventFluentImpl that = (CoreV1EventFluentImpl) o; - if (action != null ? !action.equals(that.action) : that.action != null) return false; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (count != null ? !count.equals(that.count) : that.count != null) return false; - if (eventTime != null ? !eventTime.equals(that.eventTime) : that.eventTime != null) - return false; - if (firstTimestamp != null - ? !firstTimestamp.equals(that.firstTimestamp) - : that.firstTimestamp != null) return false; - if (involvedObject != null - ? !involvedObject.equals(that.involvedObject) - : that.involvedObject != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (lastTimestamp != null - ? !lastTimestamp.equals(that.lastTimestamp) - : that.lastTimestamp != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (related != null ? !related.equals(that.related) : that.related != null) return false; - if (reportingComponent != null - ? !reportingComponent.equals(that.reportingComponent) - : that.reportingComponent != null) return false; - if (reportingInstance != null - ? !reportingInstance.equals(that.reportingInstance) - : that.reportingInstance != null) return false; - if (series != null ? !series.equals(that.series) : that.series != null) return false; - if (source != null ? !source.equals(that.source) : that.source != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (action != null ? !action.equals(that.action) :that.action != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (count != null ? !count.equals(that.count) :that.count != null) return false; + if (eventTime != null ? !eventTime.equals(that.eventTime) :that.eventTime != null) return false; + if (firstTimestamp != null ? !firstTimestamp.equals(that.firstTimestamp) :that.firstTimestamp != null) return false; + if (involvedObject != null ? !involvedObject.equals(that.involvedObject) :that.involvedObject != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (lastTimestamp != null ? !lastTimestamp.equals(that.lastTimestamp) :that.lastTimestamp != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (related != null ? !related.equals(that.related) :that.related != null) return false; + if (reportingComponent != null ? !reportingComponent.equals(that.reportingComponent) :that.reportingComponent != null) return false; + if (reportingInstance != null ? !reportingInstance.equals(that.reportingInstance) :that.reportingInstance != null) return false; + if (series != null ? !series.equals(that.series) :that.series != null) return false; + if (source != null ? !source.equals(that.source) :that.source != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - action, - apiVersion, - count, - eventTime, - firstTimestamp, - involvedObject, - kind, - lastTimestamp, - message, - metadata, - reason, - related, - reportingComponent, - reportingInstance, - series, - source, - type, - super.hashCode()); + return java.util.Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (action != null) { - sb.append("action:"); - sb.append(action + ","); - } - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (count != null) { - sb.append("count:"); - sb.append(count + ","); - } - if (eventTime != null) { - sb.append("eventTime:"); - sb.append(eventTime + ","); - } - if (firstTimestamp != null) { - sb.append("firstTimestamp:"); - sb.append(firstTimestamp + ","); - } - if (involvedObject != null) { - sb.append("involvedObject:"); - sb.append(involvedObject + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (lastTimestamp != null) { - sb.append("lastTimestamp:"); - sb.append(lastTimestamp + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (related != null) { - sb.append("related:"); - sb.append(related + ","); - } - if (reportingComponent != null) { - sb.append("reportingComponent:"); - sb.append(reportingComponent + ","); - } - if (reportingInstance != null) { - sb.append("reportingInstance:"); - sb.append(reportingInstance + ","); - } - if (series != null) { - sb.append("series:"); - sb.append(series + ","); - } - if (source != null) { - sb.append("source:"); - sb.append(source + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (action != null) { sb.append("action:"); sb.append(action + ","); } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (count != null) { sb.append("count:"); sb.append(count + ","); } + if (eventTime != null) { sb.append("eventTime:"); sb.append(eventTime + ","); } + if (firstTimestamp != null) { sb.append("firstTimestamp:"); sb.append(firstTimestamp + ","); } + if (involvedObject != null) { sb.append("involvedObject:"); sb.append(involvedObject + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (lastTimestamp != null) { sb.append("lastTimestamp:"); sb.append(lastTimestamp + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (related != null) { sb.append("related:"); sb.append(related + ","); } + if (reportingComponent != null) { sb.append("reportingComponent:"); sb.append(reportingComponent + ","); } + if (reportingInstance != null) { sb.append("reportingInstance:"); sb.append(reportingInstance + ","); } + if (series != null) { sb.append("series:"); sb.append(series + ","); } + if (source != null) { sb.append("source:"); sb.append(source + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class InvolvedObjectNestedImpl - extends V1ObjectReferenceFluentImpl> - implements CoreV1EventFluent.InvolvedObjectNested, Nested { + class InvolvedObjectNestedImpl extends V1ObjectReferenceFluentImpl> implements CoreV1EventFluent.InvolvedObjectNested,Nested{ InvolvedObjectNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - InvolvedObjectNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) CoreV1EventFluentImpl.this.withInvolvedObject(builder.build()); } - public N endInvolvedObject() { return and(); } + } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements CoreV1EventFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements CoreV1EventFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) CoreV1EventFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class RelatedNestedImpl extends V1ObjectReferenceFluentImpl> - implements CoreV1EventFluent.RelatedNested, Nested { + class RelatedNestedImpl extends V1ObjectReferenceFluentImpl> implements CoreV1EventFluent.RelatedNested,Nested{ RelatedNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - RelatedNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) CoreV1EventFluentImpl.this.withRelated(builder.build()); } - public N endRelated() { return and(); } + } - - class SeriesNestedImpl extends CoreV1EventSeriesFluentImpl> - implements CoreV1EventFluent.SeriesNested, Nested { + class SeriesNestedImpl extends CoreV1EventSeriesFluentImpl> implements CoreV1EventFluent.SeriesNested,Nested{ SeriesNestedImpl(CoreV1EventSeries item) { this.builder = new CoreV1EventSeriesBuilder(this, item); } - SeriesNestedImpl() { this.builder = new CoreV1EventSeriesBuilder(this); } - CoreV1EventSeriesBuilder builder; - public N and() { return (N) CoreV1EventFluentImpl.this.withSeries(builder.build()); } - public N endSeries() { return and(); } + } - - class SourceNestedImpl extends V1EventSourceFluentImpl> - implements CoreV1EventFluent.SourceNested, Nested { + class SourceNestedImpl extends V1EventSourceFluentImpl> implements CoreV1EventFluent.SourceNested,Nested{ SourceNestedImpl(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } - SourceNestedImpl() { this.builder = new V1EventSourceBuilder(this); } - V1EventSourceBuilder builder; - public N and() { return (N) CoreV1EventFluentImpl.this.withSource(builder.build()); } - public N endSource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java index f16bfe429f..8030b84758 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class CoreV1EventListBuilder extends CoreV1EventListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class CoreV1EventListBuilder extends CoreV1EventListFluentImpl implements VisitableBuilder{ public CoreV1EventListBuilder() { this(false); } - public CoreV1EventListBuilder(Boolean validationEnabled) { this(new CoreV1EventList(), validationEnabled); } - public CoreV1EventListBuilder(CoreV1EventListFluent fluent) { this(fluent, false); } - - public CoreV1EventListBuilder(CoreV1EventListFluent fluent, Boolean validationEnabled) { + public CoreV1EventListBuilder(CoreV1EventListFluent fluent,Boolean validationEnabled) { this(fluent, new CoreV1EventList(), validationEnabled); } - - public CoreV1EventListBuilder(CoreV1EventListFluent fluent, CoreV1EventList instance) { + public CoreV1EventListBuilder(CoreV1EventListFluent fluent,CoreV1EventList instance) { this(fluent, instance, false); } - - public CoreV1EventListBuilder( - CoreV1EventListFluent fluent, CoreV1EventList instance, Boolean validationEnabled) { - this.fluent = fluent; + public CoreV1EventListBuilder(CoreV1EventListFluent fluent,CoreV1EventList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public CoreV1EventListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public CoreV1EventListBuilder(CoreV1EventList instance) { - this(instance, false); + this(instance,false); } - - public CoreV1EventListBuilder(CoreV1EventList instance, Boolean validationEnabled) { - this.fluent = this; + public CoreV1EventListBuilder(CoreV1EventList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public CoreV1EventListBuilder(CoreV1EventList instance, Boolean validationEnable this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - CoreV1EventListFluent fluent; Boolean validationEnabled; - public CoreV1EventList build() { CoreV1EventList buildable = new CoreV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public CoreV1EventList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java index 92b6cbcad1..97939c3515 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface CoreV1EventListFluent> extends Fluent { + /** + * Generated + */ +public interface CoreV1EventListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, CoreV1Event item); - - public A setToItems(Integer index, CoreV1Event item); - + public A addToItems(Integer index,CoreV1Event item); + public A setToItems(Integer index,CoreV1Event item); public A addToItems(io.kubernetes.client.openapi.models.CoreV1Event... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.CoreV1Event... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public CoreV1Event buildItem(Integer index); - public CoreV1Event buildFirstItem(); - public CoreV1Event buildLastItem(); - public CoreV1Event buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items); - public Boolean hasItems(); - public CoreV1EventListFluent.ItemsNested addNewItem(); - public CoreV1EventListFluent.ItemsNested addNewItemLike(CoreV1Event item); - - public CoreV1EventListFluent.ItemsNested setNewItemLike(Integer index, CoreV1Event item); - + public CoreV1EventListFluent.ItemsNested setNewItemLike(Integer index,CoreV1Event item); public CoreV1EventListFluent.ItemsNested editItem(Integer index); - public CoreV1EventListFluent.ItemsNested editFirstItem(); - public CoreV1EventListFluent.ItemsNested editLastItem(); - - public CoreV1EventListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public CoreV1EventListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public CoreV1EventListFluent.MetadataNested withNewMetadata(); - public CoreV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public CoreV1EventListFluent.MetadataNested editMetadata(); - public CoreV1EventListFluent.MetadataNested editOrNewMetadata(); - public CoreV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, CoreV1EventFluent> { + public interface ItemsNested extends Nested,CoreV1EventFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java index a100dc306b..cd12f0c827 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class CoreV1EventListFluentImpl> extends BaseFluent - implements CoreV1EventListFluent { - public CoreV1EventListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class CoreV1EventListFluentImpl> extends BaseFluent implements CoreV1EventListFluent{ + public CoreV1EventListFluentImpl() { + } public CoreV1EventListFluentImpl(CoreV1EventList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public CoreV1EventListFluentImpl(CoreV1EventList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, CoreV1Event item) { - if (this.items == null) { - this.items = new ArrayList(); - } - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,CoreV1Event item) { + if (this.items == null) {this.items = new ArrayList();} + CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, CoreV1Event item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,CoreV1Event item) { + if (this.items == null) {this.items = new ArrayList();} CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public CoreV1Event buildItem(Integer index) { return this.items.get(index).build(); } - public CoreV1Event buildFirstItem() { return this.items.get(0).build(); } - public CoreV1Event buildLastItem() { return this.items.get(items.size() - 1).build(); } - public CoreV1Event buildMatchingItem(Predicate predicate) { - for (CoreV1EventBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (CoreV1EventBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (CoreV1EventBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (CoreV1EventBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (CoreV1Event item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (CoreV1Event item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (CoreV1Event item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (CoreV1Event item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public CoreV1EventListFluent.ItemsNested addNewItem() { return new CoreV1EventListFluentImpl.ItemsNestedImpl(); } - public CoreV1EventListFluent.ItemsNested addNewItemLike(CoreV1Event item) { return new CoreV1EventListFluentImpl.ItemsNestedImpl(-1, item); } - - public CoreV1EventListFluent.ItemsNested setNewItemLike(Integer index, CoreV1Event item) { + public CoreV1EventListFluent.ItemsNested setNewItemLike(Integer index,CoreV1Event item) { return new CoreV1EventListFluentImpl.ItemsNestedImpl(index, item); } - public CoreV1EventListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public CoreV1EventListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public CoreV1EventListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public CoreV1EventListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public CoreV1EventListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new CoreV1EventListFluentImpl.MetadataNestedImpl(); } - public CoreV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new CoreV1EventListFluentImpl.MetadataNestedImpl(item); } - public CoreV1EventListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public CoreV1EventListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public CoreV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CoreV1EventListFluentImpl that = (CoreV1EventListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends CoreV1EventFluentImpl> - implements CoreV1EventListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, CoreV1Event item) { + class ItemsNestedImpl extends CoreV1EventFluentImpl> implements CoreV1EventListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,CoreV1Event item) { this.index = index; this.builder = new CoreV1EventBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new CoreV1EventBuilder(this); } - CoreV1EventBuilder builder; Integer index; - public N and() { - return (N) CoreV1EventListFluentImpl.this.setToItems(index, builder.build()); + return (N) CoreV1EventListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements CoreV1EventListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements CoreV1EventListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) CoreV1EventListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java index a174728307..e7ed2715bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluentImpl implements VisitableBuilder{ public CoreV1EventSeriesBuilder() { this(false); } - public CoreV1EventSeriesBuilder(Boolean validationEnabled) { this(new CoreV1EventSeries(), validationEnabled); } - public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent) { this(fluent, false); } - - public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent, Boolean validationEnabled) { + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,Boolean validationEnabled) { this(fluent, new CoreV1EventSeries(), validationEnabled); } - - public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent, CoreV1EventSeries instance) { + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,CoreV1EventSeries instance) { this(fluent, instance, false); } - - public CoreV1EventSeriesBuilder( - CoreV1EventSeriesFluent fluent, CoreV1EventSeries instance, Boolean validationEnabled) { - this.fluent = fluent; + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,CoreV1EventSeries instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCount(instance.getCount()); fluent.withLastObservedTime(instance.getLastObservedTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public CoreV1EventSeriesBuilder(CoreV1EventSeries instance) { - this(instance, false); + this(instance,false); } - - public CoreV1EventSeriesBuilder(CoreV1EventSeries instance, Boolean validationEnabled) { - this.fluent = this; + public CoreV1EventSeriesBuilder(CoreV1EventSeries instance,Boolean validationEnabled) { + this.fluent = this; this.withCount(instance.getCount()); this.withLastObservedTime(instance.getLastObservedTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - CoreV1EventSeriesFluent fluent; Boolean validationEnabled; - public CoreV1EventSeries build() { CoreV1EventSeries buildable = new CoreV1EventSeries(); buildable.setCount(fluent.getCount()); buildable.setLastObservedTime(fluent.getLastObservedTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java index 4f72cef332..00f250f29b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java @@ -1,31 +1,19 @@ -/* -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.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface CoreV1EventSeriesFluent> extends Fluent { + /** + * Generated + */ +public interface CoreV1EventSeriesFluent> extends Fluent{ public Integer getCount(); - public A withCount(Integer count); - public Boolean hasCount(); - public OffsetDateTime getLastObservedTime(); - public A withLastObservedTime(OffsetDateTime lastObservedTime); - public Boolean hasLastObservedTime(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java index 211da48b50..b9dd0803d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java @@ -1,88 +1,64 @@ -/* -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 java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class CoreV1EventSeriesFluentImpl> extends BaseFluent - implements CoreV1EventSeriesFluent { - public CoreV1EventSeriesFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class CoreV1EventSeriesFluentImpl> extends BaseFluent implements CoreV1EventSeriesFluent{ + public CoreV1EventSeriesFluentImpl() { + } public CoreV1EventSeriesFluentImpl(CoreV1EventSeries instance) { this.withCount(instance.getCount()); this.withLastObservedTime(instance.getLastObservedTime()); - } + } private Integer count; private OffsetDateTime lastObservedTime; - public Integer getCount() { return this.count; } - public A withCount(Integer count) { - this.count = count; - return (A) this; + this.count=count; return (A) this; } - public Boolean hasCount() { return this.count != null; } - public OffsetDateTime getLastObservedTime() { return this.lastObservedTime; } - public A withLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; + this.lastObservedTime=lastObservedTime; return (A) this; } - public Boolean hasLastObservedTime() { return this.lastObservedTime != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CoreV1EventSeriesFluentImpl that = (CoreV1EventSeriesFluentImpl) o; - if (count != null ? !count.equals(that.count) : that.count != null) return false; - if (lastObservedTime != null - ? !lastObservedTime.equals(that.lastObservedTime) - : that.lastObservedTime != null) return false; + if (count != null ? !count.equals(that.count) :that.count != null) return false; + if (lastObservedTime != null ? !lastObservedTime.equals(that.lastObservedTime) :that.lastObservedTime != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); + return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { - sb.append("count:"); - sb.append(count + ","); - } - if (lastObservedTime != null) { - sb.append("lastObservedTime:"); - sb.append(lastObservedTime); - } + if (count != null) { sb.append("count:"); sb.append(count + ","); } + if (lastObservedTime != null) { sb.append("lastObservedTime:"); sb.append(lastObservedTime); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java index 381cf2c8e1..8d838eb1a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class DiscoveryV1EndpointPortBuilder - extends DiscoveryV1EndpointPortFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class DiscoveryV1EndpointPortBuilder extends DiscoveryV1EndpointPortFluentImpl implements VisitableBuilder{ public DiscoveryV1EndpointPortBuilder() { this(false); } - public DiscoveryV1EndpointPortBuilder(Boolean validationEnabled) { this(new DiscoveryV1EndpointPort(), validationEnabled); } - public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent) { this(fluent, false); } - - public DiscoveryV1EndpointPortBuilder( - DiscoveryV1EndpointPortFluent fluent, Boolean validationEnabled) { + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,Boolean validationEnabled) { this(fluent, new DiscoveryV1EndpointPort(), validationEnabled); } - - public DiscoveryV1EndpointPortBuilder( - DiscoveryV1EndpointPortFluent fluent, DiscoveryV1EndpointPort instance) { + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,DiscoveryV1EndpointPort instance) { this(fluent, instance, false); } - - public DiscoveryV1EndpointPortBuilder( - DiscoveryV1EndpointPortFluent fluent, - DiscoveryV1EndpointPort instance, - Boolean validationEnabled) { - this.fluent = fluent; + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,DiscoveryV1EndpointPort instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAppProtocol(instance.getAppProtocol()); fluent.withName(instance.getName()); @@ -52,16 +28,13 @@ public DiscoveryV1EndpointPortBuilder( fluent.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPort instance) { - this(instance, false); + this(instance,false); } - - public DiscoveryV1EndpointPortBuilder( - DiscoveryV1EndpointPort instance, Boolean validationEnabled) { - this.fluent = this; + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPort instance,Boolean validationEnabled) { + this.fluent = this; this.withAppProtocol(instance.getAppProtocol()); this.withName(instance.getName()); @@ -70,12 +43,10 @@ public DiscoveryV1EndpointPortBuilder( this.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - DiscoveryV1EndpointPortFluent fluent; Boolean validationEnabled; - public DiscoveryV1EndpointPort build() { DiscoveryV1EndpointPort buildable = new DiscoveryV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -84,4 +55,5 @@ public DiscoveryV1EndpointPort build() { buildable.setProtocol(fluent.getProtocol()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java index ccb3c74845..e09996b125 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java @@ -1,43 +1,25 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface DiscoveryV1EndpointPortFluent> - extends Fluent { + /** + * Generated + */ +public interface DiscoveryV1EndpointPortFluent> extends Fluent{ public String getAppProtocol(); - public A withAppProtocol(String appProtocol); - public Boolean hasAppProtocol(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); - public String getProtocol(); - public A withProtocol(String protocol); - public Boolean hasProtocol(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java index a1c8a3bf55..8a09169a43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java @@ -1,25 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class DiscoveryV1EndpointPortFluentImpl> - extends BaseFluent implements DiscoveryV1EndpointPortFluent { - public DiscoveryV1EndpointPortFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class DiscoveryV1EndpointPortFluentImpl> extends BaseFluent implements DiscoveryV1EndpointPortFluent{ + public DiscoveryV1EndpointPortFluentImpl() { + } public DiscoveryV1EndpointPortFluentImpl(DiscoveryV1EndpointPort instance) { this.withAppProtocol(instance.getAppProtocol()); @@ -28,101 +22,70 @@ public DiscoveryV1EndpointPortFluentImpl(DiscoveryV1EndpointPort instance) { this.withPort(instance.getPort()); this.withProtocol(instance.getProtocol()); - } + } private String appProtocol; private String name; private Integer port; private String protocol; - public String getAppProtocol() { return this.appProtocol; } - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + this.appProtocol=appProtocol; return (A) this; } - public Boolean hasAppProtocol() { return this.appProtocol != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + this.protocol=protocol; return (A) this; } - public Boolean hasProtocol() { return this.protocol != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DiscoveryV1EndpointPortFluentImpl that = (DiscoveryV1EndpointPortFluentImpl) o; - if (appProtocol != null ? !appProtocol.equals(that.appProtocol) : that.appProtocol != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; + if (appProtocol != null ? !appProtocol.equals(that.appProtocol) :that.appProtocol != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; + if (protocol != null ? !protocol.equals(that.protocol) :that.protocol != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); + return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { - sb.append("appProtocol:"); - sb.append(appProtocol + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port + ","); - } - if (protocol != null) { - sb.append("protocol:"); - sb.append(protocol); - } + if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (port != null) { sb.append("port:"); sb.append(port + ","); } + if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java index 7ad1687616..0c3d87cfdd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class EventsV1EventBuilder extends EventsV1EventFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class EventsV1EventBuilder extends EventsV1EventFluentImpl implements VisitableBuilder{ public EventsV1EventBuilder() { this(false); } - public EventsV1EventBuilder(Boolean validationEnabled) { this(new EventsV1Event(), validationEnabled); } - public EventsV1EventBuilder(EventsV1EventFluent fluent) { this(fluent, false); } - - public EventsV1EventBuilder(EventsV1EventFluent fluent, Boolean validationEnabled) { + public EventsV1EventBuilder(EventsV1EventFluent fluent,Boolean validationEnabled) { this(fluent, new EventsV1Event(), validationEnabled); } - - public EventsV1EventBuilder(EventsV1EventFluent fluent, EventsV1Event instance) { + public EventsV1EventBuilder(EventsV1EventFluent fluent,EventsV1Event instance) { this(fluent, instance, false); } - - public EventsV1EventBuilder( - EventsV1EventFluent fluent, EventsV1Event instance, Boolean validationEnabled) { - this.fluent = fluent; + public EventsV1EventBuilder(EventsV1EventFluent fluent,EventsV1Event instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAction(instance.getAction()); fluent.withApiVersion(instance.getApiVersion()); @@ -73,15 +54,13 @@ public EventsV1EventBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public EventsV1EventBuilder(EventsV1Event instance) { - this(instance, false); + this(instance,false); } - - public EventsV1EventBuilder(EventsV1Event instance, Boolean validationEnabled) { - this.fluent = this; + public EventsV1EventBuilder(EventsV1Event instance,Boolean validationEnabled) { + this.fluent = this; this.withAction(instance.getAction()); this.withApiVersion(instance.getApiVersion()); @@ -116,12 +95,10 @@ public EventsV1EventBuilder(EventsV1Event instance, Boolean validationEnabled) { this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - EventsV1EventFluent fluent; Boolean validationEnabled; - public EventsV1Event build() { EventsV1Event buildable = new EventsV1Event(); buildable.setAction(fluent.getAction()); @@ -143,4 +120,5 @@ public EventsV1Event build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java index dd61ef3685..1015ecc4b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java @@ -1,249 +1,152 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.lang.Boolean; -/** Generated */ -public interface EventsV1EventFluent> extends Fluent { + /** + * Generated + */ +public interface EventsV1EventFluent> extends Fluent{ public String getAction(); - public A withAction(String action); - public Boolean hasAction(); - public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Integer getDeprecatedCount(); - public A withDeprecatedCount(Integer deprecatedCount); - public Boolean hasDeprecatedCount(); - public OffsetDateTime getDeprecatedFirstTimestamp(); - public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp); - public Boolean hasDeprecatedFirstTimestamp(); - public OffsetDateTime getDeprecatedLastTimestamp(); - public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp); - public Boolean hasDeprecatedLastTimestamp(); - + /** * This method has been deprecated, please use method buildDeprecatedSource instead. - * * @return The buildable object. */ @Deprecated public V1EventSource getDeprecatedSource(); - public V1EventSource buildDeprecatedSource(); - public A withDeprecatedSource(V1EventSource deprecatedSource); - public Boolean hasDeprecatedSource(); - public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSource(); - - public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSourceLike( - V1EventSource item); - + public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item); public EventsV1EventFluent.DeprecatedSourceNested editDeprecatedSource(); - public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSource(); - - public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSourceLike( - V1EventSource item); - + public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSourceLike(V1EventSource item); public OffsetDateTime getEventTime(); - public A withEventTime(OffsetDateTime eventTime); - public Boolean hasEventTime(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public EventsV1EventFluent.MetadataNested withNewMetadata(); - public EventsV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public EventsV1EventFluent.MetadataNested editMetadata(); - public EventsV1EventFluent.MetadataNested editOrNewMetadata(); - public EventsV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public String getNote(); - public A withNote(String note); - public Boolean hasNote(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - + /** * This method has been deprecated, please use method buildRegarding instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getRegarding(); - public V1ObjectReference buildRegarding(); - public A withRegarding(V1ObjectReference regarding); - public Boolean hasRegarding(); - public EventsV1EventFluent.RegardingNested withNewRegarding(); - public EventsV1EventFluent.RegardingNested withNewRegardingLike(V1ObjectReference item); - public EventsV1EventFluent.RegardingNested editRegarding(); - public EventsV1EventFluent.RegardingNested editOrNewRegarding(); - public EventsV1EventFluent.RegardingNested editOrNewRegardingLike(V1ObjectReference item); - + /** * This method has been deprecated, please use method buildRelated instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getRelated(); - public V1ObjectReference buildRelated(); - public A withRelated(V1ObjectReference related); - public Boolean hasRelated(); - public EventsV1EventFluent.RelatedNested withNewRelated(); - public EventsV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item); - public EventsV1EventFluent.RelatedNested editRelated(); - public EventsV1EventFluent.RelatedNested editOrNewRelated(); - public EventsV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item); - public String getReportingController(); - public A withReportingController(String reportingController); - public Boolean hasReportingController(); - public String getReportingInstance(); - public A withReportingInstance(String reportingInstance); - public Boolean hasReportingInstance(); - + /** * This method has been deprecated, please use method buildSeries instead. - * * @return The buildable object. */ @Deprecated public EventsV1EventSeries getSeries(); - public EventsV1EventSeries buildSeries(); - public A withSeries(EventsV1EventSeries series); - public Boolean hasSeries(); - public EventsV1EventFluent.SeriesNested withNewSeries(); - public EventsV1EventFluent.SeriesNested withNewSeriesLike(EventsV1EventSeries item); - public EventsV1EventFluent.SeriesNested editSeries(); - public EventsV1EventFluent.SeriesNested editOrNewSeries(); - public EventsV1EventFluent.SeriesNested editOrNewSeriesLike(EventsV1EventSeries item); - public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface DeprecatedSourceNested - extends Nested, V1EventSourceFluent> { + public interface DeprecatedSourceNested extends Nested,V1EventSourceFluent>{ public N and(); - public N endDeprecatedSource(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface RegardingNested - extends Nested, V1ObjectReferenceFluent> { + public interface RegardingNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endRegarding(); + } - - public interface RelatedNested - extends Nested, V1ObjectReferenceFluent> { + public interface RelatedNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endRelated(); + } - - public interface SeriesNested - extends Nested, EventsV1EventSeriesFluent> { + public interface SeriesNested extends Nested,EventsV1EventSeriesFluent>{ public N and(); - public N endSeries(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java index 2f2c6d436e..324ec213f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java @@ -1,27 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class EventsV1EventFluentImpl> extends BaseFluent - implements EventsV1EventFluent { - public EventsV1EventFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class EventsV1EventFluentImpl> extends BaseFluent implements EventsV1EventFluent{ + public EventsV1EventFluentImpl() { + } public EventsV1EventFluentImpl(EventsV1Event instance) { this.withAction(instance.getAction()); @@ -56,8 +51,8 @@ public EventsV1EventFluentImpl(EventsV1Event instance) { this.withSeries(instance.getSeries()); this.withType(instance.getType()); - } + } private String action; private String apiVersion; private Integer deprecatedCount; @@ -75,663 +70,412 @@ public EventsV1EventFluentImpl(EventsV1Event instance) { private String reportingInstance; private EventsV1EventSeriesBuilder series; private String type; - public String getAction() { return this.action; } - public A withAction(String action) { - this.action = action; - return (A) this; + this.action=action; return (A) this; } - public Boolean hasAction() { return this.action != null; } - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Integer getDeprecatedCount() { return this.deprecatedCount; } - public A withDeprecatedCount(Integer deprecatedCount) { - this.deprecatedCount = deprecatedCount; - return (A) this; + this.deprecatedCount=deprecatedCount; return (A) this; } - public Boolean hasDeprecatedCount() { return this.deprecatedCount != null; } - public OffsetDateTime getDeprecatedFirstTimestamp() { return this.deprecatedFirstTimestamp; } - public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { - this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - return (A) this; + this.deprecatedFirstTimestamp=deprecatedFirstTimestamp; return (A) this; } - public Boolean hasDeprecatedFirstTimestamp() { return this.deprecatedFirstTimestamp != null; } - public OffsetDateTime getDeprecatedLastTimestamp() { return this.deprecatedLastTimestamp; } - public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { - this.deprecatedLastTimestamp = deprecatedLastTimestamp; - return (A) this; + this.deprecatedLastTimestamp=deprecatedLastTimestamp; return (A) this; } - public Boolean hasDeprecatedLastTimestamp() { return this.deprecatedLastTimestamp != null; } - + /** * This method has been deprecated, please use method buildDeprecatedSource instead. - * * @return The buildable object. */ @Deprecated public V1EventSource getDeprecatedSource() { - return this.deprecatedSource != null ? this.deprecatedSource.build() : null; + return this.deprecatedSource!=null ?this.deprecatedSource.build():null; } - public V1EventSource buildDeprecatedSource() { - return this.deprecatedSource != null ? this.deprecatedSource.build() : null; + return this.deprecatedSource!=null ?this.deprecatedSource.build():null; } - public A withDeprecatedSource(V1EventSource deprecatedSource) { _visitables.get("deprecatedSource").remove(this.deprecatedSource); - if (deprecatedSource != null) { - this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); - _visitables.get("deprecatedSource").add(this.deprecatedSource); - } else { - this.deprecatedSource = null; - _visitables.get("deprecatedSource").remove(this.deprecatedSource); - } - return (A) this; + if (deprecatedSource!=null){ this.deprecatedSource= new V1EventSourceBuilder(deprecatedSource); _visitables.get("deprecatedSource").add(this.deprecatedSource);} else { this.deprecatedSource = null; _visitables.get("deprecatedSource").remove(this.deprecatedSource); } return (A) this; } - public Boolean hasDeprecatedSource() { return this.deprecatedSource != null; } - public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSource() { return new EventsV1EventFluentImpl.DeprecatedSourceNestedImpl(); } - - public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSourceLike( - V1EventSource item) { + public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) { return new EventsV1EventFluentImpl.DeprecatedSourceNestedImpl(item); } - public EventsV1EventFluent.DeprecatedSourceNested editDeprecatedSource() { return withNewDeprecatedSourceLike(getDeprecatedSource()); } - public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSource() { - return withNewDeprecatedSourceLike( - getDeprecatedSource() != null ? getDeprecatedSource() : new V1EventSourceBuilder().build()); + return withNewDeprecatedSourceLike(getDeprecatedSource() != null ? getDeprecatedSource(): new V1EventSourceBuilder().build()); } - - public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSourceLike( - V1EventSource item) { - return withNewDeprecatedSourceLike( - getDeprecatedSource() != null ? getDeprecatedSource() : item); + public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSourceLike(V1EventSource item) { + return withNewDeprecatedSourceLike(getDeprecatedSource() != null ? getDeprecatedSource(): item); } - public OffsetDateTime getEventTime() { return this.eventTime; } - public A withEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; + this.eventTime=eventTime; return (A) this; } - public Boolean hasEventTime() { return this.eventTime != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public EventsV1EventFluent.MetadataNested withNewMetadata() { return new EventsV1EventFluentImpl.MetadataNestedImpl(); } - public EventsV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new EventsV1EventFluentImpl.MetadataNestedImpl(item); } - public EventsV1EventFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public EventsV1EventFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public EventsV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public String getNote() { return this.note; } - public A withNote(String note) { - this.note = note; - return (A) this; + this.note=note; return (A) this; } - public Boolean hasNote() { return this.note != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - + /** * This method has been deprecated, please use method buildRegarding instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getRegarding() { - return this.regarding != null ? this.regarding.build() : null; + return this.regarding!=null ?this.regarding.build():null; } - public V1ObjectReference buildRegarding() { - return this.regarding != null ? this.regarding.build() : null; + return this.regarding!=null ?this.regarding.build():null; } - public A withRegarding(V1ObjectReference regarding) { _visitables.get("regarding").remove(this.regarding); - if (regarding != null) { - this.regarding = new V1ObjectReferenceBuilder(regarding); - _visitables.get("regarding").add(this.regarding); - } else { - this.regarding = null; - _visitables.get("regarding").remove(this.regarding); - } - return (A) this; + if (regarding!=null){ this.regarding= new V1ObjectReferenceBuilder(regarding); _visitables.get("regarding").add(this.regarding);} else { this.regarding = null; _visitables.get("regarding").remove(this.regarding); } return (A) this; } - public Boolean hasRegarding() { return this.regarding != null; } - public EventsV1EventFluent.RegardingNested withNewRegarding() { return new EventsV1EventFluentImpl.RegardingNestedImpl(); } - public EventsV1EventFluent.RegardingNested withNewRegardingLike(V1ObjectReference item) { return new EventsV1EventFluentImpl.RegardingNestedImpl(item); } - public EventsV1EventFluent.RegardingNested editRegarding() { return withNewRegardingLike(getRegarding()); } - public EventsV1EventFluent.RegardingNested editOrNewRegarding() { - return withNewRegardingLike( - getRegarding() != null ? getRegarding() : new V1ObjectReferenceBuilder().build()); + return withNewRegardingLike(getRegarding() != null ? getRegarding(): new V1ObjectReferenceBuilder().build()); } - public EventsV1EventFluent.RegardingNested editOrNewRegardingLike(V1ObjectReference item) { - return withNewRegardingLike(getRegarding() != null ? getRegarding() : item); + return withNewRegardingLike(getRegarding() != null ? getRegarding(): item); } - + /** * This method has been deprecated, please use method buildRelated instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getRelated() { - return this.related != null ? this.related.build() : null; + return this.related!=null ?this.related.build():null; } - public V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; + return this.related!=null ?this.related.build():null; } - public A withRelated(V1ObjectReference related) { _visitables.get("related").remove(this.related); - if (related != null) { - this.related = new V1ObjectReferenceBuilder(related); - _visitables.get("related").add(this.related); - } else { - this.related = null; - _visitables.get("related").remove(this.related); - } - return (A) this; + if (related!=null){ this.related= new V1ObjectReferenceBuilder(related); _visitables.get("related").add(this.related);} else { this.related = null; _visitables.get("related").remove(this.related); } return (A) this; } - public Boolean hasRelated() { return this.related != null; } - public EventsV1EventFluent.RelatedNested withNewRelated() { return new EventsV1EventFluentImpl.RelatedNestedImpl(); } - public EventsV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item) { return new EventsV1EventFluentImpl.RelatedNestedImpl(item); } - public EventsV1EventFluent.RelatedNested editRelated() { return withNewRelatedLike(getRelated()); } - public EventsV1EventFluent.RelatedNested editOrNewRelated() { - return withNewRelatedLike( - getRelated() != null ? getRelated() : new V1ObjectReferenceBuilder().build()); + return withNewRelatedLike(getRelated() != null ? getRelated(): new V1ObjectReferenceBuilder().build()); } - public EventsV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item) { - return withNewRelatedLike(getRelated() != null ? getRelated() : item); + return withNewRelatedLike(getRelated() != null ? getRelated(): item); } - public String getReportingController() { return this.reportingController; } - public A withReportingController(String reportingController) { - this.reportingController = reportingController; - return (A) this; + this.reportingController=reportingController; return (A) this; } - public Boolean hasReportingController() { return this.reportingController != null; } - public String getReportingInstance() { return this.reportingInstance; } - public A withReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; - return (A) this; + this.reportingInstance=reportingInstance; return (A) this; } - public Boolean hasReportingInstance() { return this.reportingInstance != null; } - + /** * This method has been deprecated, please use method buildSeries instead. - * * @return The buildable object. */ @Deprecated public EventsV1EventSeries getSeries() { - return this.series != null ? this.series.build() : null; + return this.series!=null ?this.series.build():null; } - public EventsV1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; + return this.series!=null ?this.series.build():null; } - public A withSeries(EventsV1EventSeries series) { _visitables.get("series").remove(this.series); - if (series != null) { - this.series = new EventsV1EventSeriesBuilder(series); - _visitables.get("series").add(this.series); - } else { - this.series = null; - _visitables.get("series").remove(this.series); - } - return (A) this; + if (series!=null){ this.series= new EventsV1EventSeriesBuilder(series); _visitables.get("series").add(this.series);} else { this.series = null; _visitables.get("series").remove(this.series); } return (A) this; } - public Boolean hasSeries() { return this.series != null; } - public EventsV1EventFluent.SeriesNested withNewSeries() { return new EventsV1EventFluentImpl.SeriesNestedImpl(); } - public EventsV1EventFluent.SeriesNested withNewSeriesLike(EventsV1EventSeries item) { return new EventsV1EventFluentImpl.SeriesNestedImpl(item); } - public EventsV1EventFluent.SeriesNested editSeries() { return withNewSeriesLike(getSeries()); } - public EventsV1EventFluent.SeriesNested editOrNewSeries() { - return withNewSeriesLike( - getSeries() != null ? getSeries() : new EventsV1EventSeriesBuilder().build()); + return withNewSeriesLike(getSeries() != null ? getSeries(): new EventsV1EventSeriesBuilder().build()); } - public EventsV1EventFluent.SeriesNested editOrNewSeriesLike(EventsV1EventSeries item) { - return withNewSeriesLike(getSeries() != null ? getSeries() : item); + return withNewSeriesLike(getSeries() != null ? getSeries(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EventsV1EventFluentImpl that = (EventsV1EventFluentImpl) o; - if (action != null ? !action.equals(that.action) : that.action != null) return false; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (deprecatedCount != null - ? !deprecatedCount.equals(that.deprecatedCount) - : that.deprecatedCount != null) return false; - if (deprecatedFirstTimestamp != null - ? !deprecatedFirstTimestamp.equals(that.deprecatedFirstTimestamp) - : that.deprecatedFirstTimestamp != null) return false; - if (deprecatedLastTimestamp != null - ? !deprecatedLastTimestamp.equals(that.deprecatedLastTimestamp) - : that.deprecatedLastTimestamp != null) return false; - if (deprecatedSource != null - ? !deprecatedSource.equals(that.deprecatedSource) - : that.deprecatedSource != null) return false; - if (eventTime != null ? !eventTime.equals(that.eventTime) : that.eventTime != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (note != null ? !note.equals(that.note) : that.note != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (regarding != null ? !regarding.equals(that.regarding) : that.regarding != null) - return false; - if (related != null ? !related.equals(that.related) : that.related != null) return false; - if (reportingController != null - ? !reportingController.equals(that.reportingController) - : that.reportingController != null) return false; - if (reportingInstance != null - ? !reportingInstance.equals(that.reportingInstance) - : that.reportingInstance != null) return false; - if (series != null ? !series.equals(that.series) : that.series != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (action != null ? !action.equals(that.action) :that.action != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (deprecatedCount != null ? !deprecatedCount.equals(that.deprecatedCount) :that.deprecatedCount != null) return false; + if (deprecatedFirstTimestamp != null ? !deprecatedFirstTimestamp.equals(that.deprecatedFirstTimestamp) :that.deprecatedFirstTimestamp != null) return false; + if (deprecatedLastTimestamp != null ? !deprecatedLastTimestamp.equals(that.deprecatedLastTimestamp) :that.deprecatedLastTimestamp != null) return false; + if (deprecatedSource != null ? !deprecatedSource.equals(that.deprecatedSource) :that.deprecatedSource != null) return false; + if (eventTime != null ? !eventTime.equals(that.eventTime) :that.eventTime != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (note != null ? !note.equals(that.note) :that.note != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (regarding != null ? !regarding.equals(that.regarding) :that.regarding != null) return false; + if (related != null ? !related.equals(that.related) :that.related != null) return false; + if (reportingController != null ? !reportingController.equals(that.reportingController) :that.reportingController != null) return false; + if (reportingInstance != null ? !reportingInstance.equals(that.reportingInstance) :that.reportingInstance != null) return false; + if (series != null ? !series.equals(that.series) :that.series != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - action, - apiVersion, - deprecatedCount, - deprecatedFirstTimestamp, - deprecatedLastTimestamp, - deprecatedSource, - eventTime, - kind, - metadata, - note, - reason, - regarding, - related, - reportingController, - reportingInstance, - series, - type, - super.hashCode()); + return java.util.Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (action != null) { - sb.append("action:"); - sb.append(action + ","); - } - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (deprecatedCount != null) { - sb.append("deprecatedCount:"); - sb.append(deprecatedCount + ","); - } - if (deprecatedFirstTimestamp != null) { - sb.append("deprecatedFirstTimestamp:"); - sb.append(deprecatedFirstTimestamp + ","); - } - if (deprecatedLastTimestamp != null) { - sb.append("deprecatedLastTimestamp:"); - sb.append(deprecatedLastTimestamp + ","); - } - if (deprecatedSource != null) { - sb.append("deprecatedSource:"); - sb.append(deprecatedSource + ","); - } - if (eventTime != null) { - sb.append("eventTime:"); - sb.append(eventTime + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (note != null) { - sb.append("note:"); - sb.append(note + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (regarding != null) { - sb.append("regarding:"); - sb.append(regarding + ","); - } - if (related != null) { - sb.append("related:"); - sb.append(related + ","); - } - if (reportingController != null) { - sb.append("reportingController:"); - sb.append(reportingController + ","); - } - if (reportingInstance != null) { - sb.append("reportingInstance:"); - sb.append(reportingInstance + ","); - } - if (series != null) { - sb.append("series:"); - sb.append(series + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (action != null) { sb.append("action:"); sb.append(action + ","); } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (deprecatedCount != null) { sb.append("deprecatedCount:"); sb.append(deprecatedCount + ","); } + if (deprecatedFirstTimestamp != null) { sb.append("deprecatedFirstTimestamp:"); sb.append(deprecatedFirstTimestamp + ","); } + if (deprecatedLastTimestamp != null) { sb.append("deprecatedLastTimestamp:"); sb.append(deprecatedLastTimestamp + ","); } + if (deprecatedSource != null) { sb.append("deprecatedSource:"); sb.append(deprecatedSource + ","); } + if (eventTime != null) { sb.append("eventTime:"); sb.append(eventTime + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (note != null) { sb.append("note:"); sb.append(note + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (regarding != null) { sb.append("regarding:"); sb.append(regarding + ","); } + if (related != null) { sb.append("related:"); sb.append(related + ","); } + if (reportingController != null) { sb.append("reportingController:"); sb.append(reportingController + ","); } + if (reportingInstance != null) { sb.append("reportingInstance:"); sb.append(reportingInstance + ","); } + if (series != null) { sb.append("series:"); sb.append(series + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class DeprecatedSourceNestedImpl - extends V1EventSourceFluentImpl> - implements EventsV1EventFluent.DeprecatedSourceNested, Nested { + class DeprecatedSourceNestedImpl extends V1EventSourceFluentImpl> implements EventsV1EventFluent.DeprecatedSourceNested,Nested{ DeprecatedSourceNestedImpl(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } - DeprecatedSourceNestedImpl() { this.builder = new V1EventSourceBuilder(this); } - V1EventSourceBuilder builder; - public N and() { return (N) EventsV1EventFluentImpl.this.withDeprecatedSource(builder.build()); } - public N endDeprecatedSource() { return and(); } + } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements EventsV1EventFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements EventsV1EventFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) EventsV1EventFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class RegardingNestedImpl - extends V1ObjectReferenceFluentImpl> - implements EventsV1EventFluent.RegardingNested, Nested { + class RegardingNestedImpl extends V1ObjectReferenceFluentImpl> implements EventsV1EventFluent.RegardingNested,Nested{ RegardingNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - RegardingNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) EventsV1EventFluentImpl.this.withRegarding(builder.build()); } - public N endRegarding() { return and(); } + } - - class RelatedNestedImpl - extends V1ObjectReferenceFluentImpl> - implements EventsV1EventFluent.RelatedNested, Nested { + class RelatedNestedImpl extends V1ObjectReferenceFluentImpl> implements EventsV1EventFluent.RelatedNested,Nested{ RelatedNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - RelatedNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) EventsV1EventFluentImpl.this.withRelated(builder.build()); } - public N endRelated() { return and(); } + } - - class SeriesNestedImpl - extends EventsV1EventSeriesFluentImpl> - implements EventsV1EventFluent.SeriesNested, Nested { + class SeriesNestedImpl extends EventsV1EventSeriesFluentImpl> implements EventsV1EventFluent.SeriesNested,Nested{ SeriesNestedImpl(EventsV1EventSeries item) { this.builder = new EventsV1EventSeriesBuilder(this, item); } - SeriesNestedImpl() { this.builder = new EventsV1EventSeriesBuilder(this); } - EventsV1EventSeriesBuilder builder; - public N and() { return (N) EventsV1EventFluentImpl.this.withSeries(builder.build()); } - public N endSeries() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java index badc6fa1f0..12ebbb1392 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class EventsV1EventListBuilder extends EventsV1EventListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class EventsV1EventListBuilder extends EventsV1EventListFluentImpl implements VisitableBuilder{ public EventsV1EventListBuilder() { this(false); } - public EventsV1EventListBuilder(Boolean validationEnabled) { this(new EventsV1EventList(), validationEnabled); } - public EventsV1EventListBuilder(EventsV1EventListFluent fluent) { this(fluent, false); } - - public EventsV1EventListBuilder(EventsV1EventListFluent fluent, Boolean validationEnabled) { + public EventsV1EventListBuilder(EventsV1EventListFluent fluent,Boolean validationEnabled) { this(fluent, new EventsV1EventList(), validationEnabled); } - - public EventsV1EventListBuilder(EventsV1EventListFluent fluent, EventsV1EventList instance) { + public EventsV1EventListBuilder(EventsV1EventListFluent fluent,EventsV1EventList instance) { this(fluent, instance, false); } - - public EventsV1EventListBuilder( - EventsV1EventListFluent fluent, EventsV1EventList instance, Boolean validationEnabled) { - this.fluent = fluent; + public EventsV1EventListBuilder(EventsV1EventListFluent fluent,EventsV1EventList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public EventsV1EventListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public EventsV1EventListBuilder(EventsV1EventList instance) { - this(instance, false); + this(instance,false); } - - public EventsV1EventListBuilder(EventsV1EventList instance, Boolean validationEnabled) { - this.fluent = this; + public EventsV1EventListBuilder(EventsV1EventList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public EventsV1EventListBuilder(EventsV1EventList instance, Boolean validationEn this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - EventsV1EventListFluent fluent; Boolean validationEnabled; - public EventsV1EventList build() { EventsV1EventList buildable = new EventsV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public EventsV1EventList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java index d223c64554..0dbf443abc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface EventsV1EventListFluent> extends Fluent { + /** + * Generated + */ +public interface EventsV1EventListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, EventsV1Event item); - - public A setToItems(Integer index, EventsV1Event item); - + public A addToItems(Integer index,EventsV1Event item); + public A setToItems(Integer index,EventsV1Event item); public A addToItems(io.kubernetes.client.openapi.models.EventsV1Event... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.EventsV1Event... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public EventsV1Event buildItem(Integer index); - public EventsV1Event buildFirstItem(); - public EventsV1Event buildLastItem(); - public EventsV1Event buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items); - public Boolean hasItems(); - public EventsV1EventListFluent.ItemsNested addNewItem(); - public EventsV1EventListFluent.ItemsNested addNewItemLike(EventsV1Event item); - - public EventsV1EventListFluent.ItemsNested setNewItemLike(Integer index, EventsV1Event item); - + public EventsV1EventListFluent.ItemsNested setNewItemLike(Integer index,EventsV1Event item); public EventsV1EventListFluent.ItemsNested editItem(Integer index); - public EventsV1EventListFluent.ItemsNested editFirstItem(); - public EventsV1EventListFluent.ItemsNested editLastItem(); - - public EventsV1EventListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public EventsV1EventListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public EventsV1EventListFluent.MetadataNested withNewMetadata(); - public EventsV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public EventsV1EventListFluent.MetadataNested editMetadata(); - public EventsV1EventListFluent.MetadataNested editOrNewMetadata(); - public EventsV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, EventsV1EventFluent> { + public interface ItemsNested extends Nested,EventsV1EventFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java index 3abb33adfa..2ef4e15fa8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class EventsV1EventListFluentImpl> extends BaseFluent - implements EventsV1EventListFluent { - public EventsV1EventListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class EventsV1EventListFluentImpl> extends BaseFluent implements EventsV1EventListFluent{ + public EventsV1EventListFluentImpl() { + } public EventsV1EventListFluentImpl(EventsV1EventList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public EventsV1EventListFluentImpl(EventsV1EventList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, EventsV1Event item) { - if (this.items == null) { - this.items = new ArrayList(); - } - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,EventsV1Event item) { + if (this.items == null) {this.items = new ArrayList();} + EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, EventsV1Event item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,EventsV1Event item) { + if (this.items == null) {this.items = new ArrayList();} EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,271 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public EventsV1Event buildItem(Integer index) { return this.items.get(index).build(); } - public EventsV1Event buildFirstItem() { return this.items.get(0).build(); } - public EventsV1Event buildLastItem() { return this.items.get(items.size() - 1).build(); } - public EventsV1Event buildMatchingItem(Predicate predicate) { - for (EventsV1EventBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (EventsV1EventBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (EventsV1EventBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (EventsV1EventBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (EventsV1Event item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (EventsV1Event item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (EventsV1Event item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (EventsV1Event item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public EventsV1EventListFluent.ItemsNested addNewItem() { return new EventsV1EventListFluentImpl.ItemsNestedImpl(); } - public EventsV1EventListFluent.ItemsNested addNewItemLike(EventsV1Event item) { return new EventsV1EventListFluentImpl.ItemsNestedImpl(-1, item); } - - public EventsV1EventListFluent.ItemsNested setNewItemLike(Integer index, EventsV1Event item) { + public EventsV1EventListFluent.ItemsNested setNewItemLike(Integer index,EventsV1Event item) { return new EventsV1EventListFluentImpl.ItemsNestedImpl(index, item); } - public EventsV1EventListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public EventsV1EventListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public EventsV1EventListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public EventsV1EventListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public EventsV1EventListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new EventsV1EventListFluentImpl.MetadataNestedImpl(); } - public EventsV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new EventsV1EventListFluentImpl.MetadataNestedImpl(item); } - public EventsV1EventListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public EventsV1EventListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public EventsV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EventsV1EventListFluentImpl that = (EventsV1EventListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends EventsV1EventFluentImpl> - implements EventsV1EventListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, EventsV1Event item) { + class ItemsNestedImpl extends EventsV1EventFluentImpl> implements EventsV1EventListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,EventsV1Event item) { this.index = index; this.builder = new EventsV1EventBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new EventsV1EventBuilder(this); } - EventsV1EventBuilder builder; Integer index; - public N and() { - return (N) EventsV1EventListFluentImpl.this.setToItems(index, builder.build()); + return (N) EventsV1EventListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements EventsV1EventListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements EventsV1EventListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) EventsV1EventListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java index 3d1d648e0b..134ce1b992 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class EventsV1EventSeriesBuilder - extends EventsV1EventSeriesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class EventsV1EventSeriesBuilder extends EventsV1EventSeriesFluentImpl implements VisitableBuilder{ public EventsV1EventSeriesBuilder() { this(false); } - public EventsV1EventSeriesBuilder(Boolean validationEnabled) { this(new EventsV1EventSeries(), validationEnabled); } - public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent) { this(fluent, false); } - - public EventsV1EventSeriesBuilder( - EventsV1EventSeriesFluent fluent, Boolean validationEnabled) { + public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,Boolean validationEnabled) { this(fluent, new EventsV1EventSeries(), validationEnabled); } - - public EventsV1EventSeriesBuilder( - EventsV1EventSeriesFluent fluent, EventsV1EventSeries instance) { + public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,EventsV1EventSeries instance) { this(fluent, instance, false); } - - public EventsV1EventSeriesBuilder( - EventsV1EventSeriesFluent fluent, - EventsV1EventSeries instance, - Boolean validationEnabled) { - this.fluent = fluent; + public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,EventsV1EventSeries instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCount(instance.getCount()); fluent.withLastObservedTime(instance.getLastObservedTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public EventsV1EventSeriesBuilder(EventsV1EventSeries instance) { - this(instance, false); + this(instance,false); } - - public EventsV1EventSeriesBuilder(EventsV1EventSeries instance, Boolean validationEnabled) { - this.fluent = this; + public EventsV1EventSeriesBuilder(EventsV1EventSeries instance,Boolean validationEnabled) { + this.fluent = this; this.withCount(instance.getCount()); this.withLastObservedTime(instance.getLastObservedTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - EventsV1EventSeriesFluent fluent; Boolean validationEnabled; - public EventsV1EventSeries build() { EventsV1EventSeries buildable = new EventsV1EventSeries(); buildable.setCount(fluent.getCount()); buildable.setLastObservedTime(fluent.getLastObservedTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java index eaa40f7f5d..1ed6571f98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java @@ -1,32 +1,19 @@ -/* -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.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface EventsV1EventSeriesFluent> - extends Fluent { + /** + * Generated + */ +public interface EventsV1EventSeriesFluent> extends Fluent{ public Integer getCount(); - public A withCount(Integer count); - public Boolean hasCount(); - public OffsetDateTime getLastObservedTime(); - public A withLastObservedTime(OffsetDateTime lastObservedTime); - public Boolean hasLastObservedTime(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java index 8952b5ea06..a7b9de2c6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java @@ -1,88 +1,64 @@ -/* -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 java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class EventsV1EventSeriesFluentImpl> - extends BaseFluent implements EventsV1EventSeriesFluent { - public EventsV1EventSeriesFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class EventsV1EventSeriesFluentImpl> extends BaseFluent implements EventsV1EventSeriesFluent{ + public EventsV1EventSeriesFluentImpl() { + } public EventsV1EventSeriesFluentImpl(EventsV1EventSeries instance) { this.withCount(instance.getCount()); this.withLastObservedTime(instance.getLastObservedTime()); - } + } private Integer count; private OffsetDateTime lastObservedTime; - public Integer getCount() { return this.count; } - public A withCount(Integer count) { - this.count = count; - return (A) this; + this.count=count; return (A) this; } - public Boolean hasCount() { return this.count != null; } - public OffsetDateTime getLastObservedTime() { return this.lastObservedTime; } - public A withLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; + this.lastObservedTime=lastObservedTime; return (A) this; } - public Boolean hasLastObservedTime() { return this.lastObservedTime != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EventsV1EventSeriesFluentImpl that = (EventsV1EventSeriesFluentImpl) o; - if (count != null ? !count.equals(that.count) : that.count != null) return false; - if (lastObservedTime != null - ? !lastObservedTime.equals(that.lastObservedTime) - : that.lastObservedTime != null) return false; + if (count != null ? !count.equals(that.count) :that.count != null) return false; + if (lastObservedTime != null ? !lastObservedTime.equals(that.lastObservedTime) :that.lastObservedTime != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); + return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { - sb.append("count:"); - sb.append(count + ","); - } - if (lastObservedTime != null) { - sb.append("lastObservedTime:"); - sb.append(lastObservedTime); - } + if (count != null) { sb.append("count:"); sb.append(count + ","); } + if (lastObservedTime != null) { sb.append("lastObservedTime:"); sb.append(lastObservedTime); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java index 9bae439bbe..853763ff67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class StorageV1TokenRequestBuilder - extends StorageV1TokenRequestFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluentImpl implements VisitableBuilder{ public StorageV1TokenRequestBuilder() { this(false); } - public StorageV1TokenRequestBuilder(Boolean validationEnabled) { this(new StorageV1TokenRequest(), validationEnabled); } - public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent) { this(fluent, false); } - - public StorageV1TokenRequestBuilder( - StorageV1TokenRequestFluent fluent, Boolean validationEnabled) { + public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,Boolean validationEnabled) { this(fluent, new StorageV1TokenRequest(), validationEnabled); } - - public StorageV1TokenRequestBuilder( - StorageV1TokenRequestFluent fluent, StorageV1TokenRequest instance) { + public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance) { this(fluent, instance, false); } - - public StorageV1TokenRequestBuilder( - StorageV1TokenRequestFluent fluent, - StorageV1TokenRequest instance, - Boolean validationEnabled) { - this.fluent = fluent; + public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAudience(instance.getAudience()); fluent.withExpirationSeconds(instance.getExpirationSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance) { - this(instance, false); + this(instance,false); } - - public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance, Boolean validationEnabled) { - this.fluent = this; + public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance,Boolean validationEnabled) { + this.fluent = this; this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - StorageV1TokenRequestFluent fluent; Boolean validationEnabled; - public StorageV1TokenRequest build() { StorageV1TokenRequest buildable = new StorageV1TokenRequest(); buildable.setAudience(fluent.getAudience()); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java index bd81edc207..8c791c8c48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java @@ -1,31 +1,19 @@ -/* -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.Fluent; +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface StorageV1TokenRequestFluent> - extends Fluent { + /** + * Generated + */ +public interface StorageV1TokenRequestFluent> extends Fluent{ public String getAudience(); - public A withAudience(String audience); - public Boolean hasAudience(); - public Long getExpirationSeconds(); - public A withExpirationSeconds(Long expirationSeconds); - public Boolean hasExpirationSeconds(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java index 445be3347d..49c3d5176b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java @@ -1,87 +1,63 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class StorageV1TokenRequestFluentImpl> - extends BaseFluent implements StorageV1TokenRequestFluent { - public StorageV1TokenRequestFluentImpl() {} - +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class StorageV1TokenRequestFluentImpl> extends BaseFluent implements StorageV1TokenRequestFluent{ + public StorageV1TokenRequestFluentImpl() { + } public StorageV1TokenRequestFluentImpl(StorageV1TokenRequest instance) { this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); - } + } private String audience; private Long expirationSeconds; - public String getAudience() { return this.audience; } - public A withAudience(String audience) { - this.audience = audience; - return (A) this; + this.audience=audience; return (A) this; } - public Boolean hasAudience() { return this.audience != null; } - public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; + this.expirationSeconds=expirationSeconds; return (A) this; } - public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StorageV1TokenRequestFluentImpl that = (StorageV1TokenRequestFluentImpl) o; - if (audience != null ? !audience.equals(that.audience) : that.audience != null) return false; - if (expirationSeconds != null - ? !expirationSeconds.equals(that.expirationSeconds) - : that.expirationSeconds != null) return false; + if (audience != null ? !audience.equals(that.audience) :that.audience != null) return false; + if (expirationSeconds != null ? !expirationSeconds.equals(that.expirationSeconds) :that.expirationSeconds != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(audience, expirationSeconds, super.hashCode()); + return java.util.Objects.hash(audience, expirationSeconds, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audience != null) { - sb.append("audience:"); - sb.append(audience + ","); - } - if (expirationSeconds != null) { - sb.append("expirationSeconds:"); - sb.append(expirationSeconds); - } + if (audience != null) { sb.append("audience:"); sb.append(audience + ","); } + if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java index 072351d873..5192659679 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIGroupBuilder extends V1APIGroupFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIGroupBuilder extends V1APIGroupFluentImpl implements VisitableBuilder{ public V1APIGroupBuilder() { this(false); } - public V1APIGroupBuilder(Boolean validationEnabled) { this(new V1APIGroup(), validationEnabled); } - public V1APIGroupBuilder(V1APIGroupFluent fluent) { this(fluent, false); } - - public V1APIGroupBuilder(V1APIGroupFluent fluent, Boolean validationEnabled) { + public V1APIGroupBuilder(V1APIGroupFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIGroup(), validationEnabled); } - - public V1APIGroupBuilder(V1APIGroupFluent fluent, V1APIGroup instance) { + public V1APIGroupBuilder(V1APIGroupFluent fluent,V1APIGroup instance) { this(fluent, instance, false); } - - public V1APIGroupBuilder( - V1APIGroupFluent fluent, V1APIGroup instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIGroupBuilder(V1APIGroupFluent fluent,V1APIGroup instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -51,15 +32,13 @@ public V1APIGroupBuilder( fluent.withVersions(instance.getVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIGroupBuilder(V1APIGroup instance) { - this(instance, false); + this(instance,false); } - - public V1APIGroupBuilder(V1APIGroup instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIGroupBuilder(V1APIGroup instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -72,12 +51,10 @@ public V1APIGroupBuilder(V1APIGroup instance, Boolean validationEnabled) { this.withVersions(instance.getVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIGroupFluent fluent; Boolean validationEnabled; - public V1APIGroup build() { V1APIGroup buildable = new V1APIGroup(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +65,5 @@ public V1APIGroup build() { buildable.setVersions(fluent.getVersions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java index 28ed1cc8ee..bd5d86f2f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java @@ -1,213 +1,120 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1APIGroupFluent> extends Fluent { + /** + * Generated + */ +public interface V1APIGroupFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildPreferredVersion instead. - * * @return The buildable object. */ @Deprecated public V1GroupVersionForDiscovery getPreferredVersion(); - public V1GroupVersionForDiscovery buildPreferredVersion(); - public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion); - public Boolean hasPreferredVersion(); - public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersion(); - - public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersionLike( - V1GroupVersionForDiscovery item); - + public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item); public V1APIGroupFluent.PreferredVersionNested editPreferredVersion(); - public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersion(); - - public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersionLike( - V1GroupVersionForDiscovery item); - - public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); - - public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); - - public A addToServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - + public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item); + public A addToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item); + public A setToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item); + public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); public A addAllToServerAddressByClientCIDRs(Collection items); - - public A removeFromServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - + public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); public A removeAllFromServerAddressByClientCIDRs(Collection items); - - public A removeMatchingFromServerAddressByClientCIDRs( - Predicate predicate); - + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate); + /** * This method has been deprecated, please use method buildServerAddressByClientCIDRs instead. - * * @return The buildable object. */ @Deprecated public List getServerAddressByClientCIDRs(); - public List buildServerAddressByClientCIDRs(); - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index); - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR(); - public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR(); - - public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( - Predicate predicate); - - public Boolean hasMatchingServerAddressByClientCIDR( - Predicate predicate); - - public A withServerAddressByClientCIDRs( - List serverAddressByClientCIDRs); - - public A withServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... - serverAddressByClientCIDRs); - + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate); + public Boolean hasMatchingServerAddressByClientCIDR(Predicate predicate); + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs); + public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs); public Boolean hasServerAddressByClientCIDRs(); - public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR(); - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike( - V1ServerAddressByClientCIDR item); - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike( - Integer index, V1ServerAddressByClientCIDR item); - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( - Integer index); - + public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(Integer index,V1ServerAddressByClientCIDR item); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(Integer index); public V1APIGroupFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR(); - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR(); - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR( - Predicate predicate); - - public A addToVersions(Integer index, V1GroupVersionForDiscovery item); - - public A setToVersions(Integer index, V1GroupVersionForDiscovery item); - + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate); + public A addToVersions(Integer index,V1GroupVersionForDiscovery item); + public A setToVersions(Integer index,V1GroupVersionForDiscovery item); public A addToVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items); - public A addAllToVersions(Collection items); - - public A removeFromVersions( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items); - + public A removeFromVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items); public A removeAllFromVersions(Collection items); - public A removeMatchingFromVersions(Predicate predicate); - + /** * This method has been deprecated, please use method buildVersions instead. - * * @return The buildable object. */ @Deprecated public List getVersions(); - public List buildVersions(); - public V1GroupVersionForDiscovery buildVersion(Integer index); - public V1GroupVersionForDiscovery buildFirstVersion(); - public V1GroupVersionForDiscovery buildLastVersion(); - - public V1GroupVersionForDiscovery buildMatchingVersion( - Predicate predicate); - + public V1GroupVersionForDiscovery buildMatchingVersion(Predicate predicate); public Boolean hasMatchingVersion(Predicate predicate); - public A withVersions(List versions); - public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... versions); - public Boolean hasVersions(); - public V1APIGroupFluent.VersionsNested addNewVersion(); - public V1APIGroupFluent.VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item); - - public V1APIGroupFluent.VersionsNested setNewVersionLike( - Integer index, V1GroupVersionForDiscovery item); - + public V1APIGroupFluent.VersionsNested setNewVersionLike(Integer index,V1GroupVersionForDiscovery item); public V1APIGroupFluent.VersionsNested editVersion(Integer index); - public V1APIGroupFluent.VersionsNested editFirstVersion(); - public V1APIGroupFluent.VersionsNested editLastVersion(); - - public V1APIGroupFluent.VersionsNested editMatchingVersion( - Predicate predicate); - - public interface PreferredVersionNested - extends Nested, - V1GroupVersionForDiscoveryFluent> { + public V1APIGroupFluent.VersionsNested editMatchingVersion(Predicate predicate); + public interface PreferredVersionNested extends Nested,V1GroupVersionForDiscoveryFluent>{ public N and(); - public N endPreferredVersion(); + } - - public interface ServerAddressByClientCIDRsNested - extends Nested, - V1ServerAddressByClientCIDRFluent> { + public interface ServerAddressByClientCIDRsNested extends Nested,V1ServerAddressByClientCIDRFluent>{ public N and(); - public N endServerAddressByClientCIDR(); + } - - public interface VersionsNested - extends Nested, V1GroupVersionForDiscoveryFluent> { + public interface VersionsNested extends Nested,V1GroupVersionForDiscoveryFluent>{ public N and(); - public N endVersion(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java index 0d9b6fc9de..5a74245063 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIGroupFluentImpl> extends BaseFluent - implements V1APIGroupFluent { - public V1APIGroupFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIGroupFluentImpl> extends BaseFluent implements V1APIGroupFluent{ + public V1APIGroupFluentImpl() { + } public V1APIGroupFluentImpl(V1APIGroup instance) { this.withApiVersion(instance.getApiVersion()); @@ -38,191 +34,101 @@ public V1APIGroupFluentImpl(V1APIGroup instance) { this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); this.withVersions(instance.getVersions()); - } + } private String apiVersion; private String kind; private String name; private V1GroupVersionForDiscoveryBuilder preferredVersion; private ArrayList serverAddressByClientCIDRs; private ArrayList versions; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildPreferredVersion instead. - * * @return The buildable object. */ @Deprecated public V1GroupVersionForDiscovery getPreferredVersion() { - return this.preferredVersion != null ? this.preferredVersion.build() : null; + return this.preferredVersion!=null ?this.preferredVersion.build():null; } - public V1GroupVersionForDiscovery buildPreferredVersion() { - return this.preferredVersion != null ? this.preferredVersion.build() : null; + return this.preferredVersion!=null ?this.preferredVersion.build():null; } - public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { _visitables.get("preferredVersion").remove(this.preferredVersion); - if (preferredVersion != null) { - this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); - _visitables.get("preferredVersion").add(this.preferredVersion); - } else { - this.preferredVersion = null; - _visitables.get("preferredVersion").remove(this.preferredVersion); - } - return (A) this; + if (preferredVersion!=null){ this.preferredVersion= new V1GroupVersionForDiscoveryBuilder(preferredVersion); _visitables.get("preferredVersion").add(this.preferredVersion);} else { this.preferredVersion = null; _visitables.get("preferredVersion").remove(this.preferredVersion); } return (A) this; } - public Boolean hasPreferredVersion() { return this.preferredVersion != null; } - public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersion() { return new V1APIGroupFluentImpl.PreferredVersionNestedImpl(); } - - public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersionLike( - V1GroupVersionForDiscovery item) { + public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item) { return new V1APIGroupFluentImpl.PreferredVersionNestedImpl(item); } - public V1APIGroupFluent.PreferredVersionNested editPreferredVersion() { return withNewPreferredVersionLike(getPreferredVersion()); } - public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersion() { - return withNewPreferredVersionLike( - getPreferredVersion() != null - ? getPreferredVersion() - : new V1GroupVersionForDiscoveryBuilder().build()); + return withNewPreferredVersionLike(getPreferredVersion() != null ? getPreferredVersion(): new V1GroupVersionForDiscoveryBuilder().build()); } - - public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersionLike( - V1GroupVersionForDiscovery item) { - return withNewPreferredVersionLike( - getPreferredVersion() != null ? getPreferredVersion() : item); + public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item) { + return withNewPreferredVersionLike(getPreferredVersion() != null ? getPreferredVersion(): item); } - - public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables - .get("serverAddressByClientCIDRs") - .add(index >= 0 ? index : _visitables.get("serverAddressByClientCIDRs").size(), builder); - this.serverAddressByClientCIDRs.add( - index >= 0 ? index : serverAddressByClientCIDRs.size(), builder); - return (A) this; + public A addToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item) { + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(index >= 0 ? index : _visitables.get("serverAddressByClientCIDRs").size(), builder);this.serverAddressByClientCIDRs.add(index >= 0 ? index : serverAddressByClientCIDRs.size(), builder); return (A)this; } - - public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } + public A setToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item) { + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= _visitables.get("serverAddressByClientCIDRs").size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - } else { - _visitables.get("serverAddressByClientCIDRs").set(index, builder); - } - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - serverAddressByClientCIDRs.add(builder); - } else { - serverAddressByClientCIDRs.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("serverAddressByClientCIDRs").size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); } else { _visitables.get("serverAddressByClientCIDRs").set(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { serverAddressByClientCIDRs.add(builder); } else { serverAddressByClientCIDRs.set(index, builder);} + return (A)this; } - - public A addToServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; + public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; } - public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; } - - public A removeFromServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.remove(builder); - } - } - return (A) this; + public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder);if (this.serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs.remove(builder);}} return (A)this; } - public A removeAllFromServerAddressByClientCIDRs(Collection items) { - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.remove(builder); - } - } - return (A) this; + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder);if (this.serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs.remove(builder);}} return (A)this; } - - public A removeMatchingFromServerAddressByClientCIDRs( - Predicate predicate) { + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { if (serverAddressByClientCIDRs == null) return (A) this; final Iterator each = serverAddressByClientCIDRs.iterator(); final List visitables = _visitables.get("serverAddressByClientCIDRs"); @@ -233,214 +139,101 @@ public A removeMatchingFromServerAddressByClientCIDRs( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildServerAddressByClientCIDRs instead. - * * @return The buildable object. */ @Deprecated public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public List buildServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index) { return this.serverAddressByClientCIDRs.get(index).build(); } - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(0).build(); } - public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } - - public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( - Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item: serverAddressByClientCIDRs) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingServerAddressByClientCIDR( - Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item: serverAddressByClientCIDRs) { if(predicate.test(item)){ return true;} } return false; } - - public A withServerAddressByClientCIDRs( - List serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - _visitables.get("serverAddressByClientCIDRs").removeAll(this.serverAddressByClientCIDRs); - } - if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } else { - this.serverAddressByClientCIDRs = null; - } - return (A) this; + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { _visitables.get("serverAddressByClientCIDRs").removeAll(this.serverAddressByClientCIDRs);} + if (serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs = new ArrayList(); for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs){this.addToServerAddressByClientCIDRs(item);}} else { this.serverAddressByClientCIDRs = null;} return (A) this; } - - public A withServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... - serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.clear(); - } - if (serverAddressByClientCIDRs != null) { - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } - return (A) this; + public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs.clear();} + if (serverAddressByClientCIDRs != null) {for (V1ServerAddressByClientCIDR item :serverAddressByClientCIDRs){ this.addToServerAddressByClientCIDRs(item);}} return (A) this; } - public Boolean hasServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty(); } - public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { return new V1APIGroupFluentImpl.ServerAddressByClientCIDRsNestedImpl(); } - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike( - V1ServerAddressByClientCIDR item) { + public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { return new V1APIGroupFluentImpl.ServerAddressByClientCIDRsNestedImpl(-1, item); } - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike( - Integer index, V1ServerAddressByClientCIDR item) { + public V1APIGroupFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(Integer index,V1ServerAddressByClientCIDR item) { return new V1APIGroupFluentImpl.ServerAddressByClientCIDRsNestedImpl(index, item); } - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( - Integer index) { - if (serverAddressByClientCIDRs.size() <= index) - throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(Integer index) { + if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { - if (serverAddressByClientCIDRs.size() == 0) - throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); + if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); } - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { int index = serverAddressByClientCIDRs.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - - public V1APIGroupFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR( - Predicate predicate) { + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { int index = -1; - for (int i = 0; i < serverAddressByClientCIDRs.size(); i++) { - if (predicate.test(serverAddressByClientCIDRs.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching serverAddressByClientCIDRs. No match found."); + for (int i=0;i(); - } - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables - .get("versions") - .add(index >= 0 ? index : _visitables.get("versions").size(), builder); - this.versions.add(index >= 0 ? index : versions.size(), builder); - return (A) this; + public A addToVersions(Integer index,V1GroupVersionForDiscovery item) { + if (this.versions == null) {this.versions = new ArrayList();} + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(index >= 0 ? index : _visitables.get("versions").size(), builder);this.versions.add(index >= 0 ? index : versions.size(), builder); return (A)this; } - - public A setToVersions(Integer index, V1GroupVersionForDiscovery item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } + public A setToVersions(Integer index,V1GroupVersionForDiscovery item) { + if (this.versions == null) {this.versions = new ArrayList();} V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= _visitables.get("versions").size()) { - _visitables.get("versions").add(builder); - } else { - _visitables.get("versions").set(index, builder); - } - if (index < 0 || index >= versions.size()) { - versions.add(builder); - } else { - versions.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("versions").size()) { _visitables.get("versions").add(builder); } else { _visitables.get("versions").set(index, builder);} + if (index < 0 || index >= versions.size()) { versions.add(builder); } else { versions.set(index, builder);} + return (A)this; } - public A addToVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; + if (this.versions == null) {this.versions = new ArrayList();} + for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; } - public A addAllToVersions(Collection items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; + if (this.versions == null) {this.versions = new ArrayList();} + for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; } - - public A removeFromVersions( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").remove(builder); - if (this.versions != null) { - this.versions.remove(builder); - } - } - return (A) this; + public A removeFromVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { + for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").remove(builder);if (this.versions != null) {this.versions.remove(builder);}} return (A)this; } - public A removeAllFromVersions(Collection items) { - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").remove(builder); - if (this.versions != null) { - this.versions.remove(builder); - } - } - return (A) this; + for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").remove(builder);if (this.versions != null) {this.versions.remove(builder);}} return (A)this; } - public A removeMatchingFromVersions(Predicate predicate) { if (versions == null) return (A) this; final Iterator each = versions.iterator(); @@ -452,260 +245,156 @@ public A removeMatchingFromVersions(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVersions instead. - * * @return The buildable object. */ @Deprecated public List getVersions() { return versions != null ? build(versions) : null; } - public List buildVersions() { return versions != null ? build(versions) : null; } - public V1GroupVersionForDiscovery buildVersion(Integer index) { return this.versions.get(index).build(); } - public V1GroupVersionForDiscovery buildFirstVersion() { return this.versions.get(0).build(); } - public V1GroupVersionForDiscovery buildLastVersion() { return this.versions.get(versions.size() - 1).build(); } - - public V1GroupVersionForDiscovery buildMatchingVersion( - Predicate predicate) { - for (V1GroupVersionForDiscoveryBuilder item : versions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1GroupVersionForDiscovery buildMatchingVersion(Predicate predicate) { + for (V1GroupVersionForDiscoveryBuilder item: versions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVersion(Predicate predicate) { - for (V1GroupVersionForDiscoveryBuilder item : versions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1GroupVersionForDiscoveryBuilder item: versions) { if(predicate.test(item)){ return true;} } return false; } - public A withVersions(List versions) { - if (this.versions != null) { - _visitables.get("versions").removeAll(this.versions); - } - if (versions != null) { - this.versions = new ArrayList(); - for (V1GroupVersionForDiscovery item : versions) { - this.addToVersions(item); - } - } else { - this.versions = null; - } - return (A) this; + if (this.versions != null) { _visitables.get("versions").removeAll(this.versions);} + if (versions != null) {this.versions = new ArrayList(); for (V1GroupVersionForDiscovery item : versions){this.addToVersions(item);}} else { this.versions = null;} return (A) this; } - - public A withVersions( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... versions) { - if (this.versions != null) { - this.versions.clear(); - } - if (versions != null) { - for (V1GroupVersionForDiscovery item : versions) { - this.addToVersions(item); - } - } - return (A) this; + public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... versions) { + if (this.versions != null) {this.versions.clear();} + if (versions != null) {for (V1GroupVersionForDiscovery item :versions){ this.addToVersions(item);}} return (A) this; } - public Boolean hasVersions() { return versions != null && !versions.isEmpty(); } - public V1APIGroupFluent.VersionsNested addNewVersion() { return new V1APIGroupFluentImpl.VersionsNestedImpl(); } - public V1APIGroupFluent.VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { return new V1APIGroupFluentImpl.VersionsNestedImpl(-1, item); } - - public V1APIGroupFluent.VersionsNested setNewVersionLike( - Integer index, V1GroupVersionForDiscovery item) { + public V1APIGroupFluent.VersionsNested setNewVersionLike(Integer index,V1GroupVersionForDiscovery item) { return new V1APIGroupFluentImpl.VersionsNestedImpl(index, item); } - public V1APIGroupFluent.VersionsNested editVersion(Integer index) { - if (versions.size() <= index) - throw new RuntimeException("Can't edit versions. Index exceeds size."); + if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); return setNewVersionLike(index, buildVersion(index)); } - public V1APIGroupFluent.VersionsNested editFirstVersion() { - if (versions.size() == 0) - throw new RuntimeException("Can't edit first versions. The list is empty."); + if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); return setNewVersionLike(0, buildVersion(0)); } - public V1APIGroupFluent.VersionsNested editLastVersion() { int index = versions.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last versions. The list is empty."); return setNewVersionLike(index, buildVersion(index)); } - - public V1APIGroupFluent.VersionsNested editMatchingVersion( - Predicate predicate) { + public V1APIGroupFluent.VersionsNested editMatchingVersion(Predicate predicate) { int index = -1; - for (int i = 0; i < versions.size(); i++) { - if (predicate.test(versions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1GroupVersionForDiscoveryFluentImpl> - implements V1APIGroupFluent.PreferredVersionNested, Nested { + class PreferredVersionNestedImpl extends V1GroupVersionForDiscoveryFluentImpl> implements V1APIGroupFluent.PreferredVersionNested,Nested{ PreferredVersionNestedImpl(V1GroupVersionForDiscovery item) { this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } - PreferredVersionNestedImpl() { this.builder = new V1GroupVersionForDiscoveryBuilder(this); } - V1GroupVersionForDiscoveryBuilder builder; - public N and() { return (N) V1APIGroupFluentImpl.this.withPreferredVersion(builder.build()); } - public N endPreferredVersion() { return and(); } + } - - class ServerAddressByClientCIDRsNestedImpl - extends V1ServerAddressByClientCIDRFluentImpl< - V1APIGroupFluent.ServerAddressByClientCIDRsNested> - implements V1APIGroupFluent.ServerAddressByClientCIDRsNested, Nested { - ServerAddressByClientCIDRsNestedImpl(Integer index, V1ServerAddressByClientCIDR item) { + class ServerAddressByClientCIDRsNestedImpl extends V1ServerAddressByClientCIDRFluentImpl> implements V1APIGroupFluent.ServerAddressByClientCIDRsNested,Nested{ + ServerAddressByClientCIDRsNestedImpl(Integer index,V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } - ServerAddressByClientCIDRsNestedImpl() { this.index = -1; this.builder = new V1ServerAddressByClientCIDRBuilder(this); } - V1ServerAddressByClientCIDRBuilder builder; Integer index; - public N and() { - return (N) V1APIGroupFluentImpl.this.setToServerAddressByClientCIDRs(index, builder.build()); + return (N) V1APIGroupFluentImpl.this.setToServerAddressByClientCIDRs(index,builder.build()); } - public N endServerAddressByClientCIDR() { return and(); } + } - - class VersionsNestedImpl - extends V1GroupVersionForDiscoveryFluentImpl> - implements V1APIGroupFluent.VersionsNested, Nested { - VersionsNestedImpl(Integer index, V1GroupVersionForDiscovery item) { + class VersionsNestedImpl extends V1GroupVersionForDiscoveryFluentImpl> implements V1APIGroupFluent.VersionsNested,Nested{ + VersionsNestedImpl(Integer index,V1GroupVersionForDiscovery item) { this.index = index; this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } - VersionsNestedImpl() { this.index = -1; this.builder = new V1GroupVersionForDiscoveryBuilder(this); } - V1GroupVersionForDiscoveryBuilder builder; Integer index; - public N and() { - return (N) V1APIGroupFluentImpl.this.setToVersions(index, builder.build()); + return (N) V1APIGroupFluentImpl.this.setToVersions(index,builder.build()); } - public N endVersion() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java index b1dba3d813..9398101386 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1APIGroupListBuilder extends V1APIGroupListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIGroupListBuilder extends V1APIGroupListFluentImpl implements VisitableBuilder{ public V1APIGroupListBuilder() { this(false); } - public V1APIGroupListBuilder(Boolean validationEnabled) { this(new V1APIGroupList(), validationEnabled); } - public V1APIGroupListBuilder(V1APIGroupListFluent fluent) { this(fluent, false); } - - public V1APIGroupListBuilder(V1APIGroupListFluent fluent, Boolean validationEnabled) { + public V1APIGroupListBuilder(V1APIGroupListFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIGroupList(), validationEnabled); } - - public V1APIGroupListBuilder(V1APIGroupListFluent fluent, V1APIGroupList instance) { + public V1APIGroupListBuilder(V1APIGroupListFluent fluent,V1APIGroupList instance) { this(fluent, instance, false); } - - public V1APIGroupListBuilder( - V1APIGroupListFluent fluent, V1APIGroupList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIGroupListBuilder(V1APIGroupListFluent fluent,V1APIGroupList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withGroups(instance.getGroups()); fluent.withKind(instance.getKind()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIGroupListBuilder(V1APIGroupList instance) { - this(instance, false); + this(instance,false); } - - public V1APIGroupListBuilder(V1APIGroupList instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIGroupListBuilder(V1APIGroupList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withGroups(instance.getGroups()); this.withKind(instance.getKind()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIGroupListFluent fluent; Boolean validationEnabled; - public V1APIGroupList build() { V1APIGroupList buildable = new V1APIGroupList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -73,4 +50,5 @@ public V1APIGroupList build() { buildable.setKind(fluent.getKind()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java index 8001e34d1e..42670104e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java @@ -1,96 +1,62 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1APIGroupListFluent> extends Fluent { + /** + * Generated + */ +public interface V1APIGroupListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToGroups(Integer index, V1APIGroup item); - - public A setToGroups(Integer index, V1APIGroup item); - + public A addToGroups(Integer index,V1APIGroup item); + public A setToGroups(Integer index,V1APIGroup item); public A addToGroups(io.kubernetes.client.openapi.models.V1APIGroup... items); - public A addAllToGroups(Collection items); - public A removeFromGroups(io.kubernetes.client.openapi.models.V1APIGroup... items); - public A removeAllFromGroups(Collection items); - public A removeMatchingFromGroups(Predicate predicate); - + /** * This method has been deprecated, please use method buildGroups instead. - * * @return The buildable object. */ @Deprecated public List getGroups(); - public List buildGroups(); - public V1APIGroup buildGroup(Integer index); - public V1APIGroup buildFirstGroup(); - public V1APIGroup buildLastGroup(); - public V1APIGroup buildMatchingGroup(Predicate predicate); - public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(List groups); - public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups); - public Boolean hasGroups(); - public V1APIGroupListFluent.GroupsNested addNewGroup(); - public V1APIGroupListFluent.GroupsNested addNewGroupLike(V1APIGroup item); - - public V1APIGroupListFluent.GroupsNested setNewGroupLike(Integer index, V1APIGroup item); - + public V1APIGroupListFluent.GroupsNested setNewGroupLike(Integer index,V1APIGroup item); public V1APIGroupListFluent.GroupsNested editGroup(Integer index); - public V1APIGroupListFluent.GroupsNested editFirstGroup(); - public V1APIGroupListFluent.GroupsNested editLastGroup(); - - public V1APIGroupListFluent.GroupsNested editMatchingGroup( - Predicate predicate); - + public V1APIGroupListFluent.GroupsNested editMatchingGroup(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - - public interface GroupsNested - extends Nested, V1APIGroupFluent> { + public interface GroupsNested extends Nested,V1APIGroupFluent>{ public N and(); - public N endGroup(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java index 1070666d98..8b1fd21fd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java @@ -1,130 +1,72 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIGroupListFluentImpl> extends BaseFluent - implements V1APIGroupListFluent { - public V1APIGroupListFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIGroupListFluentImpl> extends BaseFluent implements V1APIGroupListFluent{ + public V1APIGroupListFluentImpl() { + } public V1APIGroupListFluentImpl(V1APIGroupList instance) { this.withApiVersion(instance.getApiVersion()); this.withGroups(instance.getGroups()); this.withKind(instance.getKind()); - } + } private String apiVersion; private ArrayList groups; private String kind; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToGroups(Integer index, V1APIGroup item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").add(index >= 0 ? index : _visitables.get("groups").size(), builder); - this.groups.add(index >= 0 ? index : groups.size(), builder); - return (A) this; + public A addToGroups(Integer index,V1APIGroup item) { + if (this.groups == null) {this.groups = new ArrayList();} + V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(index >= 0 ? index : _visitables.get("groups").size(), builder);this.groups.add(index >= 0 ? index : groups.size(), builder); return (A)this; } - - public A setToGroups(Integer index, V1APIGroup item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } + public A setToGroups(Integer index,V1APIGroup item) { + if (this.groups == null) {this.groups = new ArrayList();} V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= _visitables.get("groups").size()) { - _visitables.get("groups").add(builder); - } else { - _visitables.get("groups").set(index, builder); - } - if (index < 0 || index >= groups.size()) { - groups.add(builder); - } else { - groups.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("groups").size()) { _visitables.get("groups").add(builder); } else { _visitables.get("groups").set(index, builder);} + if (index < 0 || index >= groups.size()) { groups.add(builder); } else { groups.set(index, builder);} + return (A)this; } - public A addToGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").add(builder); - this.groups.add(builder); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(builder);this.groups.add(builder);} return (A)this; } - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").add(builder); - this.groups.add(builder); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(builder);this.groups.add(builder);} return (A)this; } - public A removeFromGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").remove(builder); - if (this.groups != null) { - this.groups.remove(builder); - } - } - return (A) this; + for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").remove(builder);if (this.groups != null) {this.groups.remove(builder);}} return (A)this; } - public A removeAllFromGroups(Collection items) { - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").remove(builder); - if (this.groups != null) { - this.groups.remove(builder); - } - } - return (A) this; + for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").remove(builder);if (this.groups != null) {this.groups.remove(builder);}} return (A)this; } - public A removeMatchingFromGroups(Predicate predicate) { if (groups == null) return (A) this; final Iterator each = groups.iterator(); @@ -136,195 +78,124 @@ public A removeMatchingFromGroups(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildGroups instead. - * * @return The buildable object. */ @Deprecated public List getGroups() { return groups != null ? build(groups) : null; } - public List buildGroups() { return groups != null ? build(groups) : null; } - public V1APIGroup buildGroup(Integer index) { return this.groups.get(index).build(); } - public V1APIGroup buildFirstGroup() { return this.groups.get(0).build(); } - public V1APIGroup buildLastGroup() { return this.groups.get(groups.size() - 1).build(); } - public V1APIGroup buildMatchingGroup(Predicate predicate) { - for (V1APIGroupBuilder item : groups) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1APIGroupBuilder item: groups) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingGroup(Predicate predicate) { - for (V1APIGroupBuilder item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1APIGroupBuilder item: groups) { if(predicate.test(item)){ return true;} } return false; } - public A withGroups(List groups) { - if (this.groups != null) { - _visitables.get("groups").removeAll(this.groups); - } - if (groups != null) { - this.groups = new ArrayList(); - for (V1APIGroup item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; + if (this.groups != null) { _visitables.get("groups").removeAll(this.groups);} + if (groups != null) {this.groups = new ArrayList(); for (V1APIGroup item : groups){this.addToGroups(item);}} else { this.groups = null;} return (A) this; } - public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups) { - if (this.groups != null) { - this.groups.clear(); - } - if (groups != null) { - for (V1APIGroup item : groups) { - this.addToGroups(item); - } - } - return (A) this; + if (this.groups != null) {this.groups.clear();} + if (groups != null) {for (V1APIGroup item :groups){ this.addToGroups(item);}} return (A) this; } - public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } - public V1APIGroupListFluent.GroupsNested addNewGroup() { return new V1APIGroupListFluentImpl.GroupsNestedImpl(); } - public V1APIGroupListFluent.GroupsNested addNewGroupLike(V1APIGroup item) { return new V1APIGroupListFluentImpl.GroupsNestedImpl(-1, item); } - - public V1APIGroupListFluent.GroupsNested setNewGroupLike(Integer index, V1APIGroup item) { + public V1APIGroupListFluent.GroupsNested setNewGroupLike(Integer index,V1APIGroup item) { return new V1APIGroupListFluentImpl.GroupsNestedImpl(index, item); } - public V1APIGroupListFluent.GroupsNested editGroup(Integer index) { - if (groups.size() <= index) - throw new RuntimeException("Can't edit groups. Index exceeds size."); + if (groups.size() <= index) throw new RuntimeException("Can't edit groups. Index exceeds size."); return setNewGroupLike(index, buildGroup(index)); } - public V1APIGroupListFluent.GroupsNested editFirstGroup() { - if (groups.size() == 0) - throw new RuntimeException("Can't edit first groups. The list is empty."); + if (groups.size() == 0) throw new RuntimeException("Can't edit first groups. The list is empty."); return setNewGroupLike(0, buildGroup(0)); } - public V1APIGroupListFluent.GroupsNested editLastGroup() { int index = groups.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last groups. The list is empty."); return setNewGroupLike(index, buildGroup(index)); } - - public V1APIGroupListFluent.GroupsNested editMatchingGroup( - Predicate predicate) { + public V1APIGroupListFluent.GroupsNested editMatchingGroup(Predicate predicate) { int index = -1; - for (int i = 0; i < groups.size(); i++) { - if (predicate.test(groups.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1APIGroupFluentImpl> - implements V1APIGroupListFluent.GroupsNested, Nested { - GroupsNestedImpl(Integer index, V1APIGroup item) { + class GroupsNestedImpl extends V1APIGroupFluentImpl> implements V1APIGroupListFluent.GroupsNested,Nested{ + GroupsNestedImpl(Integer index,V1APIGroup item) { this.index = index; this.builder = new V1APIGroupBuilder(this, item); } - GroupsNestedImpl() { this.index = -1; this.builder = new V1APIGroupBuilder(this); } - V1APIGroupBuilder builder; Integer index; - public N and() { - return (N) V1APIGroupListFluentImpl.this.setToGroups(index, builder.build()); + return (N) V1APIGroupListFluentImpl.this.setToGroups(index,builder.build()); } - public N endGroup() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java index 37f01c295e..6148639cec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIResourceBuilder extends V1APIResourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIResourceBuilder extends V1APIResourceFluentImpl implements VisitableBuilder{ public V1APIResourceBuilder() { this(false); } - public V1APIResourceBuilder(Boolean validationEnabled) { this(new V1APIResource(), validationEnabled); } - public V1APIResourceBuilder(V1APIResourceFluent fluent) { this(fluent, false); } - - public V1APIResourceBuilder(V1APIResourceFluent fluent, Boolean validationEnabled) { + public V1APIResourceBuilder(V1APIResourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIResource(), validationEnabled); } - - public V1APIResourceBuilder(V1APIResourceFluent fluent, V1APIResource instance) { + public V1APIResourceBuilder(V1APIResourceFluent fluent,V1APIResource instance) { this(fluent, instance, false); } - - public V1APIResourceBuilder( - V1APIResourceFluent fluent, V1APIResource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIResourceBuilder(V1APIResourceFluent fluent,V1APIResource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCategories(instance.getCategories()); fluent.withGroup(instance.getGroup()); @@ -59,15 +40,13 @@ public V1APIResourceBuilder( fluent.withVersion(instance.getVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIResourceBuilder(V1APIResource instance) { - this(instance, false); + this(instance,false); } - - public V1APIResourceBuilder(V1APIResource instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIResourceBuilder(V1APIResource instance,Boolean validationEnabled) { + this.fluent = this; this.withCategories(instance.getCategories()); this.withGroup(instance.getGroup()); @@ -88,12 +67,10 @@ public V1APIResourceBuilder(V1APIResource instance, Boolean validationEnabled) { this.withVersion(instance.getVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIResourceFluent fluent; Boolean validationEnabled; - public V1APIResource build() { V1APIResource buildable = new V1APIResource(); buildable.setCategories(fluent.getCategories()); @@ -108,4 +85,5 @@ public V1APIResource build() { buildable.setVersion(fluent.getVersion()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java index 61b2534727..e12ac5cee6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java @@ -1,155 +1,84 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1APIResourceFluent> extends Fluent { - public A addToCategories(Integer index, String item); - - public A setToCategories(Integer index, String item); - + /** + * Generated + */ +public interface V1APIResourceFluent> extends Fluent{ + public A addToCategories(Integer index,String item); + public A setToCategories(Integer index,String item); public A addToCategories(java.lang.String... items); - public A addAllToCategories(Collection items); - public A removeFromCategories(java.lang.String... items); - public A removeAllFromCategories(Collection items); - public List getCategories(); - public String getCategory(Integer index); - public String getFirstCategory(); - public String getLastCategory(); - public String getMatchingCategory(Predicate predicate); - public Boolean hasMatchingCategory(Predicate predicate); - public A withCategories(List categories); - public A withCategories(java.lang.String... categories); - public Boolean hasCategories(); - public String getGroup(); - public A withGroup(String group); - public Boolean hasGroup(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getNamespaced(); - public A withNamespaced(Boolean namespaced); - public Boolean hasNamespaced(); - - public A addToShortNames(Integer index, String item); - - public A setToShortNames(Integer index, String item); - + public A addToShortNames(Integer index,String item); + public A setToShortNames(Integer index,String item); public A addToShortNames(java.lang.String... items); - public A addAllToShortNames(Collection items); - public A removeFromShortNames(java.lang.String... items); - public A removeAllFromShortNames(Collection items); - public List getShortNames(); - public String getShortName(Integer index); - public String getFirstShortName(); - public String getLastShortName(); - public String getMatchingShortName(Predicate predicate); - public Boolean hasMatchingShortName(Predicate predicate); - public A withShortNames(List shortNames); - public A withShortNames(java.lang.String... shortNames); - public Boolean hasShortNames(); - public String getSingularName(); - public A withSingularName(String singularName); - public Boolean hasSingularName(); - public String getStorageVersionHash(); - public A withStorageVersionHash(String storageVersionHash); - public Boolean hasStorageVersionHash(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); - public String getVersion(); - public A withVersion(String version); - public Boolean hasVersion(); - public A withNamespaced(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java index 28d6cca4f9..38d548109a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIResourceFluentImpl> extends BaseFluent - implements V1APIResourceFluent { - public V1APIResourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIResourceFluentImpl> extends BaseFluent implements V1APIResourceFluent{ + public V1APIResourceFluentImpl() { + } public V1APIResourceFluentImpl(V1APIResource instance) { this.withCategories(instance.getCategories()); @@ -44,8 +38,8 @@ public V1APIResourceFluentImpl(V1APIResource instance) { this.withVerbs(instance.getVerbs()); this.withVersion(instance.getVersion()); - } + } private List categories; private String group; private String kind; @@ -56,532 +50,259 @@ public V1APIResourceFluentImpl(V1APIResource instance) { private String storageVersionHash; private List verbs; private String version; - - public A addToCategories(Integer index, String item) { - if (this.categories == null) { - this.categories = new ArrayList(); - } + public A addToCategories(Integer index,String item) { + if (this.categories == null) {this.categories = new ArrayList();} this.categories.add(index, item); - return (A) this; + return (A)this; } - - public A setToCategories(Integer index, String item) { - if (this.categories == null) { - this.categories = new ArrayList(); - } - this.categories.set(index, item); - return (A) this; + public A setToCategories(Integer index,String item) { + if (this.categories == null) {this.categories = new ArrayList();} + this.categories.set(index, item); return (A)this; } - public A addToCategories(java.lang.String... items) { - if (this.categories == null) { - this.categories = new ArrayList(); - } - for (String item : items) { - this.categories.add(item); - } - return (A) this; + if (this.categories == null) {this.categories = new ArrayList();} + for (String item : items) {this.categories.add(item);} return (A)this; } - public A addAllToCategories(Collection items) { - if (this.categories == null) { - this.categories = new ArrayList(); - } - for (String item : items) { - this.categories.add(item); - } - return (A) this; + if (this.categories == null) {this.categories = new ArrayList();} + for (String item : items) {this.categories.add(item);} return (A)this; } - public A removeFromCategories(java.lang.String... items) { - for (String item : items) { - if (this.categories != null) { - this.categories.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.categories!= null){ this.categories.remove(item);}} return (A)this; } - public A removeAllFromCategories(Collection items) { - for (String item : items) { - if (this.categories != null) { - this.categories.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.categories!= null){ this.categories.remove(item);}} return (A)this; } - public List getCategories() { return this.categories; } - public String getCategory(Integer index) { return this.categories.get(index); } - public String getFirstCategory() { return this.categories.get(0); } - public String getLastCategory() { return this.categories.get(categories.size() - 1); } - public String getMatchingCategory(Predicate predicate) { - for (String item : categories) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: categories) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingCategory(Predicate predicate) { - for (String item : categories) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: categories) { if(predicate.test(item)){ return true;} } return false; } - public A withCategories(List categories) { - if (categories != null) { - this.categories = new ArrayList(); - for (String item : categories) { - this.addToCategories(item); - } - } else { - this.categories = null; - } - return (A) this; + if (categories != null) {this.categories = new ArrayList(); for (String item : categories){this.addToCategories(item);}} else { this.categories = null;} return (A) this; } - public A withCategories(java.lang.String... categories) { - if (this.categories != null) { - this.categories.clear(); - } - if (categories != null) { - for (String item : categories) { - this.addToCategories(item); - } - } - return (A) this; + if (this.categories != null) {this.categories.clear();} + if (categories != null) {for (String item :categories){ this.addToCategories(item);}} return (A) this; } - public Boolean hasCategories() { return categories != null && !categories.isEmpty(); } - public String getGroup() { return this.group; } - public A withGroup(String group) { - this.group = group; - return (A) this; + this.group=group; return (A) this; } - public Boolean hasGroup() { return this.group != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getNamespaced() { return this.namespaced; } - public A withNamespaced(Boolean namespaced) { - this.namespaced = namespaced; - return (A) this; + this.namespaced=namespaced; return (A) this; } - public Boolean hasNamespaced() { return this.namespaced != null; } - - public A addToShortNames(Integer index, String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } + public A addToShortNames(Integer index,String item) { + if (this.shortNames == null) {this.shortNames = new ArrayList();} this.shortNames.add(index, item); - return (A) this; + return (A)this; } - - public A setToShortNames(Integer index, String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - this.shortNames.set(index, item); - return (A) this; + public A setToShortNames(Integer index,String item) { + if (this.shortNames == null) {this.shortNames = new ArrayList();} + this.shortNames.set(index, item); return (A)this; } - public A addToShortNames(java.lang.String... items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - for (String item : items) { - this.shortNames.add(item); - } - return (A) this; + if (this.shortNames == null) {this.shortNames = new ArrayList();} + for (String item : items) {this.shortNames.add(item);} return (A)this; } - public A addAllToShortNames(Collection items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - for (String item : items) { - this.shortNames.add(item); - } - return (A) this; + if (this.shortNames == null) {this.shortNames = new ArrayList();} + for (String item : items) {this.shortNames.add(item);} return (A)this; } - public A removeFromShortNames(java.lang.String... items) { - for (String item : items) { - if (this.shortNames != null) { - this.shortNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.shortNames!= null){ this.shortNames.remove(item);}} return (A)this; } - public A removeAllFromShortNames(Collection items) { - for (String item : items) { - if (this.shortNames != null) { - this.shortNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.shortNames!= null){ this.shortNames.remove(item);}} return (A)this; } - public List getShortNames() { return this.shortNames; } - public String getShortName(Integer index) { return this.shortNames.get(index); } - public String getFirstShortName() { return this.shortNames.get(0); } - public String getLastShortName() { return this.shortNames.get(shortNames.size() - 1); } - public String getMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: shortNames) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: shortNames) { if(predicate.test(item)){ return true;} } return false; } - public A withShortNames(List shortNames) { - if (shortNames != null) { - this.shortNames = new ArrayList(); - for (String item : shortNames) { - this.addToShortNames(item); - } - } else { - this.shortNames = null; - } - return (A) this; + if (shortNames != null) {this.shortNames = new ArrayList(); for (String item : shortNames){this.addToShortNames(item);}} else { this.shortNames = null;} return (A) this; } - public A withShortNames(java.lang.String... shortNames) { - if (this.shortNames != null) { - this.shortNames.clear(); - } - if (shortNames != null) { - for (String item : shortNames) { - this.addToShortNames(item); - } - } - return (A) this; + if (this.shortNames != null) {this.shortNames.clear();} + if (shortNames != null) {for (String item :shortNames){ this.addToShortNames(item);}} return (A) this; } - public Boolean hasShortNames() { return shortNames != null && !shortNames.isEmpty(); } - public String getSingularName() { return this.singularName; } - public A withSingularName(String singularName) { - this.singularName = singularName; - return (A) this; + this.singularName=singularName; return (A) this; } - public Boolean hasSingularName() { return this.singularName != null; } - public String getStorageVersionHash() { return this.storageVersionHash; } - public A withStorageVersionHash(String storageVersionHash) { - this.storageVersionHash = storageVersionHash; - return (A) this; + this.storageVersionHash=storageVersionHash; return (A) this; } - public Boolean hasStorageVersionHash() { return this.storageVersionHash != null; } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public String getVersion() { return this.version; } - public A withVersion(String version) { - this.version = version; - return (A) this; + this.version=version; return (A) this; } - public Boolean hasVersion() { return this.version != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1APIResourceFluentImpl that = (V1APIResourceFluentImpl) o; - if (categories != null ? !categories.equals(that.categories) : that.categories != null) - return false; - if (group != null ? !group.equals(that.group) : that.group != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespaced != null ? !namespaced.equals(that.namespaced) : that.namespaced != null) - return false; - if (shortNames != null ? !shortNames.equals(that.shortNames) : that.shortNames != null) - return false; - if (singularName != null ? !singularName.equals(that.singularName) : that.singularName != null) - return false; - if (storageVersionHash != null - ? !storageVersionHash.equals(that.storageVersionHash) - : that.storageVersionHash != null) return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; - if (version != null ? !version.equals(that.version) : that.version != null) return false; + if (categories != null ? !categories.equals(that.categories) :that.categories != null) return false; + if (group != null ? !group.equals(that.group) :that.group != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespaced != null ? !namespaced.equals(that.namespaced) :that.namespaced != null) return false; + if (shortNames != null ? !shortNames.equals(that.shortNames) :that.shortNames != null) return false; + if (singularName != null ? !singularName.equals(that.singularName) :that.singularName != null) return false; + if (storageVersionHash != null ? !storageVersionHash.equals(that.storageVersionHash) :that.storageVersionHash != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; + if (version != null ? !version.equals(that.version) :that.version != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - categories, - group, - kind, - name, - namespaced, - shortNames, - singularName, - storageVersionHash, - verbs, - version, - super.hashCode()); + return java.util.Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (categories != null && !categories.isEmpty()) { - sb.append("categories:"); - sb.append(categories + ","); - } - if (group != null) { - sb.append("group:"); - sb.append(group + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespaced != null) { - sb.append("namespaced:"); - sb.append(namespaced + ","); - } - if (shortNames != null && !shortNames.isEmpty()) { - sb.append("shortNames:"); - sb.append(shortNames + ","); - } - if (singularName != null) { - sb.append("singularName:"); - sb.append(singularName + ","); - } - if (storageVersionHash != null) { - sb.append("storageVersionHash:"); - sb.append(storageVersionHash + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs + ","); - } - if (version != null) { - sb.append("version:"); - sb.append(version); - } + if (categories != null && !categories.isEmpty()) { sb.append("categories:"); sb.append(categories + ","); } + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespaced != null) { sb.append("namespaced:"); sb.append(namespaced + ","); } + if (shortNames != null && !shortNames.isEmpty()) { sb.append("shortNames:"); sb.append(shortNames + ","); } + if (singularName != null) { sb.append("singularName:"); sb.append(singularName + ","); } + if (storageVersionHash != null) { sb.append("storageVersionHash:"); sb.append(storageVersionHash + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } sb.append("}"); return sb.toString(); } - public A withNamespaced() { return withNamespaced(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java index c339c697ae..7e38aebbba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIResourceListBuilder extends V1APIResourceListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIResourceListBuilder extends V1APIResourceListFluentImpl implements VisitableBuilder{ public V1APIResourceListBuilder() { this(false); } - public V1APIResourceListBuilder(Boolean validationEnabled) { this(new V1APIResourceList(), validationEnabled); } - public V1APIResourceListBuilder(V1APIResourceListFluent fluent) { this(fluent, false); } - - public V1APIResourceListBuilder(V1APIResourceListFluent fluent, Boolean validationEnabled) { + public V1APIResourceListBuilder(V1APIResourceListFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIResourceList(), validationEnabled); } - - public V1APIResourceListBuilder(V1APIResourceListFluent fluent, V1APIResourceList instance) { + public V1APIResourceListBuilder(V1APIResourceListFluent fluent,V1APIResourceList instance) { this(fluent, instance, false); } - - public V1APIResourceListBuilder( - V1APIResourceListFluent fluent, V1APIResourceList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIResourceListBuilder(V1APIResourceListFluent fluent,V1APIResourceList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withGroupVersion(instance.getGroupVersion()); @@ -47,15 +28,13 @@ public V1APIResourceListBuilder( fluent.withResources(instance.getResources()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIResourceListBuilder(V1APIResourceList instance) { - this(instance, false); + this(instance,false); } - - public V1APIResourceListBuilder(V1APIResourceList instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIResourceListBuilder(V1APIResourceList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withGroupVersion(instance.getGroupVersion()); @@ -64,12 +43,10 @@ public V1APIResourceListBuilder(V1APIResourceList instance, Boolean validationEn this.withResources(instance.getResources()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIResourceListFluent fluent; Boolean validationEnabled; - public V1APIResourceList build() { V1APIResourceList buildable = new V1APIResourceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1APIResourceList build() { buildable.setResources(fluent.getResources()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java index 13db683fe4..345407342d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java @@ -1,103 +1,65 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1APIResourceListFluent> extends Fluent { + /** + * Generated + */ +public interface V1APIResourceListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getGroupVersion(); - public A withGroupVersion(String groupVersion); - public Boolean hasGroupVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - - public A addToResources(Integer index, V1APIResource item); - - public A setToResources(Integer index, V1APIResource item); - + public A addToResources(Integer index,V1APIResource item); + public A setToResources(Integer index,V1APIResource item); public A addToResources(io.kubernetes.client.openapi.models.V1APIResource... items); - public A addAllToResources(Collection items); - public A removeFromResources(io.kubernetes.client.openapi.models.V1APIResource... items); - public A removeAllFromResources(Collection items); - public A removeMatchingFromResources(Predicate predicate); - + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public List getResources(); - public List buildResources(); - public V1APIResource buildResource(Integer index); - public V1APIResource buildFirstResource(); - public V1APIResource buildLastResource(); - public V1APIResource buildMatchingResource(Predicate predicate); - public Boolean hasMatchingResource(Predicate predicate); - public A withResources(List resources); - public A withResources(io.kubernetes.client.openapi.models.V1APIResource... resources); - public Boolean hasResources(); - public V1APIResourceListFluent.ResourcesNested addNewResource(); - public V1APIResourceListFluent.ResourcesNested addNewResourceLike(V1APIResource item); - - public V1APIResourceListFluent.ResourcesNested setNewResourceLike( - Integer index, V1APIResource item); - + public V1APIResourceListFluent.ResourcesNested setNewResourceLike(Integer index,V1APIResource item); public V1APIResourceListFluent.ResourcesNested editResource(Integer index); - public V1APIResourceListFluent.ResourcesNested editFirstResource(); - public V1APIResourceListFluent.ResourcesNested editLastResource(); - - public V1APIResourceListFluent.ResourcesNested editMatchingResource( - Predicate predicate); - - public interface ResourcesNested - extends Nested, V1APIResourceFluent> { + public V1APIResourceListFluent.ResourcesNested editMatchingResource(Predicate predicate); + public interface ResourcesNested extends Nested,V1APIResourceFluent>{ public N and(); - public N endResource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java index 094b1e4ce6..9287091947 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIResourceListFluentImpl> extends BaseFluent - implements V1APIResourceListFluent { - public V1APIResourceListFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIResourceListFluentImpl> extends BaseFluent implements V1APIResourceListFluent{ + public V1APIResourceListFluentImpl() { + } public V1APIResourceListFluentImpl(V1APIResourceList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,128 +30,64 @@ public V1APIResourceListFluentImpl(V1APIResourceList instance) { this.withKind(instance.getKind()); this.withResources(instance.getResources()); - } + } private String apiVersion; private String groupVersion; private String kind; private ArrayList resources; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getGroupVersion() { return this.groupVersion; } - public A withGroupVersion(String groupVersion) { - this.groupVersion = groupVersion; - return (A) this; + this.groupVersion=groupVersion; return (A) this; } - public Boolean hasGroupVersion() { return this.groupVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - - public A addToResources(Integer index, V1APIResource item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables - .get("resources") - .add(index >= 0 ? index : _visitables.get("resources").size(), builder); - this.resources.add(index >= 0 ? index : resources.size(), builder); - return (A) this; + public A addToResources(Integer index,V1APIResource item) { + if (this.resources == null) {this.resources = new ArrayList();} + V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(index >= 0 ? index : _visitables.get("resources").size(), builder);this.resources.add(index >= 0 ? index : resources.size(), builder); return (A)this; } - - public A setToResources(Integer index, V1APIResource item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } + public A setToResources(Integer index,V1APIResource item) { + if (this.resources == null) {this.resources = new ArrayList();} V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= _visitables.get("resources").size()) { - _visitables.get("resources").add(builder); - } else { - _visitables.get("resources").set(index, builder); - } - if (index < 0 || index >= resources.size()) { - resources.add(builder); - } else { - resources.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("resources").size()) { _visitables.get("resources").add(builder); } else { _visitables.get("resources").set(index, builder);} + if (index < 0 || index >= resources.size()) { resources.add(builder); } else { resources.set(index, builder);} + return (A)this; } - public A addToResources(io.kubernetes.client.openapi.models.V1APIResource... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").add(builder); - this.resources.add(builder); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").add(builder); - this.resources.add(builder); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; } - public A removeFromResources(io.kubernetes.client.openapi.models.V1APIResource... items) { - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").remove(builder); - if (this.resources != null) { - this.resources.remove(builder); - } - } - return (A) this; + for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").remove(builder);if (this.resources != null) {this.resources.remove(builder);}} return (A)this; } - public A removeAllFromResources(Collection items) { - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").remove(builder); - if (this.resources != null) { - this.resources.remove(builder); - } - } - return (A) this; + for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").remove(builder);if (this.resources != null) {this.resources.remove(builder);}} return (A)this; } - public A removeMatchingFromResources(Predicate predicate) { if (resources == null) return (A) this; final Iterator each = resources.iterator(); @@ -167,191 +99,117 @@ public A removeMatchingFromResources(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public List getResources() { return resources != null ? build(resources) : null; } - public List buildResources() { return resources != null ? build(resources) : null; } - public V1APIResource buildResource(Integer index) { return this.resources.get(index).build(); } - public V1APIResource buildFirstResource() { return this.resources.get(0).build(); } - public V1APIResource buildLastResource() { return this.resources.get(resources.size() - 1).build(); } - public V1APIResource buildMatchingResource(Predicate predicate) { - for (V1APIResourceBuilder item : resources) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1APIResourceBuilder item: resources) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingResource(Predicate predicate) { - for (V1APIResourceBuilder item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1APIResourceBuilder item: resources) { if(predicate.test(item)){ return true;} } return false; } - public A withResources(List resources) { - if (this.resources != null) { - _visitables.get("resources").removeAll(this.resources); - } - if (resources != null) { - this.resources = new ArrayList(); - for (V1APIResource item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; + if (this.resources != null) { _visitables.get("resources").removeAll(this.resources);} + if (resources != null) {this.resources = new ArrayList(); for (V1APIResource item : resources){this.addToResources(item);}} else { this.resources = null;} return (A) this; } - public A withResources(io.kubernetes.client.openapi.models.V1APIResource... resources) { - if (this.resources != null) { - this.resources.clear(); - } - if (resources != null) { - for (V1APIResource item : resources) { - this.addToResources(item); - } - } - return (A) this; + if (this.resources != null) {this.resources.clear();} + if (resources != null) {for (V1APIResource item :resources){ this.addToResources(item);}} return (A) this; } - public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public V1APIResourceListFluent.ResourcesNested addNewResource() { return new V1APIResourceListFluentImpl.ResourcesNestedImpl(); } - public V1APIResourceListFluent.ResourcesNested addNewResourceLike(V1APIResource item) { return new V1APIResourceListFluentImpl.ResourcesNestedImpl(-1, item); } - - public V1APIResourceListFluent.ResourcesNested setNewResourceLike( - Integer index, V1APIResource item) { + public V1APIResourceListFluent.ResourcesNested setNewResourceLike(Integer index,V1APIResource item) { return new V1APIResourceListFluentImpl.ResourcesNestedImpl(index, item); } - public V1APIResourceListFluent.ResourcesNested editResource(Integer index) { - if (resources.size() <= index) - throw new RuntimeException("Can't edit resources. Index exceeds size."); + if (resources.size() <= index) throw new RuntimeException("Can't edit resources. Index exceeds size."); return setNewResourceLike(index, buildResource(index)); } - public V1APIResourceListFluent.ResourcesNested editFirstResource() { - if (resources.size() == 0) - throw new RuntimeException("Can't edit first resources. The list is empty."); + if (resources.size() == 0) throw new RuntimeException("Can't edit first resources. The list is empty."); return setNewResourceLike(0, buildResource(0)); } - public V1APIResourceListFluent.ResourcesNested editLastResource() { int index = resources.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last resources. The list is empty."); return setNewResourceLike(index, buildResource(index)); } - - public V1APIResourceListFluent.ResourcesNested editMatchingResource( - Predicate predicate) { + public V1APIResourceListFluent.ResourcesNested editMatchingResource(Predicate predicate) { int index = -1; - for (int i = 0; i < resources.size(); i++) { - if (predicate.test(resources.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1APIResourceFluentImpl> - implements V1APIResourceListFluent.ResourcesNested, Nested { - ResourcesNestedImpl(Integer index, V1APIResource item) { + class ResourcesNestedImpl extends V1APIResourceFluentImpl> implements V1APIResourceListFluent.ResourcesNested,Nested{ + ResourcesNestedImpl(Integer index,V1APIResource item) { this.index = index; this.builder = new V1APIResourceBuilder(this, item); } - ResourcesNestedImpl() { this.index = -1; this.builder = new V1APIResourceBuilder(this); } - V1APIResourceBuilder builder; Integer index; - public N and() { - return (N) V1APIResourceListFluentImpl.this.setToResources(index, builder.build()); + return (N) V1APIResourceListFluentImpl.this.setToResources(index,builder.build()); } - public N endResource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java index b357898729..b93a7a2c31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIServiceBuilder extends V1APIServiceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIServiceBuilder extends V1APIServiceFluentImpl implements VisitableBuilder{ public V1APIServiceBuilder() { this(false); } - public V1APIServiceBuilder(Boolean validationEnabled) { this(new V1APIService(), validationEnabled); } - public V1APIServiceBuilder(V1APIServiceFluent fluent) { this(fluent, false); } - - public V1APIServiceBuilder(V1APIServiceFluent fluent, Boolean validationEnabled) { + public V1APIServiceBuilder(V1APIServiceFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIService(), validationEnabled); } - - public V1APIServiceBuilder(V1APIServiceFluent fluent, V1APIService instance) { + public V1APIServiceBuilder(V1APIServiceFluent fluent,V1APIService instance) { this(fluent, instance, false); } - - public V1APIServiceBuilder( - V1APIServiceFluent fluent, V1APIService instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIServiceBuilder(V1APIServiceFluent fluent,V1APIService instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1APIServiceBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIServiceBuilder(V1APIService instance) { - this(instance, false); + this(instance,false); } - - public V1APIServiceBuilder(V1APIService instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIServiceBuilder(V1APIService instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1APIServiceBuilder(V1APIService instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIServiceFluent fluent; Boolean validationEnabled; - public V1APIService build() { V1APIService buildable = new V1APIService(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1APIService build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java index ddf28b5501..42f19cc961 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIServiceConditionBuilder - extends V1APIServiceConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIServiceConditionBuilder extends V1APIServiceConditionFluentImpl implements VisitableBuilder{ public V1APIServiceConditionBuilder() { this(false); } - public V1APIServiceConditionBuilder(Boolean validationEnabled) { this(new V1APIServiceCondition(), validationEnabled); } - public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent) { this(fluent, false); } - - public V1APIServiceConditionBuilder( - V1APIServiceConditionFluent fluent, Boolean validationEnabled) { + public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIServiceCondition(), validationEnabled); } - - public V1APIServiceConditionBuilder( - V1APIServiceConditionFluent fluent, V1APIServiceCondition instance) { + public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,V1APIServiceCondition instance) { this(fluent, instance, false); } - - public V1APIServiceConditionBuilder( - V1APIServiceConditionFluent fluent, - V1APIServiceCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,V1APIServiceCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,15 +30,13 @@ public V1APIServiceConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIServiceConditionBuilder(V1APIServiceCondition instance) { - this(instance, false); + this(instance,false); } - - public V1APIServiceConditionBuilder(V1APIServiceCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIServiceConditionBuilder(V1APIServiceCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -73,12 +47,10 @@ public V1APIServiceConditionBuilder(V1APIServiceCondition instance, Boolean vali this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIServiceConditionFluent fluent; Boolean validationEnabled; - public V1APIServiceCondition build() { V1APIServiceCondition buildable = new V1APIServiceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -88,4 +60,5 @@ public V1APIServiceCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java index b4f7a1f4ec..89b188bb53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1APIServiceConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1APIServiceConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java index f4c02b9923..fee708c498 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIServiceConditionFluentImpl> - extends BaseFluent implements V1APIServiceConditionFluent { - public V1APIServiceConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIServiceConditionFluentImpl> extends BaseFluent implements V1APIServiceConditionFluent{ + public V1APIServiceConditionFluentImpl() { + } public V1APIServiceConditionFluentImpl(V1APIServiceCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1APIServiceConditionFluentImpl(V1APIServiceCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1APIServiceConditionFluentImpl that = (V1APIServiceConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java index 546ddb37ab..bd1889c8fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1APIServiceFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1APIServiceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1APIServiceFluent.MetadataNested withNewMetadata(); - public V1APIServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1APIServiceFluent.MetadataNested editMetadata(); - public V1APIServiceFluent.MetadataNested editOrNewMetadata(); - public V1APIServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1APIServiceSpec getSpec(); - public V1APIServiceSpec buildSpec(); - public A withSpec(V1APIServiceSpec spec); - public Boolean hasSpec(); - public V1APIServiceFluent.SpecNested withNewSpec(); - public V1APIServiceFluent.SpecNested withNewSpecLike(V1APIServiceSpec item); - public V1APIServiceFluent.SpecNested editSpec(); - public V1APIServiceFluent.SpecNested editOrNewSpec(); - public V1APIServiceFluent.SpecNested editOrNewSpecLike(V1APIServiceSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1APIServiceStatus getStatus(); - public V1APIServiceStatus buildStatus(); - public A withStatus(V1APIServiceStatus status); - public Boolean hasStatus(); - public V1APIServiceFluent.StatusNested withNewStatus(); - public V1APIServiceFluent.StatusNested withNewStatusLike(V1APIServiceStatus item); - public V1APIServiceFluent.StatusNested editStatus(); - public V1APIServiceFluent.StatusNested editOrNewStatus(); - public V1APIServiceFluent.StatusNested editOrNewStatusLike(V1APIServiceStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1APIServiceSpecFluent> { + public interface SpecNested extends Nested,V1APIServiceSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1APIServiceStatusFluent> { + public interface StatusNested extends Nested,V1APIServiceStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java index a296cc1b3e..49eb3164df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIServiceFluentImpl> extends BaseFluent - implements V1APIServiceFluent { - public V1APIServiceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIServiceFluentImpl> extends BaseFluent implements V1APIServiceFluent{ + public V1APIServiceFluentImpl() { + } public V1APIServiceFluentImpl(V1APIService instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1APIServiceFluentImpl(V1APIService instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1APIServiceSpecBuilder spec; private V1APIServiceStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1APIServiceFluent.MetadataNested withNewMetadata() { return new V1APIServiceFluentImpl.MetadataNestedImpl(); } - public V1APIServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1APIServiceFluentImpl.MetadataNestedImpl(item); } - public V1APIServiceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1APIServiceFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1APIServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1APIServiceSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1APIServiceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1APIServiceSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1APIServiceSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1APIServiceSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1APIServiceFluent.SpecNested withNewSpec() { return new V1APIServiceFluentImpl.SpecNestedImpl(); } - public V1APIServiceFluent.SpecNested withNewSpecLike(V1APIServiceSpec item) { return new V1APIServiceFluentImpl.SpecNestedImpl(item); } - public V1APIServiceFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1APIServiceFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1APIServiceSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1APIServiceSpecBuilder().build()); } - public V1APIServiceFluent.SpecNested editOrNewSpecLike(V1APIServiceSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1APIServiceStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1APIServiceStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1APIServiceStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1APIServiceStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1APIServiceStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1APIServiceFluent.StatusNested withNewStatus() { return new V1APIServiceFluentImpl.StatusNestedImpl(); } - public V1APIServiceFluent.StatusNested withNewStatusLike(V1APIServiceStatus item) { return new V1APIServiceFluentImpl.StatusNestedImpl(item); } - public V1APIServiceFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1APIServiceFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1APIServiceStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1APIServiceStatusBuilder().build()); } - public V1APIServiceFluent.StatusNested editOrNewStatusLike(V1APIServiceStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1APIServiceFluentImpl that = (V1APIServiceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1APIServiceFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1APIServiceFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1APIServiceFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1APIServiceSpecFluentImpl> - implements V1APIServiceFluent.SpecNested, Nested { + class SpecNestedImpl extends V1APIServiceSpecFluentImpl> implements V1APIServiceFluent.SpecNested,Nested{ SpecNestedImpl(V1APIServiceSpec item) { this.builder = new V1APIServiceSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1APIServiceSpecBuilder(this); } - V1APIServiceSpecBuilder builder; - public N and() { return (N) V1APIServiceFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1APIServiceStatusFluentImpl> - implements V1APIServiceFluent.StatusNested, Nested { + class StatusNestedImpl extends V1APIServiceStatusFluentImpl> implements V1APIServiceFluent.StatusNested,Nested{ StatusNestedImpl(V1APIServiceStatus item) { this.builder = new V1APIServiceStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1APIServiceStatusBuilder(this); } - V1APIServiceStatusBuilder builder; - public N and() { return (N) V1APIServiceFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java index 364c4c2be8..4a6093e7fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIServiceListBuilder extends V1APIServiceListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIServiceListBuilder extends V1APIServiceListFluentImpl implements VisitableBuilder{ public V1APIServiceListBuilder() { this(false); } - public V1APIServiceListBuilder(Boolean validationEnabled) { this(new V1APIServiceList(), validationEnabled); } - public V1APIServiceListBuilder(V1APIServiceListFluent fluent) { this(fluent, false); } - - public V1APIServiceListBuilder(V1APIServiceListFluent fluent, Boolean validationEnabled) { + public V1APIServiceListBuilder(V1APIServiceListFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIServiceList(), validationEnabled); } - - public V1APIServiceListBuilder(V1APIServiceListFluent fluent, V1APIServiceList instance) { + public V1APIServiceListBuilder(V1APIServiceListFluent fluent,V1APIServiceList instance) { this(fluent, instance, false); } - - public V1APIServiceListBuilder( - V1APIServiceListFluent fluent, V1APIServiceList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIServiceListBuilder(V1APIServiceListFluent fluent,V1APIServiceList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1APIServiceListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIServiceListBuilder(V1APIServiceList instance) { - this(instance, false); + this(instance,false); } - - public V1APIServiceListBuilder(V1APIServiceList instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIServiceListBuilder(V1APIServiceList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1APIServiceListBuilder(V1APIServiceList instance, Boolean validationEnab this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIServiceListFluent fluent; Boolean validationEnabled; - public V1APIServiceList build() { V1APIServiceList buildable = new V1APIServiceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1APIServiceList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java index b79f6baa22..43c7265773 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1APIServiceListFluent> extends Fluent { + /** + * Generated + */ +public interface V1APIServiceListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1APIService item); - - public A setToItems(Integer index, V1APIService item); - + public A addToItems(Integer index,V1APIService item); + public A setToItems(Integer index,V1APIService item); public A addToItems(io.kubernetes.client.openapi.models.V1APIService... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1APIService... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1APIService buildItem(Integer index); - public V1APIService buildFirstItem(); - public V1APIService buildLastItem(); - public V1APIService buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1APIService... items); - public Boolean hasItems(); - public V1APIServiceListFluent.ItemsNested addNewItem(); - public V1APIServiceListFluent.ItemsNested addNewItemLike(V1APIService item); - - public V1APIServiceListFluent.ItemsNested setNewItemLike(Integer index, V1APIService item); - + public V1APIServiceListFluent.ItemsNested setNewItemLike(Integer index,V1APIService item); public V1APIServiceListFluent.ItemsNested editItem(Integer index); - public V1APIServiceListFluent.ItemsNested editFirstItem(); - public V1APIServiceListFluent.ItemsNested editLastItem(); - - public V1APIServiceListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1APIServiceListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1APIServiceListFluent.MetadataNested withNewMetadata(); - public V1APIServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1APIServiceListFluent.MetadataNested editMetadata(); - public V1APIServiceListFluent.MetadataNested editOrNewMetadata(); - public V1APIServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1APIServiceFluent> { + public interface ItemsNested extends Nested,V1APIServiceFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java index b7d9dbd42d..e2d195b57a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIServiceListFluentImpl> extends BaseFluent - implements V1APIServiceListFluent { - public V1APIServiceListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIServiceListFluentImpl> extends BaseFluent implements V1APIServiceListFluent{ + public V1APIServiceListFluentImpl() { + } public V1APIServiceListFluentImpl(V1APIServiceList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1APIServiceListFluentImpl(V1APIServiceList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1APIService item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1APIService item) { + if (this.items == null) {this.items = new ArrayList();} + V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1APIService item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1APIService item) { + if (this.items == null) {this.items = new ArrayList();} V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1APIService... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1APIService... items) { - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1APIService buildItem(Integer index) { return this.items.get(index).build(); } - public V1APIService buildFirstItem() { return this.items.get(0).build(); } - public V1APIService buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1APIService buildMatchingItem(Predicate predicate) { - for (V1APIServiceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1APIServiceBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1APIServiceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1APIServiceBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1APIService item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1APIService item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1APIService... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1APIService item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1APIService item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1APIServiceListFluent.ItemsNested addNewItem() { return new V1APIServiceListFluentImpl.ItemsNestedImpl(); } - public V1APIServiceListFluent.ItemsNested addNewItemLike(V1APIService item) { return new V1APIServiceListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1APIServiceListFluent.ItemsNested setNewItemLike(Integer index, V1APIService item) { + public V1APIServiceListFluent.ItemsNested setNewItemLike(Integer index,V1APIService item) { return new V1APIServiceListFluentImpl.ItemsNestedImpl(index, item); } - public V1APIServiceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1APIServiceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1APIServiceListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1APIServiceListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1APIServiceListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1APIServiceListFluentImpl.MetadataNestedImpl(); } - public V1APIServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1APIServiceListFluentImpl.MetadataNestedImpl(item); } - public V1APIServiceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1APIServiceListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1APIServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1APIServiceListFluentImpl that = (V1APIServiceListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1APIServiceFluentImpl> - implements V1APIServiceListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1APIService item) { + class ItemsNestedImpl extends V1APIServiceFluentImpl> implements V1APIServiceListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1APIService item) { this.index = index; this.builder = new V1APIServiceBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1APIServiceBuilder(this); } - V1APIServiceBuilder builder; Integer index; - public N and() { - return (N) V1APIServiceListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1APIServiceListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1APIServiceListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1APIServiceListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1APIServiceListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java index 610b8b750d..5bd2d647b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluentImpl implements VisitableBuilder{ public V1APIServiceSpecBuilder() { this(false); } - public V1APIServiceSpecBuilder(Boolean validationEnabled) { this(new V1APIServiceSpec(), validationEnabled); } - public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent) { this(fluent, false); } - - public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent, Boolean validationEnabled) { + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIServiceSpec(), validationEnabled); } - - public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent, V1APIServiceSpec instance) { + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,V1APIServiceSpec instance) { this(fluent, instance, false); } - - public V1APIServiceSpecBuilder( - V1APIServiceSpecFluent fluent, V1APIServiceSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,V1APIServiceSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCaBundle(instance.getCaBundle()); fluent.withGroup(instance.getGroup()); @@ -53,15 +34,13 @@ public V1APIServiceSpecBuilder( fluent.withVersionPriority(instance.getVersionPriority()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIServiceSpecBuilder(V1APIServiceSpec instance) { - this(instance, false); + this(instance,false); } - - public V1APIServiceSpecBuilder(V1APIServiceSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIServiceSpecBuilder(V1APIServiceSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withCaBundle(instance.getCaBundle()); this.withGroup(instance.getGroup()); @@ -76,12 +55,10 @@ public V1APIServiceSpecBuilder(V1APIServiceSpec instance, Boolean validationEnab this.withVersionPriority(instance.getVersionPriority()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIServiceSpecFluent fluent; Boolean validationEnabled; - public V1APIServiceSpec build() { V1APIServiceSpec buildable = new V1APIServiceSpec(); buildable.setCaBundle(fluent.getCaBundle()); @@ -93,4 +70,5 @@ public V1APIServiceSpec build() { buildable.setVersionPriority(fluent.getVersionPriority()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java index 524a462e1f..0ad8fecfb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java @@ -1,104 +1,63 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; import java.util.Collection; +import java.lang.Boolean; -/** Generated */ -public interface V1APIServiceSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1APIServiceSpecFluent> extends Fluent{ public A withCaBundle(byte... caBundle); - public byte[] getCaBundle(); - - public A addToCaBundle(Integer index, Byte item); - - public A setToCaBundle(Integer index, Byte item); - + public A addToCaBundle(Integer index,Byte item); + public A setToCaBundle(Integer index,Byte item); public A addToCaBundle(java.lang.Byte... items); - public A addAllToCaBundle(Collection items); - public A removeFromCaBundle(java.lang.Byte... items); - public A removeAllFromCaBundle(Collection items); - public Boolean hasCaBundle(); - public String getGroup(); - public A withGroup(String group); - public Boolean hasGroup(); - public Integer getGroupPriorityMinimum(); - public A withGroupPriorityMinimum(Integer groupPriorityMinimum); - public Boolean hasGroupPriorityMinimum(); - public Boolean getInsecureSkipTLSVerify(); - public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify); - public Boolean hasInsecureSkipTLSVerify(); - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public ApiregistrationV1ServiceReference getService(); - public ApiregistrationV1ServiceReference buildService(); - public A withService(ApiregistrationV1ServiceReference service); - public Boolean hasService(); - public V1APIServiceSpecFluent.ServiceNested withNewService(); - - public V1APIServiceSpecFluent.ServiceNested withNewServiceLike( - ApiregistrationV1ServiceReference item); - + public V1APIServiceSpecFluent.ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item); public V1APIServiceSpecFluent.ServiceNested editService(); - public V1APIServiceSpecFluent.ServiceNested editOrNewService(); - - public V1APIServiceSpecFluent.ServiceNested editOrNewServiceLike( - ApiregistrationV1ServiceReference item); - + public V1APIServiceSpecFluent.ServiceNested editOrNewServiceLike(ApiregistrationV1ServiceReference item); public String getVersion(); - public A withVersion(String version); - public Boolean hasVersion(); - public Integer getVersionPriority(); - public A withVersionPriority(Integer versionPriority); - public Boolean hasVersionPriority(); - public A withInsecureSkipTLSVerify(); - - public interface ServiceNested - extends Nested, - ApiregistrationV1ServiceReferenceFluent> { + public interface ServiceNested extends Nested,ApiregistrationV1ServiceReferenceFluent>{ public N and(); - public N endService(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java index 8ecfe330f4..e510da5f84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java @@ -1,29 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIServiceSpecFluentImpl> extends BaseFluent - implements V1APIServiceSpecFluent { - public V1APIServiceSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIServiceSpecFluentImpl> extends BaseFluent implements V1APIServiceSpecFluent{ + public V1APIServiceSpecFluentImpl() { + } public V1APIServiceSpecFluentImpl(V1APIServiceSpec instance) { this.withCaBundle(instance.getCaBundle()); @@ -38,8 +34,8 @@ public V1APIServiceSpecFluentImpl(V1APIServiceSpec instance) { this.withVersion(instance.getVersion()); this.withVersionPriority(instance.getVersionPriority()); - } + } private List caBundle; private String group; private Integer groupPriorityMinimum; @@ -47,301 +43,176 @@ public V1APIServiceSpecFluentImpl(V1APIServiceSpec instance) { private ApiregistrationV1ServiceReferenceBuilder service; private String version; private Integer versionPriority; - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } - } - return (A) this; + if (this.caBundle != null) {this.caBundle.clear();} + if (caBundle != null) {for (byte item :caBundle){ this.addToCaBundle(item);}} return (A) this; } - public byte[] getCaBundle() { - // This needs to work with primitives, so we use arrays. - int size = caBundle != null ? caBundle.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : caBundle) { - result[index++] = item; - } - return result; - } + //This needs to work with primitives, so we use arrays. +int size = caBundle != null ? caBundle.size() : 0; +byte[] result = new byte[size]; +if (size == 0) { + return result; +} +int index = 0; +for (byte item : caBundle) { + result[index++]=item; +} +return result; - public A addToCaBundle(Integer index, Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } + } + public A addToCaBundle(Integer index,Byte item) { + if (this.caBundle == null) {this.caBundle = new ArrayList();} this.caBundle.add(index, item); - return (A) this; + return (A)this; } - - public A setToCaBundle(Integer index, Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.set(index, item); - return (A) this; + public A setToCaBundle(Integer index,Byte item) { + if (this.caBundle == null) {this.caBundle = new ArrayList();} + this.caBundle.set(index, item); return (A)this; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - for (Byte item : items) { - this.caBundle.add(item); - } - return (A) this; + if (this.caBundle == null) {this.caBundle = new ArrayList();} + for (Byte item : items) {this.caBundle.add(item);} return (A)this; } - public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - for (Byte item : items) { - this.caBundle.add(item); - } - return (A) this; + if (this.caBundle == null) {this.caBundle = new ArrayList();} + for (Byte item : items) {this.caBundle.add(item);} return (A)this; } - public A removeFromCaBundle(java.lang.Byte... items) { - for (Byte item : items) { - if (this.caBundle != null) { - this.caBundle.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.caBundle!= null){ this.caBundle.remove(item);}} return (A)this; } - public A removeAllFromCaBundle(Collection items) { - for (Byte item : items) { - if (this.caBundle != null) { - this.caBundle.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.caBundle!= null){ this.caBundle.remove(item);}} return (A)this; } - public Boolean hasCaBundle() { return caBundle != null && !caBundle.isEmpty(); } - public String getGroup() { return this.group; } - public A withGroup(String group) { - this.group = group; - return (A) this; + this.group=group; return (A) this; } - public Boolean hasGroup() { return this.group != null; } - public Integer getGroupPriorityMinimum() { return this.groupPriorityMinimum; } - public A withGroupPriorityMinimum(Integer groupPriorityMinimum) { - this.groupPriorityMinimum = groupPriorityMinimum; - return (A) this; + this.groupPriorityMinimum=groupPriorityMinimum; return (A) this; } - public Boolean hasGroupPriorityMinimum() { return this.groupPriorityMinimum != null; } - public Boolean getInsecureSkipTLSVerify() { return this.insecureSkipTLSVerify; } - public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { - this.insecureSkipTLSVerify = insecureSkipTLSVerify; - return (A) this; + this.insecureSkipTLSVerify=insecureSkipTLSVerify; return (A) this; } - public Boolean hasInsecureSkipTLSVerify() { return this.insecureSkipTLSVerify != null; } - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public ApiregistrationV1ServiceReference getService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public ApiregistrationV1ServiceReference buildService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public A withService(ApiregistrationV1ServiceReference service) { _visitables.get("service").remove(this.service); - if (service != null) { - this.service = new ApiregistrationV1ServiceReferenceBuilder(service); - _visitables.get("service").add(this.service); - } else { - this.service = null; - _visitables.get("service").remove(this.service); - } - return (A) this; + if (service!=null){ this.service= new ApiregistrationV1ServiceReferenceBuilder(service); _visitables.get("service").add(this.service);} else { this.service = null; _visitables.get("service").remove(this.service); } return (A) this; } - public Boolean hasService() { return this.service != null; } - public V1APIServiceSpecFluent.ServiceNested withNewService() { return new V1APIServiceSpecFluentImpl.ServiceNestedImpl(); } - - public V1APIServiceSpecFluent.ServiceNested withNewServiceLike( - ApiregistrationV1ServiceReference item) { + public V1APIServiceSpecFluent.ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item) { return new V1APIServiceSpecFluentImpl.ServiceNestedImpl(item); } - public V1APIServiceSpecFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public V1APIServiceSpecFluent.ServiceNested editOrNewService() { - return withNewServiceLike( - getService() != null - ? getService() - : new ApiregistrationV1ServiceReferenceBuilder().build()); + return withNewServiceLike(getService() != null ? getService(): new ApiregistrationV1ServiceReferenceBuilder().build()); } - - public V1APIServiceSpecFluent.ServiceNested editOrNewServiceLike( - ApiregistrationV1ServiceReference item) { - return withNewServiceLike(getService() != null ? getService() : item); + public V1APIServiceSpecFluent.ServiceNested editOrNewServiceLike(ApiregistrationV1ServiceReference item) { + return withNewServiceLike(getService() != null ? getService(): item); } - public String getVersion() { return this.version; } - public A withVersion(String version) { - this.version = version; - return (A) this; + this.version=version; return (A) this; } - public Boolean hasVersion() { return this.version != null; } - public Integer getVersionPriority() { return this.versionPriority; } - public A withVersionPriority(Integer versionPriority) { - this.versionPriority = versionPriority; - return (A) this; + this.versionPriority=versionPriority; return (A) this; } - public Boolean hasVersionPriority() { return this.versionPriority != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1APIServiceSpecFluentImpl that = (V1APIServiceSpecFluentImpl) o; - if (caBundle != null ? !caBundle.equals(that.caBundle) : that.caBundle != null) return false; - if (group != null ? !group.equals(that.group) : that.group != null) return false; - if (groupPriorityMinimum != null - ? !groupPriorityMinimum.equals(that.groupPriorityMinimum) - : that.groupPriorityMinimum != null) return false; - if (insecureSkipTLSVerify != null - ? !insecureSkipTLSVerify.equals(that.insecureSkipTLSVerify) - : that.insecureSkipTLSVerify != null) return false; - if (service != null ? !service.equals(that.service) : that.service != null) return false; - if (version != null ? !version.equals(that.version) : that.version != null) return false; - if (versionPriority != null - ? !versionPriority.equals(that.versionPriority) - : that.versionPriority != null) return false; + if (caBundle != null ? !caBundle.equals(that.caBundle) :that.caBundle != null) return false; + if (group != null ? !group.equals(that.group) :that.group != null) return false; + if (groupPriorityMinimum != null ? !groupPriorityMinimum.equals(that.groupPriorityMinimum) :that.groupPriorityMinimum != null) return false; + if (insecureSkipTLSVerify != null ? !insecureSkipTLSVerify.equals(that.insecureSkipTLSVerify) :that.insecureSkipTLSVerify != null) return false; + if (service != null ? !service.equals(that.service) :that.service != null) return false; + if (version != null ? !version.equals(that.version) :that.version != null) return false; + if (versionPriority != null ? !versionPriority.equals(that.versionPriority) :that.versionPriority != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - caBundle, - group, - groupPriorityMinimum, - insecureSkipTLSVerify, - service, - version, - versionPriority, - super.hashCode()); + return java.util.Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { - sb.append("caBundle:"); - sb.append(caBundle + ","); - } - if (group != null) { - sb.append("group:"); - sb.append(group + ","); - } - if (groupPriorityMinimum != null) { - sb.append("groupPriorityMinimum:"); - sb.append(groupPriorityMinimum + ","); - } - if (insecureSkipTLSVerify != null) { - sb.append("insecureSkipTLSVerify:"); - sb.append(insecureSkipTLSVerify + ","); - } - if (service != null) { - sb.append("service:"); - sb.append(service + ","); - } - if (version != null) { - sb.append("version:"); - sb.append(version + ","); - } - if (versionPriority != null) { - sb.append("versionPriority:"); - sb.append(versionPriority); - } + if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (groupPriorityMinimum != null) { sb.append("groupPriorityMinimum:"); sb.append(groupPriorityMinimum + ","); } + if (insecureSkipTLSVerify != null) { sb.append("insecureSkipTLSVerify:"); sb.append(insecureSkipTLSVerify + ","); } + if (service != null) { sb.append("service:"); sb.append(service + ","); } + if (version != null) { sb.append("version:"); sb.append(version + ","); } + if (versionPriority != null) { sb.append("versionPriority:"); sb.append(versionPriority); } sb.append("}"); return sb.toString(); } - public A withInsecureSkipTLSVerify() { return withInsecureSkipTLSVerify(true); } - - class ServiceNestedImpl - extends ApiregistrationV1ServiceReferenceFluentImpl> - implements V1APIServiceSpecFluent.ServiceNested, Nested { + class ServiceNestedImpl extends ApiregistrationV1ServiceReferenceFluentImpl> implements V1APIServiceSpecFluent.ServiceNested,Nested{ ServiceNestedImpl(ApiregistrationV1ServiceReference item) { this.builder = new ApiregistrationV1ServiceReferenceBuilder(this, item); } - ServiceNestedImpl() { this.builder = new ApiregistrationV1ServiceReferenceBuilder(this); } - ApiregistrationV1ServiceReferenceBuilder builder; - public N and() { return (N) V1APIServiceSpecFluentImpl.this.withService(builder.build()); } - public N endService() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java index 8f37a189fa..2874223d1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java @@ -1,68 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1APIServiceStatusBuilder - extends V1APIServiceStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIServiceStatusBuilder extends V1APIServiceStatusFluentImpl implements VisitableBuilder{ public V1APIServiceStatusBuilder() { this(false); } - public V1APIServiceStatusBuilder(Boolean validationEnabled) { this(new V1APIServiceStatus(), validationEnabled); } - public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent) { this(fluent, false); } - - public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent, Boolean validationEnabled) { + public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIServiceStatus(), validationEnabled); } - - public V1APIServiceStatusBuilder( - V1APIServiceStatusFluent fluent, V1APIServiceStatus instance) { + public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,V1APIServiceStatus instance) { this(fluent, instance, false); } - - public V1APIServiceStatusBuilder( - V1APIServiceStatusFluent fluent, V1APIServiceStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,V1APIServiceStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIServiceStatusBuilder(V1APIServiceStatus instance) { - this(instance, false); + this(instance,false); } - - public V1APIServiceStatusBuilder(V1APIServiceStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIServiceStatusBuilder(V1APIServiceStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIServiceStatusFluent fluent; Boolean validationEnabled; - public V1APIServiceStatus build() { V1APIServiceStatus buildable = new V1APIServiceStatus(); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java index 26b586f4e7..bc0e980a85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java @@ -1,87 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1APIServiceStatusFluent> extends Fluent { - public A addToConditions(Integer index, V1APIServiceCondition item); - - public A setToConditions(Integer index, V1APIServiceCondition item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1APIServiceStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1APIServiceCondition item); + public A setToConditions(Integer index,V1APIServiceCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1APIServiceCondition buildCondition(Integer index); - public V1APIServiceCondition buildFirstCondition(); - public V1APIServiceCondition buildLastCondition(); - - public V1APIServiceCondition buildMatchingCondition( - Predicate predicate); - + public V1APIServiceCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... conditions); - public Boolean hasConditions(); - public V1APIServiceStatusFluent.ConditionsNested addNewCondition(); - - public V1APIServiceStatusFluent.ConditionsNested addNewConditionLike( - V1APIServiceCondition item); - - public V1APIServiceStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1APIServiceCondition item); - + public V1APIServiceStatusFluent.ConditionsNested addNewConditionLike(V1APIServiceCondition item); + public V1APIServiceStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1APIServiceCondition item); public V1APIServiceStatusFluent.ConditionsNested editCondition(Integer index); - public V1APIServiceStatusFluent.ConditionsNested editFirstCondition(); - public V1APIServiceStatusFluent.ConditionsNested editLastCondition(); - - public V1APIServiceStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, V1APIServiceConditionFluent> { + public V1APIServiceStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1APIServiceConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java index 4b86713ef5..a41276d889 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java @@ -1,114 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIServiceStatusFluentImpl> - extends BaseFluent implements V1APIServiceStatusFluent { - public V1APIServiceStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIServiceStatusFluentImpl> extends BaseFluent implements V1APIServiceStatusFluent{ + public V1APIServiceStatusFluentImpl() { + } public V1APIServiceStatusFluentImpl(V1APIServiceStatus instance) { this.withConditions(instance.getConditions()); - } + } private ArrayList conditions; - - public A addToConditions(Integer index, V1APIServiceCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(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 addToConditions(Integer index,V1APIServiceCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(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(Integer index, V1APIServiceCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1APIServiceCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(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; + 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.V1APIServiceCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(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 ArrayList(); - } - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { + for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(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(); @@ -120,176 +63,111 @@ public A removeMatchingFromConditions(Predicate pr each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1APIServiceCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1APIServiceCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1APIServiceCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1APIServiceCondition buildMatchingCondition( - Predicate predicate) { - for (V1APIServiceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1APIServiceCondition buildMatchingCondition(Predicate predicate) { + for (V1APIServiceConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1APIServiceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1APIServiceConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1APIServiceCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1APIServiceCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1APIServiceCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1APIServiceCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1APIServiceStatusFluent.ConditionsNested addNewCondition() { return new V1APIServiceStatusFluentImpl.ConditionsNestedImpl(); } - - public V1APIServiceStatusFluent.ConditionsNested addNewConditionLike( - V1APIServiceCondition item) { + public V1APIServiceStatusFluent.ConditionsNested addNewConditionLike(V1APIServiceCondition item) { return new V1APIServiceStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1APIServiceStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1APIServiceCondition item) { + public V1APIServiceStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1APIServiceCondition item) { return new V1APIServiceStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1APIServiceStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1APIServiceStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1APIServiceStatusFluent.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 V1APIServiceStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1APIServiceStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1APIServiceConditionFluentImpl> - implements V1APIServiceStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1APIServiceCondition item) { + class ConditionsNestedImpl extends V1APIServiceConditionFluentImpl> implements V1APIServiceStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1APIServiceCondition item) { this.index = index; this.builder = new V1APIServiceConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1APIServiceConditionBuilder(this); } - V1APIServiceConditionBuilder builder; Integer index; - public N and() { - return (N) V1APIServiceStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1APIServiceStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java index 40e4ca10a7..635573ca43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1APIVersionsBuilder extends V1APIVersionsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1APIVersionsBuilder extends V1APIVersionsFluentImpl implements VisitableBuilder{ public V1APIVersionsBuilder() { this(false); } - public V1APIVersionsBuilder(Boolean validationEnabled) { this(new V1APIVersions(), validationEnabled); } - public V1APIVersionsBuilder(V1APIVersionsFluent fluent) { this(fluent, false); } - - public V1APIVersionsBuilder(V1APIVersionsFluent fluent, Boolean validationEnabled) { + public V1APIVersionsBuilder(V1APIVersionsFluent fluent,Boolean validationEnabled) { this(fluent, new V1APIVersions(), validationEnabled); } - - public V1APIVersionsBuilder(V1APIVersionsFluent fluent, V1APIVersions instance) { + public V1APIVersionsBuilder(V1APIVersionsFluent fluent,V1APIVersions instance) { this(fluent, instance, false); } - - public V1APIVersionsBuilder( - V1APIVersionsFluent fluent, V1APIVersions instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1APIVersionsBuilder(V1APIVersionsFluent fluent,V1APIVersions instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1APIVersionsBuilder( fluent.withVersions(instance.getVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1APIVersionsBuilder(V1APIVersions instance) { - this(instance, false); + this(instance,false); } - - public V1APIVersionsBuilder(V1APIVersions instance, Boolean validationEnabled) { - this.fluent = this; + public V1APIVersionsBuilder(V1APIVersions instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1APIVersionsBuilder(V1APIVersions instance, Boolean validationEnabled) { this.withVersions(instance.getVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1APIVersionsFluent fluent; Boolean validationEnabled; - public V1APIVersions build() { V1APIVersions buildable = new V1APIVersions(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1APIVersions build() { buildable.setVersions(fluent.getVersions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java index c9fdd1b6c6..269c3cf805 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java @@ -1,142 +1,77 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1APIVersionsFluent> extends Fluent { + /** + * Generated + */ +public interface V1APIVersionsFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - - public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); - - public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); - - public A addToServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - + public A addToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item); + public A setToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item); + public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); public A addAllToServerAddressByClientCIDRs(Collection items); - - public A removeFromServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - + public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); public A removeAllFromServerAddressByClientCIDRs(Collection items); - - public A removeMatchingFromServerAddressByClientCIDRs( - Predicate predicate); - + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate); + /** * This method has been deprecated, please use method buildServerAddressByClientCIDRs instead. - * * @return The buildable object. */ @Deprecated public List getServerAddressByClientCIDRs(); - public List buildServerAddressByClientCIDRs(); - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index); - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR(); - public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR(); - - public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( - Predicate predicate); - - public Boolean hasMatchingServerAddressByClientCIDR( - Predicate predicate); - - public A withServerAddressByClientCIDRs( - List serverAddressByClientCIDRs); - - public A withServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... - serverAddressByClientCIDRs); - + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate); + public Boolean hasMatchingServerAddressByClientCIDR(Predicate predicate); + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs); + public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs); public Boolean hasServerAddressByClientCIDRs(); - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR(); - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item); - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - setNewServerAddressByClientCIDRLike(Integer index, V1ServerAddressByClientCIDR item); - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( - Integer index); - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editFirstServerAddressByClientCIDR(); - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editLastServerAddressByClientCIDR(); - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editMatchingServerAddressByClientCIDR( - Predicate predicate); - - public A addToVersions(Integer index, String item); - - public A setToVersions(Integer index, String item); - + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(Integer index,V1ServerAddressByClientCIDR item); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(Integer index); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR(); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR(); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate); + public A addToVersions(Integer index,String item); + public A setToVersions(Integer index,String item); public A addToVersions(java.lang.String... items); - public A addAllToVersions(Collection items); - public A removeFromVersions(java.lang.String... items); - public A removeAllFromVersions(Collection items); - public List getVersions(); - public String getVersion(Integer index); - public String getFirstVersion(); - public String getLastVersion(); - public String getMatchingVersion(Predicate predicate); - public Boolean hasMatchingVersion(Predicate predicate); - public A withVersions(List versions); - public A withVersions(java.lang.String... versions); - public Boolean hasVersions(); - - public interface ServerAddressByClientCIDRsNested - extends Nested, - V1ServerAddressByClientCIDRFluent< - V1APIVersionsFluent.ServerAddressByClientCIDRsNested> { + public interface ServerAddressByClientCIDRsNested extends Nested,V1ServerAddressByClientCIDRFluent>{ public N and(); - public N endServerAddressByClientCIDR(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java index abb8ce2496..1176d85460 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1APIVersionsFluentImpl> extends BaseFluent - implements V1APIVersionsFluent { - public V1APIVersionsFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1APIVersionsFluentImpl> extends BaseFluent implements V1APIVersionsFluent{ + public V1APIVersionsFluentImpl() { + } public V1APIVersionsFluentImpl(V1APIVersions instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,120 +30,56 @@ public V1APIVersionsFluentImpl(V1APIVersions instance) { this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); this.withVersions(instance.getVersions()); - } + } private String apiVersion; private String kind; private ArrayList serverAddressByClientCIDRs; private List versions; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - - public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables - .get("serverAddressByClientCIDRs") - .add(index >= 0 ? index : _visitables.get("serverAddressByClientCIDRs").size(), builder); - this.serverAddressByClientCIDRs.add( - index >= 0 ? index : serverAddressByClientCIDRs.size(), builder); - return (A) this; + public A addToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item) { + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(index >= 0 ? index : _visitables.get("serverAddressByClientCIDRs").size(), builder);this.serverAddressByClientCIDRs.add(index >= 0 ? index : serverAddressByClientCIDRs.size(), builder); return (A)this; } - - public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } + public A setToServerAddressByClientCIDRs(Integer index,V1ServerAddressByClientCIDR item) { + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= _visitables.get("serverAddressByClientCIDRs").size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - } else { - _visitables.get("serverAddressByClientCIDRs").set(index, builder); - } - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - serverAddressByClientCIDRs.add(builder); - } else { - serverAddressByClientCIDRs.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("serverAddressByClientCIDRs").size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); } else { _visitables.get("serverAddressByClientCIDRs").set(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { serverAddressByClientCIDRs.add(builder); } else { serverAddressByClientCIDRs.set(index, builder);} + return (A)this; } - - public A addToServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; + public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; } - public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; + if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; } - - public A removeFromServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.remove(builder); - } - } - return (A) this; + public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder);if (this.serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs.remove(builder);}} return (A)this; } - public A removeAllFromServerAddressByClientCIDRs(Collection items) { - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.remove(builder); - } - } - return (A) this; + for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder);if (this.serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs.remove(builder);}} return (A)this; } - - public A removeMatchingFromServerAddressByClientCIDRs( - Predicate predicate) { + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { if (serverAddressByClientCIDRs == null) return (A) this; final Iterator each = serverAddressByClientCIDRs.iterator(); final List visitables = _visitables.get("serverAddressByClientCIDRs"); @@ -158,322 +90,168 @@ public A removeMatchingFromServerAddressByClientCIDRs( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildServerAddressByClientCIDRs instead. - * * @return The buildable object. */ @Deprecated public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public List buildServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index) { return this.serverAddressByClientCIDRs.get(index).build(); } - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(0).build(); } - public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } - - public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( - Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item: serverAddressByClientCIDRs) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingServerAddressByClientCIDR( - Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item: serverAddressByClientCIDRs) { if(predicate.test(item)){ return true;} } return false; } - - public A withServerAddressByClientCIDRs( - List serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - _visitables.get("serverAddressByClientCIDRs").removeAll(this.serverAddressByClientCIDRs); - } - if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } else { - this.serverAddressByClientCIDRs = null; - } - return (A) this; + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { _visitables.get("serverAddressByClientCIDRs").removeAll(this.serverAddressByClientCIDRs);} + if (serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs = new ArrayList(); for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs){this.addToServerAddressByClientCIDRs(item);}} else { this.serverAddressByClientCIDRs = null;} return (A) this; } - - public A withServerAddressByClientCIDRs( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... - serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.clear(); - } - if (serverAddressByClientCIDRs != null) { - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } - return (A) this; + public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) {this.serverAddressByClientCIDRs.clear();} + if (serverAddressByClientCIDRs != null) {for (V1ServerAddressByClientCIDR item :serverAddressByClientCIDRs){ this.addToServerAddressByClientCIDRs(item);}} return (A) this; } - public Boolean hasServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty(); } - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { return new V1APIVersionsFluentImpl.ServerAddressByClientCIDRsNestedImpl(); } - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { return new V1APIVersionsFluentImpl.ServerAddressByClientCIDRsNestedImpl(-1, item); } - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - setNewServerAddressByClientCIDRLike(Integer index, V1ServerAddressByClientCIDR item) { + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(Integer index,V1ServerAddressByClientCIDR item) { return new V1APIVersionsFluentImpl.ServerAddressByClientCIDRsNestedImpl(index, item); } - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( - Integer index) { - if (serverAddressByClientCIDRs.size() <= index) - throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(Integer index) { + if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editFirstServerAddressByClientCIDR() { - if (serverAddressByClientCIDRs.size() == 0) - throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { + if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); } - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editLastServerAddressByClientCIDR() { + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { int index = serverAddressByClientCIDRs.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - - public V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editMatchingServerAddressByClientCIDR( - Predicate predicate) { + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { int index = -1; - for (int i = 0; i < serverAddressByClientCIDRs.size(); i++) { - if (predicate.test(serverAddressByClientCIDRs.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching serverAddressByClientCIDRs. No match found."); + for (int i=0;i(); - } + public A addToVersions(Integer index,String item) { + if (this.versions == null) {this.versions = new ArrayList();} this.versions.add(index, item); - return (A) this; + return (A)this; } - - public A setToVersions(Integer index, String item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - this.versions.set(index, item); - return (A) this; + public A setToVersions(Integer index,String item) { + if (this.versions == null) {this.versions = new ArrayList();} + this.versions.set(index, item); return (A)this; } - public A addToVersions(java.lang.String... items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (String item : items) { - this.versions.add(item); - } - return (A) this; + if (this.versions == null) {this.versions = new ArrayList();} + for (String item : items) {this.versions.add(item);} return (A)this; } - public A addAllToVersions(Collection items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (String item : items) { - this.versions.add(item); - } - return (A) this; + if (this.versions == null) {this.versions = new ArrayList();} + for (String item : items) {this.versions.add(item);} return (A)this; } - public A removeFromVersions(java.lang.String... items) { - for (String item : items) { - if (this.versions != null) { - this.versions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.versions!= null){ this.versions.remove(item);}} return (A)this; } - public A removeAllFromVersions(Collection items) { - for (String item : items) { - if (this.versions != null) { - this.versions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.versions!= null){ this.versions.remove(item);}} return (A)this; } - public List getVersions() { return this.versions; } - public String getVersion(Integer index) { return this.versions.get(index); } - public String getFirstVersion() { return this.versions.get(0); } - public String getLastVersion() { return this.versions.get(versions.size() - 1); } - public String getMatchingVersion(Predicate predicate) { - for (String item : versions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: versions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVersion(Predicate predicate) { - for (String item : versions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: versions) { if(predicate.test(item)){ return true;} } return false; } - public A withVersions(List versions) { - if (versions != null) { - this.versions = new ArrayList(); - for (String item : versions) { - this.addToVersions(item); - } - } else { - this.versions = null; - } - return (A) this; + if (versions != null) {this.versions = new ArrayList(); for (String item : versions){this.addToVersions(item);}} else { this.versions = null;} return (A) this; } - public A withVersions(java.lang.String... versions) { - if (this.versions != null) { - this.versions.clear(); - } - if (versions != null) { - for (String item : versions) { - this.addToVersions(item); - } - } - return (A) this; + if (this.versions != null) {this.versions.clear();} + if (versions != null) {for (String item :versions){ this.addToVersions(item);}} return (A) this; } - public Boolean hasVersions() { return versions != null && !versions.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1APIVersionsFluentImpl that = (V1APIVersionsFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (serverAddressByClientCIDRs != null - ? !serverAddressByClientCIDRs.equals(that.serverAddressByClientCIDRs) - : that.serverAddressByClientCIDRs != null) return false; - if (versions != null ? !versions.equals(that.versions) : that.versions != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (serverAddressByClientCIDRs != null ? !serverAddressByClientCIDRs.equals(that.serverAddressByClientCIDRs) :that.serverAddressByClientCIDRs != null) return false; + if (versions != null ? !versions.equals(that.versions) :that.versions != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, kind, serverAddressByClientCIDRs, versions, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty()) { - sb.append("serverAddressByClientCIDRs:"); - sb.append(serverAddressByClientCIDRs + ","); - } - if (versions != null && !versions.isEmpty()) { - sb.append("versions:"); - sb.append(versions); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty()) { sb.append("serverAddressByClientCIDRs:"); sb.append(serverAddressByClientCIDRs + ","); } + if (versions != null && !versions.isEmpty()) { sb.append("versions:"); sb.append(versions); } sb.append("}"); return sb.toString(); } - - class ServerAddressByClientCIDRsNestedImpl - extends V1ServerAddressByClientCIDRFluentImpl< - V1APIVersionsFluent.ServerAddressByClientCIDRsNested> - implements V1APIVersionsFluent.ServerAddressByClientCIDRsNested, Nested { - ServerAddressByClientCIDRsNestedImpl(Integer index, V1ServerAddressByClientCIDR item) { + class ServerAddressByClientCIDRsNestedImpl extends V1ServerAddressByClientCIDRFluentImpl> implements V1APIVersionsFluent.ServerAddressByClientCIDRsNested,Nested{ + ServerAddressByClientCIDRsNestedImpl(Integer index,V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } - ServerAddressByClientCIDRsNestedImpl() { this.index = -1; this.builder = new V1ServerAddressByClientCIDRBuilder(this); } - V1ServerAddressByClientCIDRBuilder builder; Integer index; - public N and() { - return (N) - V1APIVersionsFluentImpl.this.setToServerAddressByClientCIDRs(index, builder.build()); + return (N) V1APIVersionsFluentImpl.this.setToServerAddressByClientCIDRs(index,builder.build()); } - public N endServerAddressByClientCIDR() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java index ed58329808..941490ffa5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1AWSElasticBlockStoreVolumeSourceBuilder - extends V1AWSElasticBlockStoreVolumeSourceFluentImpl - implements VisitableBuilder< - V1AWSElasticBlockStoreVolumeSource, V1AWSElasticBlockStoreVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1AWSElasticBlockStoreVolumeSourceBuilder extends V1AWSElasticBlockStoreVolumeSourceFluentImpl implements VisitableBuilder{ public V1AWSElasticBlockStoreVolumeSourceBuilder() { this(false); } - public V1AWSElasticBlockStoreVolumeSourceBuilder(Boolean validationEnabled) { this(new V1AWSElasticBlockStoreVolumeSource(), validationEnabled); } - - public V1AWSElasticBlockStoreVolumeSourceBuilder( - V1AWSElasticBlockStoreVolumeSourceFluent fluent) { + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent) { this(fluent, false); } - - public V1AWSElasticBlockStoreVolumeSourceBuilder( - V1AWSElasticBlockStoreVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1AWSElasticBlockStoreVolumeSource(), validationEnabled); } - - public V1AWSElasticBlockStoreVolumeSourceBuilder( - V1AWSElasticBlockStoreVolumeSourceFluent fluent, - V1AWSElasticBlockStoreVolumeSource instance) { + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,V1AWSElasticBlockStoreVolumeSource instance) { this(fluent, instance, false); } - - public V1AWSElasticBlockStoreVolumeSourceBuilder( - V1AWSElasticBlockStoreVolumeSourceFluent fluent, - V1AWSElasticBlockStoreVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,V1AWSElasticBlockStoreVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withPartition(instance.getPartition()); @@ -55,16 +28,13 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder( fluent.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1AWSElasticBlockStoreVolumeSourceBuilder( - V1AWSElasticBlockStoreVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withPartition(instance.getPartition()); @@ -73,12 +43,10 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder( this.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AWSElasticBlockStoreVolumeSourceFluent fluent; Boolean validationEnabled; - public V1AWSElasticBlockStoreVolumeSource build() { V1AWSElasticBlockStoreVolumeSource buildable = new V1AWSElasticBlockStoreVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -87,4 +55,5 @@ public V1AWSElasticBlockStoreVolumeSource build() { buildable.setVolumeID(fluent.getVolumeID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java index 6dc789d892..864c5d240f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java @@ -1,46 +1,26 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1AWSElasticBlockStoreVolumeSourceFluent< - A extends V1AWSElasticBlockStoreVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1AWSElasticBlockStoreVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Integer getPartition(); - public A withPartition(Integer partition); - public Boolean hasPartition(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getVolumeID(); - public A withVolumeID(String volumeID); - public Boolean hasVolumeID(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java index 92d4845fff..52d5b9b0ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AWSElasticBlockStoreVolumeSourceFluentImpl< - A extends V1AWSElasticBlockStoreVolumeSourceFluent> - extends BaseFluent implements V1AWSElasticBlockStoreVolumeSourceFluent { - public V1AWSElasticBlockStoreVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AWSElasticBlockStoreVolumeSourceFluentImpl> extends BaseFluent implements V1AWSElasticBlockStoreVolumeSourceFluent{ + public V1AWSElasticBlockStoreVolumeSourceFluentImpl() { + } public V1AWSElasticBlockStoreVolumeSourceFluentImpl(V1AWSElasticBlockStoreVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -29,106 +22,73 @@ public V1AWSElasticBlockStoreVolumeSourceFluentImpl(V1AWSElasticBlockStoreVolume this.withReadOnly(instance.getReadOnly()); this.withVolumeID(instance.getVolumeID()); - } + } private String fsType; private Integer partition; private Boolean readOnly; private String volumeID; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Integer getPartition() { return this.partition; } - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; + this.partition=partition; return (A) this; } - public Boolean hasPartition() { return this.partition != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getVolumeID() { return this.volumeID; } - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; + this.volumeID=volumeID; return (A) this; } - public Boolean hasVolumeID() { return this.volumeID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1AWSElasticBlockStoreVolumeSourceFluentImpl that = - (V1AWSElasticBlockStoreVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (partition != null ? !partition.equals(that.partition) : that.partition != null) - return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (volumeID != null ? !volumeID.equals(that.volumeID) : that.volumeID != null) return false; + V1AWSElasticBlockStoreVolumeSourceFluentImpl that = (V1AWSElasticBlockStoreVolumeSourceFluentImpl) o; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (partition != null ? !partition.equals(that.partition) :that.partition != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (volumeID != null ? !volumeID.equals(that.volumeID) :that.volumeID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, partition, readOnly, volumeID, super.hashCode()); + return java.util.Objects.hash(fsType, partition, readOnly, volumeID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (partition != null) { - sb.append("partition:"); - sb.append(partition + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (volumeID != null) { - sb.append("volumeID:"); - sb.append(volumeID); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (partition != null) { sb.append("partition:"); sb.append(partition + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java index 59570b948a..7b12b4ee86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1AffinityBuilder extends V1AffinityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1AffinityBuilder extends V1AffinityFluentImpl implements VisitableBuilder{ public V1AffinityBuilder() { this(false); } - public V1AffinityBuilder(Boolean validationEnabled) { this(new V1Affinity(), validationEnabled); } - public V1AffinityBuilder(V1AffinityFluent fluent) { this(fluent, false); } - - public V1AffinityBuilder(V1AffinityFluent fluent, Boolean validationEnabled) { + public V1AffinityBuilder(V1AffinityFluent fluent,Boolean validationEnabled) { this(fluent, new V1Affinity(), validationEnabled); } - - public V1AffinityBuilder(V1AffinityFluent fluent, V1Affinity instance) { + public V1AffinityBuilder(V1AffinityFluent fluent,V1Affinity instance) { this(fluent, instance, false); } - - public V1AffinityBuilder( - V1AffinityFluent fluent, V1Affinity instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1AffinityBuilder(V1AffinityFluent fluent,V1Affinity instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNodeAffinity(instance.getNodeAffinity()); fluent.withPodAffinity(instance.getPodAffinity()); fluent.withPodAntiAffinity(instance.getPodAntiAffinity()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AffinityBuilder(V1Affinity instance) { - this(instance, false); + this(instance,false); } - - public V1AffinityBuilder(V1Affinity instance, Boolean validationEnabled) { - this.fluent = this; + public V1AffinityBuilder(V1Affinity instance,Boolean validationEnabled) { + this.fluent = this; this.withNodeAffinity(instance.getNodeAffinity()); this.withPodAffinity(instance.getPodAffinity()); this.withPodAntiAffinity(instance.getPodAntiAffinity()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AffinityFluent fluent; Boolean validationEnabled; - public V1Affinity build() { V1Affinity buildable = new V1Affinity(); buildable.setNodeAffinity(fluent.getNodeAffinity()); @@ -73,4 +50,5 @@ public V1Affinity build() { buildable.setPodAntiAffinity(fluent.getPodAntiAffinity()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java index c43d34e40b..e90989ca0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java @@ -1,115 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1AffinityFluent> extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1AffinityFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildNodeAffinity instead. - * * @return The buildable object. */ @Deprecated public V1NodeAffinity getNodeAffinity(); - public V1NodeAffinity buildNodeAffinity(); - public A withNodeAffinity(V1NodeAffinity nodeAffinity); - public Boolean hasNodeAffinity(); - public V1AffinityFluent.NodeAffinityNested withNewNodeAffinity(); - public V1AffinityFluent.NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item); - public V1AffinityFluent.NodeAffinityNested editNodeAffinity(); - public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinity(); - public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item); - + /** * This method has been deprecated, please use method buildPodAffinity instead. - * * @return The buildable object. */ @Deprecated public V1PodAffinity getPodAffinity(); - public V1PodAffinity buildPodAffinity(); - public A withPodAffinity(V1PodAffinity podAffinity); - public Boolean hasPodAffinity(); - public V1AffinityFluent.PodAffinityNested withNewPodAffinity(); - public V1AffinityFluent.PodAffinityNested withNewPodAffinityLike(V1PodAffinity item); - public V1AffinityFluent.PodAffinityNested editPodAffinity(); - public V1AffinityFluent.PodAffinityNested editOrNewPodAffinity(); - public V1AffinityFluent.PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item); - + /** * This method has been deprecated, please use method buildPodAntiAffinity instead. - * * @return The buildable object. */ @Deprecated public V1PodAntiAffinity getPodAntiAffinity(); - public V1PodAntiAffinity buildPodAntiAffinity(); - public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity); - public Boolean hasPodAntiAffinity(); - public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinity(); - - public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinityLike( - V1PodAntiAffinity item); - + public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity item); public V1AffinityFluent.PodAntiAffinityNested editPodAntiAffinity(); - public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinity(); - - public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinityLike( - V1PodAntiAffinity item); - - public interface NodeAffinityNested - extends Nested, V1NodeAffinityFluent> { + public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item); + public interface NodeAffinityNested extends Nested,V1NodeAffinityFluent>{ public N and(); - public N endNodeAffinity(); + } - - public interface PodAffinityNested - extends Nested, V1PodAffinityFluent> { + public interface PodAffinityNested extends Nested,V1PodAffinityFluent>{ public N and(); - public N endPodAffinity(); + } - - public interface PodAntiAffinityNested - extends Nested, V1PodAntiAffinityFluent> { + public interface PodAntiAffinityNested extends Nested,V1PodAntiAffinityFluent>{ public N and(); - public N endPodAntiAffinity(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java index c1e260363f..1d269f8923 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java @@ -1,295 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AffinityFluentImpl> extends BaseFluent - implements V1AffinityFluent { - public V1AffinityFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AffinityFluentImpl> extends BaseFluent implements V1AffinityFluent{ + public V1AffinityFluentImpl() { + } public V1AffinityFluentImpl(V1Affinity instance) { this.withNodeAffinity(instance.getNodeAffinity()); this.withPodAffinity(instance.getPodAffinity()); this.withPodAntiAffinity(instance.getPodAntiAffinity()); - } + } private V1NodeAffinityBuilder nodeAffinity; private V1PodAffinityBuilder podAffinity; private V1PodAntiAffinityBuilder podAntiAffinity; - + /** * This method has been deprecated, please use method buildNodeAffinity instead. - * * @return The buildable object. */ @Deprecated public V1NodeAffinity getNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + return this.nodeAffinity!=null ?this.nodeAffinity.build():null; } - public V1NodeAffinity buildNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + return this.nodeAffinity!=null ?this.nodeAffinity.build():null; } - public A withNodeAffinity(V1NodeAffinity nodeAffinity) { _visitables.get("nodeAffinity").remove(this.nodeAffinity); - if (nodeAffinity != null) { - this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); - _visitables.get("nodeAffinity").add(this.nodeAffinity); - } else { - this.nodeAffinity = null; - _visitables.get("nodeAffinity").remove(this.nodeAffinity); - } - return (A) this; + if (nodeAffinity!=null){ this.nodeAffinity= new V1NodeAffinityBuilder(nodeAffinity); _visitables.get("nodeAffinity").add(this.nodeAffinity);} else { this.nodeAffinity = null; _visitables.get("nodeAffinity").remove(this.nodeAffinity); } return (A) this; } - public Boolean hasNodeAffinity() { return this.nodeAffinity != null; } - public V1AffinityFluent.NodeAffinityNested withNewNodeAffinity() { return new V1AffinityFluentImpl.NodeAffinityNestedImpl(); } - public V1AffinityFluent.NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { return new V1AffinityFluentImpl.NodeAffinityNestedImpl(item); } - public V1AffinityFluent.NodeAffinityNested editNodeAffinity() { return withNewNodeAffinityLike(getNodeAffinity()); } - public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinity() { - return withNewNodeAffinityLike( - getNodeAffinity() != null ? getNodeAffinity() : new V1NodeAffinityBuilder().build()); + return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity(): new V1NodeAffinityBuilder().build()); } - public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item) { - return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity() : item); + return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity(): item); } - + /** * This method has been deprecated, please use method buildPodAffinity instead. - * * @return The buildable object. */ @Deprecated public V1PodAffinity getPodAffinity() { - return this.podAffinity != null ? this.podAffinity.build() : null; + return this.podAffinity!=null ?this.podAffinity.build():null; } - public V1PodAffinity buildPodAffinity() { - return this.podAffinity != null ? this.podAffinity.build() : null; + return this.podAffinity!=null ?this.podAffinity.build():null; } - public A withPodAffinity(V1PodAffinity podAffinity) { _visitables.get("podAffinity").remove(this.podAffinity); - if (podAffinity != null) { - this.podAffinity = new V1PodAffinityBuilder(podAffinity); - _visitables.get("podAffinity").add(this.podAffinity); - } else { - this.podAffinity = null; - _visitables.get("podAffinity").remove(this.podAffinity); - } - return (A) this; + if (podAffinity!=null){ this.podAffinity= new V1PodAffinityBuilder(podAffinity); _visitables.get("podAffinity").add(this.podAffinity);} else { this.podAffinity = null; _visitables.get("podAffinity").remove(this.podAffinity); } return (A) this; } - public Boolean hasPodAffinity() { return this.podAffinity != null; } - public V1AffinityFluent.PodAffinityNested withNewPodAffinity() { return new V1AffinityFluentImpl.PodAffinityNestedImpl(); } - public V1AffinityFluent.PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { return new V1AffinityFluentImpl.PodAffinityNestedImpl(item); } - public V1AffinityFluent.PodAffinityNested editPodAffinity() { return withNewPodAffinityLike(getPodAffinity()); } - public V1AffinityFluent.PodAffinityNested editOrNewPodAffinity() { - return withNewPodAffinityLike( - getPodAffinity() != null ? getPodAffinity() : new V1PodAffinityBuilder().build()); + return withNewPodAffinityLike(getPodAffinity() != null ? getPodAffinity(): new V1PodAffinityBuilder().build()); } - public V1AffinityFluent.PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item) { - return withNewPodAffinityLike(getPodAffinity() != null ? getPodAffinity() : item); + return withNewPodAffinityLike(getPodAffinity() != null ? getPodAffinity(): item); } - + /** * This method has been deprecated, please use method buildPodAntiAffinity instead. - * * @return The buildable object. */ @Deprecated public V1PodAntiAffinity getPodAntiAffinity() { - return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; + return this.podAntiAffinity!=null ?this.podAntiAffinity.build():null; } - public V1PodAntiAffinity buildPodAntiAffinity() { - return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; + return this.podAntiAffinity!=null ?this.podAntiAffinity.build():null; } - public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { _visitables.get("podAntiAffinity").remove(this.podAntiAffinity); - if (podAntiAffinity != null) { - this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); - _visitables.get("podAntiAffinity").add(this.podAntiAffinity); - } else { - this.podAntiAffinity = null; - _visitables.get("podAntiAffinity").remove(this.podAntiAffinity); - } - return (A) this; + if (podAntiAffinity!=null){ this.podAntiAffinity= new V1PodAntiAffinityBuilder(podAntiAffinity); _visitables.get("podAntiAffinity").add(this.podAntiAffinity);} else { this.podAntiAffinity = null; _visitables.get("podAntiAffinity").remove(this.podAntiAffinity); } return (A) this; } - public Boolean hasPodAntiAffinity() { return this.podAntiAffinity != null; } - public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinity() { return new V1AffinityFluentImpl.PodAntiAffinityNestedImpl(); } - - public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinityLike( - V1PodAntiAffinity item) { + public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity item) { return new V1AffinityFluentImpl.PodAntiAffinityNestedImpl(item); } - public V1AffinityFluent.PodAntiAffinityNested editPodAntiAffinity() { return withNewPodAntiAffinityLike(getPodAntiAffinity()); } - public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinity() { - return withNewPodAntiAffinityLike( - getPodAntiAffinity() != null - ? getPodAntiAffinity() - : new V1PodAntiAffinityBuilder().build()); + return withNewPodAntiAffinityLike(getPodAntiAffinity() != null ? getPodAntiAffinity(): new V1PodAntiAffinityBuilder().build()); } - - public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinityLike( - V1PodAntiAffinity item) { - return withNewPodAntiAffinityLike(getPodAntiAffinity() != null ? getPodAntiAffinity() : item); + public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item) { + return withNewPodAntiAffinityLike(getPodAntiAffinity() != null ? getPodAntiAffinity(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1AffinityFluentImpl that = (V1AffinityFluentImpl) o; - if (nodeAffinity != null ? !nodeAffinity.equals(that.nodeAffinity) : that.nodeAffinity != null) - return false; - if (podAffinity != null ? !podAffinity.equals(that.podAffinity) : that.podAffinity != null) - return false; - if (podAntiAffinity != null - ? !podAntiAffinity.equals(that.podAntiAffinity) - : that.podAntiAffinity != null) return false; + if (nodeAffinity != null ? !nodeAffinity.equals(that.nodeAffinity) :that.nodeAffinity != null) return false; + if (podAffinity != null ? !podAffinity.equals(that.podAffinity) :that.podAffinity != null) return false; + if (podAntiAffinity != null ? !podAntiAffinity.equals(that.podAntiAffinity) :that.podAntiAffinity != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(nodeAffinity, podAffinity, podAntiAffinity, super.hashCode()); + return java.util.Objects.hash(nodeAffinity, podAffinity, podAntiAffinity, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nodeAffinity != null) { - sb.append("nodeAffinity:"); - sb.append(nodeAffinity + ","); - } - if (podAffinity != null) { - sb.append("podAffinity:"); - sb.append(podAffinity + ","); - } - if (podAntiAffinity != null) { - sb.append("podAntiAffinity:"); - sb.append(podAntiAffinity); - } + if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); } + if (podAffinity != null) { sb.append("podAffinity:"); sb.append(podAffinity + ","); } + if (podAntiAffinity != null) { sb.append("podAntiAffinity:"); sb.append(podAntiAffinity); } sb.append("}"); return sb.toString(); } - - class NodeAffinityNestedImpl - extends V1NodeAffinityFluentImpl> - implements V1AffinityFluent.NodeAffinityNested, Nested { + class NodeAffinityNestedImpl extends V1NodeAffinityFluentImpl> implements V1AffinityFluent.NodeAffinityNested,Nested{ NodeAffinityNestedImpl(V1NodeAffinity item) { this.builder = new V1NodeAffinityBuilder(this, item); } - NodeAffinityNestedImpl() { this.builder = new V1NodeAffinityBuilder(this); } - V1NodeAffinityBuilder builder; - public N and() { return (N) V1AffinityFluentImpl.this.withNodeAffinity(builder.build()); } - public N endNodeAffinity() { return and(); } + } - - class PodAffinityNestedImpl - extends V1PodAffinityFluentImpl> - implements V1AffinityFluent.PodAffinityNested, Nested { + class PodAffinityNestedImpl extends V1PodAffinityFluentImpl> implements V1AffinityFluent.PodAffinityNested,Nested{ PodAffinityNestedImpl(V1PodAffinity item) { this.builder = new V1PodAffinityBuilder(this, item); } - PodAffinityNestedImpl() { this.builder = new V1PodAffinityBuilder(this); } - V1PodAffinityBuilder builder; - public N and() { return (N) V1AffinityFluentImpl.this.withPodAffinity(builder.build()); } - public N endPodAffinity() { return and(); } + } - - class PodAntiAffinityNestedImpl - extends V1PodAntiAffinityFluentImpl> - implements V1AffinityFluent.PodAntiAffinityNested, Nested { + class PodAntiAffinityNestedImpl extends V1PodAntiAffinityFluentImpl> implements V1AffinityFluent.PodAntiAffinityNested,Nested{ PodAntiAffinityNestedImpl(V1PodAntiAffinity item) { this.builder = new V1PodAntiAffinityBuilder(this, item); } - PodAntiAffinityNestedImpl() { this.builder = new V1PodAntiAffinityBuilder(this); } - V1PodAntiAffinityBuilder builder; - public N and() { return (N) V1AffinityFluentImpl.this.withPodAntiAffinity(builder.build()); } - public N endPodAntiAffinity() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java index 6ebc65dab0..75cec1c73b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1AggregationRuleBuilder extends V1AggregationRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1AggregationRuleBuilder extends V1AggregationRuleFluentImpl implements VisitableBuilder{ public V1AggregationRuleBuilder() { this(false); } - public V1AggregationRuleBuilder(Boolean validationEnabled) { this(new V1AggregationRule(), validationEnabled); } - public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent) { this(fluent, false); } - - public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent, Boolean validationEnabled) { + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1AggregationRule(), validationEnabled); } - - public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent, V1AggregationRule instance) { + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,V1AggregationRule instance) { this(fluent, instance, false); } - - public V1AggregationRuleBuilder( - V1AggregationRuleFluent fluent, V1AggregationRule instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,V1AggregationRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withClusterRoleSelectors(instance.getClusterRoleSelectors()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AggregationRuleBuilder(V1AggregationRule instance) { - this(instance, false); + this(instance,false); } - - public V1AggregationRuleBuilder(V1AggregationRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1AggregationRuleBuilder(V1AggregationRule instance,Boolean validationEnabled) { + this.fluent = this; this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AggregationRuleFluent fluent; Boolean validationEnabled; - public V1AggregationRule build() { V1AggregationRule buildable = new V1AggregationRule(); buildable.setClusterRoleSelectors(fluent.getClusterRoleSelectors()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java index 29bb1a918d..7b176d46af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java @@ -1,91 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1AggregationRuleFluent> extends Fluent { - public A addToClusterRoleSelectors(Integer index, V1LabelSelector item); - - public A setToClusterRoleSelectors(Integer index, V1LabelSelector item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1AggregationRuleFluent> extends Fluent{ + public A addToClusterRoleSelectors(Integer index,V1LabelSelector item); + public A setToClusterRoleSelectors(Integer index,V1LabelSelector item); public A addToClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items); - public A addAllToClusterRoleSelectors(Collection items); - - public A removeFromClusterRoleSelectors( - io.kubernetes.client.openapi.models.V1LabelSelector... items); - + public A removeFromClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items); public A removeAllFromClusterRoleSelectors(Collection items); - public A removeMatchingFromClusterRoleSelectors(Predicate predicate); - + /** * This method has been deprecated, please use method buildClusterRoleSelectors instead. - * * @return The buildable object. */ @Deprecated public List getClusterRoleSelectors(); - public List buildClusterRoleSelectors(); - public V1LabelSelector buildClusterRoleSelector(Integer index); - public V1LabelSelector buildFirstClusterRoleSelector(); - public V1LabelSelector buildLastClusterRoleSelector(); - - public V1LabelSelector buildMatchingClusterRoleSelector( - Predicate predicate); - + public V1LabelSelector buildMatchingClusterRoleSelector(Predicate predicate); public Boolean hasMatchingClusterRoleSelector(Predicate predicate); - public A withClusterRoleSelectors(List clusterRoleSelectors); - - public A withClusterRoleSelectors( - io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors); - + public A withClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors); public Boolean hasClusterRoleSelectors(); - public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelector(); - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelectorLike( - V1LabelSelector item); - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested setNewClusterRoleSelectorLike( - Integer index, V1LabelSelector item); - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editClusterRoleSelector( - Integer index); - + public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(Integer index,V1LabelSelector item); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editClusterRoleSelector(Integer index); public V1AggregationRuleFluent.ClusterRoleSelectorsNested editFirstClusterRoleSelector(); - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editLastClusterRoleSelector(); - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editMatchingClusterRoleSelector( - Predicate predicate); - - public interface ClusterRoleSelectorsNested - extends Nested, - V1LabelSelectorFluent> { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editMatchingClusterRoleSelector(Predicate predicate); + public interface ClusterRoleSelectorsNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endClusterRoleSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java index 4895fbe842..fafc4803d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java @@ -1,114 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AggregationRuleFluentImpl> extends BaseFluent - implements V1AggregationRuleFluent { - public V1AggregationRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AggregationRuleFluentImpl> extends BaseFluent implements V1AggregationRuleFluent{ + public V1AggregationRuleFluentImpl() { + } public V1AggregationRuleFluentImpl(V1AggregationRule instance) { this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); - } + } private ArrayList clusterRoleSelectors; - - public A addToClusterRoleSelectors(Integer index, V1LabelSelector item) { - if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); - } - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables - .get("clusterRoleSelectors") - .add(index >= 0 ? index : _visitables.get("clusterRoleSelectors").size(), builder); - this.clusterRoleSelectors.add(index >= 0 ? index : clusterRoleSelectors.size(), builder); - return (A) this; + public A addToClusterRoleSelectors(Integer index,V1LabelSelector item) { + if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(index >= 0 ? index : _visitables.get("clusterRoleSelectors").size(), builder);this.clusterRoleSelectors.add(index >= 0 ? index : clusterRoleSelectors.size(), builder); return (A)this; } - - public A setToClusterRoleSelectors(Integer index, V1LabelSelector item) { - if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); - } + public A setToClusterRoleSelectors(Integer index,V1LabelSelector item) { + if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= _visitables.get("clusterRoleSelectors").size()) { - _visitables.get("clusterRoleSelectors").add(builder); - } else { - _visitables.get("clusterRoleSelectors").set(index, builder); - } - if (index < 0 || index >= clusterRoleSelectors.size()) { - clusterRoleSelectors.add(builder); - } else { - clusterRoleSelectors.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("clusterRoleSelectors").size()) { _visitables.get("clusterRoleSelectors").add(builder); } else { _visitables.get("clusterRoleSelectors").set(index, builder);} + if (index < 0 || index >= clusterRoleSelectors.size()) { clusterRoleSelectors.add(builder); } else { clusterRoleSelectors.set(index, builder);} + return (A)this; } - public A addToClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { - if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); - } - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").add(builder); - this.clusterRoleSelectors.add(builder); - } - return (A) this; + if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} + for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(builder);this.clusterRoleSelectors.add(builder);} return (A)this; } - public A addAllToClusterRoleSelectors(Collection items) { - if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); - } - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").add(builder); - this.clusterRoleSelectors.add(builder); - } - return (A) this; + if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} + for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(builder);this.clusterRoleSelectors.add(builder);} return (A)this; } - - public A removeFromClusterRoleSelectors( - io.kubernetes.client.openapi.models.V1LabelSelector... items) { - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").remove(builder); - if (this.clusterRoleSelectors != null) { - this.clusterRoleSelectors.remove(builder); - } - } - return (A) this; + public A removeFromClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { + for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").remove(builder);if (this.clusterRoleSelectors != null) {this.clusterRoleSelectors.remove(builder);}} return (A)this; } - public A removeAllFromClusterRoleSelectors(Collection items) { - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").remove(builder); - if (this.clusterRoleSelectors != null) { - this.clusterRoleSelectors.remove(builder); - } - } - return (A) this; + for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").remove(builder);if (this.clusterRoleSelectors != null) {this.clusterRoleSelectors.remove(builder);}} return (A)this; } - public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { if (clusterRoleSelectors == null) return (A) this; final Iterator each = clusterRoleSelectors.iterator(); @@ -120,181 +63,111 @@ public A removeMatchingFromClusterRoleSelectors(Predicate getClusterRoleSelectors() { return clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; } - public List buildClusterRoleSelectors() { return clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; } - public V1LabelSelector buildClusterRoleSelector(Integer index) { return this.clusterRoleSelectors.get(index).build(); } - public V1LabelSelector buildFirstClusterRoleSelector() { return this.clusterRoleSelectors.get(0).build(); } - public V1LabelSelector buildLastClusterRoleSelector() { return this.clusterRoleSelectors.get(clusterRoleSelectors.size() - 1).build(); } - - public V1LabelSelector buildMatchingClusterRoleSelector( - Predicate predicate) { - for (V1LabelSelectorBuilder item : clusterRoleSelectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1LabelSelector buildMatchingClusterRoleSelector(Predicate predicate) { + for (V1LabelSelectorBuilder item: clusterRoleSelectors) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingClusterRoleSelector(Predicate predicate) { - for (V1LabelSelectorBuilder item : clusterRoleSelectors) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LabelSelectorBuilder item: clusterRoleSelectors) { if(predicate.test(item)){ return true;} } return false; } - public A withClusterRoleSelectors(List clusterRoleSelectors) { - if (this.clusterRoleSelectors != null) { - _visitables.get("clusterRoleSelectors").removeAll(this.clusterRoleSelectors); - } - if (clusterRoleSelectors != null) { - this.clusterRoleSelectors = new ArrayList(); - for (V1LabelSelector item : clusterRoleSelectors) { - this.addToClusterRoleSelectors(item); - } - } else { - this.clusterRoleSelectors = null; - } - return (A) this; + if (this.clusterRoleSelectors != null) { _visitables.get("clusterRoleSelectors").removeAll(this.clusterRoleSelectors);} + if (clusterRoleSelectors != null) {this.clusterRoleSelectors = new ArrayList(); for (V1LabelSelector item : clusterRoleSelectors){this.addToClusterRoleSelectors(item);}} else { this.clusterRoleSelectors = null;} return (A) this; } - - public A withClusterRoleSelectors( - io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors) { - if (this.clusterRoleSelectors != null) { - this.clusterRoleSelectors.clear(); - } - if (clusterRoleSelectors != null) { - for (V1LabelSelector item : clusterRoleSelectors) { - this.addToClusterRoleSelectors(item); - } - } - return (A) this; + public A withClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors) { + if (this.clusterRoleSelectors != null) {this.clusterRoleSelectors.clear();} + if (clusterRoleSelectors != null) {for (V1LabelSelector item :clusterRoleSelectors){ this.addToClusterRoleSelectors(item);}} return (A) this; } - public Boolean hasClusterRoleSelectors() { return clusterRoleSelectors != null && !clusterRoleSelectors.isEmpty(); } - public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelector() { return new V1AggregationRuleFluentImpl.ClusterRoleSelectorsNestedImpl(); } - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelectorLike( - V1LabelSelector item) { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item) { return new V1AggregationRuleFluentImpl.ClusterRoleSelectorsNestedImpl(-1, item); } - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested setNewClusterRoleSelectorLike( - Integer index, V1LabelSelector item) { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(Integer index,V1LabelSelector item) { return new V1AggregationRuleFluentImpl.ClusterRoleSelectorsNestedImpl(index, item); } - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editClusterRoleSelector( - Integer index) { - if (clusterRoleSelectors.size() <= index) - throw new RuntimeException("Can't edit clusterRoleSelectors. Index exceeds size."); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editClusterRoleSelector(Integer index) { + if (clusterRoleSelectors.size() <= index) throw new RuntimeException("Can't edit clusterRoleSelectors. Index exceeds size."); return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); } - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editFirstClusterRoleSelector() { - if (clusterRoleSelectors.size() == 0) - throw new RuntimeException("Can't edit first clusterRoleSelectors. The list is empty."); + if (clusterRoleSelectors.size() == 0) throw new RuntimeException("Can't edit first clusterRoleSelectors. The list is empty."); return setNewClusterRoleSelectorLike(0, buildClusterRoleSelector(0)); } - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editLastClusterRoleSelector() { int index = clusterRoleSelectors.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last clusterRoleSelectors. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last clusterRoleSelectors. The list is empty."); return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); } - - public V1AggregationRuleFluent.ClusterRoleSelectorsNested editMatchingClusterRoleSelector( - Predicate predicate) { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editMatchingClusterRoleSelector(Predicate predicate) { int index = -1; - for (int i = 0; i < clusterRoleSelectors.size(); i++) { - if (predicate.test(clusterRoleSelectors.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching clusterRoleSelectors. No match found."); + for (int i=0;i - extends V1LabelSelectorFluentImpl> - implements V1AggregationRuleFluent.ClusterRoleSelectorsNested, Nested { - ClusterRoleSelectorsNestedImpl(Integer index, V1LabelSelector item) { + class ClusterRoleSelectorsNestedImpl extends V1LabelSelectorFluentImpl> implements V1AggregationRuleFluent.ClusterRoleSelectorsNested,Nested{ + ClusterRoleSelectorsNestedImpl(Integer index,V1LabelSelector item) { this.index = index; this.builder = new V1LabelSelectorBuilder(this, item); } - ClusterRoleSelectorsNestedImpl() { this.index = -1; this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; Integer index; - public N and() { - return (N) V1AggregationRuleFluentImpl.this.setToClusterRoleSelectors(index, builder.build()); + return (N) V1AggregationRuleFluentImpl.this.setToClusterRoleSelectors(index,builder.build()); } - public N endClusterRoleSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java index 16753ba401..8e2da6112e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluentImpl implements VisitableBuilder{ public V1AttachedVolumeBuilder() { this(false); } - public V1AttachedVolumeBuilder(Boolean validationEnabled) { this(new V1AttachedVolume(), validationEnabled); } - public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent) { this(fluent, false); } - - public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent, Boolean validationEnabled) { + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,Boolean validationEnabled) { this(fluent, new V1AttachedVolume(), validationEnabled); } - - public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent, V1AttachedVolume instance) { + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,V1AttachedVolume instance) { this(fluent, instance, false); } - - public V1AttachedVolumeBuilder( - V1AttachedVolumeFluent fluent, V1AttachedVolume instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,V1AttachedVolume instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDevicePath(instance.getDevicePath()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AttachedVolumeBuilder(V1AttachedVolume instance) { - this(instance, false); + this(instance,false); } - - public V1AttachedVolumeBuilder(V1AttachedVolume instance, Boolean validationEnabled) { - this.fluent = this; + public V1AttachedVolumeBuilder(V1AttachedVolume instance,Boolean validationEnabled) { + this.fluent = this; this.withDevicePath(instance.getDevicePath()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AttachedVolumeFluent fluent; Boolean validationEnabled; - public V1AttachedVolume build() { V1AttachedVolume buildable = new V1AttachedVolume(); buildable.setDevicePath(fluent.getDevicePath()); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java index 4245b4a6ab..fa85ab6bc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1AttachedVolumeFluent> extends Fluent { + /** + * Generated + */ +public interface V1AttachedVolumeFluent> extends Fluent{ public String getDevicePath(); - public A withDevicePath(String devicePath); - public Boolean hasDevicePath(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java index e19b8a0867..32252a7557 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AttachedVolumeFluentImpl> extends BaseFluent - implements V1AttachedVolumeFluent { - public V1AttachedVolumeFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AttachedVolumeFluentImpl> extends BaseFluent implements V1AttachedVolumeFluent{ + public V1AttachedVolumeFluentImpl() { + } public V1AttachedVolumeFluentImpl(V1AttachedVolume instance) { this.withDevicePath(instance.getDevicePath()); this.withName(instance.getName()); - } + } private String devicePath; private String name; - public String getDevicePath() { return this.devicePath; } - public A withDevicePath(String devicePath) { - this.devicePath = devicePath; - return (A) this; + this.devicePath=devicePath; return (A) this; } - public Boolean hasDevicePath() { return this.devicePath != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1AttachedVolumeFluentImpl that = (V1AttachedVolumeFluentImpl) o; - if (devicePath != null ? !devicePath.equals(that.devicePath) : that.devicePath != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (devicePath != null ? !devicePath.equals(that.devicePath) :that.devicePath != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(devicePath, name, super.hashCode()); + return java.util.Objects.hash(devicePath, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devicePath != null) { - sb.append("devicePath:"); - sb.append(devicePath + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (devicePath != null) { sb.append("devicePath:"); sb.append(devicePath + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java index bbe9178b7f..380fbbe371 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1AzureDiskVolumeSourceBuilder - extends V1AzureDiskVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1AzureDiskVolumeSourceBuilder extends V1AzureDiskVolumeSourceFluentImpl implements VisitableBuilder{ public V1AzureDiskVolumeSourceBuilder() { this(false); } - public V1AzureDiskVolumeSourceBuilder(Boolean validationEnabled) { this(new V1AzureDiskVolumeSource(), validationEnabled); } - public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent) { this(fluent, false); } - - public V1AzureDiskVolumeSourceBuilder( - V1AzureDiskVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1AzureDiskVolumeSource(), validationEnabled); } - - public V1AzureDiskVolumeSourceBuilder( - V1AzureDiskVolumeSourceFluent fluent, V1AzureDiskVolumeSource instance) { + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,V1AzureDiskVolumeSource instance) { this(fluent, instance, false); } - - public V1AzureDiskVolumeSourceBuilder( - V1AzureDiskVolumeSourceFluent fluent, - V1AzureDiskVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,V1AzureDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCachingMode(instance.getCachingMode()); fluent.withDiskName(instance.getDiskName()); @@ -56,16 +32,13 @@ public V1AzureDiskVolumeSourceBuilder( fluent.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1AzureDiskVolumeSourceBuilder( - V1AzureDiskVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withCachingMode(instance.getCachingMode()); this.withDiskName(instance.getDiskName()); @@ -78,12 +51,10 @@ public V1AzureDiskVolumeSourceBuilder( this.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AzureDiskVolumeSourceFluent fluent; Boolean validationEnabled; - public V1AzureDiskVolumeSource build() { V1AzureDiskVolumeSource buildable = new V1AzureDiskVolumeSource(); buildable.setCachingMode(fluent.getCachingMode()); @@ -94,4 +65,5 @@ public V1AzureDiskVolumeSource build() { buildable.setReadOnly(fluent.getReadOnly()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java index c3f588919e..2fa4f94c6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java @@ -1,57 +1,31 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1AzureDiskVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1AzureDiskVolumeSourceFluent> extends Fluent{ public String getCachingMode(); - public A withCachingMode(String cachingMode); - public Boolean hasCachingMode(); - public String getDiskName(); - public A withDiskName(String diskName); - public Boolean hasDiskName(); - public String getDiskURI(); - public A withDiskURI(String diskURI); - public Boolean hasDiskURI(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java index c7cdb7ed31..3a029937a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AzureDiskVolumeSourceFluentImpl> - extends BaseFluent implements V1AzureDiskVolumeSourceFluent { - public V1AzureDiskVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AzureDiskVolumeSourceFluentImpl> extends BaseFluent implements V1AzureDiskVolumeSourceFluent{ + public V1AzureDiskVolumeSourceFluentImpl() { + } public V1AzureDiskVolumeSourceFluentImpl(V1AzureDiskVolumeSource instance) { this.withCachingMode(instance.getCachingMode()); @@ -32,144 +25,97 @@ public V1AzureDiskVolumeSourceFluentImpl(V1AzureDiskVolumeSource instance) { this.withKind(instance.getKind()); this.withReadOnly(instance.getReadOnly()); - } + } private String cachingMode; private String diskName; private String diskURI; private String fsType; private String kind; private Boolean readOnly; - public String getCachingMode() { return this.cachingMode; } - public A withCachingMode(String cachingMode) { - this.cachingMode = cachingMode; - return (A) this; + this.cachingMode=cachingMode; return (A) this; } - public Boolean hasCachingMode() { return this.cachingMode != null; } - public String getDiskName() { return this.diskName; } - public A withDiskName(String diskName) { - this.diskName = diskName; - return (A) this; + this.diskName=diskName; return (A) this; } - public Boolean hasDiskName() { return this.diskName != null; } - public String getDiskURI() { return this.diskURI; } - public A withDiskURI(String diskURI) { - this.diskURI = diskURI; - return (A) this; + this.diskURI=diskURI; return (A) this; } - public Boolean hasDiskURI() { return this.diskURI != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1AzureDiskVolumeSourceFluentImpl that = (V1AzureDiskVolumeSourceFluentImpl) o; - if (cachingMode != null ? !cachingMode.equals(that.cachingMode) : that.cachingMode != null) - return false; - if (diskName != null ? !diskName.equals(that.diskName) : that.diskName != null) return false; - if (diskURI != null ? !diskURI.equals(that.diskURI) : that.diskURI != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; + if (cachingMode != null ? !cachingMode.equals(that.cachingMode) :that.cachingMode != null) return false; + if (diskName != null ? !diskName.equals(that.diskName) :that.diskName != null) return false; + if (diskURI != null ? !diskURI.equals(that.diskURI) :that.diskURI != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - cachingMode, diskName, diskURI, fsType, kind, readOnly, super.hashCode()); + return java.util.Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cachingMode != null) { - sb.append("cachingMode:"); - sb.append(cachingMode + ","); - } - if (diskName != null) { - sb.append("diskName:"); - sb.append(diskName + ","); - } - if (diskURI != null) { - sb.append("diskURI:"); - sb.append(diskURI + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly); - } + if (cachingMode != null) { sb.append("cachingMode:"); sb.append(cachingMode + ","); } + if (diskName != null) { sb.append("diskName:"); sb.append(diskName + ","); } + if (diskURI != null) { sb.append("diskURI:"); sb.append(diskURI + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java index deeb38f9d8..622646ec90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1AzureFilePersistentVolumeSourceBuilder - extends V1AzureFilePersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1AzureFilePersistentVolumeSource, V1AzureFilePersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1AzureFilePersistentVolumeSourceBuilder extends V1AzureFilePersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1AzureFilePersistentVolumeSourceBuilder() { this(false); } - public V1AzureFilePersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1AzureFilePersistentVolumeSource(), validationEnabled); } - - public V1AzureFilePersistentVolumeSourceBuilder( - V1AzureFilePersistentVolumeSourceFluent fluent) { + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1AzureFilePersistentVolumeSourceBuilder( - V1AzureFilePersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1AzureFilePersistentVolumeSource(), validationEnabled); } - - public V1AzureFilePersistentVolumeSourceBuilder( - V1AzureFilePersistentVolumeSourceFluent fluent, - V1AzureFilePersistentVolumeSource instance) { + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,V1AzureFilePersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1AzureFilePersistentVolumeSourceBuilder( - V1AzureFilePersistentVolumeSourceFluent fluent, - V1AzureFilePersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,V1AzureFilePersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withReadOnly(instance.getReadOnly()); fluent.withSecretName(instance.getSecretName()); @@ -55,16 +28,13 @@ public V1AzureFilePersistentVolumeSourceBuilder( fluent.withShareName(instance.getShareName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1AzureFilePersistentVolumeSourceBuilder( - V1AzureFilePersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withReadOnly(instance.getReadOnly()); this.withSecretName(instance.getSecretName()); @@ -73,12 +43,10 @@ public V1AzureFilePersistentVolumeSourceBuilder( this.withShareName(instance.getShareName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AzureFilePersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1AzureFilePersistentVolumeSource build() { V1AzureFilePersistentVolumeSource buildable = new V1AzureFilePersistentVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); @@ -87,4 +55,5 @@ public V1AzureFilePersistentVolumeSource build() { buildable.setShareName(fluent.getShareName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java index 6b08a5d207..531ee49e72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java @@ -1,46 +1,25 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1AzureFilePersistentVolumeSourceFluent< - A extends V1AzureFilePersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1AzureFilePersistentVolumeSourceFluent> extends Fluent{ public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getSecretName(); - public A withSecretName(String secretName); - public Boolean hasSecretName(); - public String getSecretNamespace(); - public A withSecretNamespace(String secretNamespace); - public Boolean hasSecretNamespace(); - public String getShareName(); - public A withShareName(String shareName); - public Boolean hasShareName(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java index 710bc594b5..2560da7b57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java @@ -1,26 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AzureFilePersistentVolumeSourceFluentImpl< - A extends V1AzureFilePersistentVolumeSourceFluent> - extends BaseFluent implements V1AzureFilePersistentVolumeSourceFluent { - public V1AzureFilePersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AzureFilePersistentVolumeSourceFluentImpl> extends BaseFluent implements V1AzureFilePersistentVolumeSourceFluent{ + public V1AzureFilePersistentVolumeSourceFluentImpl() { + } public V1AzureFilePersistentVolumeSourceFluentImpl(V1AzureFilePersistentVolumeSource instance) { this.withReadOnly(instance.getReadOnly()); @@ -29,110 +21,73 @@ public V1AzureFilePersistentVolumeSourceFluentImpl(V1AzureFilePersistentVolumeSo this.withSecretNamespace(instance.getSecretNamespace()); this.withShareName(instance.getShareName()); - } + } private Boolean readOnly; private String secretName; private String secretNamespace; private String shareName; - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getSecretName() { return this.secretName; } - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; + this.secretName=secretName; return (A) this; } - public Boolean hasSecretName() { return this.secretName != null; } - public String getSecretNamespace() { return this.secretNamespace; } - public A withSecretNamespace(String secretNamespace) { - this.secretNamespace = secretNamespace; - return (A) this; + this.secretNamespace=secretNamespace; return (A) this; } - public Boolean hasSecretNamespace() { return this.secretNamespace != null; } - public String getShareName() { return this.shareName; } - public A withShareName(String shareName) { - this.shareName = shareName; - return (A) this; + this.shareName=shareName; return (A) this; } - public Boolean hasShareName() { return this.shareName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1AzureFilePersistentVolumeSourceFluentImpl that = - (V1AzureFilePersistentVolumeSourceFluentImpl) o; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretName != null ? !secretName.equals(that.secretName) : that.secretName != null) - return false; - if (secretNamespace != null - ? !secretNamespace.equals(that.secretNamespace) - : that.secretNamespace != null) return false; - if (shareName != null ? !shareName.equals(that.shareName) : that.shareName != null) - return false; + V1AzureFilePersistentVolumeSourceFluentImpl that = (V1AzureFilePersistentVolumeSourceFluentImpl) o; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretName != null ? !secretName.equals(that.secretName) :that.secretName != null) return false; + if (secretNamespace != null ? !secretNamespace.equals(that.secretNamespace) :that.secretNamespace != null) return false; + if (shareName != null ? !shareName.equals(that.shareName) :that.shareName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - readOnly, secretName, secretNamespace, shareName, super.hashCode()); + return java.util.Objects.hash(readOnly, secretName, secretNamespace, shareName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretName != null) { - sb.append("secretName:"); - sb.append(secretName + ","); - } - if (secretNamespace != null) { - sb.append("secretNamespace:"); - sb.append(secretNamespace + ","); - } - if (shareName != null) { - sb.append("shareName:"); - sb.append(shareName); - } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); } + if (secretNamespace != null) { sb.append("secretNamespace:"); sb.append(secretNamespace + ","); } + if (shareName != null) { sb.append("shareName:"); sb.append(shareName); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java index 548aac81d8..13280d9ea4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1AzureFileVolumeSourceBuilder - extends V1AzureFileVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluentImpl implements VisitableBuilder{ public V1AzureFileVolumeSourceBuilder() { this(false); } - public V1AzureFileVolumeSourceBuilder(Boolean validationEnabled) { this(new V1AzureFileVolumeSource(), validationEnabled); } - public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent) { this(fluent, false); } - - public V1AzureFileVolumeSourceBuilder( - V1AzureFileVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1AzureFileVolumeSource(), validationEnabled); } - - public V1AzureFileVolumeSourceBuilder( - V1AzureFileVolumeSourceFluent fluent, V1AzureFileVolumeSource instance) { + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,V1AzureFileVolumeSource instance) { this(fluent, instance, false); } - - public V1AzureFileVolumeSourceBuilder( - V1AzureFileVolumeSourceFluent fluent, - V1AzureFileVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,V1AzureFileVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withReadOnly(instance.getReadOnly()); fluent.withSecretName(instance.getSecretName()); fluent.withShareName(instance.getShareName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1AzureFileVolumeSourceBuilder( - V1AzureFileVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withReadOnly(instance.getReadOnly()); this.withSecretName(instance.getSecretName()); this.withShareName(instance.getShareName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1AzureFileVolumeSourceFluent fluent; Boolean validationEnabled; - public V1AzureFileVolumeSource build() { V1AzureFileVolumeSource buildable = new V1AzureFileVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); @@ -79,4 +50,5 @@ public V1AzureFileVolumeSource build() { buildable.setShareName(fluent.getShareName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java index 471819bcd9..ddefe9b294 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java @@ -1,39 +1,22 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1AzureFileVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1AzureFileVolumeSourceFluent> extends Fluent{ public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getSecretName(); - public A withSecretName(String secretName); - public Boolean hasSecretName(); - public String getShareName(); - public A withShareName(String shareName); - public Boolean hasShareName(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java index f923308bb9..8529287196 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java @@ -1,112 +1,79 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1AzureFileVolumeSourceFluentImpl> - extends BaseFluent implements V1AzureFileVolumeSourceFluent { - public V1AzureFileVolumeSourceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1AzureFileVolumeSourceFluentImpl> extends BaseFluent implements V1AzureFileVolumeSourceFluent{ + public V1AzureFileVolumeSourceFluentImpl() { + } public V1AzureFileVolumeSourceFluentImpl(V1AzureFileVolumeSource instance) { this.withReadOnly(instance.getReadOnly()); this.withSecretName(instance.getSecretName()); this.withShareName(instance.getShareName()); - } + } private Boolean readOnly; private String secretName; private String shareName; - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getSecretName() { return this.secretName; } - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; + this.secretName=secretName; return (A) this; } - public Boolean hasSecretName() { return this.secretName != null; } - public String getShareName() { return this.shareName; } - public A withShareName(String shareName) { - this.shareName = shareName; - return (A) this; + this.shareName=shareName; return (A) this; } - public Boolean hasShareName() { return this.shareName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1AzureFileVolumeSourceFluentImpl that = (V1AzureFileVolumeSourceFluentImpl) o; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretName != null ? !secretName.equals(that.secretName) : that.secretName != null) - return false; - if (shareName != null ? !shareName.equals(that.shareName) : that.shareName != null) - return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretName != null ? !secretName.equals(that.secretName) :that.secretName != null) return false; + if (shareName != null ? !shareName.equals(that.shareName) :that.shareName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(readOnly, secretName, shareName, super.hashCode()); + return java.util.Objects.hash(readOnly, secretName, shareName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretName != null) { - sb.append("secretName:"); - sb.append(secretName + ","); - } - if (shareName != null) { - sb.append("shareName:"); - sb.append(shareName); - } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); } + if (shareName != null) { sb.append("shareName:"); sb.append(shareName); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java index cfe000e662..dc1e78c3d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1BindingBuilder extends V1BindingFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1BindingBuilder extends V1BindingFluentImpl implements VisitableBuilder{ public V1BindingBuilder() { this(false); } - public V1BindingBuilder(Boolean validationEnabled) { this(new V1Binding(), validationEnabled); } - public V1BindingBuilder(V1BindingFluent fluent) { this(fluent, false); } - - public V1BindingBuilder(V1BindingFluent fluent, Boolean validationEnabled) { + public V1BindingBuilder(V1BindingFluent fluent,Boolean validationEnabled) { this(fluent, new V1Binding(), validationEnabled); } - - public V1BindingBuilder(V1BindingFluent fluent, V1Binding instance) { + public V1BindingBuilder(V1BindingFluent fluent,V1Binding instance) { this(fluent, instance, false); } - - public V1BindingBuilder( - V1BindingFluent fluent, V1Binding instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1BindingBuilder(V1BindingFluent fluent,V1Binding instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1BindingBuilder( fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1BindingBuilder(V1Binding instance) { - this(instance, false); + this(instance,false); } - - public V1BindingBuilder(V1Binding instance, Boolean validationEnabled) { - this.fluent = this; + public V1BindingBuilder(V1Binding instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1BindingBuilder(V1Binding instance, Boolean validationEnabled) { this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1BindingFluent fluent; Boolean validationEnabled; - public V1Binding build() { V1Binding buildable = new V1Binding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1Binding build() { buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java index 4a305fab33..d9706f6220 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1BindingFluent> extends Fluent { + /** + * Generated + */ +public interface V1BindingFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1BindingFluent.MetadataNested withNewMetadata(); - public V1BindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1BindingFluent.MetadataNested editMetadata(); - public V1BindingFluent.MetadataNested editOrNewMetadata(); - public V1BindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getTarget(); - public V1ObjectReference buildTarget(); - public A withTarget(V1ObjectReference target); - public Boolean hasTarget(); - public V1BindingFluent.TargetNested withNewTarget(); - public V1BindingFluent.TargetNested withNewTargetLike(V1ObjectReference item); - public V1BindingFluent.TargetNested editTarget(); - public V1BindingFluent.TargetNested editOrNewTarget(); - public V1BindingFluent.TargetNested editOrNewTargetLike(V1ObjectReference item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface TargetNested - extends Nested, V1ObjectReferenceFluent> { + public interface TargetNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java index 3ebca77b02..2e3f50b264 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1BindingFluentImpl> extends BaseFluent - implements V1BindingFluent { - public V1BindingFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1BindingFluentImpl> extends BaseFluent implements V1BindingFluent{ + public V1BindingFluentImpl() { + } public V1BindingFluentImpl(V1Binding instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,219 +23,152 @@ public V1BindingFluentImpl(V1Binding instance) { this.withMetadata(instance.getMetadata()); this.withTarget(instance.getTarget()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ObjectReferenceBuilder target; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1BindingFluent.MetadataNested withNewMetadata() { return new V1BindingFluentImpl.MetadataNestedImpl(); } - public V1BindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1BindingFluentImpl.MetadataNestedImpl(item); } - public V1BindingFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1BindingFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1BindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V1ObjectReference buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V1ObjectReference target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V1ObjectReferenceBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V1ObjectReferenceBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V1BindingFluent.TargetNested withNewTarget() { return new V1BindingFluentImpl.TargetNestedImpl(); } - public V1BindingFluent.TargetNested withNewTargetLike(V1ObjectReference item) { return new V1BindingFluentImpl.TargetNestedImpl(item); } - public V1BindingFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V1BindingFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V1ObjectReferenceBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V1ObjectReferenceBuilder().build()); } - public V1BindingFluent.TargetNested editOrNewTargetLike(V1ObjectReference item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1BindingFluentImpl that = (V1BindingFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, target, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1BindingFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1BindingFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1BindingFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class TargetNestedImpl extends V1ObjectReferenceFluentImpl> - implements V1BindingFluent.TargetNested, Nested { + class TargetNestedImpl extends V1ObjectReferenceFluentImpl> implements V1BindingFluent.TargetNested,Nested{ TargetNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - TargetNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) V1BindingFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java index 654abe07b5..3455bef6fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1BoundObjectReferenceBuilder - extends V1BoundObjectReferenceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1BoundObjectReferenceBuilder extends V1BoundObjectReferenceFluentImpl implements VisitableBuilder{ public V1BoundObjectReferenceBuilder() { this(false); } - public V1BoundObjectReferenceBuilder(Boolean validationEnabled) { this(new V1BoundObjectReference(), validationEnabled); } - public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent) { this(fluent, false); } - - public V1BoundObjectReferenceBuilder( - V1BoundObjectReferenceFluent fluent, Boolean validationEnabled) { + public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1BoundObjectReference(), validationEnabled); } - - public V1BoundObjectReferenceBuilder( - V1BoundObjectReferenceFluent fluent, V1BoundObjectReference instance) { + public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,V1BoundObjectReference instance) { this(fluent, instance, false); } - - public V1BoundObjectReferenceBuilder( - V1BoundObjectReferenceFluent fluent, - V1BoundObjectReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,V1BoundObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -52,15 +28,13 @@ public V1BoundObjectReferenceBuilder( fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -69,12 +43,10 @@ public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance, Boolean va this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1BoundObjectReferenceFluent fluent; Boolean validationEnabled; - public V1BoundObjectReference build() { V1BoundObjectReference buildable = new V1BoundObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1BoundObjectReference build() { buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java index e66da6608e..9ed6b1e8bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java @@ -1,43 +1,24 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1BoundObjectReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1BoundObjectReferenceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java index 2f8141f990..7b06c09107 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1BoundObjectReferenceFluentImpl> - extends BaseFluent implements V1BoundObjectReferenceFluent { - public V1BoundObjectReferenceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1BoundObjectReferenceFluentImpl> extends BaseFluent implements V1BoundObjectReferenceFluent{ + public V1BoundObjectReferenceFluentImpl() { + } public V1BoundObjectReferenceFluentImpl(V1BoundObjectReference instance) { this.withApiVersion(instance.getApiVersion()); @@ -28,101 +21,70 @@ public V1BoundObjectReferenceFluentImpl(V1BoundObjectReference instance) { this.withName(instance.getName()); this.withUid(instance.getUid()); - } + } private String apiVersion; private String kind; private String name; private String uid; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1BoundObjectReferenceFluentImpl that = (V1BoundObjectReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, uid, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, name, uid, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java index 87589a94e9..097d29250b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIDriverBuilder extends V1CSIDriverFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIDriverBuilder extends V1CSIDriverFluentImpl implements VisitableBuilder{ public V1CSIDriverBuilder() { this(false); } - public V1CSIDriverBuilder(Boolean validationEnabled) { this(new V1CSIDriver(), validationEnabled); } - public V1CSIDriverBuilder(V1CSIDriverFluent fluent) { this(fluent, false); } - - public V1CSIDriverBuilder(V1CSIDriverFluent fluent, Boolean validationEnabled) { + public V1CSIDriverBuilder(V1CSIDriverFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIDriver(), validationEnabled); } - - public V1CSIDriverBuilder(V1CSIDriverFluent fluent, V1CSIDriver instance) { + public V1CSIDriverBuilder(V1CSIDriverFluent fluent,V1CSIDriver instance) { this(fluent, instance, false); } - - public V1CSIDriverBuilder( - V1CSIDriverFluent fluent, V1CSIDriver instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIDriverBuilder(V1CSIDriverFluent fluent,V1CSIDriver instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1CSIDriverBuilder( fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIDriverBuilder(V1CSIDriver instance) { - this(instance, false); + this(instance,false); } - - public V1CSIDriverBuilder(V1CSIDriver instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIDriverBuilder(V1CSIDriver instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1CSIDriverBuilder(V1CSIDriver instance, Boolean validationEnabled) { this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIDriverFluent fluent; Boolean validationEnabled; - public V1CSIDriver build() { V1CSIDriver buildable = new V1CSIDriver(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1CSIDriver build() { buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java index e617fce810..ab0ceffb07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CSIDriverFluent> extends Fluent { + /** + * Generated + */ +public interface V1CSIDriverFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1CSIDriverFluent.MetadataNested withNewMetadata(); - public V1CSIDriverFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1CSIDriverFluent.MetadataNested editMetadata(); - public V1CSIDriverFluent.MetadataNested editOrNewMetadata(); - public V1CSIDriverFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CSIDriverSpec getSpec(); - public V1CSIDriverSpec buildSpec(); - public A withSpec(V1CSIDriverSpec spec); - public Boolean hasSpec(); - public V1CSIDriverFluent.SpecNested withNewSpec(); - public V1CSIDriverFluent.SpecNested withNewSpecLike(V1CSIDriverSpec item); - public V1CSIDriverFluent.SpecNested editSpec(); - public V1CSIDriverFluent.SpecNested editOrNewSpec(); - public V1CSIDriverFluent.SpecNested editOrNewSpecLike(V1CSIDriverSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1CSIDriverSpecFluent> { + public interface SpecNested extends Nested,V1CSIDriverSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java index 40a6a785ab..50444c5421 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIDriverFluentImpl> extends BaseFluent - implements V1CSIDriverFluent { - public V1CSIDriverFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIDriverFluentImpl> extends BaseFluent implements V1CSIDriverFluent{ + public V1CSIDriverFluentImpl() { + } public V1CSIDriverFluentImpl(V1CSIDriver instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,218 +23,152 @@ public V1CSIDriverFluentImpl(V1CSIDriver instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CSIDriverSpecBuilder spec; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1CSIDriverFluent.MetadataNested withNewMetadata() { return new V1CSIDriverFluentImpl.MetadataNestedImpl(); } - public V1CSIDriverFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CSIDriverFluentImpl.MetadataNestedImpl(item); } - public V1CSIDriverFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CSIDriverFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1CSIDriverFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CSIDriverSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1CSIDriverSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1CSIDriverSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1CSIDriverSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1CSIDriverSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1CSIDriverFluent.SpecNested withNewSpec() { return new V1CSIDriverFluentImpl.SpecNestedImpl(); } - public V1CSIDriverFluent.SpecNested withNewSpecLike(V1CSIDriverSpec item) { return new V1CSIDriverFluentImpl.SpecNestedImpl(item); } - public V1CSIDriverFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1CSIDriverFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1CSIDriverSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1CSIDriverSpecBuilder().build()); } - public V1CSIDriverFluent.SpecNested editOrNewSpecLike(V1CSIDriverSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIDriverFluentImpl that = (V1CSIDriverFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1CSIDriverFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1CSIDriverFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1CSIDriverFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1CSIDriverSpecFluentImpl> - implements V1CSIDriverFluent.SpecNested, Nested { + class SpecNestedImpl extends V1CSIDriverSpecFluentImpl> implements V1CSIDriverFluent.SpecNested,Nested{ SpecNestedImpl(V1CSIDriverSpec item) { this.builder = new V1CSIDriverSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1CSIDriverSpecBuilder(this); } - V1CSIDriverSpecBuilder builder; - public N and() { return (N) V1CSIDriverFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java index e1aaab8a58..ead734a104 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIDriverListBuilder extends V1CSIDriverListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIDriverListBuilder extends V1CSIDriverListFluentImpl implements VisitableBuilder{ public V1CSIDriverListBuilder() { this(false); } - public V1CSIDriverListBuilder(Boolean validationEnabled) { this(new V1CSIDriverList(), validationEnabled); } - public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent) { this(fluent, false); } - - public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent, Boolean validationEnabled) { + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIDriverList(), validationEnabled); } - - public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent, V1CSIDriverList instance) { + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,V1CSIDriverList instance) { this(fluent, instance, false); } - - public V1CSIDriverListBuilder( - V1CSIDriverListFluent fluent, V1CSIDriverList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,V1CSIDriverList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1CSIDriverListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIDriverListBuilder(V1CSIDriverList instance) { - this(instance, false); + this(instance,false); } - - public V1CSIDriverListBuilder(V1CSIDriverList instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIDriverListBuilder(V1CSIDriverList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1CSIDriverListBuilder(V1CSIDriverList instance, Boolean validationEnable this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIDriverListFluent fluent; Boolean validationEnabled; - public V1CSIDriverList build() { V1CSIDriverList buildable = new V1CSIDriverList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1CSIDriverList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java index 22d5f4964a..a1dec56d67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CSIDriverListFluent> extends Fluent { + /** + * Generated + */ +public interface V1CSIDriverListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1CSIDriver item); - - public A setToItems(Integer index, V1CSIDriver item); - + public A addToItems(Integer index,V1CSIDriver item); + public A setToItems(Integer index,V1CSIDriver item); public A addToItems(io.kubernetes.client.openapi.models.V1CSIDriver... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIDriver... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1CSIDriver buildItem(Integer index); - public V1CSIDriver buildFirstItem(); - public V1CSIDriver buildLastItem(); - public V1CSIDriver buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items); - public Boolean hasItems(); - public V1CSIDriverListFluent.ItemsNested addNewItem(); - public V1CSIDriverListFluent.ItemsNested addNewItemLike(V1CSIDriver item); - - public V1CSIDriverListFluent.ItemsNested setNewItemLike(Integer index, V1CSIDriver item); - + public V1CSIDriverListFluent.ItemsNested setNewItemLike(Integer index,V1CSIDriver item); public V1CSIDriverListFluent.ItemsNested editItem(Integer index); - public V1CSIDriverListFluent.ItemsNested editFirstItem(); - public V1CSIDriverListFluent.ItemsNested editLastItem(); - - public V1CSIDriverListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1CSIDriverListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1CSIDriverListFluent.MetadataNested withNewMetadata(); - public V1CSIDriverListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1CSIDriverListFluent.MetadataNested editMetadata(); - public V1CSIDriverListFluent.MetadataNested editOrNewMetadata(); - public V1CSIDriverListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1CSIDriverFluent> { + public interface ItemsNested extends Nested,V1CSIDriverFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java index 7b77d89e82..fa2e5ba0e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIDriverListFluentImpl> extends BaseFluent - implements V1CSIDriverListFluent { - public V1CSIDriverListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIDriverListFluentImpl> extends BaseFluent implements V1CSIDriverListFluent{ + public V1CSIDriverListFluentImpl() { + } public V1CSIDriverListFluentImpl(V1CSIDriverList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1CSIDriverListFluentImpl(V1CSIDriverList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1CSIDriver item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1CSIDriver item) { + if (this.items == null) {this.items = new ArrayList();} + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1CSIDriver item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1CSIDriver item) { + if (this.items == null) {this.items = new ArrayList();} V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1CSIDriver buildItem(Integer index) { return this.items.get(index).build(); } - public V1CSIDriver buildFirstItem() { return this.items.get(0).build(); } - public V1CSIDriver buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1CSIDriver buildMatchingItem(Predicate predicate) { - for (V1CSIDriverBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1CSIDriverBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1CSIDriverBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CSIDriverBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CSIDriver item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1CSIDriver item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1CSIDriver item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1CSIDriver item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1CSIDriverListFluent.ItemsNested addNewItem() { return new V1CSIDriverListFluentImpl.ItemsNestedImpl(); } - public V1CSIDriverListFluent.ItemsNested addNewItemLike(V1CSIDriver item) { return new V1CSIDriverListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1CSIDriverListFluent.ItemsNested setNewItemLike(Integer index, V1CSIDriver item) { + public V1CSIDriverListFluent.ItemsNested setNewItemLike(Integer index,V1CSIDriver item) { return new V1CSIDriverListFluentImpl.ItemsNestedImpl(index, item); } - public V1CSIDriverListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1CSIDriverListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1CSIDriverListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1CSIDriverListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1CSIDriverListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1CSIDriverListFluentImpl.MetadataNestedImpl(); } - public V1CSIDriverListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1CSIDriverListFluentImpl.MetadataNestedImpl(item); } - public V1CSIDriverListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CSIDriverListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1CSIDriverListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIDriverListFluentImpl that = (V1CSIDriverListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1CSIDriverFluentImpl> - implements V1CSIDriverListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1CSIDriver item) { + class ItemsNestedImpl extends V1CSIDriverFluentImpl> implements V1CSIDriverListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1CSIDriver item) { this.index = index; this.builder = new V1CSIDriverBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1CSIDriverBuilder(this); } - V1CSIDriverBuilder builder; Integer index; - public N and() { - return (N) V1CSIDriverListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1CSIDriverListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1CSIDriverListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1CSIDriverListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1CSIDriverListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java index 36809891e5..2a08614931 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluentImpl implements VisitableBuilder{ public V1CSIDriverSpecBuilder() { this(false); } - public V1CSIDriverSpecBuilder(Boolean validationEnabled) { this(new V1CSIDriverSpec(), validationEnabled); } - public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent) { this(fluent, false); } - - public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent, Boolean validationEnabled) { + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIDriverSpec(), validationEnabled); } - - public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent, V1CSIDriverSpec instance) { + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,V1CSIDriverSpec instance) { this(fluent, instance, false); } - - public V1CSIDriverSpecBuilder( - V1CSIDriverSpecFluent fluent, V1CSIDriverSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,V1CSIDriverSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAttachRequired(instance.getAttachRequired()); fluent.withFsGroupPolicy(instance.getFsGroupPolicy()); @@ -55,15 +36,13 @@ public V1CSIDriverSpecBuilder( fluent.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance) { - this(instance, false); + this(instance,false); } - - public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAttachRequired(instance.getAttachRequired()); this.withFsGroupPolicy(instance.getFsGroupPolicy()); @@ -80,12 +59,10 @@ public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance, Boolean validationEnable this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIDriverSpecFluent fluent; Boolean validationEnabled; - public V1CSIDriverSpec build() { V1CSIDriverSpec buildable = new V1CSIDriverSpec(); buildable.setAttachRequired(fluent.getAttachRequired()); @@ -98,4 +75,5 @@ public V1CSIDriverSpec build() { buildable.setVolumeLifecycleModes(fluent.getVolumeLifecycleModes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java index 5296f11c37..7d5dceae43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java @@ -1,165 +1,94 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CSIDriverSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1CSIDriverSpecFluent> extends Fluent{ public Boolean getAttachRequired(); - public A withAttachRequired(Boolean attachRequired); - public Boolean hasAttachRequired(); - public String getFsGroupPolicy(); - public A withFsGroupPolicy(String fsGroupPolicy); - public Boolean hasFsGroupPolicy(); - public Boolean getPodInfoOnMount(); - public A withPodInfoOnMount(Boolean podInfoOnMount); - public Boolean hasPodInfoOnMount(); - public Boolean getRequiresRepublish(); - public A withRequiresRepublish(Boolean requiresRepublish); - public Boolean hasRequiresRepublish(); - public Boolean getSeLinuxMount(); - public A withSeLinuxMount(Boolean seLinuxMount); - public Boolean hasSeLinuxMount(); - public Boolean getStorageCapacity(); - public A withStorageCapacity(Boolean storageCapacity); - public Boolean hasStorageCapacity(); - - public A addToTokenRequests(Integer index, StorageV1TokenRequest item); - - public A setToTokenRequests(Integer index, StorageV1TokenRequest item); - + public A addToTokenRequests(Integer index,StorageV1TokenRequest item); + public A setToTokenRequests(Integer index,StorageV1TokenRequest item); public A addToTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items); - public A addAllToTokenRequests(Collection items); - - public A removeFromTokenRequests( - io.kubernetes.client.openapi.models.StorageV1TokenRequest... items); - + public A removeFromTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items); public A removeAllFromTokenRequests(Collection items); - public A removeMatchingFromTokenRequests(Predicate predicate); - + /** * This method has been deprecated, please use method buildTokenRequests instead. - * * @return The buildable object. */ @Deprecated public List getTokenRequests(); - public List buildTokenRequests(); - public StorageV1TokenRequest buildTokenRequest(Integer index); - public StorageV1TokenRequest buildFirstTokenRequest(); - public StorageV1TokenRequest buildLastTokenRequest(); - - public StorageV1TokenRequest buildMatchingTokenRequest( - Predicate predicate); - + public StorageV1TokenRequest buildMatchingTokenRequest(Predicate predicate); public Boolean hasMatchingTokenRequest(Predicate predicate); - public A withTokenRequests(List tokenRequests); - - public A withTokenRequests( - io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests); - + public A withTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests); public Boolean hasTokenRequests(); - public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequest(); - - public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequestLike( - StorageV1TokenRequest item); - - public V1CSIDriverSpecFluent.TokenRequestsNested setNewTokenRequestLike( - Integer index, StorageV1TokenRequest item); - + public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item); + public V1CSIDriverSpecFluent.TokenRequestsNested setNewTokenRequestLike(Integer index,StorageV1TokenRequest item); public V1CSIDriverSpecFluent.TokenRequestsNested editTokenRequest(Integer index); - public V1CSIDriverSpecFluent.TokenRequestsNested editFirstTokenRequest(); - public V1CSIDriverSpecFluent.TokenRequestsNested editLastTokenRequest(); - - public V1CSIDriverSpecFluent.TokenRequestsNested editMatchingTokenRequest( - Predicate predicate); - - public A addToVolumeLifecycleModes(Integer index, String item); - - public A setToVolumeLifecycleModes(Integer index, String item); - + public V1CSIDriverSpecFluent.TokenRequestsNested editMatchingTokenRequest(Predicate predicate); + public A addToVolumeLifecycleModes(Integer index,String item); + public A setToVolumeLifecycleModes(Integer index,String item); public A addToVolumeLifecycleModes(java.lang.String... items); - public A addAllToVolumeLifecycleModes(Collection items); - public A removeFromVolumeLifecycleModes(java.lang.String... items); - public A removeAllFromVolumeLifecycleModes(Collection items); - public List getVolumeLifecycleModes(); - public String getVolumeLifecycleMode(Integer index); - public String getFirstVolumeLifecycleMode(); - public String getLastVolumeLifecycleMode(); - public String getMatchingVolumeLifecycleMode(Predicate predicate); - public Boolean hasMatchingVolumeLifecycleMode(Predicate predicate); - public A withVolumeLifecycleModes(List volumeLifecycleModes); - public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes); - public Boolean hasVolumeLifecycleModes(); - public A withAttachRequired(); - public A withPodInfoOnMount(); - public A withRequiresRepublish(); - public A withSeLinuxMount(); - public A withStorageCapacity(); - - public interface TokenRequestsNested - extends Nested, StorageV1TokenRequestFluent> { + public interface TokenRequestsNested extends Nested,StorageV1TokenRequestFluent>{ public N and(); - public N endTokenRequest(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java index 8b9b50dcd0..8e4bcf2158 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIDriverSpecFluentImpl> extends BaseFluent - implements V1CSIDriverSpecFluent { - public V1CSIDriverSpecFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIDriverSpecFluentImpl> extends BaseFluent implements V1CSIDriverSpecFluent{ + public V1CSIDriverSpecFluentImpl() { + } public V1CSIDriverSpecFluentImpl(V1CSIDriverSpec instance) { this.withAttachRequired(instance.getAttachRequired()); @@ -42,8 +38,8 @@ public V1CSIDriverSpecFluentImpl(V1CSIDriverSpec instance) { this.withTokenRequests(instance.getTokenRequests()); this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); - } + } private Boolean attachRequired; private String fsGroupPolicy; private Boolean podInfoOnMount; @@ -52,162 +48,85 @@ public V1CSIDriverSpecFluentImpl(V1CSIDriverSpec instance) { private Boolean storageCapacity; private ArrayList tokenRequests; private List volumeLifecycleModes; - public Boolean getAttachRequired() { return this.attachRequired; } - public A withAttachRequired(Boolean attachRequired) { - this.attachRequired = attachRequired; - return (A) this; + this.attachRequired=attachRequired; return (A) this; } - public Boolean hasAttachRequired() { return this.attachRequired != null; } - public String getFsGroupPolicy() { return this.fsGroupPolicy; } - public A withFsGroupPolicy(String fsGroupPolicy) { - this.fsGroupPolicy = fsGroupPolicy; - return (A) this; + this.fsGroupPolicy=fsGroupPolicy; return (A) this; } - public Boolean hasFsGroupPolicy() { return this.fsGroupPolicy != null; } - public Boolean getPodInfoOnMount() { return this.podInfoOnMount; } - public A withPodInfoOnMount(Boolean podInfoOnMount) { - this.podInfoOnMount = podInfoOnMount; - return (A) this; + this.podInfoOnMount=podInfoOnMount; return (A) this; } - public Boolean hasPodInfoOnMount() { return this.podInfoOnMount != null; } - public Boolean getRequiresRepublish() { return this.requiresRepublish; } - public A withRequiresRepublish(Boolean requiresRepublish) { - this.requiresRepublish = requiresRepublish; - return (A) this; + this.requiresRepublish=requiresRepublish; return (A) this; } - public Boolean hasRequiresRepublish() { return this.requiresRepublish != null; } - public Boolean getSeLinuxMount() { return this.seLinuxMount; } - public A withSeLinuxMount(Boolean seLinuxMount) { - this.seLinuxMount = seLinuxMount; - return (A) this; + this.seLinuxMount=seLinuxMount; return (A) this; } - public Boolean hasSeLinuxMount() { return this.seLinuxMount != null; } - public Boolean getStorageCapacity() { return this.storageCapacity; } - public A withStorageCapacity(Boolean storageCapacity) { - this.storageCapacity = storageCapacity; - return (A) this; + this.storageCapacity=storageCapacity; return (A) this; } - public Boolean hasStorageCapacity() { return this.storageCapacity != null; } - - public A addToTokenRequests(Integer index, StorageV1TokenRequest item) { - if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); - } - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables - .get("tokenRequests") - .add(index >= 0 ? index : _visitables.get("tokenRequests").size(), builder); - this.tokenRequests.add(index >= 0 ? index : tokenRequests.size(), builder); - return (A) this; + public A addToTokenRequests(Integer index,StorageV1TokenRequest item) { + if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(index >= 0 ? index : _visitables.get("tokenRequests").size(), builder);this.tokenRequests.add(index >= 0 ? index : tokenRequests.size(), builder); return (A)this; } - - public A setToTokenRequests(Integer index, StorageV1TokenRequest item) { - if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); - } + public A setToTokenRequests(Integer index,StorageV1TokenRequest item) { + if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= _visitables.get("tokenRequests").size()) { - _visitables.get("tokenRequests").add(builder); - } else { - _visitables.get("tokenRequests").set(index, builder); - } - if (index < 0 || index >= tokenRequests.size()) { - tokenRequests.add(builder); - } else { - tokenRequests.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("tokenRequests").size()) { _visitables.get("tokenRequests").add(builder); } else { _visitables.get("tokenRequests").set(index, builder);} + if (index < 0 || index >= tokenRequests.size()) { tokenRequests.add(builder); } else { tokenRequests.set(index, builder);} + return (A)this; } - public A addToTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); - } - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").add(builder); - this.tokenRequests.add(builder); - } - return (A) this; + if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} + for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(builder);this.tokenRequests.add(builder);} return (A)this; } - public A addAllToTokenRequests(Collection items) { - if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); - } - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").add(builder); - this.tokenRequests.add(builder); - } - return (A) this; + if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} + for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(builder);this.tokenRequests.add(builder);} return (A)this; } - - public A removeFromTokenRequests( - io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").remove(builder); - if (this.tokenRequests != null) { - this.tokenRequests.remove(builder); - } - } - return (A) this; + public A removeFromTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { + for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").remove(builder);if (this.tokenRequests != null) {this.tokenRequests.remove(builder);}} return (A)this; } - public A removeAllFromTokenRequests(Collection items) { - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").remove(builder); - if (this.tokenRequests != null) { - this.tokenRequests.remove(builder); - } - } - return (A) this; + for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").remove(builder);if (this.tokenRequests != null) {this.tokenRequests.remove(builder);}} return (A)this; } - public A removeMatchingFromTokenRequests(Predicate predicate) { if (tokenRequests == null) return (A) this; final Iterator each = tokenRequests.iterator(); @@ -219,371 +138,191 @@ public A removeMatchingFromTokenRequests(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTokenRequests instead. - * * @return The buildable object. */ @Deprecated public List getTokenRequests() { return tokenRequests != null ? build(tokenRequests) : null; } - public List buildTokenRequests() { return tokenRequests != null ? build(tokenRequests) : null; } - public StorageV1TokenRequest buildTokenRequest(Integer index) { return this.tokenRequests.get(index).build(); } - public StorageV1TokenRequest buildFirstTokenRequest() { return this.tokenRequests.get(0).build(); } - public StorageV1TokenRequest buildLastTokenRequest() { return this.tokenRequests.get(tokenRequests.size() - 1).build(); } - - public StorageV1TokenRequest buildMatchingTokenRequest( - Predicate predicate) { - for (StorageV1TokenRequestBuilder item : tokenRequests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public StorageV1TokenRequest buildMatchingTokenRequest(Predicate predicate) { + for (StorageV1TokenRequestBuilder item: tokenRequests) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingTokenRequest(Predicate predicate) { - for (StorageV1TokenRequestBuilder item : tokenRequests) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (StorageV1TokenRequestBuilder item: tokenRequests) { if(predicate.test(item)){ return true;} } return false; } - public A withTokenRequests(List tokenRequests) { - if (this.tokenRequests != null) { - _visitables.get("tokenRequests").removeAll(this.tokenRequests); - } - if (tokenRequests != null) { - this.tokenRequests = new ArrayList(); - for (StorageV1TokenRequest item : tokenRequests) { - this.addToTokenRequests(item); - } - } else { - this.tokenRequests = null; - } - return (A) this; + if (this.tokenRequests != null) { _visitables.get("tokenRequests").removeAll(this.tokenRequests);} + if (tokenRequests != null) {this.tokenRequests = new ArrayList(); for (StorageV1TokenRequest item : tokenRequests){this.addToTokenRequests(item);}} else { this.tokenRequests = null;} return (A) this; } - - public A withTokenRequests( - io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests) { - if (this.tokenRequests != null) { - this.tokenRequests.clear(); - } - if (tokenRequests != null) { - for (StorageV1TokenRequest item : tokenRequests) { - this.addToTokenRequests(item); - } - } - return (A) this; + public A withTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests) { + if (this.tokenRequests != null) {this.tokenRequests.clear();} + if (tokenRequests != null) {for (StorageV1TokenRequest item :tokenRequests){ this.addToTokenRequests(item);}} return (A) this; } - public Boolean hasTokenRequests() { return tokenRequests != null && !tokenRequests.isEmpty(); } - public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequest() { return new V1CSIDriverSpecFluentImpl.TokenRequestsNestedImpl(); } - - public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequestLike( - StorageV1TokenRequest item) { + public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item) { return new V1CSIDriverSpecFluentImpl.TokenRequestsNestedImpl(-1, item); } - - public V1CSIDriverSpecFluent.TokenRequestsNested setNewTokenRequestLike( - Integer index, StorageV1TokenRequest item) { + public V1CSIDriverSpecFluent.TokenRequestsNested setNewTokenRequestLike(Integer index,StorageV1TokenRequest item) { return new V1CSIDriverSpecFluentImpl.TokenRequestsNestedImpl(index, item); } - public V1CSIDriverSpecFluent.TokenRequestsNested editTokenRequest(Integer index) { - if (tokenRequests.size() <= index) - throw new RuntimeException("Can't edit tokenRequests. Index exceeds size."); + if (tokenRequests.size() <= index) throw new RuntimeException("Can't edit tokenRequests. Index exceeds size."); return setNewTokenRequestLike(index, buildTokenRequest(index)); } - public V1CSIDriverSpecFluent.TokenRequestsNested editFirstTokenRequest() { - if (tokenRequests.size() == 0) - throw new RuntimeException("Can't edit first tokenRequests. The list is empty."); + if (tokenRequests.size() == 0) throw new RuntimeException("Can't edit first tokenRequests. The list is empty."); return setNewTokenRequestLike(0, buildTokenRequest(0)); } - public V1CSIDriverSpecFluent.TokenRequestsNested editLastTokenRequest() { int index = tokenRequests.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last tokenRequests. The list is empty."); return setNewTokenRequestLike(index, buildTokenRequest(index)); } - - public V1CSIDriverSpecFluent.TokenRequestsNested editMatchingTokenRequest( - Predicate predicate) { + public V1CSIDriverSpecFluent.TokenRequestsNested editMatchingTokenRequest(Predicate predicate) { int index = -1; - for (int i = 0; i < tokenRequests.size(); i++) { - if (predicate.test(tokenRequests.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } + public A addToVolumeLifecycleModes(Integer index,String item) { + if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} this.volumeLifecycleModes.add(index, item); - return (A) this; + return (A)this; } - - public A setToVolumeLifecycleModes(Integer index, String item) { - if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); - } - this.volumeLifecycleModes.set(index, item); - return (A) this; + public A setToVolumeLifecycleModes(Integer index,String item) { + if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} + this.volumeLifecycleModes.set(index, item); return (A)this; } - public A addToVolumeLifecycleModes(java.lang.String... items) { - if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); - } - for (String item : items) { - this.volumeLifecycleModes.add(item); - } - return (A) this; + if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} + for (String item : items) {this.volumeLifecycleModes.add(item);} return (A)this; } - public A addAllToVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); - } - for (String item : items) { - this.volumeLifecycleModes.add(item); - } - return (A) this; + if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} + for (String item : items) {this.volumeLifecycleModes.add(item);} return (A)this; } - public A removeFromVolumeLifecycleModes(java.lang.String... items) { - for (String item : items) { - if (this.volumeLifecycleModes != null) { - this.volumeLifecycleModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.volumeLifecycleModes!= null){ this.volumeLifecycleModes.remove(item);}} return (A)this; } - public A removeAllFromVolumeLifecycleModes(Collection items) { - for (String item : items) { - if (this.volumeLifecycleModes != null) { - this.volumeLifecycleModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.volumeLifecycleModes!= null){ this.volumeLifecycleModes.remove(item);}} return (A)this; } - public List getVolumeLifecycleModes() { return this.volumeLifecycleModes; } - public String getVolumeLifecycleMode(Integer index) { return this.volumeLifecycleModes.get(index); } - public String getFirstVolumeLifecycleMode() { return this.volumeLifecycleModes.get(0); } - public String getLastVolumeLifecycleMode() { return this.volumeLifecycleModes.get(volumeLifecycleModes.size() - 1); } - public String getMatchingVolumeLifecycleMode(Predicate predicate) { - for (String item : volumeLifecycleModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: volumeLifecycleModes) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVolumeLifecycleMode(Predicate predicate) { - for (String item : volumeLifecycleModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: volumeLifecycleModes) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumeLifecycleModes(List volumeLifecycleModes) { - if (volumeLifecycleModes != null) { - this.volumeLifecycleModes = new ArrayList(); - for (String item : volumeLifecycleModes) { - this.addToVolumeLifecycleModes(item); - } - } else { - this.volumeLifecycleModes = null; - } - return (A) this; + if (volumeLifecycleModes != null) {this.volumeLifecycleModes = new ArrayList(); for (String item : volumeLifecycleModes){this.addToVolumeLifecycleModes(item);}} else { this.volumeLifecycleModes = null;} return (A) this; } - public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes) { - if (this.volumeLifecycleModes != null) { - this.volumeLifecycleModes.clear(); - } - if (volumeLifecycleModes != null) { - for (String item : volumeLifecycleModes) { - this.addToVolumeLifecycleModes(item); - } - } - return (A) this; + if (this.volumeLifecycleModes != null) {this.volumeLifecycleModes.clear();} + if (volumeLifecycleModes != null) {for (String item :volumeLifecycleModes){ this.addToVolumeLifecycleModes(item);}} return (A) this; } - public Boolean hasVolumeLifecycleModes() { return volumeLifecycleModes != null && !volumeLifecycleModes.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIDriverSpecFluentImpl that = (V1CSIDriverSpecFluentImpl) o; - if (attachRequired != null - ? !attachRequired.equals(that.attachRequired) - : that.attachRequired != null) return false; - if (fsGroupPolicy != null - ? !fsGroupPolicy.equals(that.fsGroupPolicy) - : that.fsGroupPolicy != null) return false; - if (podInfoOnMount != null - ? !podInfoOnMount.equals(that.podInfoOnMount) - : that.podInfoOnMount != null) return false; - if (requiresRepublish != null - ? !requiresRepublish.equals(that.requiresRepublish) - : that.requiresRepublish != null) return false; - if (seLinuxMount != null ? !seLinuxMount.equals(that.seLinuxMount) : that.seLinuxMount != null) - return false; - if (storageCapacity != null - ? !storageCapacity.equals(that.storageCapacity) - : that.storageCapacity != null) return false; - if (tokenRequests != null - ? !tokenRequests.equals(that.tokenRequests) - : that.tokenRequests != null) return false; - if (volumeLifecycleModes != null - ? !volumeLifecycleModes.equals(that.volumeLifecycleModes) - : that.volumeLifecycleModes != null) return false; + if (attachRequired != null ? !attachRequired.equals(that.attachRequired) :that.attachRequired != null) return false; + if (fsGroupPolicy != null ? !fsGroupPolicy.equals(that.fsGroupPolicy) :that.fsGroupPolicy != null) return false; + if (podInfoOnMount != null ? !podInfoOnMount.equals(that.podInfoOnMount) :that.podInfoOnMount != null) return false; + if (requiresRepublish != null ? !requiresRepublish.equals(that.requiresRepublish) :that.requiresRepublish != null) return false; + if (seLinuxMount != null ? !seLinuxMount.equals(that.seLinuxMount) :that.seLinuxMount != null) return false; + if (storageCapacity != null ? !storageCapacity.equals(that.storageCapacity) :that.storageCapacity != null) return false; + if (tokenRequests != null ? !tokenRequests.equals(that.tokenRequests) :that.tokenRequests != null) return false; + if (volumeLifecycleModes != null ? !volumeLifecycleModes.equals(that.volumeLifecycleModes) :that.volumeLifecycleModes != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - attachRequired, - fsGroupPolicy, - podInfoOnMount, - requiresRepublish, - seLinuxMount, - storageCapacity, - tokenRequests, - volumeLifecycleModes, - super.hashCode()); + return java.util.Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (attachRequired != null) { - sb.append("attachRequired:"); - sb.append(attachRequired + ","); - } - if (fsGroupPolicy != null) { - sb.append("fsGroupPolicy:"); - sb.append(fsGroupPolicy + ","); - } - if (podInfoOnMount != null) { - sb.append("podInfoOnMount:"); - sb.append(podInfoOnMount + ","); - } - if (requiresRepublish != null) { - sb.append("requiresRepublish:"); - sb.append(requiresRepublish + ","); - } - if (seLinuxMount != null) { - sb.append("seLinuxMount:"); - sb.append(seLinuxMount + ","); - } - if (storageCapacity != null) { - sb.append("storageCapacity:"); - sb.append(storageCapacity + ","); - } - if (tokenRequests != null && !tokenRequests.isEmpty()) { - sb.append("tokenRequests:"); - sb.append(tokenRequests + ","); - } - if (volumeLifecycleModes != null && !volumeLifecycleModes.isEmpty()) { - sb.append("volumeLifecycleModes:"); - sb.append(volumeLifecycleModes); - } + if (attachRequired != null) { sb.append("attachRequired:"); sb.append(attachRequired + ","); } + if (fsGroupPolicy != null) { sb.append("fsGroupPolicy:"); sb.append(fsGroupPolicy + ","); } + if (podInfoOnMount != null) { sb.append("podInfoOnMount:"); sb.append(podInfoOnMount + ","); } + if (requiresRepublish != null) { sb.append("requiresRepublish:"); sb.append(requiresRepublish + ","); } + if (seLinuxMount != null) { sb.append("seLinuxMount:"); sb.append(seLinuxMount + ","); } + if (storageCapacity != null) { sb.append("storageCapacity:"); sb.append(storageCapacity + ","); } + if (tokenRequests != null && !tokenRequests.isEmpty()) { sb.append("tokenRequests:"); sb.append(tokenRequests + ","); } + if (volumeLifecycleModes != null && !volumeLifecycleModes.isEmpty()) { sb.append("volumeLifecycleModes:"); sb.append(volumeLifecycleModes); } sb.append("}"); return sb.toString(); } - public A withAttachRequired() { return withAttachRequired(true); } - public A withPodInfoOnMount() { return withPodInfoOnMount(true); } - public A withRequiresRepublish() { return withRequiresRepublish(true); } - public A withSeLinuxMount() { return withSeLinuxMount(true); } - public A withStorageCapacity() { return withStorageCapacity(true); } - - class TokenRequestsNestedImpl - extends StorageV1TokenRequestFluentImpl> - implements V1CSIDriverSpecFluent.TokenRequestsNested, Nested { - TokenRequestsNestedImpl(Integer index, StorageV1TokenRequest item) { + class TokenRequestsNestedImpl extends StorageV1TokenRequestFluentImpl> implements V1CSIDriverSpecFluent.TokenRequestsNested,Nested{ + TokenRequestsNestedImpl(Integer index,StorageV1TokenRequest item) { this.index = index; this.builder = new StorageV1TokenRequestBuilder(this, item); } - TokenRequestsNestedImpl() { this.index = -1; this.builder = new StorageV1TokenRequestBuilder(this); } - StorageV1TokenRequestBuilder builder; Integer index; - public N and() { - return (N) V1CSIDriverSpecFluentImpl.this.setToTokenRequests(index, builder.build()); + return (N) V1CSIDriverSpecFluentImpl.this.setToTokenRequests(index,builder.build()); } - public N endTokenRequest() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java index 236507555a..6e9f896860 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSINodeBuilder extends V1CSINodeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSINodeBuilder extends V1CSINodeFluentImpl implements VisitableBuilder{ public V1CSINodeBuilder() { this(false); } - public V1CSINodeBuilder(Boolean validationEnabled) { this(new V1CSINode(), validationEnabled); } - public V1CSINodeBuilder(V1CSINodeFluent fluent) { this(fluent, false); } - - public V1CSINodeBuilder(V1CSINodeFluent fluent, Boolean validationEnabled) { + public V1CSINodeBuilder(V1CSINodeFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSINode(), validationEnabled); } - - public V1CSINodeBuilder(V1CSINodeFluent fluent, V1CSINode instance) { + public V1CSINodeBuilder(V1CSINodeFluent fluent,V1CSINode instance) { this(fluent, instance, false); } - - public V1CSINodeBuilder( - V1CSINodeFluent fluent, V1CSINode instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSINodeBuilder(V1CSINodeFluent fluent,V1CSINode instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1CSINodeBuilder( fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSINodeBuilder(V1CSINode instance) { - this(instance, false); + this(instance,false); } - - public V1CSINodeBuilder(V1CSINode instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSINodeBuilder(V1CSINode instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1CSINodeBuilder(V1CSINode instance, Boolean validationEnabled) { this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSINodeFluent fluent; Boolean validationEnabled; - public V1CSINode build() { V1CSINode buildable = new V1CSINode(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1CSINode build() { buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java index 6975f77c35..334194130a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluentImpl implements VisitableBuilder{ public V1CSINodeDriverBuilder() { this(false); } - public V1CSINodeDriverBuilder(Boolean validationEnabled) { this(new V1CSINodeDriver(), validationEnabled); } - public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent) { this(fluent, false); } - - public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent, Boolean validationEnabled) { + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSINodeDriver(), validationEnabled); } - - public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent, V1CSINodeDriver instance) { + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,V1CSINodeDriver instance) { this(fluent, instance, false); } - - public V1CSINodeDriverBuilder( - V1CSINodeDriverFluent fluent, V1CSINodeDriver instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,V1CSINodeDriver instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAllocatable(instance.getAllocatable()); fluent.withName(instance.getName()); @@ -47,15 +28,13 @@ public V1CSINodeDriverBuilder( fluent.withTopologyKeys(instance.getTopologyKeys()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSINodeDriverBuilder(V1CSINodeDriver instance) { - this(instance, false); + this(instance,false); } - - public V1CSINodeDriverBuilder(V1CSINodeDriver instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSINodeDriverBuilder(V1CSINodeDriver instance,Boolean validationEnabled) { + this.fluent = this; this.withAllocatable(instance.getAllocatable()); this.withName(instance.getName()); @@ -64,12 +43,10 @@ public V1CSINodeDriverBuilder(V1CSINodeDriver instance, Boolean validationEnable this.withTopologyKeys(instance.getTopologyKeys()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSINodeDriverFluent fluent; Boolean validationEnabled; - public V1CSINodeDriver build() { V1CSINodeDriver buildable = new V1CSINodeDriver(); buildable.setAllocatable(fluent.getAllocatable()); @@ -78,4 +55,5 @@ public V1CSINodeDriver build() { buildable.setTopologyKeys(fluent.getTopologyKeys()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java index f60d242b17..93f80e28fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java @@ -1,98 +1,60 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CSINodeDriverFluent> extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1CSINodeDriverFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildAllocatable instead. - * * @return The buildable object. */ @Deprecated public V1VolumeNodeResources getAllocatable(); - public V1VolumeNodeResources buildAllocatable(); - public A withAllocatable(V1VolumeNodeResources allocatable); - public Boolean hasAllocatable(); - public V1CSINodeDriverFluent.AllocatableNested withNewAllocatable(); - - public V1CSINodeDriverFluent.AllocatableNested withNewAllocatableLike( - V1VolumeNodeResources item); - + public V1CSINodeDriverFluent.AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item); public V1CSINodeDriverFluent.AllocatableNested editAllocatable(); - public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatable(); - - public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatableLike( - V1VolumeNodeResources item); - + public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatableLike(V1VolumeNodeResources item); public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNodeID(); - public A withNodeID(String nodeID); - public Boolean hasNodeID(); - - public A addToTopologyKeys(Integer index, String item); - - public A setToTopologyKeys(Integer index, String item); - + public A addToTopologyKeys(Integer index,String item); + public A setToTopologyKeys(Integer index,String item); public A addToTopologyKeys(java.lang.String... items); - public A addAllToTopologyKeys(Collection items); - public A removeFromTopologyKeys(java.lang.String... items); - public A removeAllFromTopologyKeys(Collection items); - public List getTopologyKeys(); - public String getTopologyKey(Integer index); - public String getFirstTopologyKey(); - public String getLastTopologyKey(); - public String getMatchingTopologyKey(Predicate predicate); - public Boolean hasMatchingTopologyKey(Predicate predicate); - public A withTopologyKeys(List topologyKeys); - public A withTopologyKeys(java.lang.String... topologyKeys); - public Boolean hasTopologyKeys(); - - public interface AllocatableNested - extends Nested, V1VolumeNodeResourcesFluent> { + public interface AllocatableNested extends Nested,V1VolumeNodeResourcesFluent>{ public N and(); - public N endAllocatable(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java index cb3c618d26..0623ef0c5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSINodeDriverFluentImpl> extends BaseFluent - implements V1CSINodeDriverFluent { - public V1CSINodeDriverFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSINodeDriverFluentImpl> extends BaseFluent implements V1CSINodeDriverFluent{ + public V1CSINodeDriverFluentImpl() { + } public V1CSINodeDriverFluentImpl(V1CSINodeDriver instance) { this.withAllocatable(instance.getAllocatable()); @@ -33,267 +28,153 @@ public V1CSINodeDriverFluentImpl(V1CSINodeDriver instance) { this.withNodeID(instance.getNodeID()); this.withTopologyKeys(instance.getTopologyKeys()); - } + } private V1VolumeNodeResourcesBuilder allocatable; private String name; private String nodeID; private List topologyKeys; - + /** * This method has been deprecated, please use method buildAllocatable instead. - * * @return The buildable object. */ @Deprecated public V1VolumeNodeResources getAllocatable() { - return this.allocatable != null ? this.allocatable.build() : null; + return this.allocatable!=null ?this.allocatable.build():null; } - public V1VolumeNodeResources buildAllocatable() { - return this.allocatable != null ? this.allocatable.build() : null; + return this.allocatable!=null ?this.allocatable.build():null; } - public A withAllocatable(V1VolumeNodeResources allocatable) { _visitables.get("allocatable").remove(this.allocatable); - if (allocatable != null) { - this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); - _visitables.get("allocatable").add(this.allocatable); - } else { - this.allocatable = null; - _visitables.get("allocatable").remove(this.allocatable); - } - return (A) this; + if (allocatable!=null){ this.allocatable= new V1VolumeNodeResourcesBuilder(allocatable); _visitables.get("allocatable").add(this.allocatable);} else { this.allocatable = null; _visitables.get("allocatable").remove(this.allocatable); } return (A) this; } - public Boolean hasAllocatable() { return this.allocatable != null; } - public V1CSINodeDriverFluent.AllocatableNested withNewAllocatable() { return new V1CSINodeDriverFluentImpl.AllocatableNestedImpl(); } - - public V1CSINodeDriverFluent.AllocatableNested withNewAllocatableLike( - V1VolumeNodeResources item) { + public V1CSINodeDriverFluent.AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { return new V1CSINodeDriverFluentImpl.AllocatableNestedImpl(item); } - public V1CSINodeDriverFluent.AllocatableNested editAllocatable() { return withNewAllocatableLike(getAllocatable()); } - public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatable() { - return withNewAllocatableLike( - getAllocatable() != null ? getAllocatable() : new V1VolumeNodeResourcesBuilder().build()); + return withNewAllocatableLike(getAllocatable() != null ? getAllocatable(): new V1VolumeNodeResourcesBuilder().build()); } - - public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatableLike( - V1VolumeNodeResources item) { - return withNewAllocatableLike(getAllocatable() != null ? getAllocatable() : item); + public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatableLike(V1VolumeNodeResources item) { + return withNewAllocatableLike(getAllocatable() != null ? getAllocatable(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNodeID() { return this.nodeID; } - public A withNodeID(String nodeID) { - this.nodeID = nodeID; - return (A) this; + this.nodeID=nodeID; return (A) this; } - public Boolean hasNodeID() { return this.nodeID != null; } - - public A addToTopologyKeys(Integer index, String item) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } + public A addToTopologyKeys(Integer index,String item) { + if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} this.topologyKeys.add(index, item); - return (A) this; + return (A)this; } - - public A setToTopologyKeys(Integer index, String item) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } - this.topologyKeys.set(index, item); - return (A) this; + public A setToTopologyKeys(Integer index,String item) { + if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} + this.topologyKeys.set(index, item); return (A)this; } - public A addToTopologyKeys(java.lang.String... items) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } - for (String item : items) { - this.topologyKeys.add(item); - } - return (A) this; + if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} + for (String item : items) {this.topologyKeys.add(item);} return (A)this; } - public A addAllToTopologyKeys(Collection items) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } - for (String item : items) { - this.topologyKeys.add(item); - } - return (A) this; + if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} + for (String item : items) {this.topologyKeys.add(item);} return (A)this; } - public A removeFromTopologyKeys(java.lang.String... items) { - for (String item : items) { - if (this.topologyKeys != null) { - this.topologyKeys.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.topologyKeys!= null){ this.topologyKeys.remove(item);}} return (A)this; } - public A removeAllFromTopologyKeys(Collection items) { - for (String item : items) { - if (this.topologyKeys != null) { - this.topologyKeys.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.topologyKeys!= null){ this.topologyKeys.remove(item);}} return (A)this; } - public List getTopologyKeys() { return this.topologyKeys; } - public String getTopologyKey(Integer index) { return this.topologyKeys.get(index); } - public String getFirstTopologyKey() { return this.topologyKeys.get(0); } - public String getLastTopologyKey() { return this.topologyKeys.get(topologyKeys.size() - 1); } - public String getMatchingTopologyKey(Predicate predicate) { - for (String item : topologyKeys) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: topologyKeys) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingTopologyKey(Predicate predicate) { - for (String item : topologyKeys) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: topologyKeys) { if(predicate.test(item)){ return true;} } return false; } - public A withTopologyKeys(List topologyKeys) { - if (topologyKeys != null) { - this.topologyKeys = new ArrayList(); - for (String item : topologyKeys) { - this.addToTopologyKeys(item); - } - } else { - this.topologyKeys = null; - } - return (A) this; + if (topologyKeys != null) {this.topologyKeys = new ArrayList(); for (String item : topologyKeys){this.addToTopologyKeys(item);}} else { this.topologyKeys = null;} return (A) this; } - public A withTopologyKeys(java.lang.String... topologyKeys) { - if (this.topologyKeys != null) { - this.topologyKeys.clear(); - } - if (topologyKeys != null) { - for (String item : topologyKeys) { - this.addToTopologyKeys(item); - } - } - return (A) this; + if (this.topologyKeys != null) {this.topologyKeys.clear();} + if (topologyKeys != null) {for (String item :topologyKeys){ this.addToTopologyKeys(item);}} return (A) this; } - public Boolean hasTopologyKeys() { return topologyKeys != null && !topologyKeys.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSINodeDriverFluentImpl that = (V1CSINodeDriverFluentImpl) o; - if (allocatable != null ? !allocatable.equals(that.allocatable) : that.allocatable != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (nodeID != null ? !nodeID.equals(that.nodeID) : that.nodeID != null) return false; - if (topologyKeys != null ? !topologyKeys.equals(that.topologyKeys) : that.topologyKeys != null) - return false; + if (allocatable != null ? !allocatable.equals(that.allocatable) :that.allocatable != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (nodeID != null ? !nodeID.equals(that.nodeID) :that.nodeID != null) return false; + if (topologyKeys != null ? !topologyKeys.equals(that.topologyKeys) :that.topologyKeys != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(allocatable, name, nodeID, topologyKeys, super.hashCode()); + return java.util.Objects.hash(allocatable, name, nodeID, topologyKeys, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allocatable != null) { - sb.append("allocatable:"); - sb.append(allocatable + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (nodeID != null) { - sb.append("nodeID:"); - sb.append(nodeID + ","); - } - if (topologyKeys != null && !topologyKeys.isEmpty()) { - sb.append("topologyKeys:"); - sb.append(topologyKeys); - } + if (allocatable != null) { sb.append("allocatable:"); sb.append(allocatable + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (nodeID != null) { sb.append("nodeID:"); sb.append(nodeID + ","); } + if (topologyKeys != null && !topologyKeys.isEmpty()) { sb.append("topologyKeys:"); sb.append(topologyKeys); } sb.append("}"); return sb.toString(); } - - class AllocatableNestedImpl - extends V1VolumeNodeResourcesFluentImpl> - implements V1CSINodeDriverFluent.AllocatableNested, Nested { + class AllocatableNestedImpl extends V1VolumeNodeResourcesFluentImpl> implements V1CSINodeDriverFluent.AllocatableNested,Nested{ AllocatableNestedImpl(V1VolumeNodeResources item) { this.builder = new V1VolumeNodeResourcesBuilder(this, item); } - AllocatableNestedImpl() { this.builder = new V1VolumeNodeResourcesBuilder(this); } - V1VolumeNodeResourcesBuilder builder; - public N and() { return (N) V1CSINodeDriverFluentImpl.this.withAllocatable(builder.build()); } - public N endAllocatable() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java index 8f8b9f6e5b..cd850328ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CSINodeFluent> extends Fluent { + /** + * Generated + */ +public interface V1CSINodeFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1CSINodeFluent.MetadataNested withNewMetadata(); - public V1CSINodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1CSINodeFluent.MetadataNested editMetadata(); - public V1CSINodeFluent.MetadataNested editOrNewMetadata(); - public V1CSINodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CSINodeSpec getSpec(); - public V1CSINodeSpec buildSpec(); - public A withSpec(V1CSINodeSpec spec); - public Boolean hasSpec(); - public V1CSINodeFluent.SpecNested withNewSpec(); - public V1CSINodeFluent.SpecNested withNewSpecLike(V1CSINodeSpec item); - public V1CSINodeFluent.SpecNested editSpec(); - public V1CSINodeFluent.SpecNested editOrNewSpec(); - public V1CSINodeFluent.SpecNested editOrNewSpecLike(V1CSINodeSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1CSINodeSpecFluent> { + public interface SpecNested extends Nested,V1CSINodeSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java index 353b77170f..dad27a1742 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSINodeFluentImpl> extends BaseFluent - implements V1CSINodeFluent { - public V1CSINodeFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSINodeFluentImpl> extends BaseFluent implements V1CSINodeFluent{ + public V1CSINodeFluentImpl() { + } public V1CSINodeFluentImpl(V1CSINode instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,218 +23,152 @@ public V1CSINodeFluentImpl(V1CSINode instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CSINodeSpecBuilder spec; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1CSINodeFluent.MetadataNested withNewMetadata() { return new V1CSINodeFluentImpl.MetadataNestedImpl(); } - public V1CSINodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CSINodeFluentImpl.MetadataNestedImpl(item); } - public V1CSINodeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CSINodeFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1CSINodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CSINodeSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1CSINodeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1CSINodeSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1CSINodeSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1CSINodeSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1CSINodeFluent.SpecNested withNewSpec() { return new V1CSINodeFluentImpl.SpecNestedImpl(); } - public V1CSINodeFluent.SpecNested withNewSpecLike(V1CSINodeSpec item) { return new V1CSINodeFluentImpl.SpecNestedImpl(item); } - public V1CSINodeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1CSINodeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1CSINodeSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1CSINodeSpecBuilder().build()); } - public V1CSINodeFluent.SpecNested editOrNewSpecLike(V1CSINodeSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSINodeFluentImpl that = (V1CSINodeFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1CSINodeFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1CSINodeFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1CSINodeFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1CSINodeSpecFluentImpl> - implements V1CSINodeFluent.SpecNested, Nested { + class SpecNestedImpl extends V1CSINodeSpecFluentImpl> implements V1CSINodeFluent.SpecNested,Nested{ SpecNestedImpl(V1CSINodeSpec item) { this.builder = new V1CSINodeSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1CSINodeSpecBuilder(this); } - V1CSINodeSpecBuilder builder; - public N and() { return (N) V1CSINodeFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java index 7b1b26e47a..6e5061dda0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSINodeListBuilder extends V1CSINodeListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSINodeListBuilder extends V1CSINodeListFluentImpl implements VisitableBuilder{ public V1CSINodeListBuilder() { this(false); } - public V1CSINodeListBuilder(Boolean validationEnabled) { this(new V1CSINodeList(), validationEnabled); } - public V1CSINodeListBuilder(V1CSINodeListFluent fluent) { this(fluent, false); } - - public V1CSINodeListBuilder(V1CSINodeListFluent fluent, Boolean validationEnabled) { + public V1CSINodeListBuilder(V1CSINodeListFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSINodeList(), validationEnabled); } - - public V1CSINodeListBuilder(V1CSINodeListFluent fluent, V1CSINodeList instance) { + public V1CSINodeListBuilder(V1CSINodeListFluent fluent,V1CSINodeList instance) { this(fluent, instance, false); } - - public V1CSINodeListBuilder( - V1CSINodeListFluent fluent, V1CSINodeList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSINodeListBuilder(V1CSINodeListFluent fluent,V1CSINodeList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1CSINodeListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSINodeListBuilder(V1CSINodeList instance) { - this(instance, false); + this(instance,false); } - - public V1CSINodeListBuilder(V1CSINodeList instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSINodeListBuilder(V1CSINodeList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1CSINodeListBuilder(V1CSINodeList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSINodeListFluent fluent; Boolean validationEnabled; - public V1CSINodeList build() { V1CSINodeList buildable = new V1CSINodeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1CSINodeList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java index 660babf636..423ac6f802 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CSINodeListFluent> extends Fluent { + /** + * Generated + */ +public interface V1CSINodeListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1CSINode item); - - public A setToItems(Integer index, V1CSINode item); - + public A addToItems(Integer index,V1CSINode item); + public A setToItems(Integer index,V1CSINode item); public A addToItems(io.kubernetes.client.openapi.models.V1CSINode... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1CSINode buildItem(Integer index); - public V1CSINode buildFirstItem(); - public V1CSINode buildLastItem(); - public V1CSINode buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items); - public Boolean hasItems(); - public V1CSINodeListFluent.ItemsNested addNewItem(); - public V1CSINodeListFluent.ItemsNested addNewItemLike(V1CSINode item); - - public V1CSINodeListFluent.ItemsNested setNewItemLike(Integer index, V1CSINode item); - + public V1CSINodeListFluent.ItemsNested setNewItemLike(Integer index,V1CSINode item); public V1CSINodeListFluent.ItemsNested editItem(Integer index); - public V1CSINodeListFluent.ItemsNested editFirstItem(); - public V1CSINodeListFluent.ItemsNested editLastItem(); - public V1CSINodeListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1CSINodeListFluent.MetadataNested withNewMetadata(); - public V1CSINodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1CSINodeListFluent.MetadataNested editMetadata(); - public V1CSINodeListFluent.MetadataNested editOrNewMetadata(); - public V1CSINodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1CSINodeFluent> { + public interface ItemsNested extends Nested,V1CSINodeFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java index 7b46f20e94..1096974adb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSINodeListFluentImpl> extends BaseFluent - implements V1CSINodeListFluent { - public V1CSINodeListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSINodeListFluentImpl> extends BaseFluent implements V1CSINodeListFluent{ + public V1CSINodeListFluentImpl() { + } public V1CSINodeListFluentImpl(V1CSINodeList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1CSINodeListFluentImpl(V1CSINodeList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1CSINode item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1CSINode item) { + if (this.items == null) {this.items = new ArrayList();} + V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1CSINode item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1CSINode item) { + if (this.items == null) {this.items = new ArrayList();} V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1CSINode buildItem(Integer index) { return this.items.get(index).build(); } - public V1CSINode buildFirstItem() { return this.items.get(0).build(); } - public V1CSINode buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1CSINode buildMatchingItem(Predicate predicate) { - for (V1CSINodeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1CSINodeBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1CSINodeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CSINodeBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CSINode item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1CSINode item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1CSINode item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1CSINode item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1CSINodeListFluent.ItemsNested addNewItem() { return new V1CSINodeListFluentImpl.ItemsNestedImpl(); } - public V1CSINodeListFluent.ItemsNested addNewItemLike(V1CSINode item) { return new V1CSINodeListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1CSINodeListFluent.ItemsNested setNewItemLike(Integer index, V1CSINode item) { + public V1CSINodeListFluent.ItemsNested setNewItemLike(Integer index,V1CSINode item) { return new V1CSINodeListFluentImpl.ItemsNestedImpl(index, item); } - public V1CSINodeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1CSINodeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1CSINodeListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1CSINodeListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1CSINodeListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1CSINodeListFluentImpl.MetadataNestedImpl(); } - public V1CSINodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1CSINodeListFluentImpl.MetadataNestedImpl(item); } - public V1CSINodeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CSINodeListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1CSINodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSINodeListFluentImpl that = (V1CSINodeListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1CSINodeFluentImpl> - implements V1CSINodeListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1CSINode item) { + class ItemsNestedImpl extends V1CSINodeFluentImpl> implements V1CSINodeListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1CSINode item) { this.index = index; this.builder = new V1CSINodeBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1CSINodeBuilder(this); } - V1CSINodeBuilder builder; Integer index; - public N and() { - return (N) V1CSINodeListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1CSINodeListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1CSINodeListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1CSINodeListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1CSINodeListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java index ee9ddd63c2..e0a5da5522 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluentImpl implements VisitableBuilder{ public V1CSINodeSpecBuilder() { this(false); } - public V1CSINodeSpecBuilder(Boolean validationEnabled) { this(new V1CSINodeSpec(), validationEnabled); } - public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent) { this(fluent, false); } - - public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent, Boolean validationEnabled) { + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSINodeSpec(), validationEnabled); } - - public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent, V1CSINodeSpec instance) { + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,V1CSINodeSpec instance) { this(fluent, instance, false); } - - public V1CSINodeSpecBuilder( - V1CSINodeSpecFluent fluent, V1CSINodeSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,V1CSINodeSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDrivers(instance.getDrivers()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSINodeSpecBuilder(V1CSINodeSpec instance) { - this(instance, false); + this(instance,false); } - - public V1CSINodeSpecBuilder(V1CSINodeSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSINodeSpecBuilder(V1CSINodeSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withDrivers(instance.getDrivers()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSINodeSpecFluent fluent; Boolean validationEnabled; - public V1CSINodeSpec build() { V1CSINodeSpec buildable = new V1CSINodeSpec(); buildable.setDrivers(fluent.getDrivers()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java index f90cca43ec..9651dedcec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java @@ -1,84 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CSINodeSpecFluent> extends Fluent { - public A addToDrivers(Integer index, V1CSINodeDriver item); - - public A setToDrivers(Integer index, V1CSINodeDriver item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CSINodeSpecFluent> extends Fluent{ + public A addToDrivers(Integer index,V1CSINodeDriver item); + public A setToDrivers(Integer index,V1CSINodeDriver item); public A addToDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items); - public A addAllToDrivers(Collection items); - public A removeFromDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items); - public A removeAllFromDrivers(Collection items); - public A removeMatchingFromDrivers(Predicate predicate); - + /** * This method has been deprecated, please use method buildDrivers instead. - * * @return The buildable object. */ @Deprecated public List getDrivers(); - public List buildDrivers(); - public V1CSINodeDriver buildDriver(Integer index); - public V1CSINodeDriver buildFirstDriver(); - public V1CSINodeDriver buildLastDriver(); - public V1CSINodeDriver buildMatchingDriver(Predicate predicate); - public Boolean hasMatchingDriver(Predicate predicate); - public A withDrivers(List drivers); - public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... drivers); - public Boolean hasDrivers(); - public V1CSINodeSpecFluent.DriversNested addNewDriver(); - public V1CSINodeSpecFluent.DriversNested addNewDriverLike(V1CSINodeDriver item); - - public V1CSINodeSpecFluent.DriversNested setNewDriverLike(Integer index, V1CSINodeDriver item); - + public V1CSINodeSpecFluent.DriversNested setNewDriverLike(Integer index,V1CSINodeDriver item); public V1CSINodeSpecFluent.DriversNested editDriver(Integer index); - public V1CSINodeSpecFluent.DriversNested editFirstDriver(); - public V1CSINodeSpecFluent.DriversNested editLastDriver(); - - public V1CSINodeSpecFluent.DriversNested editMatchingDriver( - Predicate predicate); - - public interface DriversNested - extends Nested, V1CSINodeDriverFluent> { + public V1CSINodeSpecFluent.DriversNested editMatchingDriver(Predicate predicate); + public interface DriversNested extends Nested,V1CSINodeDriverFluent>{ public N and(); - public N endDriver(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java index ca99c456de..af054d2dc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java @@ -1,111 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSINodeSpecFluentImpl> extends BaseFluent - implements V1CSINodeSpecFluent { - public V1CSINodeSpecFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSINodeSpecFluentImpl> extends BaseFluent implements V1CSINodeSpecFluent{ + public V1CSINodeSpecFluentImpl() { + } public V1CSINodeSpecFluentImpl(V1CSINodeSpec instance) { this.withDrivers(instance.getDrivers()); - } + } private ArrayList drivers; - - public A addToDrivers(Integer index, V1CSINodeDriver item) { - if (this.drivers == null) { - this.drivers = new ArrayList(); - } - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").add(index >= 0 ? index : _visitables.get("drivers").size(), builder); - this.drivers.add(index >= 0 ? index : drivers.size(), builder); - return (A) this; + public A addToDrivers(Integer index,V1CSINodeDriver item) { + if (this.drivers == null) {this.drivers = new ArrayList();} + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(index >= 0 ? index : _visitables.get("drivers").size(), builder);this.drivers.add(index >= 0 ? index : drivers.size(), builder); return (A)this; } - - public A setToDrivers(Integer index, V1CSINodeDriver item) { - if (this.drivers == null) { - this.drivers = new ArrayList(); - } + public A setToDrivers(Integer index,V1CSINodeDriver item) { + if (this.drivers == null) {this.drivers = new ArrayList();} V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= _visitables.get("drivers").size()) { - _visitables.get("drivers").add(builder); - } else { - _visitables.get("drivers").set(index, builder); - } - if (index < 0 || index >= drivers.size()) { - drivers.add(builder); - } else { - drivers.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("drivers").size()) { _visitables.get("drivers").add(builder); } else { _visitables.get("drivers").set(index, builder);} + if (index < 0 || index >= drivers.size()) { drivers.add(builder); } else { drivers.set(index, builder);} + return (A)this; } - public A addToDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { - if (this.drivers == null) { - this.drivers = new ArrayList(); - } - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").add(builder); - this.drivers.add(builder); - } - return (A) this; + if (this.drivers == null) {this.drivers = new ArrayList();} + for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(builder);this.drivers.add(builder);} return (A)this; } - public A addAllToDrivers(Collection items) { - if (this.drivers == null) { - this.drivers = new ArrayList(); - } - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").add(builder); - this.drivers.add(builder); - } - return (A) this; + if (this.drivers == null) {this.drivers = new ArrayList();} + for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(builder);this.drivers.add(builder);} return (A)this; } - public A removeFromDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").remove(builder); - if (this.drivers != null) { - this.drivers.remove(builder); - } - } - return (A) this; + for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").remove(builder);if (this.drivers != null) {this.drivers.remove(builder);}} return (A)this; } - public A removeAllFromDrivers(Collection items) { - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").remove(builder); - if (this.drivers != null) { - this.drivers.remove(builder); - } - } - return (A) this; + for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").remove(builder);if (this.drivers != null) {this.drivers.remove(builder);}} return (A)this; } - public A removeMatchingFromDrivers(Predicate predicate) { if (drivers == null) return (A) this; final Iterator each = drivers.iterator(); @@ -117,172 +63,111 @@ public A removeMatchingFromDrivers(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildDrivers instead. - * * @return The buildable object. */ @Deprecated public List getDrivers() { return drivers != null ? build(drivers) : null; } - public List buildDrivers() { return drivers != null ? build(drivers) : null; } - public V1CSINodeDriver buildDriver(Integer index) { return this.drivers.get(index).build(); } - public V1CSINodeDriver buildFirstDriver() { return this.drivers.get(0).build(); } - public V1CSINodeDriver buildLastDriver() { return this.drivers.get(drivers.size() - 1).build(); } - public V1CSINodeDriver buildMatchingDriver(Predicate predicate) { - for (V1CSINodeDriverBuilder item : drivers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1CSINodeDriverBuilder item: drivers) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingDriver(Predicate predicate) { - for (V1CSINodeDriverBuilder item : drivers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CSINodeDriverBuilder item: drivers) { if(predicate.test(item)){ return true;} } return false; } - public A withDrivers(List drivers) { - if (this.drivers != null) { - _visitables.get("drivers").removeAll(this.drivers); - } - if (drivers != null) { - this.drivers = new ArrayList(); - for (V1CSINodeDriver item : drivers) { - this.addToDrivers(item); - } - } else { - this.drivers = null; - } - return (A) this; + if (this.drivers != null) { _visitables.get("drivers").removeAll(this.drivers);} + if (drivers != null) {this.drivers = new ArrayList(); for (V1CSINodeDriver item : drivers){this.addToDrivers(item);}} else { this.drivers = null;} return (A) this; } - public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... drivers) { - if (this.drivers != null) { - this.drivers.clear(); - } - if (drivers != null) { - for (V1CSINodeDriver item : drivers) { - this.addToDrivers(item); - } - } - return (A) this; + if (this.drivers != null) {this.drivers.clear();} + if (drivers != null) {for (V1CSINodeDriver item :drivers){ this.addToDrivers(item);}} return (A) this; } - public Boolean hasDrivers() { return drivers != null && !drivers.isEmpty(); } - public V1CSINodeSpecFluent.DriversNested addNewDriver() { return new V1CSINodeSpecFluentImpl.DriversNestedImpl(); } - public V1CSINodeSpecFluent.DriversNested addNewDriverLike(V1CSINodeDriver item) { return new V1CSINodeSpecFluentImpl.DriversNestedImpl(-1, item); } - - public V1CSINodeSpecFluent.DriversNested setNewDriverLike( - Integer index, V1CSINodeDriver item) { + public V1CSINodeSpecFluent.DriversNested setNewDriverLike(Integer index,V1CSINodeDriver item) { return new V1CSINodeSpecFluentImpl.DriversNestedImpl(index, item); } - public V1CSINodeSpecFluent.DriversNested editDriver(Integer index) { - if (drivers.size() <= index) - throw new RuntimeException("Can't edit drivers. Index exceeds size."); + if (drivers.size() <= index) throw new RuntimeException("Can't edit drivers. Index exceeds size."); return setNewDriverLike(index, buildDriver(index)); } - public V1CSINodeSpecFluent.DriversNested editFirstDriver() { - if (drivers.size() == 0) - throw new RuntimeException("Can't edit first drivers. The list is empty."); + if (drivers.size() == 0) throw new RuntimeException("Can't edit first drivers. The list is empty."); return setNewDriverLike(0, buildDriver(0)); } - public V1CSINodeSpecFluent.DriversNested editLastDriver() { int index = drivers.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last drivers. The list is empty."); return setNewDriverLike(index, buildDriver(index)); } - - public V1CSINodeSpecFluent.DriversNested editMatchingDriver( - Predicate predicate) { + public V1CSINodeSpecFluent.DriversNested editMatchingDriver(Predicate predicate) { int index = -1; - for (int i = 0; i < drivers.size(); i++) { - if (predicate.test(drivers.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1CSINodeDriverFluentImpl> - implements V1CSINodeSpecFluent.DriversNested, Nested { - DriversNestedImpl(Integer index, V1CSINodeDriver item) { + class DriversNestedImpl extends V1CSINodeDriverFluentImpl> implements V1CSINodeSpecFluent.DriversNested,Nested{ + DriversNestedImpl(Integer index,V1CSINodeDriver item) { this.index = index; this.builder = new V1CSINodeDriverBuilder(this, item); } - DriversNestedImpl() { this.index = -1; this.builder = new V1CSINodeDriverBuilder(this); } - V1CSINodeDriverBuilder builder; Integer index; - public N and() { - return (N) V1CSINodeSpecFluentImpl.this.setToDrivers(index, builder.build()); + return (N) V1CSINodeSpecFluentImpl.this.setToDrivers(index,builder.build()); } - public N endDriver() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java index 6d4b93b042..9a099ba7f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIPersistentVolumeSourceBuilder - extends V1CSIPersistentVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIPersistentVolumeSourceBuilder extends V1CSIPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1CSIPersistentVolumeSourceBuilder() { this(false); } - public V1CSIPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CSIPersistentVolumeSource(), validationEnabled); } - public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1CSIPersistentVolumeSourceBuilder( - V1CSIPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIPersistentVolumeSource(), validationEnabled); } - - public V1CSIPersistentVolumeSourceBuilder( - V1CSIPersistentVolumeSourceFluent fluent, V1CSIPersistentVolumeSource instance) { + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,V1CSIPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1CSIPersistentVolumeSourceBuilder( - V1CSIPersistentVolumeSourceFluent fluent, - V1CSIPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,V1CSIPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); fluent.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); @@ -64,16 +40,13 @@ public V1CSIPersistentVolumeSourceBuilder( fluent.withVolumeHandle(instance.getVolumeHandle()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1CSIPersistentVolumeSourceBuilder( - V1CSIPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); @@ -94,12 +67,10 @@ public V1CSIPersistentVolumeSourceBuilder( this.withVolumeHandle(instance.getVolumeHandle()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1CSIPersistentVolumeSource build() { V1CSIPersistentVolumeSource buildable = new V1CSIPersistentVolumeSource(); buildable.setControllerExpandSecretRef(fluent.getControllerExpandSecretRef()); @@ -114,4 +85,5 @@ public V1CSIPersistentVolumeSource build() { buildable.setVolumeHandle(fluent.getVolumeHandle()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java index 9e4b666d5a..cf65e32137 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java @@ -1,245 +1,136 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.util.LinkedHashMap; +import java.lang.Deprecated; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -public interface V1CSIPersistentVolumeSourceFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1CSIPersistentVolumeSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildControllerExpandSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getControllerExpandSecretRef(); - public V1SecretReference buildControllerExpandSecretRef(); - public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef); - public Boolean hasControllerExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - withNewControllerExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - withNewControllerExpandSecretRefLike(V1SecretReference item); - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - editControllerExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - editOrNewControllerExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - editOrNewControllerExpandSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested withNewControllerExpandSecretRef(); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editControllerExpandSecretRef(); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef(); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike(V1SecretReference item); + /** * This method has been deprecated, please use method buildControllerPublishSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getControllerPublishSecretRef(); - public V1SecretReference buildControllerPublishSecretRef(); - public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef); - public Boolean hasControllerPublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - withNewControllerPublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - withNewControllerPublishSecretRefLike(V1SecretReference item); - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - editControllerPublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - editOrNewControllerPublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - editOrNewControllerPublishSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRef(); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editControllerPublishSecretRef(); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef(); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRefLike(V1SecretReference item); public String getDriver(); - public A withDriver(String driver); - public Boolean hasDriver(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - + /** * This method has been deprecated, please use method buildNodeExpandSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getNodeExpandSecretRef(); - public V1SecretReference buildNodeExpandSecretRef(); - public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef); - public Boolean hasNodeExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - withNewNodeExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - withNewNodeExpandSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested withNewNodeExpandSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item); public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editNodeExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - editOrNewNodeExpandSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - editOrNewNodeExpandSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editOrNewNodeExpandSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editOrNewNodeExpandSecretRefLike(V1SecretReference item); + /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getNodePublishSecretRef(); - public V1SecretReference buildNodePublishSecretRef(); - public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef); - public Boolean hasNodePublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - withNewNodePublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - withNewNodePublishSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item); public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1SecretReference item); + /** * This method has been deprecated, please use method buildNodeStageSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getNodeStageSecretRef(); - public V1SecretReference buildNodeStageSecretRef(); - public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef); - public Boolean hasNodeStageSecretRef(); - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested - withNewNodeStageSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item); public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editNodeStageSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested - editOrNewNodeStageSecretRef(); - - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested - editOrNewNodeStageSecretRefLike(V1SecretReference item); - + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item); public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - - public A addToVolumeAttributes(String key, String value); - - public A addToVolumeAttributes(Map map); - + public A addToVolumeAttributes(String key,String value); + public A addToVolumeAttributes(Map map); public A removeFromVolumeAttributes(String key); - - public A removeFromVolumeAttributes(Map map); - - public Map getVolumeAttributes(); - - public A withVolumeAttributes(Map volumeAttributes); - + public A removeFromVolumeAttributes(Map map); + public Map getVolumeAttributes(); + public A withVolumeAttributes(Map volumeAttributes); public Boolean hasVolumeAttributes(); - public String getVolumeHandle(); - public A withVolumeHandle(String volumeHandle); - public Boolean hasVolumeHandle(); - public A withReadOnly(); - - public interface ControllerExpandSecretRefNested - extends Nested, - V1SecretReferenceFluent< - V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested> { + public interface ControllerExpandSecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endControllerExpandSecretRef(); + } - - public interface ControllerPublishSecretRefNested - extends Nested, - V1SecretReferenceFluent< - V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested> { + public interface ControllerPublishSecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endControllerPublishSecretRef(); + } - - public interface NodeExpandSecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface NodeExpandSecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endNodeExpandSecretRef(); + } - - public interface NodePublishSecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface NodePublishSecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endNodePublishSecretRef(); + } - - public interface NodeStageSecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface NodeStageSecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endNodeStageSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java index 4849d527a4..c1dfc2bfbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIPersistentVolumeSourceFluentImpl> - extends BaseFluent implements V1CSIPersistentVolumeSourceFluent { - public V1CSIPersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1CSIPersistentVolumeSourceFluent{ + public V1CSIPersistentVolumeSourceFluentImpl() { + } public V1CSIPersistentVolumeSourceFluentImpl(V1CSIPersistentVolumeSource instance) { this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); @@ -43,8 +37,8 @@ public V1CSIPersistentVolumeSourceFluentImpl(V1CSIPersistentVolumeSource instanc this.withVolumeAttributes(instance.getVolumeAttributes()); this.withVolumeHandle(instance.getVolumeHandle()); - } + } private V1SecretReferenceBuilder controllerExpandSecretRef; private V1SecretReferenceBuilder controllerPublishSecretRef; private String driver; @@ -53,627 +47,356 @@ public V1CSIPersistentVolumeSourceFluentImpl(V1CSIPersistentVolumeSource instanc private V1SecretReferenceBuilder nodePublishSecretRef; private V1SecretReferenceBuilder nodeStageSecretRef; private Boolean readOnly; - private Map volumeAttributes; + private Map volumeAttributes; private String volumeHandle; - + /** * This method has been deprecated, please use method buildControllerExpandSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getControllerExpandSecretRef() { - return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; + return this.controllerExpandSecretRef!=null ?this.controllerExpandSecretRef.build():null; } - public V1SecretReference buildControllerExpandSecretRef() { - return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; + return this.controllerExpandSecretRef!=null ?this.controllerExpandSecretRef.build():null; } - public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { _visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); - if (controllerExpandSecretRef != null) { - this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); - _visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); - } else { - this.controllerExpandSecretRef = null; - _visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); - } - return (A) this; + if (controllerExpandSecretRef!=null){ this.controllerExpandSecretRef= new V1SecretReferenceBuilder(controllerExpandSecretRef); _visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef);} else { this.controllerExpandSecretRef = null; _visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); } return (A) this; } - public Boolean hasControllerExpandSecretRef() { return this.controllerExpandSecretRef != null; } - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - withNewControllerExpandSecretRef() { + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested withNewControllerExpandSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerExpandSecretRefNestedImpl(); } - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - withNewControllerExpandSecretRefLike(V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item) { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerExpandSecretRefNestedImpl(item); } - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - editControllerExpandSecretRef() { + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editControllerExpandSecretRef() { return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef()); } - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - editOrNewControllerExpandSecretRef() { - return withNewControllerExpandSecretRefLike( - getControllerExpandSecretRef() != null - ? getControllerExpandSecretRef() - : new V1SecretReferenceBuilder().build()); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() { + return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef() != null ? getControllerExpandSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested - editOrNewControllerExpandSecretRefLike(V1SecretReference item) { - return withNewControllerExpandSecretRefLike( - getControllerExpandSecretRef() != null ? getControllerExpandSecretRef() : item); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike(V1SecretReference item) { + return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef() != null ? getControllerExpandSecretRef(): item); } - + /** * This method has been deprecated, please use method buildControllerPublishSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getControllerPublishSecretRef() { - return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; + return this.controllerPublishSecretRef!=null ?this.controllerPublishSecretRef.build():null; } - public V1SecretReference buildControllerPublishSecretRef() { - return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; + return this.controllerPublishSecretRef!=null ?this.controllerPublishSecretRef.build():null; } - public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { _visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); - if (controllerPublishSecretRef != null) { - this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); - _visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); - } else { - this.controllerPublishSecretRef = null; - _visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); - } - return (A) this; + if (controllerPublishSecretRef!=null){ this.controllerPublishSecretRef= new V1SecretReferenceBuilder(controllerPublishSecretRef); _visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef);} else { this.controllerPublishSecretRef = null; _visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); } return (A) this; } - public Boolean hasControllerPublishSecretRef() { return this.controllerPublishSecretRef != null; } - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - withNewControllerPublishSecretRef() { + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerPublishSecretRefNestedImpl(); } - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - withNewControllerPublishSecretRefLike(V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item) { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerPublishSecretRefNestedImpl(item); } - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - editControllerPublishSecretRef() { + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editControllerPublishSecretRef() { return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef()); } - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - editOrNewControllerPublishSecretRef() { - return withNewControllerPublishSecretRefLike( - getControllerPublishSecretRef() != null - ? getControllerPublishSecretRef() - : new V1SecretReferenceBuilder().build()); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef() { + return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef() != null ? getControllerPublishSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested - editOrNewControllerPublishSecretRefLike(V1SecretReference item) { - return withNewControllerPublishSecretRefLike( - getControllerPublishSecretRef() != null ? getControllerPublishSecretRef() : item); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRefLike(V1SecretReference item) { + return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef() != null ? getControllerPublishSecretRef(): item); } - public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + this.driver=driver; return (A) this; } - public Boolean hasDriver() { return this.driver != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - + /** * This method has been deprecated, please use method buildNodeExpandSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getNodeExpandSecretRef() { - return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; + return this.nodeExpandSecretRef!=null ?this.nodeExpandSecretRef.build():null; } - public V1SecretReference buildNodeExpandSecretRef() { - return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; + return this.nodeExpandSecretRef!=null ?this.nodeExpandSecretRef.build():null; } - public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { _visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); - if (nodeExpandSecretRef != null) { - this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); - _visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); - } else { - this.nodeExpandSecretRef = null; - _visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); - } - return (A) this; + if (nodeExpandSecretRef!=null){ this.nodeExpandSecretRef= new V1SecretReferenceBuilder(nodeExpandSecretRef); _visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef);} else { this.nodeExpandSecretRef = null; _visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); } return (A) this; } - public Boolean hasNodeExpandSecretRef() { return this.nodeExpandSecretRef != null; } - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - withNewNodeExpandSecretRef() { + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested withNewNodeExpandSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.NodeExpandSecretRefNestedImpl(); } - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - withNewNodeExpandSecretRefLike(V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item) { return new V1CSIPersistentVolumeSourceFluentImpl.NodeExpandSecretRefNestedImpl(item); } - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editNodeExpandSecretRef() { return withNewNodeExpandSecretRefLike(getNodeExpandSecretRef()); } - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - editOrNewNodeExpandSecretRef() { - return withNewNodeExpandSecretRefLike( - getNodeExpandSecretRef() != null - ? getNodeExpandSecretRef() - : new V1SecretReferenceBuilder().build()); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editOrNewNodeExpandSecretRef() { + return withNewNodeExpandSecretRefLike(getNodeExpandSecretRef() != null ? getNodeExpandSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested - editOrNewNodeExpandSecretRefLike(V1SecretReference item) { - return withNewNodeExpandSecretRefLike( - getNodeExpandSecretRef() != null ? getNodeExpandSecretRef() : item); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editOrNewNodeExpandSecretRefLike(V1SecretReference item) { + return withNewNodeExpandSecretRefLike(getNodeExpandSecretRef() != null ? getNodeExpandSecretRef(): item); } - + /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + return this.nodePublishSecretRef!=null ?this.nodePublishSecretRef.build():null; } - public V1SecretReference buildNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + return this.nodePublishSecretRef!=null ?this.nodePublishSecretRef.build():null; } - public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); - if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); - _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); - } else { - this.nodePublishSecretRef = null; - _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); - } - return (A) this; + if (nodePublishSecretRef!=null){ this.nodePublishSecretRef= new V1SecretReferenceBuilder(nodePublishSecretRef); _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef);} else { this.nodePublishSecretRef = null; _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); } return (A) this; } - public Boolean hasNodePublishSecretRef() { return this.nodePublishSecretRef != null; } - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - withNewNodePublishSecretRef() { + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(); } - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - withNewNodePublishSecretRefLike(V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item) { return new V1CSIPersistentVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(item); } - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - editNodePublishSecretRef() { + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef() { return withNewNodePublishSecretRefLike(getNodePublishSecretRef()); } - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRef() { - return withNewNodePublishSecretRefLike( - getNodePublishSecretRef() != null - ? getNodePublishSecretRef() - : new V1SecretReferenceBuilder().build()); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef() { + return withNewNodePublishSecretRefLike(getNodePublishSecretRef() != null ? getNodePublishSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRefLike(V1SecretReference item) { - return withNewNodePublishSecretRefLike( - getNodePublishSecretRef() != null ? getNodePublishSecretRef() : item); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1SecretReference item) { + return withNewNodePublishSecretRefLike(getNodePublishSecretRef() != null ? getNodePublishSecretRef(): item); } - + /** * This method has been deprecated, please use method buildNodeStageSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getNodeStageSecretRef() { - return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; + return this.nodeStageSecretRef!=null ?this.nodeStageSecretRef.build():null; } - public V1SecretReference buildNodeStageSecretRef() { - return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; + return this.nodeStageSecretRef!=null ?this.nodeStageSecretRef.build():null; } - public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { _visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); - if (nodeStageSecretRef != null) { - this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); - _visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); - } else { - this.nodeStageSecretRef = null; - _visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); - } - return (A) this; + if (nodeStageSecretRef!=null){ this.nodeStageSecretRef= new V1SecretReferenceBuilder(nodeStageSecretRef); _visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef);} else { this.nodeStageSecretRef = null; _visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); } return (A) this; } - public Boolean hasNodeStageSecretRef() { return this.nodeStageSecretRef != null; } - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.NodeStageSecretRefNestedImpl(); } - - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested - withNewNodeStageSecretRefLike(V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item) { return new V1CSIPersistentVolumeSourceFluentImpl.NodeStageSecretRefNestedImpl(item); } - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editNodeStageSecretRef() { return withNewNodeStageSecretRefLike(getNodeStageSecretRef()); } - - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested - editOrNewNodeStageSecretRef() { - return withNewNodeStageSecretRefLike( - getNodeStageSecretRef() != null - ? getNodeStageSecretRef() - : new V1SecretReferenceBuilder().build()); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRef() { + return withNewNodeStageSecretRefLike(getNodeStageSecretRef() != null ? getNodeStageSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested - editOrNewNodeStageSecretRefLike(V1SecretReference item) { - return withNewNodeStageSecretRefLike( - getNodeStageSecretRef() != null ? getNodeStageSecretRef() : item); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item) { + return withNewNodeStageSecretRefLike(getNodeStageSecretRef() != null ? getNodeStageSecretRef(): item); } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - - public A addToVolumeAttributes(String key, String value) { - if (this.volumeAttributes == null && key != null && value != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.volumeAttributes.put(key, value); - } - return (A) this; + public A addToVolumeAttributes(String key,String value) { + if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } + if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this; } - - public A addToVolumeAttributes(Map map) { - if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (map != null) { - this.volumeAttributes.putAll(map); - } - return (A) this; + public A addToVolumeAttributes(Map map) { + if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new LinkedHashMap(); } + if(map != null) { this.volumeAttributes.putAll(map);} return (A)this; } - public A removeFromVolumeAttributes(String key) { - if (this.volumeAttributes == null) { - return (A) this; - } - if (key != null && this.volumeAttributes != null) { - this.volumeAttributes.remove(key); - } - return (A) this; + if(this.volumeAttributes == null) { return (A) this; } + if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this; } - - public A removeFromVolumeAttributes(Map map) { - if (this.volumeAttributes == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.volumeAttributes != null) { - this.volumeAttributes.remove(key); - } - } - } - return (A) this; + public A removeFromVolumeAttributes(Map map) { + if(this.volumeAttributes == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this; } - - public Map getVolumeAttributes() { + public Map getVolumeAttributes() { return this.volumeAttributes; } - - public A withVolumeAttributes(Map volumeAttributes) { - if (volumeAttributes == null) { - this.volumeAttributes = null; - } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); - } - return (A) this; + public A withVolumeAttributes(Map volumeAttributes) { + if (volumeAttributes == null) { this.volumeAttributes = null;} else {this.volumeAttributes = new LinkedHashMap(volumeAttributes);} return (A) this; } - public Boolean hasVolumeAttributes() { return this.volumeAttributes != null; } - public String getVolumeHandle() { return this.volumeHandle; } - public A withVolumeHandle(String volumeHandle) { - this.volumeHandle = volumeHandle; - return (A) this; + this.volumeHandle=volumeHandle; return (A) this; } - public Boolean hasVolumeHandle() { return this.volumeHandle != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIPersistentVolumeSourceFluentImpl that = (V1CSIPersistentVolumeSourceFluentImpl) o; - if (controllerExpandSecretRef != null - ? !controllerExpandSecretRef.equals(that.controllerExpandSecretRef) - : that.controllerExpandSecretRef != null) return false; - if (controllerPublishSecretRef != null - ? !controllerPublishSecretRef.equals(that.controllerPublishSecretRef) - : that.controllerPublishSecretRef != null) return false; - if (driver != null ? !driver.equals(that.driver) : that.driver != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (nodeExpandSecretRef != null - ? !nodeExpandSecretRef.equals(that.nodeExpandSecretRef) - : that.nodeExpandSecretRef != null) return false; - if (nodePublishSecretRef != null - ? !nodePublishSecretRef.equals(that.nodePublishSecretRef) - : that.nodePublishSecretRef != null) return false; - if (nodeStageSecretRef != null - ? !nodeStageSecretRef.equals(that.nodeStageSecretRef) - : that.nodeStageSecretRef != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (volumeAttributes != null - ? !volumeAttributes.equals(that.volumeAttributes) - : that.volumeAttributes != null) return false; - if (volumeHandle != null ? !volumeHandle.equals(that.volumeHandle) : that.volumeHandle != null) - return false; + if (controllerExpandSecretRef != null ? !controllerExpandSecretRef.equals(that.controllerExpandSecretRef) :that.controllerExpandSecretRef != null) return false; + if (controllerPublishSecretRef != null ? !controllerPublishSecretRef.equals(that.controllerPublishSecretRef) :that.controllerPublishSecretRef != null) return false; + if (driver != null ? !driver.equals(that.driver) :that.driver != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (nodeExpandSecretRef != null ? !nodeExpandSecretRef.equals(that.nodeExpandSecretRef) :that.nodeExpandSecretRef != null) return false; + if (nodePublishSecretRef != null ? !nodePublishSecretRef.equals(that.nodePublishSecretRef) :that.nodePublishSecretRef != null) return false; + if (nodeStageSecretRef != null ? !nodeStageSecretRef.equals(that.nodeStageSecretRef) :that.nodeStageSecretRef != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (volumeAttributes != null ? !volumeAttributes.equals(that.volumeAttributes) :that.volumeAttributes != null) return false; + if (volumeHandle != null ? !volumeHandle.equals(that.volumeHandle) :that.volumeHandle != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - controllerExpandSecretRef, - controllerPublishSecretRef, - driver, - fsType, - nodeExpandSecretRef, - nodePublishSecretRef, - nodeStageSecretRef, - readOnly, - volumeAttributes, - volumeHandle, - super.hashCode()); + return java.util.Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (controllerExpandSecretRef != null) { - sb.append("controllerExpandSecretRef:"); - sb.append(controllerExpandSecretRef + ","); - } - if (controllerPublishSecretRef != null) { - sb.append("controllerPublishSecretRef:"); - sb.append(controllerPublishSecretRef + ","); - } - if (driver != null) { - sb.append("driver:"); - sb.append(driver + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (nodeExpandSecretRef != null) { - sb.append("nodeExpandSecretRef:"); - sb.append(nodeExpandSecretRef + ","); - } - if (nodePublishSecretRef != null) { - sb.append("nodePublishSecretRef:"); - sb.append(nodePublishSecretRef + ","); - } - if (nodeStageSecretRef != null) { - sb.append("nodeStageSecretRef:"); - sb.append(nodeStageSecretRef + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (volumeAttributes != null && !volumeAttributes.isEmpty()) { - sb.append("volumeAttributes:"); - sb.append(volumeAttributes + ","); - } - if (volumeHandle != null) { - sb.append("volumeHandle:"); - sb.append(volumeHandle); - } + if (controllerExpandSecretRef != null) { sb.append("controllerExpandSecretRef:"); sb.append(controllerExpandSecretRef + ","); } + if (controllerPublishSecretRef != null) { sb.append("controllerPublishSecretRef:"); sb.append(controllerPublishSecretRef + ","); } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (nodeExpandSecretRef != null) { sb.append("nodeExpandSecretRef:"); sb.append(nodeExpandSecretRef + ","); } + if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); } + if (nodeStageSecretRef != null) { sb.append("nodeStageSecretRef:"); sb.append(nodeStageSecretRef + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (volumeAttributes != null && !volumeAttributes.isEmpty()) { sb.append("volumeAttributes:"); sb.append(volumeAttributes + ","); } + if (volumeHandle != null) { sb.append("volumeHandle:"); sb.append(volumeHandle); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class ControllerExpandSecretRefNestedImpl - extends V1SecretReferenceFluentImpl< - V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested> - implements V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested, Nested { + class ControllerExpandSecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested,Nested{ ControllerExpandSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - ControllerExpandSecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { - return (N) - V1CSIPersistentVolumeSourceFluentImpl.this.withControllerExpandSecretRef(builder.build()); + return (N) V1CSIPersistentVolumeSourceFluentImpl.this.withControllerExpandSecretRef(builder.build()); } - public N endControllerExpandSecretRef() { return and(); } + } - - class ControllerPublishSecretRefNestedImpl - extends V1SecretReferenceFluentImpl< - V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested> - implements V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested, Nested { + class ControllerPublishSecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested,Nested{ ControllerPublishSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - ControllerPublishSecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { - return (N) - V1CSIPersistentVolumeSourceFluentImpl.this.withControllerPublishSecretRef( - builder.build()); + return (N) V1CSIPersistentVolumeSourceFluentImpl.this.withControllerPublishSecretRef(builder.build()); } - public N endControllerPublishSecretRef() { return and(); } + } - - class NodeExpandSecretRefNestedImpl - extends V1SecretReferenceFluentImpl< - V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested> - implements V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested, Nested { + class NodeExpandSecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested,Nested{ NodeExpandSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - NodeExpandSecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { - return (N) - V1CSIPersistentVolumeSourceFluentImpl.this.withNodeExpandSecretRef(builder.build()); + return (N) V1CSIPersistentVolumeSourceFluentImpl.this.withNodeExpandSecretRef(builder.build()); } - public N endNodeExpandSecretRef() { return and(); } + } - - class NodePublishSecretRefNestedImpl - extends V1SecretReferenceFluentImpl< - V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested> - implements V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested, Nested { + class NodePublishSecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested,Nested{ NodePublishSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - NodePublishSecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { - return (N) - V1CSIPersistentVolumeSourceFluentImpl.this.withNodePublishSecretRef(builder.build()); + return (N) V1CSIPersistentVolumeSourceFluentImpl.this.withNodePublishSecretRef(builder.build()); } - public N endNodePublishSecretRef() { return and(); } + } - - class NodeStageSecretRefNestedImpl - extends V1SecretReferenceFluentImpl< - V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested> - implements V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested, Nested { + class NodeStageSecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested,Nested{ NodeStageSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - NodeStageSecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1CSIPersistentVolumeSourceFluentImpl.this.withNodeStageSecretRef(builder.build()); } - public N endNodeStageSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java index d2bc3caf36..980ed40787 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIStorageCapacityBuilder - extends V1CSIStorageCapacityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIStorageCapacityBuilder extends V1CSIStorageCapacityFluentImpl implements VisitableBuilder{ public V1CSIStorageCapacityBuilder() { this(false); } - public V1CSIStorageCapacityBuilder(Boolean validationEnabled) { this(new V1CSIStorageCapacity(), validationEnabled); } - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent) { this(fluent, false); } - - public V1CSIStorageCapacityBuilder( - V1CSIStorageCapacityFluent fluent, Boolean validationEnabled) { + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIStorageCapacity(), validationEnabled); } - - public V1CSIStorageCapacityBuilder( - V1CSIStorageCapacityFluent fluent, V1CSIStorageCapacity instance) { + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,V1CSIStorageCapacity instance) { this(fluent, instance, false); } - - public V1CSIStorageCapacityBuilder( - V1CSIStorageCapacityFluent fluent, - V1CSIStorageCapacity instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,V1CSIStorageCapacity instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withCapacity(instance.getCapacity()); @@ -58,15 +34,13 @@ public V1CSIStorageCapacityBuilder( fluent.withStorageClassName(instance.getStorageClassName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance) { - this(instance, false); + this(instance,false); } - - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withCapacity(instance.getCapacity()); @@ -81,12 +55,10 @@ public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance, Boolean valida this.withStorageClassName(instance.getStorageClassName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIStorageCapacityFluent fluent; Boolean validationEnabled; - public V1CSIStorageCapacity build() { V1CSIStorageCapacity buildable = new V1CSIStorageCapacity(); buildable.setApiVersion(fluent.getApiVersion()); @@ -98,4 +70,5 @@ public V1CSIStorageCapacity build() { buildable.setStorageClassName(fluent.getStorageClassName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java index 0c4ffcaa2a..94d8e87650 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java @@ -1,119 +1,72 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1CSIStorageCapacityFluent> - extends Fluent { +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CSIStorageCapacityFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Quantity getCapacity(); - public A withCapacity(Quantity capacity); - public Boolean hasCapacity(); - public A withNewCapacity(String value); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public Quantity getMaximumVolumeSize(); - public A withMaximumVolumeSize(Quantity maximumVolumeSize); - public Boolean hasMaximumVolumeSize(); - public A withNewMaximumVolumeSize(String value); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1CSIStorageCapacityFluent.MetadataNested withNewMetadata(); - public V1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1CSIStorageCapacityFluent.MetadataNested editMetadata(); - public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata(); - public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildNodeTopology instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNodeTopology(); - public V1LabelSelector buildNodeTopology(); - public A withNodeTopology(V1LabelSelector nodeTopology); - public Boolean hasNodeTopology(); - public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology(); - - public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( - V1LabelSelector item); - + public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item); public V1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology(); - public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology(); - - public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( - V1LabelSelector item); - + public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item); public String getStorageClassName(); - public A withStorageClassName(String storageClassName); - public Boolean hasStorageClassName(); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface NodeTopologyNested - extends Nested, V1LabelSelectorFluent> { + public interface NodeTopologyNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endNodeTopology(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java index b6b2eb1234..5f1c520769 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java @@ -1,27 +1,21 @@ -/* -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 java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Deprecated; import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIStorageCapacityFluentImpl> - extends BaseFluent implements V1CSIStorageCapacityFluent { - public V1CSIStorageCapacityFluentImpl() {} +import java.lang.Object; +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIStorageCapacityFluentImpl> extends BaseFluent implements V1CSIStorageCapacityFluent{ + public V1CSIStorageCapacityFluentImpl() { + } public V1CSIStorageCapacityFluentImpl(V1CSIStorageCapacity instance) { this.withApiVersion(instance.getApiVersion()); @@ -36,8 +30,8 @@ public V1CSIStorageCapacityFluentImpl(V1CSIStorageCapacity instance) { this.withNodeTopology(instance.getNodeTopology()); this.withStorageClassName(instance.getStorageClassName()); - } + } private String apiVersion; private Quantity capacity; private String kind; @@ -45,292 +39,185 @@ public V1CSIStorageCapacityFluentImpl(V1CSIStorageCapacity instance) { private V1ObjectMetaBuilder metadata; private V1LabelSelectorBuilder nodeTopology; private String storageClassName; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Quantity getCapacity() { return this.capacity; } - public A withCapacity(Quantity capacity) { - this.capacity = capacity; - return (A) this; + this.capacity=capacity; return (A) this; } - public Boolean hasCapacity() { return this.capacity != null; } - public A withNewCapacity(String value) { - return (A) withCapacity(new Quantity(value)); + return (A)withCapacity(new Quantity(value)); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public Quantity getMaximumVolumeSize() { return this.maximumVolumeSize; } - public A withMaximumVolumeSize(Quantity maximumVolumeSize) { - this.maximumVolumeSize = maximumVolumeSize; - return (A) this; + this.maximumVolumeSize=maximumVolumeSize; return (A) this; } - public Boolean hasMaximumVolumeSize() { return this.maximumVolumeSize != null; } - public A withNewMaximumVolumeSize(String value) { - return (A) withMaximumVolumeSize(new Quantity(value)); + return (A)withMaximumVolumeSize(new Quantity(value)); } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1CSIStorageCapacityFluent.MetadataNested withNewMetadata() { return new V1CSIStorageCapacityFluentImpl.MetadataNestedImpl(); } - public V1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CSIStorageCapacityFluentImpl.MetadataNestedImpl(item); } - public V1CSIStorageCapacityFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildNodeTopology instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNodeTopology() { - return this.nodeTopology != null ? this.nodeTopology.build() : null; + return this.nodeTopology!=null ?this.nodeTopology.build():null; } - public V1LabelSelector buildNodeTopology() { - return this.nodeTopology != null ? this.nodeTopology.build() : null; + return this.nodeTopology!=null ?this.nodeTopology.build():null; } - public A withNodeTopology(V1LabelSelector nodeTopology) { _visitables.get("nodeTopology").remove(this.nodeTopology); - if (nodeTopology != null) { - this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); - _visitables.get("nodeTopology").add(this.nodeTopology); - } else { - this.nodeTopology = null; - _visitables.get("nodeTopology").remove(this.nodeTopology); - } - return (A) this; + if (nodeTopology!=null){ this.nodeTopology= new V1LabelSelectorBuilder(nodeTopology); _visitables.get("nodeTopology").add(this.nodeTopology);} else { this.nodeTopology = null; _visitables.get("nodeTopology").remove(this.nodeTopology); } return (A) this; } - public Boolean hasNodeTopology() { return this.nodeTopology != null; } - public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology() { return new V1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(); } - - public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( - V1LabelSelector item) { + public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { return new V1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(item); } - public V1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology() { return withNewNodeTopologyLike(getNodeTopology()); } - public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology() { - return withNewNodeTopologyLike( - getNodeTopology() != null ? getNodeTopology() : new V1LabelSelectorBuilder().build()); + return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology(): new V1LabelSelectorBuilder().build()); } - - public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( - V1LabelSelector item) { - return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology() : item); + public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item) { + return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology(): item); } - public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; + this.storageClassName=storageClassName; return (A) this; } - public Boolean hasStorageClassName() { return this.storageClassName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIStorageCapacityFluentImpl that = (V1CSIStorageCapacityFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (capacity != null ? !capacity.equals(that.capacity) : that.capacity != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (maximumVolumeSize != null - ? !maximumVolumeSize.equals(that.maximumVolumeSize) - : that.maximumVolumeSize != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (nodeTopology != null ? !nodeTopology.equals(that.nodeTopology) : that.nodeTopology != null) - return false; - if (storageClassName != null - ? !storageClassName.equals(that.storageClassName) - : that.storageClassName != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (capacity != null ? !capacity.equals(that.capacity) :that.capacity != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (maximumVolumeSize != null ? !maximumVolumeSize.equals(that.maximumVolumeSize) :that.maximumVolumeSize != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (nodeTopology != null ? !nodeTopology.equals(that.nodeTopology) :that.nodeTopology != null) return false; + if (storageClassName != null ? !storageClassName.equals(that.storageClassName) :that.storageClassName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, - capacity, - kind, - maximumVolumeSize, - metadata, - nodeTopology, - storageClassName, - super.hashCode()); + return java.util.Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (capacity != null) { - sb.append("capacity:"); - sb.append(capacity + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (maximumVolumeSize != null) { - sb.append("maximumVolumeSize:"); - sb.append(maximumVolumeSize + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (nodeTopology != null) { - sb.append("nodeTopology:"); - sb.append(nodeTopology + ","); - } - if (storageClassName != null) { - sb.append("storageClassName:"); - sb.append(storageClassName); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (capacity != null) { sb.append("capacity:"); sb.append(capacity + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (maximumVolumeSize != null) { sb.append("maximumVolumeSize:"); sb.append(maximumVolumeSize + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (nodeTopology != null) { sb.append("nodeTopology:"); sb.append(nodeTopology + ","); } + if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1CSIStorageCapacityFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1CSIStorageCapacityFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1CSIStorageCapacityFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class NodeTopologyNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1CSIStorageCapacityFluent.NodeTopologyNested, Nested { + class NodeTopologyNestedImpl extends V1LabelSelectorFluentImpl> implements V1CSIStorageCapacityFluent.NodeTopologyNested,Nested{ NodeTopologyNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - NodeTopologyNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1CSIStorageCapacityFluentImpl.this.withNodeTopology(builder.build()); } - public N endNodeTopology() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java index f30fabd2bb..3e3ea9e177 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIStorageCapacityListBuilder - extends V1CSIStorageCapacityListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIStorageCapacityListBuilder extends V1CSIStorageCapacityListFluentImpl implements VisitableBuilder{ public V1CSIStorageCapacityListBuilder() { this(false); } - public V1CSIStorageCapacityListBuilder(Boolean validationEnabled) { this(new V1CSIStorageCapacityList(), validationEnabled); } - public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent) { this(fluent, false); } - - public V1CSIStorageCapacityListBuilder( - V1CSIStorageCapacityListFluent fluent, Boolean validationEnabled) { + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIStorageCapacityList(), validationEnabled); } - - public V1CSIStorageCapacityListBuilder( - V1CSIStorageCapacityListFluent fluent, V1CSIStorageCapacityList instance) { + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,V1CSIStorageCapacityList instance) { this(fluent, instance, false); } - - public V1CSIStorageCapacityListBuilder( - V1CSIStorageCapacityListFluent fluent, - V1CSIStorageCapacityList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,V1CSIStorageCapacityList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1CSIStorageCapacityListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityList instance) { - this(instance, false); + this(instance,false); } - - public V1CSIStorageCapacityListBuilder( - V1CSIStorageCapacityList instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1CSIStorageCapacityListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIStorageCapacityListFluent fluent; Boolean validationEnabled; - public V1CSIStorageCapacityList build() { V1CSIStorageCapacityList buildable = new V1CSIStorageCapacityList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1CSIStorageCapacityList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java index c41e8036e2..cd4473f78c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CSIStorageCapacityListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CSIStorageCapacityListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1CSIStorageCapacity item); - - public A setToItems(Integer index, V1CSIStorageCapacity item); - + public A addToItems(Integer index,V1CSIStorageCapacity item); + public A setToItems(Integer index,V1CSIStorageCapacity item); public A addToItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1CSIStorageCapacity buildItem(Integer index); - public V1CSIStorageCapacity buildFirstItem(); - public V1CSIStorageCapacity buildLastItem(); - public V1CSIStorageCapacity buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items); - public Boolean hasItems(); - public V1CSIStorageCapacityListFluent.ItemsNested addNewItem(); - public V1CSIStorageCapacityListFluent.ItemsNested addNewItemLike(V1CSIStorageCapacity item); - - public V1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( - Integer index, V1CSIStorageCapacity item); - + public V1CSIStorageCapacityListFluent.ItemsNested setNewItemLike(Integer index,V1CSIStorageCapacity item); public V1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index); - public V1CSIStorageCapacityListFluent.ItemsNested editFirstItem(); - public V1CSIStorageCapacityListFluent.ItemsNested editLastItem(); - - public V1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1CSIStorageCapacityListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadata(); - public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1CSIStorageCapacityListFluent.MetadataNested editMetadata(); - public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata(); - public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1CSIStorageCapacityFluent> { + public interface ItemsNested extends Nested,V1CSIStorageCapacityFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java index 48c9bc953b..b678e7dd6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIStorageCapacityListFluentImpl> - extends BaseFluent implements V1CSIStorageCapacityListFluent { - public V1CSIStorageCapacityListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIStorageCapacityListFluentImpl> extends BaseFluent implements V1CSIStorageCapacityListFluent{ + public V1CSIStorageCapacityListFluentImpl() { + } public V1CSIStorageCapacityListFluentImpl(V1CSIStorageCapacityList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1CSIStorageCapacityListFluentImpl(V1CSIStorageCapacityList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1CSIStorageCapacity item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1CSIStorageCapacity item) { + if (this.items == null) {this.items = new ArrayList();} + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1CSIStorageCapacity item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1CSIStorageCapacity item) { + if (this.items == null) {this.items = new ArrayList();} V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1CSIStorageCapacity buildItem(Integer index) { return this.items.get(index).build(); } - public V1CSIStorageCapacity buildFirstItem() { return this.items.get(0).build(); } - public V1CSIStorageCapacity buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1CSIStorageCapacity buildMatchingItem(Predicate predicate) { - for (V1CSIStorageCapacityBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1CSIStorageCapacityBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1CSIStorageCapacityBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CSIStorageCapacityBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CSIStorageCapacity item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1CSIStorageCapacity item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1CSIStorageCapacity item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1CSIStorageCapacity item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1CSIStorageCapacityListFluent.ItemsNested addNewItem() { return new V1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(); } - public V1CSIStorageCapacityListFluent.ItemsNested addNewItemLike(V1CSIStorageCapacity item) { return new V1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( - Integer index, V1CSIStorageCapacity item) { + public V1CSIStorageCapacityListFluent.ItemsNested setNewItemLike(Integer index,V1CSIStorageCapacity item) { return new V1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(index, item); } - public V1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1CSIStorageCapacityListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1CSIStorageCapacityListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1CSIStorageCapacityListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(); } - public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(item); } - public V1CSIStorageCapacityListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIStorageCapacityListFluentImpl that = (V1CSIStorageCapacityListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1CSIStorageCapacityFluentImpl> - implements V1CSIStorageCapacityListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1CSIStorageCapacity item) { + class ItemsNestedImpl extends V1CSIStorageCapacityFluentImpl> implements V1CSIStorageCapacityListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1CSIStorageCapacity item) { this.index = index; this.builder = new V1CSIStorageCapacityBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1CSIStorageCapacityBuilder(this); } - V1CSIStorageCapacityBuilder builder; Integer index; - public N and() { - return (N) V1CSIStorageCapacityListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1CSIStorageCapacityListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1CSIStorageCapacityListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1CSIStorageCapacityListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1CSIStorageCapacityListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java index d683f7b5bf..d66d9a7c5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluentImpl implements VisitableBuilder{ public V1CSIVolumeSourceBuilder() { this(false); } - public V1CSIVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CSIVolumeSource(), validationEnabled); } - public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent) { this(fluent, false); } - - public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CSIVolumeSource(), validationEnabled); } - - public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent, V1CSIVolumeSource instance) { + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,V1CSIVolumeSource instance) { this(fluent, instance, false); } - - public V1CSIVolumeSourceBuilder( - V1CSIVolumeSourceFluent fluent, V1CSIVolumeSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,V1CSIVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDriver(instance.getDriver()); fluent.withFsType(instance.getFsType()); @@ -49,15 +30,13 @@ public V1CSIVolumeSourceBuilder( fluent.withVolumeAttributes(instance.getVolumeAttributes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDriver(instance.getDriver()); this.withFsType(instance.getFsType()); @@ -68,12 +47,10 @@ public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance, Boolean validationEn this.withVolumeAttributes(instance.getVolumeAttributes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CSIVolumeSourceFluent fluent; Boolean validationEnabled; - public V1CSIVolumeSource build() { V1CSIVolumeSource buildable = new V1CSIVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -83,4 +60,5 @@ public V1CSIVolumeSource build() { buildable.setVolumeAttributes(fluent.getVolumeAttributes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java index 37f4ac1309..66090e466e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java @@ -1,88 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1CSIVolumeSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1CSIVolumeSourceFluent> extends Fluent{ public String getDriver(); - public A withDriver(String driver); - public Boolean hasDriver(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - + /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getNodePublishSecretRef(); - public V1LocalObjectReference buildNodePublishSecretRef(); - public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef); - public Boolean hasNodePublishSecretRef(); - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef(); - - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike( - V1LocalObjectReference item); - + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item); public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef(); - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef(); - - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike( - V1LocalObjectReference item); - + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item); public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - - public A addToVolumeAttributes(String key, String value); - - public A addToVolumeAttributes(Map map); - + public A addToVolumeAttributes(String key,String value); + public A addToVolumeAttributes(Map map); public A removeFromVolumeAttributes(String key); - - public A removeFromVolumeAttributes(Map map); - - public Map getVolumeAttributes(); - - public A withVolumeAttributes(Map volumeAttributes); - + public A removeFromVolumeAttributes(Map map); + public Map getVolumeAttributes(); + public A withVolumeAttributes(Map volumeAttributes); public Boolean hasVolumeAttributes(); - public A withReadOnly(); - - public interface NodePublishSecretRefNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface NodePublishSecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endNodePublishSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java index 9c4ffc1897..9ada9006a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CSIVolumeSourceFluentImpl> extends BaseFluent - implements V1CSIVolumeSourceFluent { - public V1CSIVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CSIVolumeSourceFluentImpl> extends BaseFluent implements V1CSIVolumeSourceFluent{ + public V1CSIVolumeSourceFluentImpl() { + } public V1CSIVolumeSourceFluentImpl(V1CSIVolumeSource instance) { this.withDriver(instance.getDriver()); @@ -33,242 +27,142 @@ public V1CSIVolumeSourceFluentImpl(V1CSIVolumeSource instance) { this.withReadOnly(instance.getReadOnly()); this.withVolumeAttributes(instance.getVolumeAttributes()); - } + } private String driver; private String fsType; private V1LocalObjectReferenceBuilder nodePublishSecretRef; private Boolean readOnly; - private Map volumeAttributes; - + private Map volumeAttributes; public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + this.driver=driver; return (A) this; } - public Boolean hasDriver() { return this.driver != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - + /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + return this.nodePublishSecretRef!=null ?this.nodePublishSecretRef.build():null; } - public V1LocalObjectReference buildNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + return this.nodePublishSecretRef!=null ?this.nodePublishSecretRef.build():null; } - public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); - if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); - _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); - } else { - this.nodePublishSecretRef = null; - _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); - } - return (A) this; + if (nodePublishSecretRef!=null){ this.nodePublishSecretRef= new V1LocalObjectReferenceBuilder(nodePublishSecretRef); _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef);} else { this.nodePublishSecretRef = null; _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); } return (A) this; } - public Boolean hasNodePublishSecretRef() { return this.nodePublishSecretRef != null; } - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef() { return new V1CSIVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(); } - - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike( - V1LocalObjectReference item) { + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item) { return new V1CSIVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(item); } - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef() { return withNewNodePublishSecretRefLike(getNodePublishSecretRef()); } - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef() { - return withNewNodePublishSecretRefLike( - getNodePublishSecretRef() != null - ? getNodePublishSecretRef() - : new V1LocalObjectReferenceBuilder().build()); + return withNewNodePublishSecretRefLike(getNodePublishSecretRef() != null ? getNodePublishSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike( - V1LocalObjectReference item) { - return withNewNodePublishSecretRefLike( - getNodePublishSecretRef() != null ? getNodePublishSecretRef() : item); + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item) { + return withNewNodePublishSecretRefLike(getNodePublishSecretRef() != null ? getNodePublishSecretRef(): item); } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - - public A addToVolumeAttributes(String key, String value) { - if (this.volumeAttributes == null && key != null && value != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.volumeAttributes.put(key, value); - } - return (A) this; + public A addToVolumeAttributes(String key,String value) { + if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } + if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this; } - - public A addToVolumeAttributes(Map map) { - if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (map != null) { - this.volumeAttributes.putAll(map); - } - return (A) this; + public A addToVolumeAttributes(Map map) { + if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new LinkedHashMap(); } + if(map != null) { this.volumeAttributes.putAll(map);} return (A)this; } - public A removeFromVolumeAttributes(String key) { - if (this.volumeAttributes == null) { - return (A) this; - } - if (key != null && this.volumeAttributes != null) { - this.volumeAttributes.remove(key); - } - return (A) this; + if(this.volumeAttributes == null) { return (A) this; } + if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this; } - - public A removeFromVolumeAttributes(Map map) { - if (this.volumeAttributes == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.volumeAttributes != null) { - this.volumeAttributes.remove(key); - } - } - } - return (A) this; + public A removeFromVolumeAttributes(Map map) { + if(this.volumeAttributes == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this; } - - public Map getVolumeAttributes() { + public Map getVolumeAttributes() { return this.volumeAttributes; } - - public A withVolumeAttributes(Map volumeAttributes) { - if (volumeAttributes == null) { - this.volumeAttributes = null; - } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); - } - return (A) this; + public A withVolumeAttributes(Map volumeAttributes) { + if (volumeAttributes == null) { this.volumeAttributes = null;} else {this.volumeAttributes = new LinkedHashMap(volumeAttributes);} return (A) this; } - public Boolean hasVolumeAttributes() { return this.volumeAttributes != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CSIVolumeSourceFluentImpl that = (V1CSIVolumeSourceFluentImpl) o; - if (driver != null ? !driver.equals(that.driver) : that.driver != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (nodePublishSecretRef != null - ? !nodePublishSecretRef.equals(that.nodePublishSecretRef) - : that.nodePublishSecretRef != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (volumeAttributes != null - ? !volumeAttributes.equals(that.volumeAttributes) - : that.volumeAttributes != null) return false; + if (driver != null ? !driver.equals(that.driver) :that.driver != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (nodePublishSecretRef != null ? !nodePublishSecretRef.equals(that.nodePublishSecretRef) :that.nodePublishSecretRef != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (volumeAttributes != null ? !volumeAttributes.equals(that.volumeAttributes) :that.volumeAttributes != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes, super.hashCode()); + return java.util.Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { - sb.append("driver:"); - sb.append(driver + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (nodePublishSecretRef != null) { - sb.append("nodePublishSecretRef:"); - sb.append(nodePublishSecretRef + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (volumeAttributes != null && !volumeAttributes.isEmpty()) { - sb.append("volumeAttributes:"); - sb.append(volumeAttributes); - } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (volumeAttributes != null && !volumeAttributes.isEmpty()) { sb.append("volumeAttributes:"); sb.append(volumeAttributes); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class NodePublishSecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl< - V1CSIVolumeSourceFluent.NodePublishSecretRefNested> - implements V1CSIVolumeSourceFluent.NodePublishSecretRefNested, Nested { + class NodePublishSecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1CSIVolumeSourceFluent.NodePublishSecretRefNested,Nested{ NodePublishSecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - NodePublishSecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1CSIVolumeSourceFluentImpl.this.withNodePublishSecretRef(builder.build()); } - public N endNodePublishSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java index cb08313acd..ae5001724e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1CapabilitiesBuilder extends V1CapabilitiesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CapabilitiesBuilder extends V1CapabilitiesFluentImpl implements VisitableBuilder{ public V1CapabilitiesBuilder() { this(false); } - public V1CapabilitiesBuilder(Boolean validationEnabled) { this(new V1Capabilities(), validationEnabled); } - public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent) { this(fluent, false); } - - public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent, Boolean validationEnabled) { + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,Boolean validationEnabled) { this(fluent, new V1Capabilities(), validationEnabled); } - - public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent, V1Capabilities instance) { + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,V1Capabilities instance) { this(fluent, instance, false); } - - public V1CapabilitiesBuilder( - V1CapabilitiesFluent fluent, V1Capabilities instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,V1Capabilities instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAdd(instance.getAdd()); fluent.withDrop(instance.getDrop()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CapabilitiesBuilder(V1Capabilities instance) { - this(instance, false); + this(instance,false); } - - public V1CapabilitiesBuilder(V1Capabilities instance, Boolean validationEnabled) { - this.fluent = this; + public V1CapabilitiesBuilder(V1Capabilities instance,Boolean validationEnabled) { + this.fluent = this; this.withAdd(instance.getAdd()); this.withDrop(instance.getDrop()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CapabilitiesFluent fluent; Boolean validationEnabled; - public V1Capabilities build() { V1Capabilities buildable = new V1Capabilities(); buildable.setAdd(fluent.getAdd()); buildable.setDrop(fluent.getDrop()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java index 256fa224c1..51eb765ac5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java @@ -1,81 +1,47 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1CapabilitiesFluent> extends Fluent { - public A addToAdd(Integer index, String item); - - public A setToAdd(Integer index, String item); - + /** + * Generated + */ +public interface V1CapabilitiesFluent> extends Fluent{ + public A addToAdd(Integer index,String item); + public A setToAdd(Integer index,String item); public A addToAdd(java.lang.String... items); - public A addAllToAdd(Collection items); - public A removeFromAdd(java.lang.String... items); - public A removeAllFromAdd(Collection items); - public List getAdd(); - public String getAdd(Integer index); - public String getFirstAdd(); - public String getLastAdd(); - public String getMatchingAdd(Predicate predicate); - public Boolean hasMatchingAdd(Predicate predicate); - public A withAdd(List add); - public A withAdd(java.lang.String... add); - public Boolean hasAdd(); - - public A addToDrop(Integer index, String item); - - public A setToDrop(Integer index, String item); - + public A addToDrop(Integer index,String item); + public A setToDrop(Integer index,String item); public A addToDrop(java.lang.String... items); - public A addAllToDrop(Collection items); - public A removeFromDrop(java.lang.String... items); - public A removeAllFromDrop(Collection items); - public List getDrop(); - public String getDrop(Integer index); - public String getFirstDrop(); - public String getLastDrop(); - public String getMatchingDrop(Predicate predicate); - public Boolean hasMatchingDrop(Predicate predicate); - public A withDrop(List drop); - public A withDrop(java.lang.String... drop); - public Boolean hasDrop(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java index 896997cbcd..8b6ed7f6b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java @@ -1,295 +1,151 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CapabilitiesFluentImpl> extends BaseFluent - implements V1CapabilitiesFluent { - public V1CapabilitiesFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CapabilitiesFluentImpl> extends BaseFluent implements V1CapabilitiesFluent{ + public V1CapabilitiesFluentImpl() { + } public V1CapabilitiesFluentImpl(V1Capabilities instance) { this.withAdd(instance.getAdd()); this.withDrop(instance.getDrop()); - } + } private List add; private List drop; - - public A addToAdd(Integer index, String item) { - if (this.add == null) { - this.add = new ArrayList(); - } + public A addToAdd(Integer index,String item) { + if (this.add == null) {this.add = new ArrayList();} this.add.add(index, item); - return (A) this; + return (A)this; } - - public A setToAdd(Integer index, String item) { - if (this.add == null) { - this.add = new ArrayList(); - } - this.add.set(index, item); - return (A) this; + public A setToAdd(Integer index,String item) { + if (this.add == null) {this.add = new ArrayList();} + this.add.set(index, item); return (A)this; } - public A addToAdd(java.lang.String... items) { - if (this.add == null) { - this.add = new ArrayList(); - } - for (String item : items) { - this.add.add(item); - } - return (A) this; + if (this.add == null) {this.add = new ArrayList();} + for (String item : items) {this.add.add(item);} return (A)this; } - public A addAllToAdd(Collection items) { - if (this.add == null) { - this.add = new ArrayList(); - } - for (String item : items) { - this.add.add(item); - } - return (A) this; + if (this.add == null) {this.add = new ArrayList();} + for (String item : items) {this.add.add(item);} return (A)this; } - public A removeFromAdd(java.lang.String... items) { - for (String item : items) { - if (this.add != null) { - this.add.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.add!= null){ this.add.remove(item);}} return (A)this; } - public A removeAllFromAdd(Collection items) { - for (String item : items) { - if (this.add != null) { - this.add.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.add!= null){ this.add.remove(item);}} return (A)this; } - public List getAdd() { return this.add; } - public String getAdd(Integer index) { return this.add.get(index); } - public String getFirstAdd() { return this.add.get(0); } - public String getLastAdd() { return this.add.get(add.size() - 1); } - public String getMatchingAdd(Predicate predicate) { - for (String item : add) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: add) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAdd(Predicate predicate) { - for (String item : add) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: add) { if(predicate.test(item)){ return true;} } return false; } - public A withAdd(List add) { - if (add != null) { - this.add = new ArrayList(); - for (String item : add) { - this.addToAdd(item); - } - } else { - this.add = null; - } - return (A) this; + if (add != null) {this.add = new ArrayList(); for (String item : add){this.addToAdd(item);}} else { this.add = null;} return (A) this; } - public A withAdd(java.lang.String... add) { - if (this.add != null) { - this.add.clear(); - } - if (add != null) { - for (String item : add) { - this.addToAdd(item); - } - } - return (A) this; + if (this.add != null) {this.add.clear();} + if (add != null) {for (String item :add){ this.addToAdd(item);}} return (A) this; } - public Boolean hasAdd() { return add != null && !add.isEmpty(); } - - public A addToDrop(Integer index, String item) { - if (this.drop == null) { - this.drop = new ArrayList(); - } + public A addToDrop(Integer index,String item) { + if (this.drop == null) {this.drop = new ArrayList();} this.drop.add(index, item); - return (A) this; + return (A)this; } - - public A setToDrop(Integer index, String item) { - if (this.drop == null) { - this.drop = new ArrayList(); - } - this.drop.set(index, item); - return (A) this; + public A setToDrop(Integer index,String item) { + if (this.drop == null) {this.drop = new ArrayList();} + this.drop.set(index, item); return (A)this; } - public A addToDrop(java.lang.String... items) { - if (this.drop == null) { - this.drop = new ArrayList(); - } - for (String item : items) { - this.drop.add(item); - } - return (A) this; + if (this.drop == null) {this.drop = new ArrayList();} + for (String item : items) {this.drop.add(item);} return (A)this; } - public A addAllToDrop(Collection items) { - if (this.drop == null) { - this.drop = new ArrayList(); - } - for (String item : items) { - this.drop.add(item); - } - return (A) this; + if (this.drop == null) {this.drop = new ArrayList();} + for (String item : items) {this.drop.add(item);} return (A)this; } - public A removeFromDrop(java.lang.String... items) { - for (String item : items) { - if (this.drop != null) { - this.drop.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.drop!= null){ this.drop.remove(item);}} return (A)this; } - public A removeAllFromDrop(Collection items) { - for (String item : items) { - if (this.drop != null) { - this.drop.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.drop!= null){ this.drop.remove(item);}} return (A)this; } - public List getDrop() { return this.drop; } - public String getDrop(Integer index) { return this.drop.get(index); } - public String getFirstDrop() { return this.drop.get(0); } - public String getLastDrop() { return this.drop.get(drop.size() - 1); } - public String getMatchingDrop(Predicate predicate) { - for (String item : drop) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: drop) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingDrop(Predicate predicate) { - for (String item : drop) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: drop) { if(predicate.test(item)){ return true;} } return false; } - public A withDrop(List drop) { - if (drop != null) { - this.drop = new ArrayList(); - for (String item : drop) { - this.addToDrop(item); - } - } else { - this.drop = null; - } - return (A) this; + if (drop != null) {this.drop = new ArrayList(); for (String item : drop){this.addToDrop(item);}} else { this.drop = null;} return (A) this; } - public A withDrop(java.lang.String... drop) { - if (this.drop != null) { - this.drop.clear(); - } - if (drop != null) { - for (String item : drop) { - this.addToDrop(item); - } - } - return (A) this; + if (this.drop != null) {this.drop.clear();} + if (drop != null) {for (String item :drop){ this.addToDrop(item);}} return (A) this; } - public Boolean hasDrop() { return drop != null && !drop.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CapabilitiesFluentImpl that = (V1CapabilitiesFluentImpl) o; - if (add != null ? !add.equals(that.add) : that.add != null) return false; - if (drop != null ? !drop.equals(that.drop) : that.drop != null) return false; + if (add != null ? !add.equals(that.add) :that.add != null) return false; + if (drop != null ? !drop.equals(that.drop) :that.drop != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(add, drop, super.hashCode()); + return java.util.Objects.hash(add, drop, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (add != null && !add.isEmpty()) { - sb.append("add:"); - sb.append(add + ","); - } - if (drop != null && !drop.isEmpty()) { - sb.append("drop:"); - sb.append(drop); - } + if (add != null && !add.isEmpty()) { sb.append("add:"); sb.append(add + ","); } + if (drop != null && !drop.isEmpty()) { sb.append("drop:"); sb.append(drop); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java index 7ead9c2a24..ce845abf8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CephFSPersistentVolumeSourceBuilder - extends V1CephFSPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1CephFSPersistentVolumeSource, V1CephFSPersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1CephFSPersistentVolumeSourceBuilder() { this(false); } - public V1CephFSPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CephFSPersistentVolumeSource(), validationEnabled); } - public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1CephFSPersistentVolumeSourceBuilder( - V1CephFSPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CephFSPersistentVolumeSource(), validationEnabled); } - - public V1CephFSPersistentVolumeSourceBuilder( - V1CephFSPersistentVolumeSourceFluent fluent, V1CephFSPersistentVolumeSource instance) { + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1CephFSPersistentVolumeSourceBuilder( - V1CephFSPersistentVolumeSourceFluent fluent, - V1CephFSPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMonitors(instance.getMonitors()); fluent.withPath(instance.getPath()); @@ -57,16 +32,13 @@ public V1CephFSPersistentVolumeSourceBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1CephFSPersistentVolumeSourceBuilder( - V1CephFSPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMonitors(instance.getMonitors()); this.withPath(instance.getPath()); @@ -79,12 +51,10 @@ public V1CephFSPersistentVolumeSourceBuilder( this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CephFSPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1CephFSPersistentVolumeSource build() { V1CephFSPersistentVolumeSource buildable = new V1CephFSPersistentVolumeSource(); buildable.setMonitors(fluent.getMonitors()); @@ -95,4 +65,5 @@ public V1CephFSPersistentVolumeSource build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java index 86ca7780fe..3758dffc39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java @@ -1,114 +1,67 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CephFSPersistentVolumeSourceFluent< - A extends V1CephFSPersistentVolumeSourceFluent> - extends Fluent { - public A addToMonitors(Integer index, String item); - - public A setToMonitors(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CephFSPersistentVolumeSourceFluent> extends Fluent{ + public A addToMonitors(Integer index,String item); + public A setToMonitors(Integer index,String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); - public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(Collection items); - public List getMonitors(); - public String getMonitor(Integer index); - public String getFirstMonitor(); - public String getLastMonitor(); - public String getMatchingMonitor(Predicate predicate); - public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(List monitors); - public A withMonitors(java.lang.String... monitors); - public Boolean hasMonitors(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getSecretFile(); - public A withSecretFile(String secretFile); - public Boolean hasSecretFile(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef(); - public V1SecretReference buildSecretRef(); - public A withSecretRef(V1SecretReference secretRef); - public Boolean hasSecretRef(); - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item); - + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item); public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item); - + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item); public String getUser(); - public A withUser(String user); - public Boolean hasUser(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface SecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java index 06504e45a6..ae9e8d5ec7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java @@ -1,31 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CephFSPersistentVolumeSourceFluentImpl< - A extends V1CephFSPersistentVolumeSourceFluent> - extends BaseFluent implements V1CephFSPersistentVolumeSourceFluent { - public V1CephFSPersistentVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CephFSPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1CephFSPersistentVolumeSourceFluent{ + public V1CephFSPersistentVolumeSourceFluentImpl() { + } public V1CephFSPersistentVolumeSourceFluentImpl(V1CephFSPersistentVolumeSource instance) { this.withMonitors(instance.getMonitors()); @@ -38,310 +32,180 @@ public V1CephFSPersistentVolumeSourceFluentImpl(V1CephFSPersistentVolumeSource i this.withSecretRef(instance.getSecretRef()); this.withUser(instance.getUser()); - } + } private List monitors; private String path; private Boolean readOnly; private String secretFile; private V1SecretReferenceBuilder secretRef; private String user; - - public A addToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } + public A addToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} this.monitors.add(index, item); - return (A) this; + return (A)this; } - - public A setToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - this.monitors.set(index, item); - return (A) this; + public A setToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} + this.monitors.set(index, item); return (A)this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A removeFromMonitors(java.lang.String... items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public A removeAllFromMonitors(Collection items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public List getMonitors() { return this.monitors; } - public String getMonitor(Integer index) { return this.monitors.get(index); } - public String getFirstMonitor() { return this.monitors.get(0); } - public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public String getMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: monitors) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: monitors) { if(predicate.test(item)){ return true;} } return false; } - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; + if (monitors != null) {this.monitors = new ArrayList(); for (String item : monitors){this.addToMonitors(item);}} else { this.monitors = null;} return (A) this; } - public A withMonitors(java.lang.String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + if (this.monitors != null) {this.monitors.clear();} + if (monitors != null) {for (String item :monitors){ this.addToMonitors(item);}} return (A) this; } - public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getSecretFile() { return this.secretFile; } - public A withSecretFile(String secretFile) { - this.secretFile = secretFile; - return (A) this; + this.secretFile=secretFile; return (A) this; } - public Boolean hasSecretFile() { return this.secretFile != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1CephFSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item) { + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new V1CephFSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CephFSPersistentVolumeSourceFluentImpl that = (V1CephFSPersistentVolumeSourceFluentImpl) o; - if (monitors != null ? !monitors.equals(that.monitors) : that.monitors != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretFile != null ? !secretFile.equals(that.secretFile) : that.secretFile != null) - return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (monitors != null ? !monitors.equals(that.monitors) :that.monitors != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretFile != null ? !secretFile.equals(that.secretFile) :that.secretFile != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); + return java.util.Objects.hash(monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (monitors != null && !monitors.isEmpty()) { - sb.append("monitors:"); - sb.append(monitors + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretFile != null) { - sb.append("secretFile:"); - sb.append(secretFile + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretFile != null) { sb.append("secretFile:"); sb.append(secretFile + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1SecretReferenceFluentImpl> - implements V1CephFSPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CephFSPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1CephFSPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java index 519e0ea0ff..06342003c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CephFSVolumeSourceBuilder - extends V1CephFSVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluentImpl implements VisitableBuilder{ public V1CephFSVolumeSourceBuilder() { this(false); } - public V1CephFSVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CephFSVolumeSource(), validationEnabled); } - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent) { this(fluent, false); } - - public V1CephFSVolumeSourceBuilder( - V1CephFSVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CephFSVolumeSource(), validationEnabled); } - - public V1CephFSVolumeSourceBuilder( - V1CephFSVolumeSourceFluent fluent, V1CephFSVolumeSource instance) { + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance) { this(fluent, instance, false); } - - public V1CephFSVolumeSourceBuilder( - V1CephFSVolumeSourceFluent fluent, - V1CephFSVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMonitors(instance.getMonitors()); fluent.withPath(instance.getPath()); @@ -56,15 +32,13 @@ public V1CephFSVolumeSourceBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMonitors(instance.getMonitors()); this.withPath(instance.getPath()); @@ -77,12 +51,10 @@ public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance, Boolean valida this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CephFSVolumeSourceFluent fluent; Boolean validationEnabled; - public V1CephFSVolumeSource build() { V1CephFSVolumeSource buildable = new V1CephFSVolumeSource(); buildable.setMonitors(fluent.getMonitors()); @@ -93,4 +65,5 @@ public V1CephFSVolumeSource build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java index bc0031c0a2..5ae912d95c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java @@ -1,113 +1,67 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CephFSVolumeSourceFluent> - extends Fluent { - public A addToMonitors(Integer index, String item); - - public A setToMonitors(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CephFSVolumeSourceFluent> extends Fluent{ + public A addToMonitors(Integer index,String item); + public A setToMonitors(Integer index,String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); - public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(Collection items); - public List getMonitors(); - public String getMonitor(Integer index); - public String getFirstMonitor(); - public String getLastMonitor(); - public String getMatchingMonitor(Predicate predicate); - public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(List monitors); - public A withMonitors(java.lang.String... monitors); - public Boolean hasMonitors(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getSecretFile(); - public A withSecretFile(String secretFile); - public Boolean hasSecretFile(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1CephFSVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public String getUser(); - public A withUser(String user); - public Boolean hasUser(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java index c660707294..ceccc6bc87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CephFSVolumeSourceFluentImpl> - extends BaseFluent implements V1CephFSVolumeSourceFluent { - public V1CephFSVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CephFSVolumeSourceFluentImpl> extends BaseFluent implements V1CephFSVolumeSourceFluent{ + public V1CephFSVolumeSourceFluentImpl() { + } public V1CephFSVolumeSourceFluentImpl(V1CephFSVolumeSource instance) { this.withMonitors(instance.getMonitors()); @@ -37,310 +32,180 @@ public V1CephFSVolumeSourceFluentImpl(V1CephFSVolumeSource instance) { this.withSecretRef(instance.getSecretRef()); this.withUser(instance.getUser()); - } + } private List monitors; private String path; private Boolean readOnly; private String secretFile; private V1LocalObjectReferenceBuilder secretRef; private String user; - - public A addToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } + public A addToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} this.monitors.add(index, item); - return (A) this; + return (A)this; } - - public A setToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - this.monitors.set(index, item); - return (A) this; + public A setToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} + this.monitors.set(index, item); return (A)this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A removeFromMonitors(java.lang.String... items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public A removeAllFromMonitors(Collection items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public List getMonitors() { return this.monitors; } - public String getMonitor(Integer index) { return this.monitors.get(index); } - public String getFirstMonitor() { return this.monitors.get(0); } - public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public String getMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: monitors) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: monitors) { if(predicate.test(item)){ return true;} } return false; } - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; + if (monitors != null) {this.monitors = new ArrayList(); for (String item : monitors){this.addToMonitors(item);}} else { this.monitors = null;} return (A) this; } - public A withMonitors(java.lang.String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + if (this.monitors != null) {this.monitors.clear();} + if (monitors != null) {for (String item :monitors){ this.addToMonitors(item);}} return (A) this; } - public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getSecretFile() { return this.secretFile; } - public A withSecretFile(String secretFile) { - this.secretFile = secretFile; - return (A) this; + this.secretFile=secretFile; return (A) this; } - public Boolean hasSecretFile() { return this.secretFile != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1CephFSVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1CephFSVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1CephFSVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CephFSVolumeSourceFluentImpl that = (V1CephFSVolumeSourceFluentImpl) o; - if (monitors != null ? !monitors.equals(that.monitors) : that.monitors != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretFile != null ? !secretFile.equals(that.secretFile) : that.secretFile != null) - return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (monitors != null ? !monitors.equals(that.monitors) :that.monitors != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretFile != null ? !secretFile.equals(that.secretFile) :that.secretFile != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); + return java.util.Objects.hash(monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (monitors != null && !monitors.isEmpty()) { - sb.append("monitors:"); - sb.append(monitors + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretFile != null) { - sb.append("secretFile:"); - sb.append(secretFile + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretFile != null) { sb.append("secretFile:"); sb.append(secretFile + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1CephFSVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1CephFSVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1CephFSVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java index 042e9f051a..dd87682785 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CertificateSigningRequestBuilder - extends V1CertificateSigningRequestFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CertificateSigningRequestBuilder extends V1CertificateSigningRequestFluentImpl implements VisitableBuilder{ public V1CertificateSigningRequestBuilder() { this(false); } - public V1CertificateSigningRequestBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequest(), validationEnabled); } - public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent) { this(fluent, false); } - - public V1CertificateSigningRequestBuilder( - V1CertificateSigningRequestFluent fluent, Boolean validationEnabled) { + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequest(), validationEnabled); } - - public V1CertificateSigningRequestBuilder( - V1CertificateSigningRequestFluent fluent, V1CertificateSigningRequest instance) { + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,V1CertificateSigningRequest instance) { this(fluent, instance, false); } - - public V1CertificateSigningRequestBuilder( - V1CertificateSigningRequestFluent fluent, - V1CertificateSigningRequest instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,V1CertificateSigningRequest instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1CertificateSigningRequestBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestBuilder(V1CertificateSigningRequest instance) { - this(instance, false); + this(instance,false); } - - public V1CertificateSigningRequestBuilder( - V1CertificateSigningRequest instance, Boolean validationEnabled) { - this.fluent = this; + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequest instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1CertificateSigningRequestBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CertificateSigningRequestFluent fluent; Boolean validationEnabled; - public V1CertificateSigningRequest build() { V1CertificateSigningRequest buildable = new V1CertificateSigningRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1CertificateSigningRequest build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java index 8762eb3dc4..bdc1d73f50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CertificateSigningRequestConditionBuilder - extends V1CertificateSigningRequestConditionFluentImpl< - V1CertificateSigningRequestConditionBuilder> - implements VisitableBuilder< - V1CertificateSigningRequestCondition, V1CertificateSigningRequestConditionBuilder> { +import java.lang.Boolean; +public class V1CertificateSigningRequestConditionBuilder extends V1CertificateSigningRequestConditionFluentImpl implements VisitableBuilder{ public V1CertificateSigningRequestConditionBuilder() { this(false); } - public V1CertificateSigningRequestConditionBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequestCondition(), validationEnabled); } - - public V1CertificateSigningRequestConditionBuilder( - V1CertificateSigningRequestConditionFluent fluent) { + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent) { this(fluent, false); } - - public V1CertificateSigningRequestConditionBuilder( - V1CertificateSigningRequestConditionFluent fluent, Boolean validationEnabled) { + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestCondition(), validationEnabled); } - - public V1CertificateSigningRequestConditionBuilder( - V1CertificateSigningRequestConditionFluent fluent, - V1CertificateSigningRequestCondition instance) { + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,V1CertificateSigningRequestCondition instance) { this(fluent, instance, false); } - - public V1CertificateSigningRequestConditionBuilder( - V1CertificateSigningRequestConditionFluent fluent, - V1CertificateSigningRequestCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,V1CertificateSigningRequestCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withLastUpdateTime(instance.getLastUpdateTime()); @@ -60,17 +32,13 @@ public V1CertificateSigningRequestConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1CertificateSigningRequestConditionBuilder( - V1CertificateSigningRequestCondition instance) { - this(instance, false); + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestCondition instance) { + this(instance,false); } - - public V1CertificateSigningRequestConditionBuilder( - V1CertificateSigningRequestCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withLastUpdateTime(instance.getLastUpdateTime()); @@ -83,12 +51,10 @@ public V1CertificateSigningRequestConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CertificateSigningRequestConditionFluent fluent; Boolean validationEnabled; - public V1CertificateSigningRequestCondition build() { V1CertificateSigningRequestCondition buildable = new V1CertificateSigningRequestCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -99,4 +65,5 @@ public V1CertificateSigningRequestCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java index 97b8d85bb0..186a82eb7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java @@ -1,57 +1,31 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CertificateSigningRequestConditionFluent< - A extends V1CertificateSigningRequestConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CertificateSigningRequestConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public OffsetDateTime getLastUpdateTime(); - public A withLastUpdateTime(OffsetDateTime lastUpdateTime); - public Boolean hasLastUpdateTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java index e98f395a19..7b67fda4fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java @@ -1,29 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CertificateSigningRequestConditionFluentImpl< - A extends V1CertificateSigningRequestConditionFluent> - extends BaseFluent implements V1CertificateSigningRequestConditionFluent { - public V1CertificateSigningRequestConditionFluentImpl() {} - - public V1CertificateSigningRequestConditionFluentImpl( - V1CertificateSigningRequestCondition instance) { +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CertificateSigningRequestConditionFluentImpl> extends BaseFluent implements V1CertificateSigningRequestConditionFluent{ + public V1CertificateSigningRequestConditionFluentImpl() { + } + public V1CertificateSigningRequestConditionFluentImpl(V1CertificateSigningRequestCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withLastUpdateTime(instance.getLastUpdateTime()); @@ -35,144 +26,94 @@ public V1CertificateSigningRequestConditionFluentImpl( this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; + this.lastUpdateTime=lastUpdateTime; return (A) this; } - public Boolean hasLastUpdateTime() { return this.lastUpdateTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1CertificateSigningRequestConditionFluentImpl that = - (V1CertificateSigningRequestConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (lastUpdateTime != null - ? !lastUpdateTime.equals(that.lastUpdateTime) - : that.lastUpdateTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1CertificateSigningRequestConditionFluentImpl that = (V1CertificateSigningRequestConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (lastUpdateTime != null ? !lastUpdateTime.equals(that.lastUpdateTime) :that.lastUpdateTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (lastUpdateTime != null) { - sb.append("lastUpdateTime:"); - sb.append(lastUpdateTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (lastUpdateTime != null) { sb.append("lastUpdateTime:"); sb.append(lastUpdateTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java index aa4b9dbf1f..f32341677b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java @@ -1,133 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1CertificateSigningRequestFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CertificateSigningRequestFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1CertificateSigningRequestFluent.MetadataNested withNewMetadata(); - public V1CertificateSigningRequestFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1CertificateSigningRequestFluent.MetadataNested editMetadata(); - public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadata(); - - public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CertificateSigningRequestSpec getSpec(); - public V1CertificateSigningRequestSpec buildSpec(); - public A withSpec(V1CertificateSigningRequestSpec spec); - public Boolean hasSpec(); - public V1CertificateSigningRequestFluent.SpecNested withNewSpec(); - - public V1CertificateSigningRequestFluent.SpecNested withNewSpecLike( - V1CertificateSigningRequestSpec item); - + public V1CertificateSigningRequestFluent.SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item); public V1CertificateSigningRequestFluent.SpecNested editSpec(); - public V1CertificateSigningRequestFluent.SpecNested editOrNewSpec(); - - public V1CertificateSigningRequestFluent.SpecNested editOrNewSpecLike( - V1CertificateSigningRequestSpec item); - + public V1CertificateSigningRequestFluent.SpecNested editOrNewSpecLike(V1CertificateSigningRequestSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1CertificateSigningRequestStatus getStatus(); - public V1CertificateSigningRequestStatus buildStatus(); - public A withStatus(V1CertificateSigningRequestStatus status); - public Boolean hasStatus(); - public V1CertificateSigningRequestFluent.StatusNested withNewStatus(); - - public V1CertificateSigningRequestFluent.StatusNested withNewStatusLike( - V1CertificateSigningRequestStatus item); - + public V1CertificateSigningRequestFluent.StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item); public V1CertificateSigningRequestFluent.StatusNested editStatus(); - public V1CertificateSigningRequestFluent.StatusNested editOrNewStatus(); - - public V1CertificateSigningRequestFluent.StatusNested editOrNewStatusLike( - V1CertificateSigningRequestStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1CertificateSigningRequestFluent.StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1CertificateSigningRequestSpecFluent> { + public interface SpecNested extends Nested,V1CertificateSigningRequestSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1CertificateSigningRequestStatusFluent< - V1CertificateSigningRequestFluent.StatusNested> { + public interface StatusNested extends Nested,V1CertificateSigningRequestStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java index 37755ea525..db72e4e543 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CertificateSigningRequestFluentImpl> - extends BaseFluent implements V1CertificateSigningRequestFluent { - public V1CertificateSigningRequestFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CertificateSigningRequestFluentImpl> extends BaseFluent implements V1CertificateSigningRequestFluent{ + public V1CertificateSigningRequestFluentImpl() { + } public V1CertificateSigningRequestFluentImpl(V1CertificateSigningRequest instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,308 +25,205 @@ public V1CertificateSigningRequestFluentImpl(V1CertificateSigningRequest instanc this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CertificateSigningRequestSpecBuilder spec; private V1CertificateSigningRequestStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1CertificateSigningRequestFluent.MetadataNested withNewMetadata() { return new V1CertificateSigningRequestFluentImpl.MetadataNestedImpl(); } - - public V1CertificateSigningRequestFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V1CertificateSigningRequestFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CertificateSigningRequestFluentImpl.MetadataNestedImpl(item); } - public V1CertificateSigningRequestFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CertificateSigningRequestSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1CertificateSigningRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1CertificateSigningRequestSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1CertificateSigningRequestSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1CertificateSigningRequestSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1CertificateSigningRequestFluent.SpecNested withNewSpec() { return new V1CertificateSigningRequestFluentImpl.SpecNestedImpl(); } - - public V1CertificateSigningRequestFluent.SpecNested withNewSpecLike( - V1CertificateSigningRequestSpec item) { + public V1CertificateSigningRequestFluent.SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item) { return new V1CertificateSigningRequestFluentImpl.SpecNestedImpl(item); } - public V1CertificateSigningRequestFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1CertificateSigningRequestFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1CertificateSigningRequestSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1CertificateSigningRequestSpecBuilder().build()); } - - public V1CertificateSigningRequestFluent.SpecNested editOrNewSpecLike( - V1CertificateSigningRequestSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1CertificateSigningRequestFluent.SpecNested editOrNewSpecLike(V1CertificateSigningRequestSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1CertificateSigningRequestStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1CertificateSigningRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1CertificateSigningRequestStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1CertificateSigningRequestStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1CertificateSigningRequestStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1CertificateSigningRequestFluent.StatusNested withNewStatus() { return new V1CertificateSigningRequestFluentImpl.StatusNestedImpl(); } - - public V1CertificateSigningRequestFluent.StatusNested withNewStatusLike( - V1CertificateSigningRequestStatus item) { + public V1CertificateSigningRequestFluent.StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item) { return new V1CertificateSigningRequestFluentImpl.StatusNestedImpl(item); } - public V1CertificateSigningRequestFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1CertificateSigningRequestFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1CertificateSigningRequestStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1CertificateSigningRequestStatusBuilder().build()); } - - public V1CertificateSigningRequestFluent.StatusNested editOrNewStatusLike( - V1CertificateSigningRequestStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1CertificateSigningRequestFluent.StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CertificateSigningRequestFluentImpl that = (V1CertificateSigningRequestFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1CertificateSigningRequestFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1CertificateSigningRequestFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1CertificateSigningRequestFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1CertificateSigningRequestSpecFluentImpl< - V1CertificateSigningRequestFluent.SpecNested> - implements V1CertificateSigningRequestFluent.SpecNested, Nested { + class SpecNestedImpl extends V1CertificateSigningRequestSpecFluentImpl> implements V1CertificateSigningRequestFluent.SpecNested,Nested{ SpecNestedImpl(V1CertificateSigningRequestSpec item) { this.builder = new V1CertificateSigningRequestSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1CertificateSigningRequestSpecBuilder(this); } - V1CertificateSigningRequestSpecBuilder builder; - public N and() { return (N) V1CertificateSigningRequestFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1CertificateSigningRequestStatusFluentImpl< - V1CertificateSigningRequestFluent.StatusNested> - implements V1CertificateSigningRequestFluent.StatusNested, Nested { + class StatusNestedImpl extends V1CertificateSigningRequestStatusFluentImpl> implements V1CertificateSigningRequestFluent.StatusNested,Nested{ StatusNestedImpl(V1CertificateSigningRequestStatus item) { this.builder = new V1CertificateSigningRequestStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1CertificateSigningRequestStatusBuilder(this); } - V1CertificateSigningRequestStatusBuilder builder; - public N and() { return (N) V1CertificateSigningRequestFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java index 3b246070f5..9d64a2e320 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CertificateSigningRequestListBuilder - extends V1CertificateSigningRequestListFluentImpl - implements VisitableBuilder< - V1CertificateSigningRequestList, V1CertificateSigningRequestListBuilder> { +import java.lang.Boolean; +public class V1CertificateSigningRequestListBuilder extends V1CertificateSigningRequestListFluentImpl implements VisitableBuilder{ public V1CertificateSigningRequestListBuilder() { this(false); } - public V1CertificateSigningRequestListBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequestList(), validationEnabled); } - public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent) { this(fluent, false); } - - public V1CertificateSigningRequestListBuilder( - V1CertificateSigningRequestListFluent fluent, Boolean validationEnabled) { + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestList(), validationEnabled); } - - public V1CertificateSigningRequestListBuilder( - V1CertificateSigningRequestListFluent fluent, V1CertificateSigningRequestList instance) { + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,V1CertificateSigningRequestList instance) { this(fluent, instance, false); } - - public V1CertificateSigningRequestListBuilder( - V1CertificateSigningRequestListFluent fluent, - V1CertificateSigningRequestList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,V1CertificateSigningRequestList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -53,16 +28,13 @@ public V1CertificateSigningRequestListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestList instance) { - this(instance, false); + this(instance,false); } - - public V1CertificateSigningRequestListBuilder( - V1CertificateSigningRequestList instance, Boolean validationEnabled) { - this.fluent = this; + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -71,12 +43,10 @@ public V1CertificateSigningRequestListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CertificateSigningRequestListFluent fluent; Boolean validationEnabled; - public V1CertificateSigningRequestList build() { V1CertificateSigningRequestList buildable = new V1CertificateSigningRequestList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V1CertificateSigningRequestList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java index 0e4e2270bf..03633281c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java @@ -1,136 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CertificateSigningRequestListFluent< - A extends V1CertificateSigningRequestListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CertificateSigningRequestListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1CertificateSigningRequest item); - - public A setToItems(Integer index, V1CertificateSigningRequest item); - + public A addToItems(Integer index,V1CertificateSigningRequest item); + public A setToItems(Integer index,V1CertificateSigningRequest item); public A addToItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); - public A addAllToItems(Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); - + public A removeFromItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1CertificateSigningRequest buildItem(Integer index); - public V1CertificateSigningRequest buildFirstItem(); - public V1CertificateSigningRequest buildLastItem(); - - public V1CertificateSigningRequest buildMatchingItem( - Predicate predicate); - + public V1CertificateSigningRequest buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); - public Boolean hasItems(); - public V1CertificateSigningRequestListFluent.ItemsNested addNewItem(); - - public V1CertificateSigningRequestListFluent.ItemsNested addNewItemLike( - V1CertificateSigningRequest item); - - public V1CertificateSigningRequestListFluent.ItemsNested setNewItemLike( - Integer index, V1CertificateSigningRequest item); - + public V1CertificateSigningRequestListFluent.ItemsNested addNewItemLike(V1CertificateSigningRequest item); + public V1CertificateSigningRequestListFluent.ItemsNested setNewItemLike(Integer index,V1CertificateSigningRequest item); public V1CertificateSigningRequestListFluent.ItemsNested editItem(Integer index); - public V1CertificateSigningRequestListFluent.ItemsNested editFirstItem(); - public V1CertificateSigningRequestListFluent.ItemsNested editLastItem(); - - public V1CertificateSigningRequestListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1CertificateSigningRequestListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadata(); - - public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V1CertificateSigningRequestListFluent.MetadataNested editMetadata(); - public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadata(); - - public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1CertificateSigningRequestFluent> { + public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1CertificateSigningRequestFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java index 9ec2a7423d..7f6eaed61c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CertificateSigningRequestListFluentImpl< - A extends V1CertificateSigningRequestListFluent> - extends BaseFluent implements V1CertificateSigningRequestListFluent { - public V1CertificateSigningRequestListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CertificateSigningRequestListFluentImpl> extends BaseFluent implements V1CertificateSigningRequestListFluent{ + public V1CertificateSigningRequestListFluentImpl() { + } public V1CertificateSigningRequestListFluentImpl(V1CertificateSigningRequestList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,101 +30,46 @@ public V1CertificateSigningRequestListFluentImpl(V1CertificateSigningRequestList this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1CertificateSigningRequest item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1CertificateSigningRequest item) { + if (this.items == null) {this.items = new ArrayList();} + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1CertificateSigningRequest item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1CertificateSigningRequest item) { + if (this.items == null) {this.items = new ArrayList();} V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { + for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -141,278 +81,176 @@ public A removeMatchingFromItems(Predicate p each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1CertificateSigningRequest buildItem(Integer index) { return this.items.get(index).build(); } - public V1CertificateSigningRequest buildFirstItem() { return this.items.get(0).build(); } - public V1CertificateSigningRequest buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1CertificateSigningRequest buildMatchingItem( - Predicate predicate) { - for (V1CertificateSigningRequestBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1CertificateSigningRequest buildMatchingItem(Predicate predicate) { + for (V1CertificateSigningRequestBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1CertificateSigningRequestBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CertificateSigningRequestBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CertificateSigningRequest item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1CertificateSigningRequest item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1CertificateSigningRequest item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1CertificateSigningRequest item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1CertificateSigningRequestListFluent.ItemsNested addNewItem() { return new V1CertificateSigningRequestListFluentImpl.ItemsNestedImpl(); } - - public V1CertificateSigningRequestListFluent.ItemsNested addNewItemLike( - V1CertificateSigningRequest item) { + public V1CertificateSigningRequestListFluent.ItemsNested addNewItemLike(V1CertificateSigningRequest item) { return new V1CertificateSigningRequestListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1CertificateSigningRequestListFluent.ItemsNested setNewItemLike( - Integer index, V1CertificateSigningRequest item) { + public V1CertificateSigningRequestListFluent.ItemsNested setNewItemLike(Integer index,V1CertificateSigningRequest item) { return new V1CertificateSigningRequestListFluentImpl.ItemsNestedImpl(index, item); } - public V1CertificateSigningRequestListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1CertificateSigningRequestListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1CertificateSigningRequestListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1CertificateSigningRequestListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1CertificateSigningRequestListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1CertificateSigningRequestListFluentImpl.MetadataNestedImpl(); } - - public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1CertificateSigningRequestListFluentImpl.MetadataNestedImpl(item); } - public V1CertificateSigningRequestListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CertificateSigningRequestListFluentImpl that = (V1CertificateSigningRequestListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1CertificateSigningRequestFluentImpl< - V1CertificateSigningRequestListFluent.ItemsNested> - implements V1CertificateSigningRequestListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1CertificateSigningRequest item) { + class ItemsNestedImpl extends V1CertificateSigningRequestFluentImpl> implements V1CertificateSigningRequestListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1CertificateSigningRequest item) { this.index = index; this.builder = new V1CertificateSigningRequestBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1CertificateSigningRequestBuilder(this); } - V1CertificateSigningRequestBuilder builder; Integer index; - public N and() { - return (N) V1CertificateSigningRequestListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1CertificateSigningRequestListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1CertificateSigningRequestListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1CertificateSigningRequestListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1CertificateSigningRequestListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java index 480c214af5..8c8b83ad6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CertificateSigningRequestSpecBuilder - extends V1CertificateSigningRequestSpecFluentImpl - implements VisitableBuilder< - V1CertificateSigningRequestSpec, V1CertificateSigningRequestSpecBuilder> { +import java.lang.Boolean; +public class V1CertificateSigningRequestSpecBuilder extends V1CertificateSigningRequestSpecFluentImpl implements VisitableBuilder{ public V1CertificateSigningRequestSpecBuilder() { this(false); } - public V1CertificateSigningRequestSpecBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequestSpec(), validationEnabled); } - public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent) { this(fluent, false); } - - public V1CertificateSigningRequestSpecBuilder( - V1CertificateSigningRequestSpecFluent fluent, Boolean validationEnabled) { + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestSpec(), validationEnabled); } - - public V1CertificateSigningRequestSpecBuilder( - V1CertificateSigningRequestSpecFluent fluent, V1CertificateSigningRequestSpec instance) { + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,V1CertificateSigningRequestSpec instance) { this(fluent, instance, false); } - - public V1CertificateSigningRequestSpecBuilder( - V1CertificateSigningRequestSpecFluent fluent, - V1CertificateSigningRequestSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,V1CertificateSigningRequestSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withExpirationSeconds(instance.getExpirationSeconds()); fluent.withExtra(instance.getExtra()); @@ -61,16 +36,13 @@ public V1CertificateSigningRequestSpecBuilder( fluent.withUsername(instance.getUsername()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpec instance) { - this(instance, false); + this(instance,false); } - - public V1CertificateSigningRequestSpecBuilder( - V1CertificateSigningRequestSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withExpirationSeconds(instance.getExpirationSeconds()); this.withExtra(instance.getExtra()); @@ -87,12 +59,10 @@ public V1CertificateSigningRequestSpecBuilder( this.withUsername(instance.getUsername()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CertificateSigningRequestSpecFluent fluent; Boolean validationEnabled; - public V1CertificateSigningRequestSpec build() { V1CertificateSigningRequestSpec buildable = new V1CertificateSigningRequestSpec(); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); @@ -105,4 +75,5 @@ public V1CertificateSigningRequestSpec build() { buildable.setUsername(fluent.getUsername()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java index 47bbf530a4..c4ebd708a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java @@ -1,140 +1,78 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Byte; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; import java.util.function.Predicate; -/** Generated */ -public interface V1CertificateSigningRequestSpecFluent< - A extends V1CertificateSigningRequestSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CertificateSigningRequestSpecFluent> extends Fluent{ public Integer getExpirationSeconds(); - public A withExpirationSeconds(Integer expirationSeconds); - public Boolean hasExpirationSeconds(); - - public A addToExtra(String key, List value); - - public A addToExtra(Map> map); - + public A addToExtra(String key,List value); + public A addToExtra(Map> map); public A removeFromExtra(String key); - - public A removeFromExtra(Map> map); - - public Map> getExtra(); - - public A withExtra(Map> extra); - + public A removeFromExtra(Map> map); + public Map> getExtra(); + public A withExtra(Map> extra); public Boolean hasExtra(); - - public A addToGroups(Integer index, String item); - - public A setToGroups(Integer index, String item); - + public A addToGroups(Integer index,String item); + public A setToGroups(Integer index,String item); public A addToGroups(java.lang.String... items); - public A addAllToGroups(Collection items); - public A removeFromGroups(java.lang.String... items); - public A removeAllFromGroups(Collection items); - public List getGroups(); - public String getGroup(Integer index); - public String getFirstGroup(); - public String getLastGroup(); - public String getMatchingGroup(Predicate predicate); - public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(List groups); - public A withGroups(java.lang.String... groups); - public Boolean hasGroups(); - public A withRequest(byte... request); - public byte[] getRequest(); - - public A addToRequest(Integer index, Byte item); - - public A setToRequest(Integer index, Byte item); - + public A addToRequest(Integer index,Byte item); + public A setToRequest(Integer index,Byte item); public A addToRequest(java.lang.Byte... items); - public A addAllToRequest(Collection items); - public A removeFromRequest(java.lang.Byte... items); - public A removeAllFromRequest(Collection items); - public Boolean hasRequest(); - public String getSignerName(); - public A withSignerName(String signerName); - public Boolean hasSignerName(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); - - public A addToUsages(Integer index, String item); - - public A setToUsages(Integer index, String item); - + public A addToUsages(Integer index,String item); + public A setToUsages(Integer index,String item); public A addToUsages(java.lang.String... items); - public A addAllToUsages(Collection items); - public A removeFromUsages(java.lang.String... items); - public A removeAllFromUsages(Collection items); - public List getUsages(); - public String getUsage(Integer index); - public String getFirstUsage(); - public String getLastUsage(); - public String getMatchingUsage(Predicate predicate); - public Boolean hasMatchingUsage(Predicate predicate); - public A withUsages(List usages); - public A withUsages(java.lang.String... usages); - public Boolean hasUsages(); - public String getUsername(); - public A withUsername(String username); - public Boolean hasUsername(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java index 5550bf579e..359454694f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java @@ -1,32 +1,26 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Byte; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CertificateSigningRequestSpecFluentImpl< - A extends V1CertificateSigningRequestSpecFluent> - extends BaseFluent implements V1CertificateSigningRequestSpecFluent { - public V1CertificateSigningRequestSpecFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CertificateSigningRequestSpecFluentImpl> extends BaseFluent implements V1CertificateSigningRequestSpecFluent{ + public V1CertificateSigningRequestSpecFluentImpl() { + } public V1CertificateSigningRequestSpecFluentImpl(V1CertificateSigningRequestSpec instance) { this.withExpirationSeconds(instance.getExpirationSeconds()); @@ -43,513 +37,253 @@ public V1CertificateSigningRequestSpecFluentImpl(V1CertificateSigningRequestSpec this.withUsages(instance.getUsages()); this.withUsername(instance.getUsername()); - } + } private Integer expirationSeconds; - private Map> extra; + private Map> extra; private List groups; private List request; private String signerName; private String uid; private List usages; private String username; - public Integer getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(Integer expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; + this.expirationSeconds=expirationSeconds; return (A) this; } - public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } - - public A addToExtra(String key, List value) { - if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); - } - if (key != null && value != null) { - this.extra.put(key, value); - } - return (A) this; + public A addToExtra(String key,List value) { + if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } + if(key != null && value != null) {this.extra.put(key, value);} return (A)this; } - - public A addToExtra(Map> map) { - if (this.extra == null && map != null) { - this.extra = new LinkedHashMap(); - } - if (map != null) { - this.extra.putAll(map); - } - return (A) this; + public A addToExtra(Map> map) { + if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } + if(map != null) { this.extra.putAll(map);} return (A)this; } - public A removeFromExtra(String key) { - if (this.extra == null) { - return (A) this; - } - if (key != null && this.extra != null) { - this.extra.remove(key); - } - return (A) this; + if(this.extra == null) { return (A) this; } + if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; } - - public A removeFromExtra(Map> map) { - if (this.extra == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.extra != null) { - this.extra.remove(key); - } - } - } - return (A) this; + public A removeFromExtra(Map> map) { + if(this.extra == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; } - - public Map> getExtra() { + public Map> getExtra() { return this.extra; } - - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); - } - return (A) this; + public A withExtra(Map> extra) { + if (extra == null) { this.extra = null;} else {this.extra = new LinkedHashMap(extra);} return (A) this; } - public Boolean hasExtra() { return this.extra != null; } - - public A addToGroups(Integer index, String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } + public A addToGroups(Integer index,String item) { + if (this.groups == null) {this.groups = new ArrayList();} this.groups.add(index, item); - return (A) this; + return (A)this; } - - public A setToGroups(Integer index, String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - this.groups.set(index, item); - return (A) this; + public A setToGroups(Integer index,String item) { + if (this.groups == null) {this.groups = new ArrayList();} + this.groups.set(index, item); return (A)this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (String item : items) {this.groups.add(item);} return (A)this; } - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (String item : items) {this.groups.add(item);} return (A)this; } - public A removeFromGroups(java.lang.String... items) { - for (String item : items) { - if (this.groups != null) { - this.groups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.groups!= null){ this.groups.remove(item);}} return (A)this; } - public A removeAllFromGroups(Collection items) { - for (String item : items) { - if (this.groups != null) { - this.groups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.groups!= null){ this.groups.remove(item);}} return (A)this; } - public List getGroups() { return this.groups; } - public String getGroup(Integer index) { return this.groups.get(index); } - public String getFirstGroup() { return this.groups.get(0); } - public String getLastGroup() { return this.groups.get(groups.size() - 1); } - public String getMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: groups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: groups) { if(predicate.test(item)){ return true;} } return false; } - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; + if (groups != null) {this.groups = new ArrayList(); for (String item : groups){this.addToGroups(item);}} else { this.groups = null;} return (A) this; } - public A withGroups(java.lang.String... groups) { - if (this.groups != null) { - this.groups.clear(); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; + if (this.groups != null) {this.groups.clear();} + if (groups != null) {for (String item :groups){ this.addToGroups(item);}} return (A) this; } - public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } - public A withRequest(byte... request) { - if (this.request != null) { - this.request.clear(); - } - if (request != null) { - for (byte item : request) { - this.addToRequest(item); - } - } - return (A) this; + if (this.request != null) {this.request.clear();} + if (request != null) {for (byte item :request){ this.addToRequest(item);}} return (A) this; } - public byte[] getRequest() { - // This needs to work with primitives, so we use arrays. - int size = request != null ? request.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : request) { - result[index++] = item; - } - return result; - } + //This needs to work with primitives, so we use arrays. +int size = request != null ? request.size() : 0; +byte[] result = new byte[size]; +if (size == 0) { + return result; +} +int index = 0; +for (byte item : request) { + result[index++]=item; +} +return result; - public A addToRequest(Integer index, Byte item) { - if (this.request == null) { - this.request = new ArrayList(); - } + } + public A addToRequest(Integer index,Byte item) { + if (this.request == null) {this.request = new ArrayList();} this.request.add(index, item); - return (A) this; + return (A)this; } - - public A setToRequest(Integer index, Byte item) { - if (this.request == null) { - this.request = new ArrayList(); - } - this.request.set(index, item); - return (A) this; + public A setToRequest(Integer index,Byte item) { + if (this.request == null) {this.request = new ArrayList();} + this.request.set(index, item); return (A)this; } - public A addToRequest(java.lang.Byte... items) { - if (this.request == null) { - this.request = new ArrayList(); - } - for (Byte item : items) { - this.request.add(item); - } - return (A) this; + if (this.request == null) {this.request = new ArrayList();} + for (Byte item : items) {this.request.add(item);} return (A)this; } - public A addAllToRequest(Collection items) { - if (this.request == null) { - this.request = new ArrayList(); - } - for (Byte item : items) { - this.request.add(item); - } - return (A) this; + if (this.request == null) {this.request = new ArrayList();} + for (Byte item : items) {this.request.add(item);} return (A)this; } - public A removeFromRequest(java.lang.Byte... items) { - for (Byte item : items) { - if (this.request != null) { - this.request.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.request!= null){ this.request.remove(item);}} return (A)this; } - public A removeAllFromRequest(Collection items) { - for (Byte item : items) { - if (this.request != null) { - this.request.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.request!= null){ this.request.remove(item);}} return (A)this; } - public Boolean hasRequest() { return request != null && !request.isEmpty(); } - public String getSignerName() { return this.signerName; } - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; + this.signerName=signerName; return (A) this; } - public Boolean hasSignerName() { return this.signerName != null; } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - - public A addToUsages(Integer index, String item) { - if (this.usages == null) { - this.usages = new ArrayList(); - } + public A addToUsages(Integer index,String item) { + if (this.usages == null) {this.usages = new ArrayList();} this.usages.add(index, item); - return (A) this; + return (A)this; } - - public A setToUsages(Integer index, String item) { - if (this.usages == null) { - this.usages = new ArrayList(); - } - this.usages.set(index, item); - return (A) this; + public A setToUsages(Integer index,String item) { + if (this.usages == null) {this.usages = new ArrayList();} + this.usages.set(index, item); return (A)this; } - public A addToUsages(java.lang.String... items) { - if (this.usages == null) { - this.usages = new ArrayList(); - } - for (String item : items) { - this.usages.add(item); - } - return (A) this; + if (this.usages == null) {this.usages = new ArrayList();} + for (String item : items) {this.usages.add(item);} return (A)this; } - public A addAllToUsages(Collection items) { - if (this.usages == null) { - this.usages = new ArrayList(); - } - for (String item : items) { - this.usages.add(item); - } - return (A) this; + if (this.usages == null) {this.usages = new ArrayList();} + for (String item : items) {this.usages.add(item);} return (A)this; } - public A removeFromUsages(java.lang.String... items) { - for (String item : items) { - if (this.usages != null) { - this.usages.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.usages!= null){ this.usages.remove(item);}} return (A)this; } - public A removeAllFromUsages(Collection items) { - for (String item : items) { - if (this.usages != null) { - this.usages.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.usages!= null){ this.usages.remove(item);}} return (A)this; } - public List getUsages() { return this.usages; } - public String getUsage(Integer index) { return this.usages.get(index); } - public String getFirstUsage() { return this.usages.get(0); } - public String getLastUsage() { return this.usages.get(usages.size() - 1); } - public String getMatchingUsage(Predicate predicate) { - for (String item : usages) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: usages) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingUsage(Predicate predicate) { - for (String item : usages) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: usages) { if(predicate.test(item)){ return true;} } return false; } - public A withUsages(List usages) { - if (usages != null) { - this.usages = new ArrayList(); - for (String item : usages) { - this.addToUsages(item); - } - } else { - this.usages = null; - } - return (A) this; + if (usages != null) {this.usages = new ArrayList(); for (String item : usages){this.addToUsages(item);}} else { this.usages = null;} return (A) this; } - public A withUsages(java.lang.String... usages) { - if (this.usages != null) { - this.usages.clear(); - } - if (usages != null) { - for (String item : usages) { - this.addToUsages(item); - } - } - return (A) this; + if (this.usages != null) {this.usages.clear();} + if (usages != null) {for (String item :usages){ this.addToUsages(item);}} return (A) this; } - public Boolean hasUsages() { return usages != null && !usages.isEmpty(); } - public String getUsername() { return this.username; } - public A withUsername(String username) { - this.username = username; - return (A) this; + this.username=username; return (A) this; } - public Boolean hasUsername() { return this.username != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CertificateSigningRequestSpecFluentImpl that = (V1CertificateSigningRequestSpecFluentImpl) o; - if (expirationSeconds != null - ? !expirationSeconds.equals(that.expirationSeconds) - : that.expirationSeconds != null) return false; - if (extra != null ? !extra.equals(that.extra) : that.extra != null) return false; - if (groups != null ? !groups.equals(that.groups) : that.groups != null) return false; - if (request != null ? !request.equals(that.request) : that.request != null) return false; - if (signerName != null ? !signerName.equals(that.signerName) : that.signerName != null) - return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; - if (usages != null ? !usages.equals(that.usages) : that.usages != null) return false; - if (username != null ? !username.equals(that.username) : that.username != null) return false; + if (expirationSeconds != null ? !expirationSeconds.equals(that.expirationSeconds) :that.expirationSeconds != null) return false; + if (extra != null ? !extra.equals(that.extra) :that.extra != null) return false; + if (groups != null ? !groups.equals(that.groups) :that.groups != null) return false; + if (request != null ? !request.equals(that.request) :that.request != null) return false; + if (signerName != null ? !signerName.equals(that.signerName) :that.signerName != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; + if (usages != null ? !usages.equals(that.usages) :that.usages != null) return false; + if (username != null ? !username.equals(that.username) :that.username != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - expirationSeconds, - extra, - groups, - request, - signerName, - uid, - usages, - username, - super.hashCode()); + return java.util.Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expirationSeconds != null) { - sb.append("expirationSeconds:"); - sb.append(expirationSeconds + ","); - } - if (extra != null && !extra.isEmpty()) { - sb.append("extra:"); - sb.append(extra + ","); - } - if (groups != null && !groups.isEmpty()) { - sb.append("groups:"); - sb.append(groups + ","); - } - if (request != null && !request.isEmpty()) { - sb.append("request:"); - sb.append(request + ","); - } - if (signerName != null) { - sb.append("signerName:"); - sb.append(signerName + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid + ","); - } - if (usages != null && !usages.isEmpty()) { - sb.append("usages:"); - sb.append(usages + ","); - } - if (username != null) { - sb.append("username:"); - sb.append(username); - } + if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds + ","); } + if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } + if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } + if (request != null && !request.isEmpty()) { sb.append("request:"); sb.append(request + ","); } + if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } + if (usages != null && !usages.isEmpty()) { sb.append("usages:"); sb.append(usages + ","); } + if (username != null) { sb.append("username:"); sb.append(username); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java index 82e91e8790..df44a275ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java @@ -1,80 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1CertificateSigningRequestStatusBuilder - extends V1CertificateSigningRequestStatusFluentImpl - implements VisitableBuilder< - V1CertificateSigningRequestStatus, V1CertificateSigningRequestStatusBuilder> { +import java.lang.Boolean; +public class V1CertificateSigningRequestStatusBuilder extends V1CertificateSigningRequestStatusFluentImpl implements VisitableBuilder{ public V1CertificateSigningRequestStatusBuilder() { this(false); } - public V1CertificateSigningRequestStatusBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequestStatus(), validationEnabled); } - - public V1CertificateSigningRequestStatusBuilder( - V1CertificateSigningRequestStatusFluent fluent) { + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent) { this(fluent, false); } - - public V1CertificateSigningRequestStatusBuilder( - V1CertificateSigningRequestStatusFluent fluent, Boolean validationEnabled) { + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestStatus(), validationEnabled); } - - public V1CertificateSigningRequestStatusBuilder( - V1CertificateSigningRequestStatusFluent fluent, - V1CertificateSigningRequestStatus instance) { + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,V1CertificateSigningRequestStatus instance) { this(fluent, instance, false); } - - public V1CertificateSigningRequestStatusBuilder( - V1CertificateSigningRequestStatusFluent fluent, - V1CertificateSigningRequestStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,V1CertificateSigningRequestStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCertificate(instance.getCertificate()); fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatus instance) { - this(instance, false); + this(instance,false); } - - public V1CertificateSigningRequestStatusBuilder( - V1CertificateSigningRequestStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCertificate(instance.getCertificate()); this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CertificateSigningRequestStatusFluent fluent; Boolean validationEnabled; - public V1CertificateSigningRequestStatus build() { V1CertificateSigningRequestStatus buildable = new V1CertificateSigningRequestStatus(); buildable.setCertificate(fluent.getCertificate()); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java index a63b7b4c06..328991dc53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java @@ -1,114 +1,65 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CertificateSigningRequestStatusFluent< - A extends V1CertificateSigningRequestStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CertificateSigningRequestStatusFluent> extends Fluent{ public A withCertificate(byte... certificate); - public byte[] getCertificate(); - - public A addToCertificate(Integer index, Byte item); - - public A setToCertificate(Integer index, Byte item); - + public A addToCertificate(Integer index,Byte item); + public A setToCertificate(Integer index,Byte item); public A addToCertificate(java.lang.Byte... items); - public A addAllToCertificate(Collection items); - public A removeFromCertificate(java.lang.Byte... items); - public A removeAllFromCertificate(Collection items); - public Boolean hasCertificate(); - - public A addToConditions(Integer index, V1CertificateSigningRequestCondition item); - - public A setToConditions(Integer index, V1CertificateSigningRequestCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items); - + public A addToConditions(Integer index,V1CertificateSigningRequestCondition item); + public A setToConditions(Integer index,V1CertificateSigningRequestCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1CertificateSigningRequestCondition buildCondition(Integer index); - public V1CertificateSigningRequestCondition buildFirstCondition(); - public V1CertificateSigningRequestCondition buildLastCondition(); - - public V1CertificateSigningRequestCondition buildMatchingCondition( - Predicate predicate); - - public Boolean hasMatchingCondition( - Predicate predicate); - + public V1CertificateSigningRequestCondition buildMatchingCondition(Predicate predicate); + public Boolean hasMatchingCondition(Predicate predicate); public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions); public Boolean hasConditions(); - public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewCondition(); - - public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditionLike( - V1CertificateSigningRequestCondition item); - - public V1CertificateSigningRequestStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1CertificateSigningRequestCondition item); - + public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item); + public V1CertificateSigningRequestStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1CertificateSigningRequestCondition item); public V1CertificateSigningRequestStatusFluent.ConditionsNested editCondition(Integer index); - public V1CertificateSigningRequestStatusFluent.ConditionsNested editFirstCondition(); - public V1CertificateSigningRequestStatusFluent.ConditionsNested editLastCondition(); - - public V1CertificateSigningRequestStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, - V1CertificateSigningRequestConditionFluent< - V1CertificateSigningRequestStatusFluent.ConditionsNested> { + public V1CertificateSigningRequestStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1CertificateSigningRequestConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java index 9a65a22823..61130d3ca6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java @@ -1,211 +1,106 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Byte; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CertificateSigningRequestStatusFluentImpl< - A extends V1CertificateSigningRequestStatusFluent> - extends BaseFluent implements V1CertificateSigningRequestStatusFluent { - public V1CertificateSigningRequestStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CertificateSigningRequestStatusFluentImpl> extends BaseFluent implements V1CertificateSigningRequestStatusFluent{ + public V1CertificateSigningRequestStatusFluentImpl() { + } public V1CertificateSigningRequestStatusFluentImpl(V1CertificateSigningRequestStatus instance) { this.withCertificate(instance.getCertificate()); this.withConditions(instance.getConditions()); - } + } private List certificate; private ArrayList conditions; - public A withCertificate(byte... certificate) { - if (this.certificate != null) { - this.certificate.clear(); - } - if (certificate != null) { - for (byte item : certificate) { - this.addToCertificate(item); - } - } - return (A) this; + if (this.certificate != null) {this.certificate.clear();} + if (certificate != null) {for (byte item :certificate){ this.addToCertificate(item);}} return (A) this; } - public byte[] getCertificate() { - // This needs to work with primitives, so we use arrays. - int size = certificate != null ? certificate.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : certificate) { - result[index++] = item; - } - return result; - } + //This needs to work with primitives, so we use arrays. +int size = certificate != null ? certificate.size() : 0; +byte[] result = new byte[size]; +if (size == 0) { + return result; +} +int index = 0; +for (byte item : certificate) { + result[index++]=item; +} +return result; - public A addToCertificate(Integer index, Byte item) { - if (this.certificate == null) { - this.certificate = new ArrayList(); - } + } + public A addToCertificate(Integer index,Byte item) { + if (this.certificate == null) {this.certificate = new ArrayList();} this.certificate.add(index, item); - return (A) this; + return (A)this; } - - public A setToCertificate(Integer index, Byte item) { - if (this.certificate == null) { - this.certificate = new ArrayList(); - } - this.certificate.set(index, item); - return (A) this; + public A setToCertificate(Integer index,Byte item) { + if (this.certificate == null) {this.certificate = new ArrayList();} + this.certificate.set(index, item); return (A)this; } - public A addToCertificate(java.lang.Byte... items) { - if (this.certificate == null) { - this.certificate = new ArrayList(); - } - for (Byte item : items) { - this.certificate.add(item); - } - return (A) this; + if (this.certificate == null) {this.certificate = new ArrayList();} + for (Byte item : items) {this.certificate.add(item);} return (A)this; } - public A addAllToCertificate(Collection items) { - if (this.certificate == null) { - this.certificate = new ArrayList(); - } - for (Byte item : items) { - this.certificate.add(item); - } - return (A) this; + if (this.certificate == null) {this.certificate = new ArrayList();} + for (Byte item : items) {this.certificate.add(item);} return (A)this; } - public A removeFromCertificate(java.lang.Byte... items) { - for (Byte item : items) { - if (this.certificate != null) { - this.certificate.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.certificate!= null){ this.certificate.remove(item);}} return (A)this; } - public A removeAllFromCertificate(Collection items) { - for (Byte item : items) { - if (this.certificate != null) { - this.certificate.remove(item); - } - } - return (A) this; + for (Byte item : items) {if (this.certificate!= null){ this.certificate.remove(item);}} return (A)this; } - public Boolean hasCertificate() { return certificate != null && !certificate.isEmpty(); } - - public A addToConditions(Integer index, V1CertificateSigningRequestCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1CertificateSigningRequestConditionBuilder builder = - new V1CertificateSigningRequestConditionBuilder(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 addToConditions(Integer index,V1CertificateSigningRequestCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(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(Integer index, V1CertificateSigningRequestCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1CertificateSigningRequestConditionBuilder builder = - new V1CertificateSigningRequestConditionBuilder(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 setToConditions(Integer index,V1CertificateSigningRequestCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(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.V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = - new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(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 ArrayList(); - } - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = - new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = - new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { + for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = - new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -216,187 +111,113 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1CertificateSigningRequestCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1CertificateSigningRequestCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1CertificateSigningRequestCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1CertificateSigningRequestCondition buildMatchingCondition( - Predicate predicate) { - for (V1CertificateSigningRequestConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1CertificateSigningRequestCondition buildMatchingCondition(Predicate predicate) { + for (V1CertificateSigningRequestConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V1CertificateSigningRequestConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1CertificateSigningRequestConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1CertificateSigningRequestCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1CertificateSigningRequestCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1CertificateSigningRequestCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1CertificateSigningRequestCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewCondition() { return new V1CertificateSigningRequestStatusFluentImpl.ConditionsNestedImpl(); } - - public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditionLike( - V1CertificateSigningRequestCondition item) { + public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item) { return new V1CertificateSigningRequestStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1CertificateSigningRequestStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1CertificateSigningRequestCondition item) { + public V1CertificateSigningRequestStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1CertificateSigningRequestCondition item) { return new V1CertificateSigningRequestStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1CertificateSigningRequestStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1CertificateSigningRequestStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1CertificateSigningRequestStatusFluent.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 V1CertificateSigningRequestStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1CertificateSigningRequestStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1CertificateSigningRequestConditionFluentImpl< - V1CertificateSigningRequestStatusFluent.ConditionsNested> - implements V1CertificateSigningRequestStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1CertificateSigningRequestCondition item) { + class ConditionsNestedImpl extends V1CertificateSigningRequestConditionFluentImpl> implements V1CertificateSigningRequestStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1CertificateSigningRequestCondition item) { this.index = index; this.builder = new V1CertificateSigningRequestConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1CertificateSigningRequestConditionBuilder(this); } - V1CertificateSigningRequestConditionBuilder builder; Integer index; - public N and() { - return (N) - V1CertificateSigningRequestStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1CertificateSigningRequestStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java index 9859ac737a..aadad9b82c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CinderPersistentVolumeSourceBuilder - extends V1CinderPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1CinderPersistentVolumeSource, V1CinderPersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1CinderPersistentVolumeSourceBuilder extends V1CinderPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1CinderPersistentVolumeSourceBuilder() { this(false); } - public V1CinderPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CinderPersistentVolumeSource(), validationEnabled); } - public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1CinderPersistentVolumeSourceBuilder( - V1CinderPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CinderPersistentVolumeSource(), validationEnabled); } - - public V1CinderPersistentVolumeSourceBuilder( - V1CinderPersistentVolumeSourceFluent fluent, V1CinderPersistentVolumeSource instance) { + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,V1CinderPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1CinderPersistentVolumeSourceBuilder( - V1CinderPersistentVolumeSourceFluent fluent, - V1CinderPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,V1CinderPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withReadOnly(instance.getReadOnly()); @@ -53,16 +28,13 @@ public V1CinderPersistentVolumeSourceBuilder( fluent.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1CinderPersistentVolumeSourceBuilder( - V1CinderPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -71,12 +43,10 @@ public V1CinderPersistentVolumeSourceBuilder( this.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CinderPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1CinderPersistentVolumeSource build() { V1CinderPersistentVolumeSource buildable = new V1CinderPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -85,4 +55,5 @@ public V1CinderPersistentVolumeSource build() { buildable.setVolumeID(fluent.getVolumeID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java index 9783c5aba6..91ce5e6c91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java @@ -1,75 +1,44 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CinderPersistentVolumeSourceFluent< - A extends V1CinderPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CinderPersistentVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef(); - public V1SecretReference buildSecretRef(); - public A withSecretRef(V1SecretReference secretRef); - public Boolean hasSecretRef(); - public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item); - + public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item); public V1CinderPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item); - + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item); public String getVolumeID(); - public A withVolumeID(String volumeID); - public Boolean hasVolumeID(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface SecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java index 8bcecefc6f..6435eb6bec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CinderPersistentVolumeSourceFluentImpl< - A extends V1CinderPersistentVolumeSourceFluent> - extends BaseFluent implements V1CinderPersistentVolumeSourceFluent { - public V1CinderPersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CinderPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1CinderPersistentVolumeSourceFluent{ + public V1CinderPersistentVolumeSourceFluentImpl() { + } public V1CinderPersistentVolumeSourceFluentImpl(V1CinderPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -30,167 +23,114 @@ public V1CinderPersistentVolumeSourceFluentImpl(V1CinderPersistentVolumeSource i this.withSecretRef(instance.getSecretRef()); this.withVolumeID(instance.getVolumeID()); - } + } private String fsType; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String volumeID; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1CinderPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item) { + public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new V1CinderPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1CinderPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getVolumeID() { return this.volumeID; } - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; + this.volumeID=volumeID; return (A) this; } - public Boolean hasVolumeID() { return this.volumeID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CinderPersistentVolumeSourceFluentImpl that = (V1CinderPersistentVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (volumeID != null ? !volumeID.equals(that.volumeID) : that.volumeID != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (volumeID != null ? !volumeID.equals(that.volumeID) :that.volumeID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); + return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (volumeID != null) { - sb.append("volumeID:"); - sb.append(volumeID); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1SecretReferenceFluentImpl> - implements V1CinderPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1CinderPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1CinderPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java index 0fedd2d5aa..b0f55e7c36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CinderVolumeSourceBuilder - extends V1CinderVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CinderVolumeSourceBuilder extends V1CinderVolumeSourceFluentImpl implements VisitableBuilder{ public V1CinderVolumeSourceBuilder() { this(false); } - public V1CinderVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CinderVolumeSource(), validationEnabled); } - public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent) { this(fluent, false); } - - public V1CinderVolumeSourceBuilder( - V1CinderVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CinderVolumeSource(), validationEnabled); } - - public V1CinderVolumeSourceBuilder( - V1CinderVolumeSourceFluent fluent, V1CinderVolumeSource instance) { + public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,V1CinderVolumeSource instance) { this(fluent, instance, false); } - - public V1CinderVolumeSourceBuilder( - V1CinderVolumeSourceFluent fluent, - V1CinderVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,V1CinderVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withReadOnly(instance.getReadOnly()); @@ -52,15 +28,13 @@ public V1CinderVolumeSourceBuilder( fluent.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -69,12 +43,10 @@ public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance, Boolean valida this.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CinderVolumeSourceFluent fluent; Boolean validationEnabled; - public V1CinderVolumeSource build() { V1CinderVolumeSource buildable = new V1CinderVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -83,4 +55,5 @@ public V1CinderVolumeSource build() { buildable.setVolumeID(fluent.getVolumeID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java index e4598aa254..c90570fdc4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java @@ -1,74 +1,44 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CinderVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CinderVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1CinderVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public String getVolumeID(); - public A withVolumeID(String volumeID); - public Boolean hasVolumeID(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java index 5ac0505180..b0a3c90ccf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CinderVolumeSourceFluentImpl> - extends BaseFluent implements V1CinderVolumeSourceFluent { - public V1CinderVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CinderVolumeSourceFluentImpl> extends BaseFluent implements V1CinderVolumeSourceFluent{ + public V1CinderVolumeSourceFluentImpl() { + } public V1CinderVolumeSourceFluentImpl(V1CinderVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -29,167 +23,114 @@ public V1CinderVolumeSourceFluentImpl(V1CinderVolumeSource instance) { this.withSecretRef(instance.getSecretRef()); this.withVolumeID(instance.getVolumeID()); - } + } private String fsType; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String volumeID; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1CinderVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1CinderVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1CinderVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getVolumeID() { return this.volumeID; } - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; + this.volumeID=volumeID; return (A) this; } - public Boolean hasVolumeID() { return this.volumeID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CinderVolumeSourceFluentImpl that = (V1CinderVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (volumeID != null ? !volumeID.equals(that.volumeID) : that.volumeID != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (volumeID != null ? !volumeID.equals(that.volumeID) :that.volumeID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); + return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (volumeID != null) { - sb.append("volumeID:"); - sb.append(volumeID); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1CinderVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1CinderVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1CinderVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java index 7f6caa9e78..6f2c2b82d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluentImpl implements VisitableBuilder{ public V1ClientIPConfigBuilder() { this(false); } - public V1ClientIPConfigBuilder(Boolean validationEnabled) { this(new V1ClientIPConfig(), validationEnabled); } - public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent) { this(fluent, false); } - - public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent, Boolean validationEnabled) { + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,Boolean validationEnabled) { this(fluent, new V1ClientIPConfig(), validationEnabled); } - - public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent, V1ClientIPConfig instance) { + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,V1ClientIPConfig instance) { this(fluent, instance, false); } - - public V1ClientIPConfigBuilder( - V1ClientIPConfigFluent fluent, V1ClientIPConfig instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,V1ClientIPConfig instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ClientIPConfigBuilder(V1ClientIPConfig instance) { - this(instance, false); + this(instance,false); } - - public V1ClientIPConfigBuilder(V1ClientIPConfig instance, Boolean validationEnabled) { - this.fluent = this; + public V1ClientIPConfigBuilder(V1ClientIPConfig instance,Boolean validationEnabled) { + this.fluent = this; this.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ClientIPConfigFluent fluent; Boolean validationEnabled; - public V1ClientIPConfig build() { V1ClientIPConfig buildable = new V1ClientIPConfig(); buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java index 76fc2c45ad..cc7857f58c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java @@ -1,24 +1,15 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1ClientIPConfigFluent> extends Fluent { + /** + * Generated + */ +public interface V1ClientIPConfigFluent> extends Fluent{ public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(Integer timeoutSeconds); - public Boolean hasTimeoutSeconds(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java index 5ff5c899e0..a8e39bc289 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java @@ -1,66 +1,49 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ClientIPConfigFluentImpl> extends BaseFluent - implements V1ClientIPConfigFluent { - public V1ClientIPConfigFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ClientIPConfigFluentImpl> extends BaseFluent implements V1ClientIPConfigFluent{ + public V1ClientIPConfigFluentImpl() { + } public V1ClientIPConfigFluentImpl(V1ClientIPConfig instance) { this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + } private Integer timeoutSeconds; - public Integer getTimeoutSeconds() { return this.timeoutSeconds; } - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return (A) this; + this.timeoutSeconds=timeoutSeconds; return (A) this; } - public Boolean hasTimeoutSeconds() { return this.timeoutSeconds != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ClientIPConfigFluentImpl that = (V1ClientIPConfigFluentImpl) o; - if (timeoutSeconds != null - ? !timeoutSeconds.equals(that.timeoutSeconds) - : that.timeoutSeconds != null) return false; + if (timeoutSeconds != null ? !timeoutSeconds.equals(that.timeoutSeconds) :that.timeoutSeconds != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(timeoutSeconds, super.hashCode()); + return java.util.Objects.hash(timeoutSeconds, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (timeoutSeconds != null) { - sb.append("timeoutSeconds:"); - sb.append(timeoutSeconds); - } + if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java index b4e74c52d3..fbb6d4baf4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ClusterRoleBindingBuilder - extends V1ClusterRoleBindingFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ClusterRoleBindingBuilder extends V1ClusterRoleBindingFluentImpl implements VisitableBuilder{ public V1ClusterRoleBindingBuilder() { this(false); } - public V1ClusterRoleBindingBuilder(Boolean validationEnabled) { this(new V1ClusterRoleBinding(), validationEnabled); } - public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent) { this(fluent, false); } - - public V1ClusterRoleBindingBuilder( - V1ClusterRoleBindingFluent fluent, Boolean validationEnabled) { + public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,Boolean validationEnabled) { this(fluent, new V1ClusterRoleBinding(), validationEnabled); } - - public V1ClusterRoleBindingBuilder( - V1ClusterRoleBindingFluent fluent, V1ClusterRoleBinding instance) { + public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,V1ClusterRoleBinding instance) { this(fluent, instance, false); } - - public V1ClusterRoleBindingBuilder( - V1ClusterRoleBindingFluent fluent, - V1ClusterRoleBinding instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,V1ClusterRoleBinding instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,15 +30,13 @@ public V1ClusterRoleBindingBuilder( fluent.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance) { - this(instance, false); + this(instance,false); } - - public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance, Boolean validationEnabled) { - this.fluent = this; + public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -73,12 +47,10 @@ public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance, Boolean valida this.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ClusterRoleBindingFluent fluent; Boolean validationEnabled; - public V1ClusterRoleBinding build() { V1ClusterRoleBinding buildable = new V1ClusterRoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +60,5 @@ public V1ClusterRoleBinding build() { buildable.setSubjects(fluent.getSubjects()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java index c633e8bfdf..3772853bc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java @@ -1,160 +1,102 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ClusterRoleBindingFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ClusterRoleBindingFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ClusterRoleBindingFluent.MetadataNested withNewMetadata(); - public V1ClusterRoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ClusterRoleBindingFluent.MetadataNested editMetadata(); - public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadata(); - public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildRoleRef instead. - * * @return The buildable object. */ @Deprecated public V1RoleRef getRoleRef(); - public V1RoleRef buildRoleRef(); - public A withRoleRef(V1RoleRef roleRef); - public Boolean hasRoleRef(); - public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRef(); - public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item); - public V1ClusterRoleBindingFluent.RoleRefNested editRoleRef(); - public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRef(); - public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item); - - public A addToSubjects(Integer index, V1Subject item); - - public A setToSubjects(Integer index, V1Subject item); - + public A addToSubjects(Integer index,V1Subject item); + public A setToSubjects(Integer index,V1Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A addAllToSubjects(Collection items); - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A removeAllFromSubjects(Collection items); - public A removeMatchingFromSubjects(Predicate predicate); - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects(); - public List buildSubjects(); - public V1Subject buildSubject(Integer index); - public V1Subject buildFirstSubject(); - public V1Subject buildLastSubject(); - public V1Subject buildMatchingSubject(Predicate predicate); - public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects(List subjects); - public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects); - public Boolean hasSubjects(); - public V1ClusterRoleBindingFluent.SubjectsNested addNewSubject(); - public V1ClusterRoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item); - - public V1ClusterRoleBindingFluent.SubjectsNested setNewSubjectLike( - Integer index, V1Subject item); - + public V1ClusterRoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index,V1Subject item); public V1ClusterRoleBindingFluent.SubjectsNested editSubject(Integer index); - public V1ClusterRoleBindingFluent.SubjectsNested editFirstSubject(); - public V1ClusterRoleBindingFluent.SubjectsNested editLastSubject(); - - public V1ClusterRoleBindingFluent.SubjectsNested editMatchingSubject( - Predicate predicate); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1ClusterRoleBindingFluent.SubjectsNested editMatchingSubject(Predicate predicate); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface RoleRefNested - extends Nested, V1RoleRefFluent> { + public interface RoleRefNested extends Nested,V1RoleRefFluent>{ public N and(); - public N endRoleRef(); + } - - public interface SubjectsNested - extends Nested, V1SubjectFluent> { + public interface SubjectsNested extends Nested,V1SubjectFluent>{ public N and(); - public N endSubject(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java index 26ec031df2..ad325f1f04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ClusterRoleBindingFluentImpl> - extends BaseFluent implements V1ClusterRoleBindingFluent { - public V1ClusterRoleBindingFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ClusterRoleBindingFluentImpl> extends BaseFluent implements V1ClusterRoleBindingFluent{ + public V1ClusterRoleBindingFluentImpl() { + } public V1ClusterRoleBindingFluentImpl(V1ClusterRoleBinding instance) { this.withApiVersion(instance.getApiVersion()); @@ -36,217 +32,124 @@ public V1ClusterRoleBindingFluentImpl(V1ClusterRoleBinding instance) { this.withRoleRef(instance.getRoleRef()); this.withSubjects(instance.getSubjects()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; private ArrayList subjects; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ClusterRoleBindingFluent.MetadataNested withNewMetadata() { return new V1ClusterRoleBindingFluentImpl.MetadataNestedImpl(); } - public V1ClusterRoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ClusterRoleBindingFluentImpl.MetadataNestedImpl(item); } - public V1ClusterRoleBindingFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildRoleRef instead. - * * @return The buildable object. */ @Deprecated public V1RoleRef getRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; + return this.roleRef!=null ?this.roleRef.build():null; } - public V1RoleRef buildRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; + return this.roleRef!=null ?this.roleRef.build():null; } - public A withRoleRef(V1RoleRef roleRef) { _visitables.get("roleRef").remove(this.roleRef); - if (roleRef != null) { - this.roleRef = new V1RoleRefBuilder(roleRef); - _visitables.get("roleRef").add(this.roleRef); - } else { - this.roleRef = null; - _visitables.get("roleRef").remove(this.roleRef); - } - return (A) this; + if (roleRef!=null){ this.roleRef= new V1RoleRefBuilder(roleRef); _visitables.get("roleRef").add(this.roleRef);} else { this.roleRef = null; _visitables.get("roleRef").remove(this.roleRef); } return (A) this; } - public Boolean hasRoleRef() { return this.roleRef != null; } - public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRef() { return new V1ClusterRoleBindingFluentImpl.RoleRefNestedImpl(); } - public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item) { return new V1ClusterRoleBindingFluentImpl.RoleRefNestedImpl(item); } - public V1ClusterRoleBindingFluent.RoleRefNested editRoleRef() { return withNewRoleRefLike(getRoleRef()); } - public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRef() { - return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : new V1RoleRefBuilder().build()); + return withNewRoleRefLike(getRoleRef() != null ? getRoleRef(): new V1RoleRefBuilder().build()); } - public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : item); + return withNewRoleRefLike(getRoleRef() != null ? getRoleRef(): item); } - - public A addToSubjects(Integer index, V1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables - .get("subjects") - .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); - this.subjects.add(index >= 0 ? index : subjects.size(), builder); - return (A) this; + public A addToSubjects(Integer index,V1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(index >= 0 ? index : _visitables.get("subjects").size(), builder);this.subjects.add(index >= 0 ? index : subjects.size(), builder); return (A)this; } - - public A setToSubjects(Integer index, V1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } + public A setToSubjects(Integer index,V1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} V1SubjectBuilder builder = new V1SubjectBuilder(item); - if (index < 0 || index >= _visitables.get("subjects").size()) { - _visitables.get("subjects").add(builder); - } else { - _visitables.get("subjects").set(index, builder); - } - if (index < 0 || index >= subjects.size()) { - subjects.add(builder); - } else { - subjects.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { _visitables.get("subjects").set(index, builder);} + if (index < 0 || index >= subjects.size()) { subjects.add(builder); } else { subjects.set(index, builder);} + return (A)this; } - public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A addAllToSubjects(Collection items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeAllFromSubjects(Collection items) { - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; final Iterator each = subjects.iterator(); @@ -258,238 +161,151 @@ public A removeMatchingFromSubjects(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects() { return subjects != null ? build(subjects) : null; } - public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public V1Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public V1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public V1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public V1Subject buildMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1SubjectBuilder item: subjects) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1SubjectBuilder item: subjects) { if(predicate.test(item)){ return true;} } return false; } - public A withSubjects(List subjects) { - if (this.subjects != null) { - _visitables.get("subjects").removeAll(this.subjects); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (V1Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; + if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects);} + if (subjects != null) {this.subjects = new ArrayList(); for (V1Subject item : subjects){this.addToSubjects(item);}} else { this.subjects = null;} return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - } - if (subjects != null) { - for (V1Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; + if (this.subjects != null) {this.subjects.clear();} + if (subjects != null) {for (V1Subject item :subjects){ this.addToSubjects(item);}} return (A) this; } - public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } - public V1ClusterRoleBindingFluent.SubjectsNested addNewSubject() { return new V1ClusterRoleBindingFluentImpl.SubjectsNestedImpl(); } - public V1ClusterRoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item) { return new V1ClusterRoleBindingFluentImpl.SubjectsNestedImpl(-1, item); } - - public V1ClusterRoleBindingFluent.SubjectsNested setNewSubjectLike( - Integer index, V1Subject item) { + public V1ClusterRoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index,V1Subject item) { return new V1ClusterRoleBindingFluentImpl.SubjectsNestedImpl(index, item); } - public V1ClusterRoleBindingFluent.SubjectsNested editSubject(Integer index) { - if (subjects.size() <= index) - throw new RuntimeException("Can't edit subjects. Index exceeds size."); + if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public V1ClusterRoleBindingFluent.SubjectsNested editFirstSubject() { - if (subjects.size() == 0) - throw new RuntimeException("Can't edit first subjects. The list is empty."); + if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public V1ClusterRoleBindingFluent.SubjectsNested editLastSubject() { int index = subjects.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); return setNewSubjectLike(index, buildSubject(index)); } - - public V1ClusterRoleBindingFluent.SubjectsNested editMatchingSubject( - Predicate predicate) { + public V1ClusterRoleBindingFluent.SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i = 0; i < subjects.size(); i++) { - if (predicate.test(subjects.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ObjectMetaFluentImpl> - implements V1ClusterRoleBindingFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ClusterRoleBindingFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ClusterRoleBindingFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class RoleRefNestedImpl - extends V1RoleRefFluentImpl> - implements V1ClusterRoleBindingFluent.RoleRefNested, Nested { + class RoleRefNestedImpl extends V1RoleRefFluentImpl> implements V1ClusterRoleBindingFluent.RoleRefNested,Nested{ RoleRefNestedImpl(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } - RoleRefNestedImpl() { this.builder = new V1RoleRefBuilder(this); } - V1RoleRefBuilder builder; - public N and() { return (N) V1ClusterRoleBindingFluentImpl.this.withRoleRef(builder.build()); } - public N endRoleRef() { return and(); } + } - - class SubjectsNestedImpl - extends V1SubjectFluentImpl> - implements V1ClusterRoleBindingFluent.SubjectsNested, Nested { - SubjectsNestedImpl(Integer index, V1Subject item) { + class SubjectsNestedImpl extends V1SubjectFluentImpl> implements V1ClusterRoleBindingFluent.SubjectsNested,Nested{ + SubjectsNestedImpl(Integer index,V1Subject item) { this.index = index; this.builder = new V1SubjectBuilder(this, item); } - SubjectsNestedImpl() { this.index = -1; this.builder = new V1SubjectBuilder(this); } - V1SubjectBuilder builder; Integer index; - public N and() { - return (N) V1ClusterRoleBindingFluentImpl.this.setToSubjects(index, builder.build()); + return (N) V1ClusterRoleBindingFluentImpl.this.setToSubjects(index,builder.build()); } - public N endSubject() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java index 88cd697939..e4bbe5235a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ClusterRoleBindingListBuilder - extends V1ClusterRoleBindingListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ClusterRoleBindingListBuilder extends V1ClusterRoleBindingListFluentImpl implements VisitableBuilder{ public V1ClusterRoleBindingListBuilder() { this(false); } - public V1ClusterRoleBindingListBuilder(Boolean validationEnabled) { this(new V1ClusterRoleBindingList(), validationEnabled); } - public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent) { this(fluent, false); } - - public V1ClusterRoleBindingListBuilder( - V1ClusterRoleBindingListFluent fluent, Boolean validationEnabled) { + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ClusterRoleBindingList(), validationEnabled); } - - public V1ClusterRoleBindingListBuilder( - V1ClusterRoleBindingListFluent fluent, V1ClusterRoleBindingList instance) { + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,V1ClusterRoleBindingList instance) { this(fluent, instance, false); } - - public V1ClusterRoleBindingListBuilder( - V1ClusterRoleBindingListFluent fluent, - V1ClusterRoleBindingList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,V1ClusterRoleBindingList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1ClusterRoleBindingListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingList instance) { - this(instance, false); + this(instance,false); } - - public V1ClusterRoleBindingListBuilder( - V1ClusterRoleBindingList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1ClusterRoleBindingListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ClusterRoleBindingListFluent fluent; Boolean validationEnabled; - public V1ClusterRoleBindingList build() { V1ClusterRoleBindingList buildable = new V1ClusterRoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1ClusterRoleBindingList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java index d340a78139..0f805ca77c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ClusterRoleBindingListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ClusterRoleBindingListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ClusterRoleBinding item); - - public A setToItems(Integer index, V1ClusterRoleBinding item); - + public A addToItems(Integer index,V1ClusterRoleBinding item); + public A setToItems(Integer index,V1ClusterRoleBinding item); public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ClusterRoleBinding buildItem(Integer index); - public V1ClusterRoleBinding buildFirstItem(); - public V1ClusterRoleBinding buildLastItem(); - public V1ClusterRoleBinding buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items); - public Boolean hasItems(); - public V1ClusterRoleBindingListFluent.ItemsNested addNewItem(); - public V1ClusterRoleBindingListFluent.ItemsNested addNewItemLike(V1ClusterRoleBinding item); - - public V1ClusterRoleBindingListFluent.ItemsNested setNewItemLike( - Integer index, V1ClusterRoleBinding item); - + public V1ClusterRoleBindingListFluent.ItemsNested setNewItemLike(Integer index,V1ClusterRoleBinding item); public V1ClusterRoleBindingListFluent.ItemsNested editItem(Integer index); - public V1ClusterRoleBindingListFluent.ItemsNested editFirstItem(); - public V1ClusterRoleBindingListFluent.ItemsNested editLastItem(); - - public V1ClusterRoleBindingListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ClusterRoleBindingListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadata(); - public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ClusterRoleBindingListFluent.MetadataNested editMetadata(); - public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadata(); - public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ClusterRoleBindingFluent> { + public interface ItemsNested extends Nested,V1ClusterRoleBindingFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java index 4d19c06793..e986766ba9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ClusterRoleBindingListFluentImpl> - extends BaseFluent implements V1ClusterRoleBindingListFluent { - public V1ClusterRoleBindingListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ClusterRoleBindingListFluentImpl> extends BaseFluent implements V1ClusterRoleBindingListFluent{ + public V1ClusterRoleBindingListFluentImpl() { + } public V1ClusterRoleBindingListFluentImpl(V1ClusterRoleBindingList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ClusterRoleBindingListFluentImpl(V1ClusterRoleBindingList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ClusterRoleBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ClusterRoleBinding item) { + if (this.items == null) {this.items = new ArrayList();} + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ClusterRoleBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ClusterRoleBinding item) { + if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ClusterRoleBinding buildItem(Integer index) { return this.items.get(index).build(); } - public V1ClusterRoleBinding buildFirstItem() { return this.items.get(0).build(); } - public V1ClusterRoleBinding buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ClusterRoleBinding buildMatchingItem(Predicate predicate) { - for (V1ClusterRoleBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ClusterRoleBindingBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ClusterRoleBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ClusterRoleBindingBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ClusterRoleBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ClusterRoleBinding item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ClusterRoleBinding item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ClusterRoleBinding item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ClusterRoleBindingListFluent.ItemsNested addNewItem() { return new V1ClusterRoleBindingListFluentImpl.ItemsNestedImpl(); } - public V1ClusterRoleBindingListFluent.ItemsNested addNewItemLike(V1ClusterRoleBinding item) { return new V1ClusterRoleBindingListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ClusterRoleBindingListFluent.ItemsNested setNewItemLike( - Integer index, V1ClusterRoleBinding item) { + public V1ClusterRoleBindingListFluent.ItemsNested setNewItemLike(Integer index,V1ClusterRoleBinding item) { return new V1ClusterRoleBindingListFluentImpl.ItemsNestedImpl(index, item); } - public V1ClusterRoleBindingListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ClusterRoleBindingListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ClusterRoleBindingListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ClusterRoleBindingListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ClusterRoleBindingListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ClusterRoleBindingListFluentImpl.MetadataNestedImpl(); } - public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ClusterRoleBindingListFluentImpl.MetadataNestedImpl(item); } - public V1ClusterRoleBindingListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ClusterRoleBindingListFluentImpl that = (V1ClusterRoleBindingListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ClusterRoleBindingFluentImpl> - implements V1ClusterRoleBindingListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ClusterRoleBinding item) { + class ItemsNestedImpl extends V1ClusterRoleBindingFluentImpl> implements V1ClusterRoleBindingListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ClusterRoleBinding item) { this.index = index; this.builder = new V1ClusterRoleBindingBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ClusterRoleBindingBuilder(this); } - V1ClusterRoleBindingBuilder builder; Integer index; - public N and() { - return (N) V1ClusterRoleBindingListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ClusterRoleBindingListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ClusterRoleBindingListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ClusterRoleBindingListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ClusterRoleBindingListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java index 361eab0ddb..1cb555b009 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ClusterRoleBuilder extends V1ClusterRoleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ClusterRoleBuilder extends V1ClusterRoleFluentImpl implements VisitableBuilder{ public V1ClusterRoleBuilder() { this(false); } - public V1ClusterRoleBuilder(Boolean validationEnabled) { this(new V1ClusterRole(), validationEnabled); } - public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent) { this(fluent, false); } - - public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent, Boolean validationEnabled) { + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,Boolean validationEnabled) { this(fluent, new V1ClusterRole(), validationEnabled); } - - public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent, V1ClusterRole instance) { + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,V1ClusterRole instance) { this(fluent, instance, false); } - - public V1ClusterRoleBuilder( - V1ClusterRoleFluent fluent, V1ClusterRole instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,V1ClusterRole instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAggregationRule(instance.getAggregationRule()); fluent.withApiVersion(instance.getApiVersion()); @@ -49,15 +30,13 @@ public V1ClusterRoleBuilder( fluent.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ClusterRoleBuilder(V1ClusterRole instance) { - this(instance, false); + this(instance,false); } - - public V1ClusterRoleBuilder(V1ClusterRole instance, Boolean validationEnabled) { - this.fluent = this; + public V1ClusterRoleBuilder(V1ClusterRole instance,Boolean validationEnabled) { + this.fluent = this; this.withAggregationRule(instance.getAggregationRule()); this.withApiVersion(instance.getApiVersion()); @@ -68,12 +47,10 @@ public V1ClusterRoleBuilder(V1ClusterRole instance, Boolean validationEnabled) { this.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ClusterRoleFluent fluent; Boolean validationEnabled; - public V1ClusterRole build() { V1ClusterRole buildable = new V1ClusterRole(); buildable.setAggregationRule(fluent.getAggregationRule()); @@ -83,4 +60,5 @@ public V1ClusterRole build() { buildable.setRules(fluent.getRules()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java index b6791bf4e7..c97dcd8ba5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java @@ -1,161 +1,102 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ClusterRoleFluent> extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1ClusterRoleFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildAggregationRule instead. - * * @return The buildable object. */ @Deprecated public V1AggregationRule getAggregationRule(); - public V1AggregationRule buildAggregationRule(); - public A withAggregationRule(V1AggregationRule aggregationRule); - public Boolean hasAggregationRule(); - public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRule(); - - public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRuleLike( - V1AggregationRule item); - + public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item); public V1ClusterRoleFluent.AggregationRuleNested editAggregationRule(); - public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRule(); - - public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRuleLike( - V1AggregationRule item); - + public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRuleLike(V1AggregationRule item); public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ClusterRoleFluent.MetadataNested withNewMetadata(); - public V1ClusterRoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ClusterRoleFluent.MetadataNested editMetadata(); - public V1ClusterRoleFluent.MetadataNested editOrNewMetadata(); - public V1ClusterRoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToRules(Integer index, V1PolicyRule item); - - public A setToRules(Integer index, V1PolicyRule item); - + public A addToRules(Integer index,V1PolicyRule item); + public A setToRules(Integer index,V1PolicyRule item); public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A addAllToRules(Collection items); - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1PolicyRule buildRule(Integer index); - public V1PolicyRule buildFirstRule(); - public V1PolicyRule buildLastRule(); - public V1PolicyRule buildMatchingRule(Predicate predicate); - public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules); - public Boolean hasRules(); - public V1ClusterRoleFluent.RulesNested addNewRule(); - public V1ClusterRoleFluent.RulesNested addNewRuleLike(V1PolicyRule item); - - public V1ClusterRoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item); - + public V1ClusterRoleFluent.RulesNested setNewRuleLike(Integer index,V1PolicyRule item); public V1ClusterRoleFluent.RulesNested editRule(Integer index); - public V1ClusterRoleFluent.RulesNested editFirstRule(); - public V1ClusterRoleFluent.RulesNested editLastRule(); - - public V1ClusterRoleFluent.RulesNested editMatchingRule( - Predicate predicate); - - public interface AggregationRuleNested - extends Nested, V1AggregationRuleFluent> { + public V1ClusterRoleFluent.RulesNested editMatchingRule(Predicate predicate); + public interface AggregationRuleNested extends Nested,V1AggregationRuleFluent>{ public N and(); - public N endAggregationRule(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface RulesNested - extends Nested, V1PolicyRuleFluent> { + public interface RulesNested extends Nested,V1PolicyRuleFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java index 4ca0b95b2e..b6e82681ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ClusterRoleFluentImpl> extends BaseFluent - implements V1ClusterRoleFluent { - public V1ClusterRoleFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ClusterRoleFluentImpl> extends BaseFluent implements V1ClusterRoleFluent{ + public V1ClusterRoleFluentImpl() { + } public V1ClusterRoleFluentImpl(V1ClusterRole instance) { this.withAggregationRule(instance.getAggregationRule()); @@ -36,220 +32,124 @@ public V1ClusterRoleFluentImpl(V1ClusterRole instance) { this.withMetadata(instance.getMetadata()); this.withRules(instance.getRules()); - } + } private V1AggregationRuleBuilder aggregationRule; private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList rules; - + /** * This method has been deprecated, please use method buildAggregationRule instead. - * * @return The buildable object. */ @Deprecated public V1AggregationRule getAggregationRule() { - return this.aggregationRule != null ? this.aggregationRule.build() : null; + return this.aggregationRule!=null ?this.aggregationRule.build():null; } - public V1AggregationRule buildAggregationRule() { - return this.aggregationRule != null ? this.aggregationRule.build() : null; + return this.aggregationRule!=null ?this.aggregationRule.build():null; } - public A withAggregationRule(V1AggregationRule aggregationRule) { _visitables.get("aggregationRule").remove(this.aggregationRule); - if (aggregationRule != null) { - this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); - _visitables.get("aggregationRule").add(this.aggregationRule); - } else { - this.aggregationRule = null; - _visitables.get("aggregationRule").remove(this.aggregationRule); - } - return (A) this; + if (aggregationRule!=null){ this.aggregationRule= new V1AggregationRuleBuilder(aggregationRule); _visitables.get("aggregationRule").add(this.aggregationRule);} else { this.aggregationRule = null; _visitables.get("aggregationRule").remove(this.aggregationRule); } return (A) this; } - public Boolean hasAggregationRule() { return this.aggregationRule != null; } - public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRule() { return new V1ClusterRoleFluentImpl.AggregationRuleNestedImpl(); } - - public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRuleLike( - V1AggregationRule item) { + public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item) { return new V1ClusterRoleFluentImpl.AggregationRuleNestedImpl(item); } - public V1ClusterRoleFluent.AggregationRuleNested editAggregationRule() { return withNewAggregationRuleLike(getAggregationRule()); } - public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRule() { - return withNewAggregationRuleLike( - getAggregationRule() != null - ? getAggregationRule() - : new V1AggregationRuleBuilder().build()); + return withNewAggregationRuleLike(getAggregationRule() != null ? getAggregationRule(): new V1AggregationRuleBuilder().build()); } - - public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRuleLike( - V1AggregationRule item) { - return withNewAggregationRuleLike(getAggregationRule() != null ? getAggregationRule() : item); + public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRuleLike(V1AggregationRule item) { + return withNewAggregationRuleLike(getAggregationRule() != null ? getAggregationRule(): item); } - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ClusterRoleFluent.MetadataNested withNewMetadata() { return new V1ClusterRoleFluentImpl.MetadataNestedImpl(); } - public V1ClusterRoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ClusterRoleFluentImpl.MetadataNestedImpl(item); } - public V1ClusterRoleFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ClusterRoleFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ClusterRoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToRules(Integer index, V1PolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1PolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1PolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1PolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -261,236 +161,151 @@ public A removeMatchingFromRules(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1PolicyRule buildRule(Integer index) { return this.rules.get(index).build(); } - public V1PolicyRule buildFirstRule() { return this.rules.get(0).build(); } - public V1PolicyRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public V1PolicyRule buildMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PolicyRuleBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PolicyRuleBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1PolicyRule item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1PolicyRule item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1ClusterRoleFluent.RulesNested addNewRule() { return new V1ClusterRoleFluentImpl.RulesNestedImpl(); } - public V1ClusterRoleFluent.RulesNested addNewRuleLike(V1PolicyRule item) { return new V1ClusterRoleFluentImpl.RulesNestedImpl(-1, item); } - - public V1ClusterRoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item) { + public V1ClusterRoleFluent.RulesNested setNewRuleLike(Integer index,V1PolicyRule item) { return new V1ClusterRoleFluentImpl.RulesNestedImpl(index, item); } - public V1ClusterRoleFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1ClusterRoleFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1ClusterRoleFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1ClusterRoleFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1ClusterRoleFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1AggregationRuleFluentImpl> - implements V1ClusterRoleFluent.AggregationRuleNested, Nested { + class AggregationRuleNestedImpl extends V1AggregationRuleFluentImpl> implements V1ClusterRoleFluent.AggregationRuleNested,Nested{ AggregationRuleNestedImpl(V1AggregationRule item) { this.builder = new V1AggregationRuleBuilder(this, item); } - AggregationRuleNestedImpl() { this.builder = new V1AggregationRuleBuilder(this); } - V1AggregationRuleBuilder builder; - public N and() { return (N) V1ClusterRoleFluentImpl.this.withAggregationRule(builder.build()); } - public N endAggregationRule() { return and(); } + } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1ClusterRoleFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ClusterRoleFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ClusterRoleFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class RulesNestedImpl extends V1PolicyRuleFluentImpl> - implements V1ClusterRoleFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1PolicyRule item) { + class RulesNestedImpl extends V1PolicyRuleFluentImpl> implements V1ClusterRoleFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1PolicyRuleBuilder(this); } - V1PolicyRuleBuilder builder; Integer index; - public N and() { - return (N) V1ClusterRoleFluentImpl.this.setToRules(index, builder.build()); + return (N) V1ClusterRoleFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java index f930a927ac..339c5aea23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluentImpl implements VisitableBuilder{ public V1ClusterRoleListBuilder() { this(false); } - public V1ClusterRoleListBuilder(Boolean validationEnabled) { this(new V1ClusterRoleList(), validationEnabled); } - public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent) { this(fluent, false); } - - public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent, Boolean validationEnabled) { + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ClusterRoleList(), validationEnabled); } - - public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent, V1ClusterRoleList instance) { + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,V1ClusterRoleList instance) { this(fluent, instance, false); } - - public V1ClusterRoleListBuilder( - V1ClusterRoleListFluent fluent, V1ClusterRoleList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,V1ClusterRoleList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1ClusterRoleListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ClusterRoleListBuilder(V1ClusterRoleList instance) { - this(instance, false); + this(instance,false); } - - public V1ClusterRoleListBuilder(V1ClusterRoleList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ClusterRoleListBuilder(V1ClusterRoleList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1ClusterRoleListBuilder(V1ClusterRoleList instance, Boolean validationEn this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ClusterRoleListFluent fluent; Boolean validationEnabled; - public V1ClusterRoleList build() { V1ClusterRoleList buildable = new V1ClusterRoleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1ClusterRoleList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java index 1eb73da440..d37f925772 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ClusterRoleListFluent> extends Fluent { + /** + * Generated + */ +public interface V1ClusterRoleListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ClusterRole item); - - public A setToItems(Integer index, V1ClusterRole item); - + public A addToItems(Integer index,V1ClusterRole item); + public A setToItems(Integer index,V1ClusterRole item); public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRole... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRole... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ClusterRole buildItem(Integer index); - public V1ClusterRole buildFirstItem(); - public V1ClusterRole buildLastItem(); - public V1ClusterRole buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items); - public Boolean hasItems(); - public V1ClusterRoleListFluent.ItemsNested addNewItem(); - public V1ClusterRoleListFluent.ItemsNested addNewItemLike(V1ClusterRole item); - - public V1ClusterRoleListFluent.ItemsNested setNewItemLike(Integer index, V1ClusterRole item); - + public V1ClusterRoleListFluent.ItemsNested setNewItemLike(Integer index,V1ClusterRole item); public V1ClusterRoleListFluent.ItemsNested editItem(Integer index); - public V1ClusterRoleListFluent.ItemsNested editFirstItem(); - public V1ClusterRoleListFluent.ItemsNested editLastItem(); - - public V1ClusterRoleListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ClusterRoleListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ClusterRoleListFluent.MetadataNested withNewMetadata(); - public V1ClusterRoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ClusterRoleListFluent.MetadataNested editMetadata(); - public V1ClusterRoleListFluent.MetadataNested editOrNewMetadata(); - public V1ClusterRoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ClusterRoleFluent> { + public interface ItemsNested extends Nested,V1ClusterRoleFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java index 45c3452935..b48be830c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ClusterRoleListFluentImpl> extends BaseFluent - implements V1ClusterRoleListFluent { - public V1ClusterRoleListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ClusterRoleListFluentImpl> extends BaseFluent implements V1ClusterRoleListFluent{ + public V1ClusterRoleListFluentImpl() { + } public V1ClusterRoleListFluentImpl(V1ClusterRoleList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ClusterRoleListFluentImpl(V1ClusterRoleList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ClusterRole item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ClusterRole item) { + if (this.items == null) {this.items = new ArrayList();} + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ClusterRole item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ClusterRole item) { + if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,271 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ClusterRole buildItem(Integer index) { return this.items.get(index).build(); } - public V1ClusterRole buildFirstItem() { return this.items.get(0).build(); } - public V1ClusterRole buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ClusterRole buildMatchingItem(Predicate predicate) { - for (V1ClusterRoleBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ClusterRoleBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ClusterRoleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ClusterRoleBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ClusterRole item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ClusterRole item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ClusterRole item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ClusterRole item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ClusterRoleListFluent.ItemsNested addNewItem() { return new V1ClusterRoleListFluentImpl.ItemsNestedImpl(); } - public V1ClusterRoleListFluent.ItemsNested addNewItemLike(V1ClusterRole item) { return new V1ClusterRoleListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ClusterRoleListFluent.ItemsNested setNewItemLike(Integer index, V1ClusterRole item) { + public V1ClusterRoleListFluent.ItemsNested setNewItemLike(Integer index,V1ClusterRole item) { return new V1ClusterRoleListFluentImpl.ItemsNestedImpl(index, item); } - public V1ClusterRoleListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ClusterRoleListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ClusterRoleListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ClusterRoleListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ClusterRoleListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ClusterRoleListFluentImpl.MetadataNestedImpl(); } - public V1ClusterRoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ClusterRoleListFluentImpl.MetadataNestedImpl(item); } - public V1ClusterRoleListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ClusterRoleListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ClusterRoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ClusterRoleListFluentImpl that = (V1ClusterRoleListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1ClusterRoleFluentImpl> - implements V1ClusterRoleListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ClusterRole item) { + class ItemsNestedImpl extends V1ClusterRoleFluentImpl> implements V1ClusterRoleListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ClusterRole item) { this.index = index; this.builder = new V1ClusterRoleBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ClusterRoleBuilder(this); } - V1ClusterRoleBuilder builder; Integer index; - public N and() { - return (N) V1ClusterRoleListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ClusterRoleListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ClusterRoleListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ClusterRoleListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ClusterRoleListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java index 3087302347..0f932b4d58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ComponentConditionBuilder - extends V1ComponentConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ComponentConditionBuilder extends V1ComponentConditionFluentImpl implements VisitableBuilder{ public V1ComponentConditionBuilder() { this(false); } - public V1ComponentConditionBuilder(Boolean validationEnabled) { this(new V1ComponentCondition(), validationEnabled); } - public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent) { this(fluent, false); } - - public V1ComponentConditionBuilder( - V1ComponentConditionFluent fluent, Boolean validationEnabled) { + public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ComponentCondition(), validationEnabled); } - - public V1ComponentConditionBuilder( - V1ComponentConditionFluent fluent, V1ComponentCondition instance) { + public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,V1ComponentCondition instance) { this(fluent, instance, false); } - - public V1ComponentConditionBuilder( - V1ComponentConditionFluent fluent, - V1ComponentCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,V1ComponentCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withError(instance.getError()); fluent.withMessage(instance.getMessage()); @@ -52,15 +28,13 @@ public V1ComponentConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ComponentConditionBuilder(V1ComponentCondition instance) { - this(instance, false); + this(instance,false); } - - public V1ComponentConditionBuilder(V1ComponentCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1ComponentConditionBuilder(V1ComponentCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withError(instance.getError()); this.withMessage(instance.getMessage()); @@ -69,12 +43,10 @@ public V1ComponentConditionBuilder(V1ComponentCondition instance, Boolean valida this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ComponentConditionFluent fluent; Boolean validationEnabled; - public V1ComponentCondition build() { V1ComponentCondition buildable = new V1ComponentCondition(); buildable.setError(fluent.getError()); @@ -83,4 +55,5 @@ public V1ComponentCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java index d1005732af..a395e1725d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java @@ -1,43 +1,24 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ComponentConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ComponentConditionFluent> extends Fluent{ public String getError(); - public A withError(String error); - public Boolean hasError(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java index a62e7aa2cf..a7684a9a98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ComponentConditionFluentImpl> - extends BaseFluent implements V1ComponentConditionFluent { - public V1ComponentConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ComponentConditionFluentImpl> extends BaseFluent implements V1ComponentConditionFluent{ + public V1ComponentConditionFluentImpl() { + } public V1ComponentConditionFluentImpl(V1ComponentCondition instance) { this.withError(instance.getError()); @@ -28,100 +21,70 @@ public V1ComponentConditionFluentImpl(V1ComponentCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private String error; private String message; private String status; private String type; - public String getError() { return this.error; } - public A withError(String error) { - this.error = error; - return (A) this; + this.error=error; return (A) this; } - public Boolean hasError() { return this.error != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ComponentConditionFluentImpl that = (V1ComponentConditionFluentImpl) o; - if (error != null ? !error.equals(that.error) : that.error != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (error != null ? !error.equals(that.error) :that.error != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(error, message, status, type, super.hashCode()); + return java.util.Objects.hash(error, message, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { - sb.append("error:"); - sb.append(error + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (error != null) { sb.append("error:"); sb.append(error + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java index f3f4419223..2466d03753 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ComponentStatusBuilder extends V1ComponentStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ComponentStatusBuilder extends V1ComponentStatusFluentImpl implements VisitableBuilder{ public V1ComponentStatusBuilder() { this(false); } - public V1ComponentStatusBuilder(Boolean validationEnabled) { this(new V1ComponentStatus(), validationEnabled); } - public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent) { this(fluent, false); } - - public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent, Boolean validationEnabled) { + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ComponentStatus(), validationEnabled); } - - public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent, V1ComponentStatus instance) { + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,V1ComponentStatus instance) { this(fluent, instance, false); } - - public V1ComponentStatusBuilder( - V1ComponentStatusFluent fluent, V1ComponentStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,V1ComponentStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withConditions(instance.getConditions()); @@ -47,15 +28,13 @@ public V1ComponentStatusBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ComponentStatusBuilder(V1ComponentStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ComponentStatusBuilder(V1ComponentStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ComponentStatusBuilder(V1ComponentStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withConditions(instance.getConditions()); @@ -64,12 +43,10 @@ public V1ComponentStatusBuilder(V1ComponentStatus instance, Boolean validationEn this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ComponentStatusFluent fluent; Boolean validationEnabled; - public V1ComponentStatus build() { V1ComponentStatus buildable = new V1ComponentStatus(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1ComponentStatus build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java index 86eac7edc0..f0cbe2cc30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ComponentStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1ComponentStatusFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToConditions(Integer index, V1ComponentCondition item); - - public A setToConditions(Integer index, V1ComponentCondition item); - + public A addToConditions(Integer index,V1ComponentCondition item); + public A setToConditions(Integer index,V1ComponentCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1ComponentCondition buildCondition(Integer index); - public V1ComponentCondition buildFirstCondition(); - public V1ComponentCondition buildLastCondition(); - - public V1ComponentCondition buildMatchingCondition( - Predicate predicate); - + public V1ComponentCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... conditions); - public Boolean hasConditions(); - public V1ComponentStatusFluent.ConditionsNested addNewCondition(); - public V1ComponentStatusFluent.ConditionsNested addNewConditionLike(V1ComponentCondition item); - - public V1ComponentStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1ComponentCondition item); - + public V1ComponentStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1ComponentCondition item); public V1ComponentStatusFluent.ConditionsNested editCondition(Integer index); - public V1ComponentStatusFluent.ConditionsNested editFirstCondition(); - public V1ComponentStatusFluent.ConditionsNested editLastCondition(); - - public V1ComponentStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1ComponentStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ComponentStatusFluent.MetadataNested withNewMetadata(); - public V1ComponentStatusFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ComponentStatusFluent.MetadataNested editMetadata(); - public V1ComponentStatusFluent.MetadataNested editOrNewMetadata(); - public V1ComponentStatusFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public interface ConditionsNested - extends Nested, V1ComponentConditionFluent> { + public interface ConditionsNested extends Nested,V1ComponentConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java index e106dd8304..bab6eac25d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ComponentStatusFluentImpl> extends BaseFluent - implements V1ComponentStatusFluent { - public V1ComponentStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ComponentStatusFluentImpl> extends BaseFluent implements V1ComponentStatusFluent{ + public V1ComponentStatusFluentImpl() { + } public V1ComponentStatusFluentImpl(V1ComponentStatus instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,102 +30,46 @@ public V1ComponentStatusFluentImpl(V1ComponentStatus instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList conditions; private String kind; private V1ObjectMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToConditions(Integer index, V1ComponentCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(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 addToConditions(Integer index,V1ComponentCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(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(Integer index, V1ComponentCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1ComponentCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(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; + 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.V1ComponentCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(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 ArrayList(); - } - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(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(); @@ -141,278 +81,176 @@ public A removeMatchingFromConditions(Predicate pre each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1ComponentCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1ComponentCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1ComponentCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1ComponentCondition buildMatchingCondition( - Predicate predicate) { - for (V1ComponentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ComponentCondition buildMatchingCondition(Predicate predicate) { + for (V1ComponentConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1ComponentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ComponentConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ComponentCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1ComponentCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1ComponentCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1ComponentCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1ComponentStatusFluent.ConditionsNested addNewCondition() { return new V1ComponentStatusFluentImpl.ConditionsNestedImpl(); } - - public V1ComponentStatusFluent.ConditionsNested addNewConditionLike( - V1ComponentCondition item) { + public V1ComponentStatusFluent.ConditionsNested addNewConditionLike(V1ComponentCondition item) { return new V1ComponentStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1ComponentStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1ComponentCondition item) { + public V1ComponentStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1ComponentCondition item) { return new V1ComponentStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1ComponentStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1ComponentStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1ComponentStatusFluent.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 V1ComponentStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1ComponentStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ComponentStatusFluentImpl.MetadataNestedImpl(); } - public V1ComponentStatusFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ComponentStatusFluentImpl.MetadataNestedImpl(item); } - public V1ComponentStatusFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ComponentStatusFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ComponentStatusFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ComponentStatusFluentImpl that = (V1ComponentStatusFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, conditions, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, conditions, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ConditionsNestedImpl - extends V1ComponentConditionFluentImpl> - implements V1ComponentStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1ComponentCondition item) { + class ConditionsNestedImpl extends V1ComponentConditionFluentImpl> implements V1ComponentStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1ComponentCondition item) { this.index = index; this.builder = new V1ComponentConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1ComponentConditionBuilder(this); } - V1ComponentConditionBuilder builder; Integer index; - public N and() { - return (N) V1ComponentStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1ComponentStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1ComponentStatusFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ComponentStatusFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ComponentStatusFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java index db016dce2d..9f15ee412b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ComponentStatusListBuilder - extends V1ComponentStatusListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ComponentStatusListBuilder extends V1ComponentStatusListFluentImpl implements VisitableBuilder{ public V1ComponentStatusListBuilder() { this(false); } - public V1ComponentStatusListBuilder(Boolean validationEnabled) { this(new V1ComponentStatusList(), validationEnabled); } - public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent) { this(fluent, false); } - - public V1ComponentStatusListBuilder( - V1ComponentStatusListFluent fluent, Boolean validationEnabled) { + public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ComponentStatusList(), validationEnabled); } - - public V1ComponentStatusListBuilder( - V1ComponentStatusListFluent fluent, V1ComponentStatusList instance) { + public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,V1ComponentStatusList instance) { this(fluent, instance, false); } - - public V1ComponentStatusListBuilder( - V1ComponentStatusListFluent fluent, - V1ComponentStatusList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,V1ComponentStatusList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1ComponentStatusListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ComponentStatusListBuilder(V1ComponentStatusList instance) { - this(instance, false); + this(instance,false); } - - public V1ComponentStatusListBuilder(V1ComponentStatusList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ComponentStatusListBuilder(V1ComponentStatusList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1ComponentStatusListBuilder(V1ComponentStatusList instance, Boolean vali this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ComponentStatusListFluent fluent; Boolean validationEnabled; - public V1ComponentStatusList build() { V1ComponentStatusList buildable = new V1ComponentStatusList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1ComponentStatusList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java index 99af68b2ed..c0b7a2af99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ComponentStatusListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ComponentStatusListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ComponentStatus item); - - public A setToItems(Integer index, V1ComponentStatus item); - + public A addToItems(Integer index,V1ComponentStatus item); + public A setToItems(Integer index,V1ComponentStatus item); public A addToItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ComponentStatus buildItem(Integer index); - public V1ComponentStatus buildFirstItem(); - public V1ComponentStatus buildLastItem(); - public V1ComponentStatus buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items); - public Boolean hasItems(); - public V1ComponentStatusListFluent.ItemsNested addNewItem(); - public V1ComponentStatusListFluent.ItemsNested addNewItemLike(V1ComponentStatus item); - - public V1ComponentStatusListFluent.ItemsNested setNewItemLike( - Integer index, V1ComponentStatus item); - + public V1ComponentStatusListFluent.ItemsNested setNewItemLike(Integer index,V1ComponentStatus item); public V1ComponentStatusListFluent.ItemsNested editItem(Integer index); - public V1ComponentStatusListFluent.ItemsNested editFirstItem(); - public V1ComponentStatusListFluent.ItemsNested editLastItem(); - - public V1ComponentStatusListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ComponentStatusListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ComponentStatusListFluent.MetadataNested withNewMetadata(); - public V1ComponentStatusListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ComponentStatusListFluent.MetadataNested editMetadata(); - public V1ComponentStatusListFluent.MetadataNested editOrNewMetadata(); - public V1ComponentStatusListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ComponentStatusFluent> { + public interface ItemsNested extends Nested,V1ComponentStatusFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java index 75060a2891..2186988455 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ComponentStatusListFluentImpl> - extends BaseFluent implements V1ComponentStatusListFluent { - public V1ComponentStatusListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ComponentStatusListFluentImpl> extends BaseFluent implements V1ComponentStatusListFluent{ + public V1ComponentStatusListFluentImpl() { + } public V1ComponentStatusListFluentImpl(V1ComponentStatusList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ComponentStatusListFluentImpl(V1ComponentStatusList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ComponentStatus item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ComponentStatus item) { + if (this.items == null) {this.items = new ArrayList();} + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ComponentStatus item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ComponentStatus item) { + if (this.items == null) {this.items = new ArrayList();} V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ComponentStatus buildItem(Integer index) { return this.items.get(index).build(); } - public V1ComponentStatus buildFirstItem() { return this.items.get(0).build(); } - public V1ComponentStatus buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ComponentStatus buildMatchingItem(Predicate predicate) { - for (V1ComponentStatusBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ComponentStatusBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ComponentStatusBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ComponentStatusBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ComponentStatus item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ComponentStatus item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ComponentStatus item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ComponentStatus item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ComponentStatusListFluent.ItemsNested addNewItem() { return new V1ComponentStatusListFluentImpl.ItemsNestedImpl(); } - public V1ComponentStatusListFluent.ItemsNested addNewItemLike(V1ComponentStatus item) { return new V1ComponentStatusListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ComponentStatusListFluent.ItemsNested setNewItemLike( - Integer index, V1ComponentStatus item) { + public V1ComponentStatusListFluent.ItemsNested setNewItemLike(Integer index,V1ComponentStatus item) { return new V1ComponentStatusListFluentImpl.ItemsNestedImpl(index, item); } - public V1ComponentStatusListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ComponentStatusListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ComponentStatusListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ComponentStatusListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ComponentStatusListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ComponentStatusListFluentImpl.MetadataNestedImpl(); } - public V1ComponentStatusListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ComponentStatusListFluentImpl.MetadataNestedImpl(item); } - public V1ComponentStatusListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ComponentStatusListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ComponentStatusListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ComponentStatusListFluentImpl that = (V1ComponentStatusListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ComponentStatusFluentImpl> - implements V1ComponentStatusListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ComponentStatus item) { + class ItemsNestedImpl extends V1ComponentStatusFluentImpl> implements V1ComponentStatusListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ComponentStatus item) { this.index = index; this.builder = new V1ComponentStatusBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ComponentStatusBuilder(this); } - V1ComponentStatusBuilder builder; Integer index; - public N and() { - return (N) V1ComponentStatusListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ComponentStatusListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ComponentStatusListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ComponentStatusListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ComponentStatusListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java index dfd50cd2c7..30c18e3d6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ConditionBuilder extends V1ConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConditionBuilder extends V1ConditionFluentImpl implements VisitableBuilder{ public V1ConditionBuilder() { this(false); } - public V1ConditionBuilder(Boolean validationEnabled) { this(new V1Condition(), validationEnabled); } - public V1ConditionBuilder(V1ConditionFluent fluent) { this(fluent, false); } - - public V1ConditionBuilder(V1ConditionFluent fluent, Boolean validationEnabled) { + public V1ConditionBuilder(V1ConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1Condition(), validationEnabled); } - - public V1ConditionBuilder(V1ConditionFluent fluent, V1Condition instance) { + public V1ConditionBuilder(V1ConditionFluent fluent,V1Condition instance) { this(fluent, instance, false); } - - public V1ConditionBuilder( - V1ConditionFluent fluent, V1Condition instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ConditionBuilder(V1ConditionFluent fluent,V1Condition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -51,15 +32,13 @@ public V1ConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConditionBuilder(V1Condition instance) { - this(instance, false); + this(instance,false); } - - public V1ConditionBuilder(V1Condition instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConditionBuilder(V1Condition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -72,12 +51,10 @@ public V1ConditionBuilder(V1Condition instance, Boolean validationEnabled) { this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConditionFluent fluent; Boolean validationEnabled; - public V1Condition build() { V1Condition buildable = new V1Condition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -88,4 +65,5 @@ public V1Condition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java index e6d0e83872..00e4a3e1df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java @@ -1,55 +1,32 @@ -/* -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.Fluent; import java.time.OffsetDateTime; - -/** Generated */ -public interface V1ConditionFluent> extends Fluent { +import io.kubernetes.client.fluent.Fluent; +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java index db2cca78a0..fbf9adf0c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConditionFluentImpl> extends BaseFluent - implements V1ConditionFluent { - public V1ConditionFluentImpl() {} - +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConditionFluentImpl> extends BaseFluent implements V1ConditionFluent{ + public V1ConditionFluentImpl() { + } public V1ConditionFluentImpl(V1Condition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -33,143 +27,94 @@ public V1ConditionFluentImpl(V1Condition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + this.observedGeneration=observedGeneration; return (A) this; } - public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ConditionFluentImpl that = (V1ConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (observedGeneration != null - ? !observedGeneration.equals(that.observedGeneration) - : that.observedGeneration != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (observedGeneration != null ? !observedGeneration.equals(that.observedGeneration) :that.observedGeneration != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (observedGeneration != null) { - sb.append("observedGeneration:"); - sb.append(observedGeneration + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java index 3b035630ee..1361d712ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapBuilder extends V1ConfigMapFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapBuilder extends V1ConfigMapFluentImpl implements VisitableBuilder{ public V1ConfigMapBuilder() { this(false); } - public V1ConfigMapBuilder(Boolean validationEnabled) { this(new V1ConfigMap(), validationEnabled); } - public V1ConfigMapBuilder(V1ConfigMapFluent fluent) { this(fluent, false); } - - public V1ConfigMapBuilder(V1ConfigMapFluent fluent, Boolean validationEnabled) { + public V1ConfigMapBuilder(V1ConfigMapFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMap(), validationEnabled); } - - public V1ConfigMapBuilder(V1ConfigMapFluent fluent, V1ConfigMap instance) { + public V1ConfigMapBuilder(V1ConfigMapFluent fluent,V1ConfigMap instance) { this(fluent, instance, false); } - - public V1ConfigMapBuilder( - V1ConfigMapFluent fluent, V1ConfigMap instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapBuilder(V1ConfigMapFluent fluent,V1ConfigMap instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withBinaryData(instance.getBinaryData()); @@ -51,15 +32,13 @@ public V1ConfigMapBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapBuilder(V1ConfigMap instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapBuilder(V1ConfigMap instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapBuilder(V1ConfigMap instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withBinaryData(instance.getBinaryData()); @@ -72,12 +51,10 @@ public V1ConfigMapBuilder(V1ConfigMap instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapFluent fluent; Boolean validationEnabled; - public V1ConfigMap build() { V1ConfigMap buildable = new V1ConfigMap(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +65,5 @@ public V1ConfigMap build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java index b45c7e386f..bd6b511c9a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapEnvSourceBuilder - extends V1ConfigMapEnvSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapEnvSourceBuilder extends V1ConfigMapEnvSourceFluentImpl implements VisitableBuilder{ public V1ConfigMapEnvSourceBuilder() { this(false); } - public V1ConfigMapEnvSourceBuilder(Boolean validationEnabled) { this(new V1ConfigMapEnvSource(), validationEnabled); } - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent) { this(fluent, false); } - - public V1ConfigMapEnvSourceBuilder( - V1ConfigMapEnvSourceFluent fluent, Boolean validationEnabled) { + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMapEnvSource(), validationEnabled); } - - public V1ConfigMapEnvSourceBuilder( - V1ConfigMapEnvSourceFluent fluent, V1ConfigMapEnvSource instance) { + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,V1ConfigMapEnvSource instance) { this(fluent, instance, false); } - - public V1ConfigMapEnvSourceBuilder( - V1ConfigMapEnvSourceFluent fluent, - V1ConfigMapEnvSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,V1ConfigMapEnvSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapEnvSourceFluent fluent; Boolean validationEnabled; - public V1ConfigMapEnvSource build() { V1ConfigMapEnvSource buildable = new V1ConfigMapEnvSource(); buildable.setName(fluent.getName()); buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java index 80168ca2ae..f547ff85be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java @@ -1,33 +1,19 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ConfigMapEnvSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ConfigMapEnvSourceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java index b7f7e228ca..c72664e004 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java @@ -1,89 +1,65 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapEnvSourceFluentImpl> - extends BaseFluent implements V1ConfigMapEnvSourceFluent { - public V1ConfigMapEnvSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapEnvSourceFluentImpl> extends BaseFluent implements V1ConfigMapEnvSourceFluent{ + public V1ConfigMapEnvSourceFluentImpl() { + } public V1ConfigMapEnvSourceFluentImpl(V1ConfigMapEnvSource instance) { this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private String name; private Boolean optional; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getOptional() { return this.optional; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + this.optional=optional; return (A) this; } - public Boolean hasOptional() { return this.optional != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ConfigMapEnvSourceFluentImpl that = (V1ConfigMapEnvSourceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (optional != null ? !optional.equals(that.optional) : that.optional != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (optional != null ? !optional.equals(that.optional) :that.optional != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, optional, super.hashCode()); + return java.util.Objects.hash(name, optional, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (optional != null) { - sb.append("optional:"); - sb.append(optional); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (optional != null) { sb.append("optional:"); sb.append(optional); } sb.append("}"); return sb.toString(); } - public A withOptional() { return withOptional(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java index 4f1d1ce879..63d3a07f2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java @@ -1,99 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1ConfigMapFluent> extends Fluent { + /** + * Generated + */ +public interface V1ConfigMapFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToBinaryData(String key, byte[] value); - - public A addToBinaryData(Map map); - + public A addToBinaryData(String key,byte[] value); + public A addToBinaryData(Map map); public A removeFromBinaryData(String key); - - public A removeFromBinaryData(Map map); - - public Map getBinaryData(); - - public A withBinaryData(Map binaryData); - + public A removeFromBinaryData(Map map); + public Map getBinaryData(); + public A withBinaryData(Map binaryData); public Boolean hasBinaryData(); - - public A addToData(String key, String value); - - public A addToData(Map map); - + public A addToData(String key,String value); + public A addToData(Map map); public A removeFromData(String key); - - public A removeFromData(Map map); - - public Map getData(); - - public A withData(Map data); - + public A removeFromData(Map map); + public Map getData(); + public A withData(Map data); public Boolean hasData(); - public Boolean getImmutable(); - public A withImmutable(Boolean immutable); - public Boolean hasImmutable(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ConfigMapFluent.MetadataNested withNewMetadata(); - public V1ConfigMapFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ConfigMapFluent.MetadataNested editMetadata(); - public V1ConfigMapFluent.MetadataNested editOrNewMetadata(); - public V1ConfigMapFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public A withImmutable(); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java index e3e7cef952..f8be09fa9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapFluentImpl> extends BaseFluent - implements V1ConfigMapFluent { - public V1ConfigMapFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapFluentImpl> extends BaseFluent implements V1ConfigMapFluent{ + public V1ConfigMapFluentImpl() { + } public V1ConfigMapFluentImpl(V1ConfigMap instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,301 +29,170 @@ public V1ConfigMapFluentImpl(V1ConfigMap instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; - private Map binaryData; - private Map data; + private Map binaryData; + private Map data; private Boolean immutable; private String kind; private V1ObjectMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToBinaryData(String key, byte[] value) { - if (this.binaryData == null && key != null && value != null) { - this.binaryData = new LinkedHashMap(); - } - if (key != null && value != null) { - this.binaryData.put(key, value); - } - return (A) this; + public A addToBinaryData(String key,byte[] value) { + if(this.binaryData == null && key != null && value != null) { this.binaryData = new LinkedHashMap(); } + if(key != null && value != null) {this.binaryData.put(key, value);} return (A)this; } - - public A addToBinaryData(Map map) { - if (this.binaryData == null && map != null) { - this.binaryData = new LinkedHashMap(); - } - if (map != null) { - this.binaryData.putAll(map); - } - return (A) this; + public A addToBinaryData(Map map) { + if(this.binaryData == null && map != null) { this.binaryData = new LinkedHashMap(); } + if(map != null) { this.binaryData.putAll(map);} return (A)this; } - public A removeFromBinaryData(String key) { - if (this.binaryData == null) { - return (A) this; - } - if (key != null && this.binaryData != null) { - this.binaryData.remove(key); - } - return (A) this; + if(this.binaryData == null) { return (A) this; } + if(key != null && this.binaryData != null) {this.binaryData.remove(key);} return (A)this; } - - public A removeFromBinaryData(Map map) { - if (this.binaryData == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.binaryData != null) { - this.binaryData.remove(key); - } - } - } - return (A) this; + public A removeFromBinaryData(Map map) { + if(this.binaryData == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.binaryData != null){this.binaryData.remove(key);}}} return (A)this; } - - public Map getBinaryData() { + public Map getBinaryData() { return this.binaryData; } - - public A withBinaryData(Map binaryData) { - if (binaryData == null) { - this.binaryData = null; - } else { - this.binaryData = new LinkedHashMap(binaryData); - } - return (A) this; + public A withBinaryData(Map binaryData) { + if (binaryData == null) { this.binaryData = null;} else {this.binaryData = new LinkedHashMap(binaryData);} return (A) this; } - public Boolean hasBinaryData() { return this.binaryData != null; } - - public A addToData(String key, String value) { - if (this.data == null && key != null && value != null) { - this.data = new LinkedHashMap(); - } - if (key != null && value != null) { - this.data.put(key, value); - } - return (A) this; + public A addToData(String key,String value) { + if(this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } + if(key != null && value != null) {this.data.put(key, value);} return (A)this; } - - public A addToData(Map map) { - if (this.data == null && map != null) { - this.data = new LinkedHashMap(); - } - if (map != null) { - this.data.putAll(map); - } - return (A) this; + public A addToData(Map map) { + if(this.data == null && map != null) { this.data = new LinkedHashMap(); } + if(map != null) { this.data.putAll(map);} return (A)this; } - public A removeFromData(String key) { - if (this.data == null) { - return (A) this; - } - if (key != null && this.data != null) { - this.data.remove(key); - } - return (A) this; + if(this.data == null) { return (A) this; } + if(key != null && this.data != null) {this.data.remove(key);} return (A)this; } - - public A removeFromData(Map map) { - if (this.data == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.data != null) { - this.data.remove(key); - } - } - } - return (A) this; + public A removeFromData(Map map) { + if(this.data == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.data != null){this.data.remove(key);}}} return (A)this; } - - public Map getData() { + public Map getData() { return this.data; } - - public A withData(Map data) { - if (data == null) { - this.data = null; - } else { - this.data = new LinkedHashMap(data); - } - return (A) this; + public A withData(Map data) { + if (data == null) { this.data = null;} else {this.data = new LinkedHashMap(data);} return (A) this; } - public Boolean hasData() { return this.data != null; } - public Boolean getImmutable() { return this.immutable; } - public A withImmutable(Boolean immutable) { - this.immutable = immutable; - return (A) this; + this.immutable=immutable; return (A) this; } - public Boolean hasImmutable() { return this.immutable != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ConfigMapFluent.MetadataNested withNewMetadata() { return new V1ConfigMapFluentImpl.MetadataNestedImpl(); } - public V1ConfigMapFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ConfigMapFluentImpl.MetadataNestedImpl(item); } - public V1ConfigMapFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ConfigMapFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ConfigMapFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ConfigMapFluentImpl that = (V1ConfigMapFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (binaryData != null ? !binaryData.equals(that.binaryData) : that.binaryData != null) - return false; - if (data != null ? !data.equals(that.data) : that.data != null) return false; - if (immutable != null ? !immutable.equals(that.immutable) : that.immutable != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (binaryData != null ? !binaryData.equals(that.binaryData) :that.binaryData != null) return false; + if (data != null ? !data.equals(that.data) :that.data != null) return false; + if (immutable != null ? !immutable.equals(that.immutable) :that.immutable != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, binaryData, data, immutable, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, binaryData, data, immutable, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (binaryData != null && !binaryData.isEmpty()) { - sb.append("binaryData:"); - sb.append(binaryData + ","); - } - if (data != null && !data.isEmpty()) { - sb.append("data:"); - sb.append(data + ","); - } - if (immutable != null) { - sb.append("immutable:"); - sb.append(immutable + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (binaryData != null && !binaryData.isEmpty()) { sb.append("binaryData:"); sb.append(binaryData + ","); } + if (data != null && !data.isEmpty()) { sb.append("data:"); sb.append(data + ","); } + if (immutable != null) { sb.append("immutable:"); sb.append(immutable + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - public A withImmutable() { return withImmutable(true); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1ConfigMapFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ConfigMapFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ConfigMapFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java index 9bdff40b7d..40f438c2bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapKeySelectorBuilder - extends V1ConfigMapKeySelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapKeySelectorBuilder extends V1ConfigMapKeySelectorFluentImpl implements VisitableBuilder{ public V1ConfigMapKeySelectorBuilder() { this(false); } - public V1ConfigMapKeySelectorBuilder(Boolean validationEnabled) { this(new V1ConfigMapKeySelector(), validationEnabled); } - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent) { this(fluent, false); } - - public V1ConfigMapKeySelectorBuilder( - V1ConfigMapKeySelectorFluent fluent, Boolean validationEnabled) { + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMapKeySelector(), validationEnabled); } - - public V1ConfigMapKeySelectorBuilder( - V1ConfigMapKeySelectorFluent fluent, V1ConfigMapKeySelector instance) { + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,V1ConfigMapKeySelector instance) { this(fluent, instance, false); } - - public V1ConfigMapKeySelectorBuilder( - V1ConfigMapKeySelectorFluent fluent, - V1ConfigMapKeySelector instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,V1ConfigMapKeySelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKey(instance.getKey()); fluent.withName(instance.getName()); fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance,Boolean validationEnabled) { + this.fluent = this; this.withKey(instance.getKey()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapKeySelectorFluent fluent; Boolean validationEnabled; - public V1ConfigMapKeySelector build() { V1ConfigMapKeySelector buildable = new V1ConfigMapKeySelector(); buildable.setKey(fluent.getKey()); @@ -78,4 +50,5 @@ public V1ConfigMapKeySelector build() { buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java index deccac2ab0..2325f42b43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java @@ -1,39 +1,22 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ConfigMapKeySelectorFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ConfigMapKeySelectorFluent> extends Fluent{ public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java index 26703b40b5..6f245c371f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java @@ -1,110 +1,79 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapKeySelectorFluentImpl> - extends BaseFluent implements V1ConfigMapKeySelectorFluent { - public V1ConfigMapKeySelectorFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapKeySelectorFluentImpl> extends BaseFluent implements V1ConfigMapKeySelectorFluent{ + public V1ConfigMapKeySelectorFluentImpl() { + } public V1ConfigMapKeySelectorFluentImpl(V1ConfigMapKeySelector instance) { this.withKey(instance.getKey()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private String key; private String name; private Boolean optional; - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getOptional() { return this.optional; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + this.optional=optional; return (A) this; } - public Boolean hasOptional() { return this.optional != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ConfigMapKeySelectorFluentImpl that = (V1ConfigMapKeySelectorFluentImpl) o; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (optional != null ? !optional.equals(that.optional) : that.optional != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (optional != null ? !optional.equals(that.optional) :that.optional != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(key, name, optional, super.hashCode()); + return java.util.Objects.hash(key, name, optional, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (optional != null) { - sb.append("optional:"); - sb.append(optional); - } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (optional != null) { sb.append("optional:"); sb.append(optional); } sb.append("}"); return sb.toString(); } - public A withOptional() { return withOptional(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java index f7d8d37299..051e135d00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapListBuilder extends V1ConfigMapListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapListBuilder extends V1ConfigMapListFluentImpl implements VisitableBuilder{ public V1ConfigMapListBuilder() { this(false); } - public V1ConfigMapListBuilder(Boolean validationEnabled) { this(new V1ConfigMapList(), validationEnabled); } - public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent) { this(fluent, false); } - - public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent, Boolean validationEnabled) { + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMapList(), validationEnabled); } - - public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent, V1ConfigMapList instance) { + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,V1ConfigMapList instance) { this(fluent, instance, false); } - - public V1ConfigMapListBuilder( - V1ConfigMapListFluent fluent, V1ConfigMapList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,V1ConfigMapList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1ConfigMapListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapListBuilder(V1ConfigMapList instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapListBuilder(V1ConfigMapList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapListBuilder(V1ConfigMapList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1ConfigMapListBuilder(V1ConfigMapList instance, Boolean validationEnable this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapListFluent fluent; Boolean validationEnabled; - public V1ConfigMapList build() { V1ConfigMapList buildable = new V1ConfigMapList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1ConfigMapList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java index f79458efb3..a3a82ec12b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ConfigMapListFluent> extends Fluent { + /** + * Generated + */ +public interface V1ConfigMapListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ConfigMap item); - - public A setToItems(Integer index, V1ConfigMap item); - + public A addToItems(Integer index,V1ConfigMap item); + public A setToItems(Integer index,V1ConfigMap item); public A addToItems(io.kubernetes.client.openapi.models.V1ConfigMap... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ConfigMap... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ConfigMap buildItem(Integer index); - public V1ConfigMap buildFirstItem(); - public V1ConfigMap buildLastItem(); - public V1ConfigMap buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items); - public Boolean hasItems(); - public V1ConfigMapListFluent.ItemsNested addNewItem(); - public V1ConfigMapListFluent.ItemsNested addNewItemLike(V1ConfigMap item); - - public V1ConfigMapListFluent.ItemsNested setNewItemLike(Integer index, V1ConfigMap item); - + public V1ConfigMapListFluent.ItemsNested setNewItemLike(Integer index,V1ConfigMap item); public V1ConfigMapListFluent.ItemsNested editItem(Integer index); - public V1ConfigMapListFluent.ItemsNested editFirstItem(); - public V1ConfigMapListFluent.ItemsNested editLastItem(); - - public V1ConfigMapListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ConfigMapListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ConfigMapListFluent.MetadataNested withNewMetadata(); - public V1ConfigMapListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ConfigMapListFluent.MetadataNested editMetadata(); - public V1ConfigMapListFluent.MetadataNested editOrNewMetadata(); - public V1ConfigMapListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ConfigMapFluent> { + public interface ItemsNested extends Nested,V1ConfigMapFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java index 6b3d690aba..bdea477293 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapListFluentImpl> extends BaseFluent - implements V1ConfigMapListFluent { - public V1ConfigMapListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapListFluentImpl> extends BaseFluent implements V1ConfigMapListFluent{ + public V1ConfigMapListFluentImpl() { + } public V1ConfigMapListFluentImpl(V1ConfigMapList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ConfigMapListFluentImpl(V1ConfigMapList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ConfigMap item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ConfigMap item) { + if (this.items == null) {this.items = new ArrayList();} + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ConfigMap item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ConfigMap item) { + if (this.items == null) {this.items = new ArrayList();} V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ConfigMap buildItem(Integer index) { return this.items.get(index).build(); } - public V1ConfigMap buildFirstItem() { return this.items.get(0).build(); } - public V1ConfigMap buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ConfigMap buildMatchingItem(Predicate predicate) { - for (V1ConfigMapBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ConfigMapBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ConfigMapBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ConfigMapBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ConfigMap item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ConfigMap item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ConfigMap item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ConfigMap item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ConfigMapListFluent.ItemsNested addNewItem() { return new V1ConfigMapListFluentImpl.ItemsNestedImpl(); } - public V1ConfigMapListFluent.ItemsNested addNewItemLike(V1ConfigMap item) { return new V1ConfigMapListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ConfigMapListFluent.ItemsNested setNewItemLike(Integer index, V1ConfigMap item) { + public V1ConfigMapListFluent.ItemsNested setNewItemLike(Integer index,V1ConfigMap item) { return new V1ConfigMapListFluentImpl.ItemsNestedImpl(index, item); } - public V1ConfigMapListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ConfigMapListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ConfigMapListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ConfigMapListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ConfigMapListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ConfigMapListFluentImpl.MetadataNestedImpl(); } - public V1ConfigMapListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ConfigMapListFluentImpl.MetadataNestedImpl(item); } - public V1ConfigMapListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ConfigMapListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ConfigMapListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ConfigMapListFluentImpl that = (V1ConfigMapListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1ConfigMapFluentImpl> - implements V1ConfigMapListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ConfigMap item) { + class ItemsNestedImpl extends V1ConfigMapFluentImpl> implements V1ConfigMapListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ConfigMap item) { this.index = index; this.builder = new V1ConfigMapBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ConfigMapBuilder(this); } - V1ConfigMapBuilder builder; Integer index; - public N and() { - return (N) V1ConfigMapListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ConfigMapListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1ConfigMapListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ConfigMapListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ConfigMapListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java index 0990097605..a5c7493b01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapNodeConfigSourceBuilder - extends V1ConfigMapNodeConfigSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluentImpl implements VisitableBuilder{ public V1ConfigMapNodeConfigSourceBuilder() { this(false); } - public V1ConfigMapNodeConfigSourceBuilder(Boolean validationEnabled) { this(new V1ConfigMapNodeConfigSource(), validationEnabled); } - public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent) { this(fluent, false); } - - public V1ConfigMapNodeConfigSourceBuilder( - V1ConfigMapNodeConfigSourceFluent fluent, Boolean validationEnabled) { + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMapNodeConfigSource(), validationEnabled); } - - public V1ConfigMapNodeConfigSourceBuilder( - V1ConfigMapNodeConfigSourceFluent fluent, V1ConfigMapNodeConfigSource instance) { + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance) { this(fluent, instance, false); } - - public V1ConfigMapNodeConfigSourceBuilder( - V1ConfigMapNodeConfigSourceFluent fluent, - V1ConfigMapNodeConfigSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKubeletConfigKey(instance.getKubeletConfigKey()); fluent.withName(instance.getName()); @@ -54,16 +30,13 @@ public V1ConfigMapNodeConfigSourceBuilder( fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapNodeConfigSourceBuilder( - V1ConfigMapNodeConfigSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance,Boolean validationEnabled) { + this.fluent = this; this.withKubeletConfigKey(instance.getKubeletConfigKey()); this.withName(instance.getName()); @@ -74,12 +47,10 @@ public V1ConfigMapNodeConfigSourceBuilder( this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapNodeConfigSourceFluent fluent; Boolean validationEnabled; - public V1ConfigMapNodeConfigSource build() { V1ConfigMapNodeConfigSource buildable = new V1ConfigMapNodeConfigSource(); buildable.setKubeletConfigKey(fluent.getKubeletConfigKey()); @@ -89,4 +60,5 @@ public V1ConfigMapNodeConfigSource build() { buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java index d26a98fd57..3305677c99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java @@ -1,49 +1,27 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ConfigMapNodeConfigSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ConfigMapNodeConfigSourceFluent> extends Fluent{ public String getKubeletConfigKey(); - public A withKubeletConfigKey(String kubeletConfigKey); - public Boolean hasKubeletConfigKey(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public String getResourceVersion(); - public A withResourceVersion(String resourceVersion); - public Boolean hasResourceVersion(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java index 31707c8440..1116d1ec0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapNodeConfigSourceFluentImpl> - extends BaseFluent implements V1ConfigMapNodeConfigSourceFluent { - public V1ConfigMapNodeConfigSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapNodeConfigSourceFluentImpl> extends BaseFluent implements V1ConfigMapNodeConfigSourceFluent{ + public V1ConfigMapNodeConfigSourceFluentImpl() { + } public V1ConfigMapNodeConfigSourceFluentImpl(V1ConfigMapNodeConfigSource instance) { this.withKubeletConfigKey(instance.getKubeletConfigKey()); @@ -30,125 +23,82 @@ public V1ConfigMapNodeConfigSourceFluentImpl(V1ConfigMapNodeConfigSource instanc this.withResourceVersion(instance.getResourceVersion()); this.withUid(instance.getUid()); - } + } private String kubeletConfigKey; private String name; private String namespace; private String resourceVersion; private String uid; - public String getKubeletConfigKey() { return this.kubeletConfigKey; } - public A withKubeletConfigKey(String kubeletConfigKey) { - this.kubeletConfigKey = kubeletConfigKey; - return (A) this; + this.kubeletConfigKey=kubeletConfigKey; return (A) this; } - public Boolean hasKubeletConfigKey() { return this.kubeletConfigKey != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + this.resourceVersion=resourceVersion; return (A) this; } - public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ConfigMapNodeConfigSourceFluentImpl that = (V1ConfigMapNodeConfigSourceFluentImpl) o; - if (kubeletConfigKey != null - ? !kubeletConfigKey.equals(that.kubeletConfigKey) - : that.kubeletConfigKey != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (resourceVersion != null - ? !resourceVersion.equals(that.resourceVersion) - : that.resourceVersion != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; + if (kubeletConfigKey != null ? !kubeletConfigKey.equals(that.kubeletConfigKey) :that.kubeletConfigKey != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (resourceVersion != null ? !resourceVersion.equals(that.resourceVersion) :that.resourceVersion != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - kubeletConfigKey, name, namespace, resourceVersion, uid, super.hashCode()); + return java.util.Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (kubeletConfigKey != null) { - sb.append("kubeletConfigKey:"); - sb.append(kubeletConfigKey + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (resourceVersion != null) { - sb.append("resourceVersion:"); - sb.append(resourceVersion + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid); - } + if (kubeletConfigKey != null) { sb.append("kubeletConfigKey:"); sb.append(kubeletConfigKey + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java index 71a10df971..13ccc3f3a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapProjectionBuilder - extends V1ConfigMapProjectionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapProjectionBuilder extends V1ConfigMapProjectionFluentImpl implements VisitableBuilder{ public V1ConfigMapProjectionBuilder() { this(false); } - public V1ConfigMapProjectionBuilder(Boolean validationEnabled) { this(new V1ConfigMapProjection(), validationEnabled); } - public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent) { this(fluent, false); } - - public V1ConfigMapProjectionBuilder( - V1ConfigMapProjectionFluent fluent, Boolean validationEnabled) { + public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMapProjection(), validationEnabled); } - - public V1ConfigMapProjectionBuilder( - V1ConfigMapProjectionFluent fluent, V1ConfigMapProjection instance) { + public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,V1ConfigMapProjection instance) { this(fluent, instance, false); } - - public V1ConfigMapProjectionBuilder( - V1ConfigMapProjectionFluent fluent, - V1ConfigMapProjection instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,V1ConfigMapProjection instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withItems(instance.getItems()); fluent.withName(instance.getName()); fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance,Boolean validationEnabled) { + this.fluent = this; this.withItems(instance.getItems()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapProjectionFluent fluent; Boolean validationEnabled; - public V1ConfigMapProjection build() { V1ConfigMapProjection buildable = new V1ConfigMapProjection(); buildable.setItems(fluent.getItems()); @@ -78,4 +50,5 @@ public V1ConfigMapProjection build() { buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java index a640244c83..751929d64c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java @@ -1,99 +1,63 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ConfigMapProjectionFluent> - extends Fluent { - public A addToItems(Integer index, V1KeyToPath item); - - public A setToItems(Integer index, V1KeyToPath item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ConfigMapProjectionFluent> extends Fluent{ + public A addToItems(Integer index,V1KeyToPath item); + public A setToItems(Integer index,V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1KeyToPath buildItem(Integer index); - public V1KeyToPath buildFirstItem(); - public V1KeyToPath buildLastItem(); - public V1KeyToPath buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public Boolean hasItems(); - public V1ConfigMapProjectionFluent.ItemsNested addNewItem(); - public V1ConfigMapProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item); - - public V1ConfigMapProjectionFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item); - + public V1ConfigMapProjectionFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item); public V1ConfigMapProjectionFluent.ItemsNested editItem(Integer index); - public V1ConfigMapProjectionFluent.ItemsNested editFirstItem(); - public V1ConfigMapProjectionFluent.ItemsNested editLastItem(); - - public V1ConfigMapProjectionFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ConfigMapProjectionFluent.ItemsNested editMatchingItem(Predicate predicate); public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); - - public interface ItemsNested - extends Nested, V1KeyToPathFluent> { + public interface ItemsNested extends Nested,V1KeyToPathFluent>{ public N and(); - public N endItem(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java index 3a93a278b1..49f85dd916 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java @@ -1,117 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapProjectionFluentImpl> - extends BaseFluent implements V1ConfigMapProjectionFluent { - public V1ConfigMapProjectionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapProjectionFluentImpl> extends BaseFluent implements V1ConfigMapProjectionFluent{ + public V1ConfigMapProjectionFluentImpl() { + } public V1ConfigMapProjectionFluentImpl(V1ConfigMapProjection instance) { this.withItems(instance.getItems()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private ArrayList items; private String name; private Boolean optional; - - public A addToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -123,210 +69,136 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1KeyToPath buildMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1KeyToPath item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1KeyToPath item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ConfigMapProjectionFluent.ItemsNested addNewItem() { return new V1ConfigMapProjectionFluentImpl.ItemsNestedImpl(); } - public V1ConfigMapProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1ConfigMapProjectionFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ConfigMapProjectionFluent.ItemsNested setNewItemLike( - Integer index, V1KeyToPath item) { + public V1ConfigMapProjectionFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item) { return new V1ConfigMapProjectionFluentImpl.ItemsNestedImpl(index, item); } - public V1ConfigMapProjectionFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ConfigMapProjectionFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ConfigMapProjectionFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ConfigMapProjectionFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ConfigMapProjectionFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1KeyToPathFluentImpl> - implements V1ConfigMapProjectionFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1KeyToPath item) { + class ItemsNestedImpl extends V1KeyToPathFluentImpl> implements V1ConfigMapProjectionFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1KeyToPathBuilder(this); } - V1KeyToPathBuilder builder; Integer index; - public N and() { - return (N) V1ConfigMapProjectionFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ConfigMapProjectionFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java index a8e16a9550..20fabaaf9f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ConfigMapVolumeSourceBuilder - extends V1ConfigMapVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ConfigMapVolumeSourceBuilder extends V1ConfigMapVolumeSourceFluentImpl implements VisitableBuilder{ public V1ConfigMapVolumeSourceBuilder() { this(false); } - public V1ConfigMapVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ConfigMapVolumeSource(), validationEnabled); } - public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent) { this(fluent, false); } - - public V1ConfigMapVolumeSourceBuilder( - V1ConfigMapVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ConfigMapVolumeSource(), validationEnabled); } - - public V1ConfigMapVolumeSourceBuilder( - V1ConfigMapVolumeSourceFluent fluent, V1ConfigMapVolumeSource instance) { + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1ConfigMapVolumeSource instance) { this(fluent, instance, false); } - - public V1ConfigMapVolumeSourceBuilder( - V1ConfigMapVolumeSourceFluent fluent, - V1ConfigMapVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1ConfigMapVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1ConfigMapVolumeSourceBuilder( fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1ConfigMapVolumeSourceBuilder( - V1ConfigMapVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1ConfigMapVolumeSourceBuilder( this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ConfigMapVolumeSourceFluent fluent; Boolean validationEnabled; - public V1ConfigMapVolumeSource build() { V1ConfigMapVolumeSource buildable = new V1ConfigMapVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -84,4 +55,5 @@ public V1ConfigMapVolumeSource build() { buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java index 6c44a00a84..bb168b4e8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java @@ -1,106 +1,66 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ConfigMapVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ConfigMapVolumeSourceFluent> extends Fluent{ public Integer getDefaultMode(); - public A withDefaultMode(Integer defaultMode); - public Boolean hasDefaultMode(); - - public A addToItems(Integer index, V1KeyToPath item); - - public A setToItems(Integer index, V1KeyToPath item); - + public A addToItems(Integer index,V1KeyToPath item); + public A setToItems(Integer index,V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1KeyToPath buildItem(Integer index); - public V1KeyToPath buildFirstItem(); - public V1KeyToPath buildLastItem(); - public V1KeyToPath buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public Boolean hasItems(); - public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItem(); - public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item); - - public V1ConfigMapVolumeSourceFluent.ItemsNested setNewItemLike( - Integer index, V1KeyToPath item); - + public V1ConfigMapVolumeSourceFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item); public V1ConfigMapVolumeSourceFluent.ItemsNested editItem(Integer index); - public V1ConfigMapVolumeSourceFluent.ItemsNested editFirstItem(); - public V1ConfigMapVolumeSourceFluent.ItemsNested editLastItem(); - - public V1ConfigMapVolumeSourceFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ConfigMapVolumeSourceFluent.ItemsNested editMatchingItem(Predicate predicate); public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); - - public interface ItemsNested - extends Nested, V1KeyToPathFluent> { + public interface ItemsNested extends Nested,V1KeyToPathFluent>{ public N and(); - public N endItem(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java index 6f76d034ee..4a674b1802 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ConfigMapVolumeSourceFluentImpl> - extends BaseFluent implements V1ConfigMapVolumeSourceFluent { - public V1ConfigMapVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ConfigMapVolumeSourceFluentImpl> extends BaseFluent implements V1ConfigMapVolumeSourceFluent{ + public V1ConfigMapVolumeSourceFluentImpl() { + } public V1ConfigMapVolumeSourceFluentImpl(V1ConfigMapVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); @@ -34,100 +30,46 @@ public V1ConfigMapVolumeSourceFluentImpl(V1ConfigMapVolumeSource instance) { this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private Integer defaultMode; private ArrayList items; private String name; private Boolean optional; - public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + this.defaultMode=defaultMode; return (A) this; } - public Boolean hasDefaultMode() { return this.defaultMode != null; } - - public A addToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,217 +81,138 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1KeyToPath buildMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1KeyToPath item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1KeyToPath item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItem() { return new V1ConfigMapVolumeSourceFluentImpl.ItemsNestedImpl(); } - public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1ConfigMapVolumeSourceFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ConfigMapVolumeSourceFluent.ItemsNested setNewItemLike( - Integer index, V1KeyToPath item) { + public V1ConfigMapVolumeSourceFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item) { return new V1ConfigMapVolumeSourceFluentImpl.ItemsNestedImpl(index, item); } - public V1ConfigMapVolumeSourceFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ConfigMapVolumeSourceFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ConfigMapVolumeSourceFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ConfigMapVolumeSourceFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ConfigMapVolumeSourceFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1KeyToPathFluentImpl> - implements V1ConfigMapVolumeSourceFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1KeyToPath item) { + class ItemsNestedImpl extends V1KeyToPathFluentImpl> implements V1ConfigMapVolumeSourceFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1KeyToPathBuilder(this); } - V1KeyToPathBuilder builder; Integer index; - public N and() { - return (N) V1ConfigMapVolumeSourceFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ConfigMapVolumeSourceFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java index 520b69c5c3..19c5eccabd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ContainerBuilder extends V1ContainerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerBuilder extends V1ContainerFluentImpl implements VisitableBuilder{ public V1ContainerBuilder() { this(false); } - public V1ContainerBuilder(Boolean validationEnabled) { this(new V1Container(), validationEnabled); } - public V1ContainerBuilder(V1ContainerFluent fluent) { this(fluent, false); } - - public V1ContainerBuilder(V1ContainerFluent fluent, Boolean validationEnabled) { + public V1ContainerBuilder(V1ContainerFluent fluent,Boolean validationEnabled) { this(fluent, new V1Container(), validationEnabled); } - - public V1ContainerBuilder(V1ContainerFluent fluent, V1Container instance) { + public V1ContainerBuilder(V1ContainerFluent fluent,V1Container instance) { this(fluent, instance, false); } - - public V1ContainerBuilder( - V1ContainerFluent fluent, V1Container instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerBuilder(V1ContainerFluent fluent,V1Container instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withArgs(instance.getArgs()); fluent.withCommand(instance.getCommand()); @@ -83,15 +64,13 @@ public V1ContainerBuilder( fluent.withWorkingDir(instance.getWorkingDir()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerBuilder(V1Container instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerBuilder(V1Container instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerBuilder(V1Container instance,Boolean validationEnabled) { + this.fluent = this; this.withArgs(instance.getArgs()); this.withCommand(instance.getCommand()); @@ -136,12 +115,10 @@ public V1ContainerBuilder(V1Container instance, Boolean validationEnabled) { this.withWorkingDir(instance.getWorkingDir()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerFluent fluent; Boolean validationEnabled; - public V1Container build() { V1Container buildable = new V1Container(); buildable.setArgs(fluent.getArgs()); @@ -168,4 +145,5 @@ public V1Container build() { buildable.setWorkingDir(fluent.getWorkingDir()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java index 1766bf6e8b..9c759f90e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java @@ -1,640 +1,376 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; +import java.util.ArrayList; +import java.lang.String; import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Integer; +import java.util.Collection; -/** Generated */ -public interface V1ContainerFluent> extends Fluent { - public A addToArgs(Integer index, String item); - - public A setToArgs(Integer index, String item); - + /** + * Generated + */ +public interface V1ContainerFluent> extends Fluent{ + public A addToArgs(Integer index,String item); + public A setToArgs(Integer index,String item); public A addToArgs(java.lang.String... items); - public A addAllToArgs(Collection items); - public A removeFromArgs(java.lang.String... items); - public A removeAllFromArgs(Collection items); - public List getArgs(); - public String getArg(Integer index); - public String getFirstArg(); - public String getLastArg(); - public String getMatchingArg(Predicate predicate); - public Boolean hasMatchingArg(Predicate predicate); - public A withArgs(List args); - public A withArgs(java.lang.String... args); - public Boolean hasArgs(); - - public A addToCommand(Integer index, String item); - - public A setToCommand(Integer index, String item); - + public A addToCommand(Integer index,String item); + public A setToCommand(Integer index,String item); public A addToCommand(java.lang.String... items); - public A addAllToCommand(Collection items); - public A removeFromCommand(java.lang.String... items); - public A removeAllFromCommand(Collection items); - public List getCommand(); - public String getCommand(Integer index); - public String getFirstCommand(); - public String getLastCommand(); - public String getMatchingCommand(Predicate predicate); - public Boolean hasMatchingCommand(Predicate predicate); - public A withCommand(List command); - public A withCommand(java.lang.String... command); - public Boolean hasCommand(); - - public A addToEnv(Integer index, V1EnvVar item); - - public A setToEnv(Integer index, V1EnvVar item); - + public A addToEnv(Integer index,V1EnvVar item); + public A setToEnv(Integer index,V1EnvVar item); public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A addAllToEnv(Collection items); - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A removeAllFromEnv(Collection items); - public A removeMatchingFromEnv(Predicate predicate); - + /** * This method has been deprecated, please use method buildEnv instead. - * * @return The buildable object. */ @Deprecated public List getEnv(); - public List buildEnv(); - public V1EnvVar buildEnv(Integer index); - public V1EnvVar buildFirstEnv(); - public V1EnvVar buildLastEnv(); - public V1EnvVar buildMatchingEnv(Predicate predicate); - public Boolean hasMatchingEnv(Predicate predicate); - public A withEnv(List env); - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env); - public Boolean hasEnv(); - public V1ContainerFluent.EnvNested addNewEnv(); - public V1ContainerFluent.EnvNested addNewEnvLike(V1EnvVar item); - - public V1ContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item); - + public V1ContainerFluent.EnvNested setNewEnvLike(Integer index,V1EnvVar item); public V1ContainerFluent.EnvNested editEnv(Integer index); - public V1ContainerFluent.EnvNested editFirstEnv(); - public V1ContainerFluent.EnvNested editLastEnv(); - public V1ContainerFluent.EnvNested editMatchingEnv(Predicate predicate); - - public A addToEnvFrom(Integer index, V1EnvFromSource item); - - public A setToEnvFrom(Integer index, V1EnvFromSource item); - + public A addToEnvFrom(Integer index,V1EnvFromSource item); + public A setToEnvFrom(Integer index,V1EnvFromSource item); public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A addAllToEnvFrom(Collection items); - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A removeAllFromEnvFrom(Collection items); - public A removeMatchingFromEnvFrom(Predicate predicate); - + /** * This method has been deprecated, please use method buildEnvFrom instead. - * * @return The buildable object. */ @Deprecated public List getEnvFrom(); - public List buildEnvFrom(); - public V1EnvFromSource buildEnvFrom(Integer index); - public V1EnvFromSource buildFirstEnvFrom(); - public V1EnvFromSource buildLastEnvFrom(); - public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate); - public Boolean hasMatchingEnvFrom(Predicate predicate); - public A withEnvFrom(List envFrom); - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom); - public Boolean hasEnvFrom(); - public V1ContainerFluent.EnvFromNested addNewEnvFrom(); - public V1ContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item); - - public V1ContainerFluent.EnvFromNested setNewEnvFromLike(Integer index, V1EnvFromSource item); - + public V1ContainerFluent.EnvFromNested setNewEnvFromLike(Integer index,V1EnvFromSource item); public V1ContainerFluent.EnvFromNested editEnvFrom(Integer index); - public V1ContainerFluent.EnvFromNested editFirstEnvFrom(); - public V1ContainerFluent.EnvFromNested editLastEnvFrom(); - - public V1ContainerFluent.EnvFromNested editMatchingEnvFrom( - Predicate predicate); - + public V1ContainerFluent.EnvFromNested editMatchingEnvFrom(Predicate predicate); public String getImage(); - public A withImage(String image); - public Boolean hasImage(); - public String getImagePullPolicy(); - public A withImagePullPolicy(String imagePullPolicy); - public Boolean hasImagePullPolicy(); - + /** * This method has been deprecated, please use method buildLifecycle instead. - * * @return The buildable object. */ @Deprecated public V1Lifecycle getLifecycle(); - public V1Lifecycle buildLifecycle(); - public A withLifecycle(V1Lifecycle lifecycle); - public Boolean hasLifecycle(); - public V1ContainerFluent.LifecycleNested withNewLifecycle(); - public V1ContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item); - public V1ContainerFluent.LifecycleNested editLifecycle(); - public V1ContainerFluent.LifecycleNested editOrNewLifecycle(); - public V1ContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item); - + /** * This method has been deprecated, please use method buildLivenessProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getLivenessProbe(); - public V1Probe buildLivenessProbe(); - public A withLivenessProbe(V1Probe livenessProbe); - public Boolean hasLivenessProbe(); - public V1ContainerFluent.LivenessProbeNested withNewLivenessProbe(); - public V1ContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item); - public V1ContainerFluent.LivenessProbeNested editLivenessProbe(); - public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbe(); - public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item); - public String getName(); - public A withName(String name); - public Boolean hasName(); - - public A addToPorts(Integer index, V1ContainerPort item); - - public A setToPorts(Integer index, V1ContainerPort item); - + public A addToPorts(Integer index,V1ContainerPort item); + public A setToPorts(Integer index,V1ContainerPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public V1ContainerPort buildPort(Integer index); - public V1ContainerPort buildFirstPort(); - public V1ContainerPort buildLastPort(); - public V1ContainerPort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports); - public Boolean hasPorts(); - public V1ContainerFluent.PortsNested addNewPort(); - public V1ContainerFluent.PortsNested addNewPortLike(V1ContainerPort item); - - public V1ContainerFluent.PortsNested setNewPortLike(Integer index, V1ContainerPort item); - + public V1ContainerFluent.PortsNested setNewPortLike(Integer index,V1ContainerPort item); public V1ContainerFluent.PortsNested editPort(Integer index); - public V1ContainerFluent.PortsNested editFirstPort(); - public V1ContainerFluent.PortsNested editLastPort(); - - public V1ContainerFluent.PortsNested editMatchingPort( - Predicate predicate); - + public V1ContainerFluent.PortsNested editMatchingPort(Predicate predicate); + /** * This method has been deprecated, please use method buildReadinessProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getReadinessProbe(); - public V1Probe buildReadinessProbe(); - public A withReadinessProbe(V1Probe readinessProbe); - public Boolean hasReadinessProbe(); - public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbe(); - public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item); - public V1ContainerFluent.ReadinessProbeNested editReadinessProbe(); - public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbe(); - public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item); - + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public V1ResourceRequirements getResources(); - public V1ResourceRequirements buildResources(); - public A withResources(V1ResourceRequirements resources); - public Boolean hasResources(); - public V1ContainerFluent.ResourcesNested withNewResources(); - public V1ContainerFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item); - public V1ContainerFluent.ResourcesNested editResources(); - public V1ContainerFluent.ResourcesNested editOrNewResources(); - public V1ContainerFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item); - + /** * This method has been deprecated, please use method buildSecurityContext instead. - * * @return The buildable object. */ @Deprecated public V1SecurityContext getSecurityContext(); - public V1SecurityContext buildSecurityContext(); - public A withSecurityContext(V1SecurityContext securityContext); - public Boolean hasSecurityContext(); - public V1ContainerFluent.SecurityContextNested withNewSecurityContext(); - - public V1ContainerFluent.SecurityContextNested withNewSecurityContextLike( - V1SecurityContext item); - + public V1ContainerFluent.SecurityContextNested withNewSecurityContextLike(V1SecurityContext item); public V1ContainerFluent.SecurityContextNested editSecurityContext(); - public V1ContainerFluent.SecurityContextNested editOrNewSecurityContext(); - - public V1ContainerFluent.SecurityContextNested editOrNewSecurityContextLike( - V1SecurityContext item); - + public V1ContainerFluent.SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item); + /** * This method has been deprecated, please use method buildStartupProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getStartupProbe(); - public V1Probe buildStartupProbe(); - public A withStartupProbe(V1Probe startupProbe); - public Boolean hasStartupProbe(); - public V1ContainerFluent.StartupProbeNested withNewStartupProbe(); - public V1ContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item); - public V1ContainerFluent.StartupProbeNested editStartupProbe(); - public V1ContainerFluent.StartupProbeNested editOrNewStartupProbe(); - public V1ContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item); - public Boolean getStdin(); - public A withStdin(Boolean stdin); - public Boolean hasStdin(); - public Boolean getStdinOnce(); - public A withStdinOnce(Boolean stdinOnce); - public Boolean hasStdinOnce(); - public String getTerminationMessagePath(); - public A withTerminationMessagePath(String terminationMessagePath); - public Boolean hasTerminationMessagePath(); - public String getTerminationMessagePolicy(); - public A withTerminationMessagePolicy(String terminationMessagePolicy); - public Boolean hasTerminationMessagePolicy(); - public Boolean getTty(); - public A withTty(Boolean tty); - public Boolean hasTty(); - - public A addToVolumeDevices(Integer index, V1VolumeDevice item); - - public A setToVolumeDevices(Integer index, V1VolumeDevice item); - + public A addToVolumeDevices(Integer index,V1VolumeDevice item); + public A setToVolumeDevices(Integer index,V1VolumeDevice item); public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A addAllToVolumeDevices(Collection items); - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A removeAllFromVolumeDevices(Collection items); - public A removeMatchingFromVolumeDevices(Predicate predicate); - + /** * This method has been deprecated, please use method buildVolumeDevices instead. - * * @return The buildable object. */ @Deprecated public List getVolumeDevices(); - public List buildVolumeDevices(); - public V1VolumeDevice buildVolumeDevice(Integer index); - public V1VolumeDevice buildFirstVolumeDevice(); - public V1VolumeDevice buildLastVolumeDevice(); - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate); - public Boolean hasMatchingVolumeDevice(Predicate predicate); - public A withVolumeDevices(List volumeDevices); - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices); - public Boolean hasVolumeDevices(); - public V1ContainerFluent.VolumeDevicesNested addNewVolumeDevice(); - public V1ContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item); - - public V1ContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( - Integer index, V1VolumeDevice item); - + public V1ContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike(Integer index,V1VolumeDevice item); public V1ContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index); - public V1ContainerFluent.VolumeDevicesNested editFirstVolumeDevice(); - public V1ContainerFluent.VolumeDevicesNested editLastVolumeDevice(); - - public V1ContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( - Predicate predicate); - - public A addToVolumeMounts(Integer index, V1VolumeMount item); - - public A setToVolumeMounts(Integer index, V1VolumeMount item); - + public V1ContainerFluent.VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate); + public A addToVolumeMounts(Integer index,V1VolumeMount item); + public A setToVolumeMounts(Integer index,V1VolumeMount item); public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A addAllToVolumeMounts(Collection items); - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A removeAllFromVolumeMounts(Collection items); - public A removeMatchingFromVolumeMounts(Predicate predicate); - + /** * This method has been deprecated, please use method buildVolumeMounts instead. - * * @return The buildable object. */ @Deprecated public List getVolumeMounts(); - public List buildVolumeMounts(); - public V1VolumeMount buildVolumeMount(Integer index); - public V1VolumeMount buildFirstVolumeMount(); - public V1VolumeMount buildLastVolumeMount(); - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate); - public Boolean hasMatchingVolumeMount(Predicate predicate); - public A withVolumeMounts(List volumeMounts); - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts); - public Boolean hasVolumeMounts(); - public V1ContainerFluent.VolumeMountsNested addNewVolumeMount(); - public V1ContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item); - - public V1ContainerFluent.VolumeMountsNested setNewVolumeMountLike( - Integer index, V1VolumeMount item); - + public V1ContainerFluent.VolumeMountsNested setNewVolumeMountLike(Integer index,V1VolumeMount item); public V1ContainerFluent.VolumeMountsNested editVolumeMount(Integer index); - public V1ContainerFluent.VolumeMountsNested editFirstVolumeMount(); - public V1ContainerFluent.VolumeMountsNested editLastVolumeMount(); - - public V1ContainerFluent.VolumeMountsNested editMatchingVolumeMount( - Predicate predicate); - + public V1ContainerFluent.VolumeMountsNested editMatchingVolumeMount(Predicate predicate); public String getWorkingDir(); - public A withWorkingDir(String workingDir); - public Boolean hasWorkingDir(); - public A withStdin(); - public A withStdinOnce(); - public A withTty(); - - public interface EnvNested extends Nested, V1EnvVarFluent> { + public interface EnvNested extends Nested,V1EnvVarFluent>{ public N and(); - public N endEnv(); + } - - public interface EnvFromNested - extends Nested, V1EnvFromSourceFluent> { + public interface EnvFromNested extends Nested,V1EnvFromSourceFluent>{ public N and(); - public N endEnvFrom(); + } - - public interface LifecycleNested - extends Nested, V1LifecycleFluent> { + public interface LifecycleNested extends Nested,V1LifecycleFluent>{ public N and(); - public N endLifecycle(); + } - - public interface LivenessProbeNested - extends Nested, V1ProbeFluent> { + public interface LivenessProbeNested extends Nested,V1ProbeFluent>{ public N and(); - public N endLivenessProbe(); + } - - public interface PortsNested - extends Nested, V1ContainerPortFluent> { + public interface PortsNested extends Nested,V1ContainerPortFluent>{ public N and(); - public N endPort(); + } - - public interface ReadinessProbeNested - extends Nested, V1ProbeFluent> { + public interface ReadinessProbeNested extends Nested,V1ProbeFluent>{ public N and(); - public N endReadinessProbe(); + } - - public interface ResourcesNested - extends Nested, V1ResourceRequirementsFluent> { + public interface ResourcesNested extends Nested,V1ResourceRequirementsFluent>{ public N and(); - public N endResources(); + } - - public interface SecurityContextNested - extends Nested, V1SecurityContextFluent> { + public interface SecurityContextNested extends Nested,V1SecurityContextFluent>{ public N and(); - public N endSecurityContext(); + } - - public interface StartupProbeNested - extends Nested, V1ProbeFluent> { + public interface StartupProbeNested extends Nested,V1ProbeFluent>{ public N and(); - public N endStartupProbe(); + } - - public interface VolumeDevicesNested - extends Nested, V1VolumeDeviceFluent> { + public interface VolumeDevicesNested extends Nested,V1VolumeDeviceFluent>{ public N and(); - public N endVolumeDevice(); + } - - public interface VolumeMountsNested - extends Nested, V1VolumeMountFluent> { + public interface VolumeMountsNested extends Nested,V1VolumeMountFluent>{ public N and(); - public N endVolumeMount(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java index b1c10ccdb5..e54d4fd19d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java @@ -1,31 +1,27 @@ -/* -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 io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.List; +import java.lang.Boolean; import java.util.Collection; +import java.lang.Object; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerFluentImpl> extends BaseFluent - implements V1ContainerFluent { - public V1ContainerFluentImpl() {} +import java.lang.Integer; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerFluentImpl> extends BaseFluent implements V1ContainerFluent{ + public V1ContainerFluentImpl() { + } public V1ContainerFluentImpl(V1Container instance) { this.withArgs(instance.getArgs()); @@ -70,8 +66,8 @@ public V1ContainerFluentImpl(V1Container instance) { this.withVolumeMounts(instance.getVolumeMounts()); this.withWorkingDir(instance.getWorkingDir()); - } + } private List args; private List command; private ArrayList env; @@ -94,313 +90,133 @@ public V1ContainerFluentImpl(V1Container instance) { private ArrayList volumeDevices; private ArrayList volumeMounts; private String workingDir; - - public A addToArgs(Integer index, String item) { - if (this.args == null) { - this.args = new ArrayList(); - } + public A addToArgs(Integer index,String item) { + if (this.args == null) {this.args = new ArrayList();} this.args.add(index, item); - return (A) this; + return (A)this; } - - public A setToArgs(Integer index, String item) { - if (this.args == null) { - this.args = new ArrayList(); - } - this.args.set(index, item); - return (A) this; + public A setToArgs(Integer index,String item) { + if (this.args == null) {this.args = new ArrayList();} + this.args.set(index, item); return (A)this; } - public A addToArgs(java.lang.String... items) { - if (this.args == null) { - this.args = new ArrayList(); - } - for (String item : items) { - this.args.add(item); - } - return (A) this; + if (this.args == null) {this.args = new ArrayList();} + for (String item : items) {this.args.add(item);} return (A)this; } - public A addAllToArgs(Collection items) { - if (this.args == null) { - this.args = new ArrayList(); - } - for (String item : items) { - this.args.add(item); - } - return (A) this; + if (this.args == null) {this.args = new ArrayList();} + for (String item : items) {this.args.add(item);} return (A)this; } - public A removeFromArgs(java.lang.String... items) { - for (String item : items) { - if (this.args != null) { - this.args.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.args!= null){ this.args.remove(item);}} return (A)this; } - public A removeAllFromArgs(Collection items) { - for (String item : items) { - if (this.args != null) { - this.args.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.args!= null){ this.args.remove(item);}} return (A)this; } - public List getArgs() { return this.args; } - public String getArg(Integer index) { return this.args.get(index); } - public String getFirstArg() { return this.args.get(0); } - public String getLastArg() { return this.args.get(args.size() - 1); } - public String getMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: args) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: args) { if(predicate.test(item)){ return true;} } return false; } - public A withArgs(List args) { - if (args != null) { - this.args = new ArrayList(); - for (String item : args) { - this.addToArgs(item); - } - } else { - this.args = null; - } - return (A) this; + if (args != null) {this.args = new ArrayList(); for (String item : args){this.addToArgs(item);}} else { this.args = null;} return (A) this; } - public A withArgs(java.lang.String... args) { - if (this.args != null) { - this.args.clear(); - } - if (args != null) { - for (String item : args) { - this.addToArgs(item); - } - } - return (A) this; + if (this.args != null) {this.args.clear();} + if (args != null) {for (String item :args){ this.addToArgs(item);}} return (A) this; } - public Boolean hasArgs() { return args != null && !args.isEmpty(); } - - public A addToCommand(Integer index, String item) { - if (this.command == null) { - this.command = new ArrayList(); - } + public A addToCommand(Integer index,String item) { + if (this.command == null) {this.command = new ArrayList();} this.command.add(index, item); - return (A) this; + return (A)this; } - - public A setToCommand(Integer index, String item) { - if (this.command == null) { - this.command = new ArrayList(); - } - this.command.set(index, item); - return (A) this; + public A setToCommand(Integer index,String item) { + if (this.command == null) {this.command = new ArrayList();} + this.command.set(index, item); return (A)this; } - public A addToCommand(java.lang.String... items) { - if (this.command == null) { - this.command = new ArrayList(); - } - for (String item : items) { - this.command.add(item); - } - return (A) this; + if (this.command == null) {this.command = new ArrayList();} + for (String item : items) {this.command.add(item);} return (A)this; } - public A addAllToCommand(Collection items) { - if (this.command == null) { - this.command = new ArrayList(); - } - for (String item : items) { - this.command.add(item); - } - return (A) this; + if (this.command == null) {this.command = new ArrayList();} + for (String item : items) {this.command.add(item);} return (A)this; } - public A removeFromCommand(java.lang.String... items) { - for (String item : items) { - if (this.command != null) { - this.command.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.command!= null){ this.command.remove(item);}} return (A)this; } - public A removeAllFromCommand(Collection items) { - for (String item : items) { - if (this.command != null) { - this.command.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.command!= null){ this.command.remove(item);}} return (A)this; } - public List getCommand() { return this.command; } - public String getCommand(Integer index) { return this.command.get(index); } - public String getFirstCommand() { return this.command.get(0); } - public String getLastCommand() { return this.command.get(command.size() - 1); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: command) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: command) { if(predicate.test(item)){ return true;} } return false; } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; - } - return (A) this; + if (command != null) {this.command = new ArrayList(); for (String item : command){this.addToCommand(item);}} else { this.command = null;} return (A) this; } - public A withCommand(java.lang.String... command) { - if (this.command != null) { - this.command.clear(); - } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } - } - return (A) this; + if (this.command != null) {this.command.clear();} + if (command != null) {for (String item :command){ this.addToCommand(item);}} return (A) this; } - public Boolean hasCommand() { return command != null && !command.isEmpty(); } - - public A addToEnv(Integer index, V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); - } - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(index >= 0 ? index : _visitables.get("env").size(), builder); - this.env.add(index >= 0 ? index : env.size(), builder); - return (A) this; + public A addToEnv(Integer index,V1EnvVar item) { + if (this.env == null) {this.env = new ArrayList();} + V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(index >= 0 ? index : _visitables.get("env").size(), builder);this.env.add(index >= 0 ? index : env.size(), builder); return (A)this; } - - public A setToEnv(Integer index, V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); - } + public A setToEnv(Integer index,V1EnvVar item) { + if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= _visitables.get("env").size()) { - _visitables.get("env").add(builder); - } else { - _visitables.get("env").set(index, builder); - } - if (index < 0 || index >= env.size()) { - env.add(builder); - } else { - env.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("env").size()) { _visitables.get("env").add(builder); } else { _visitables.get("env").set(index, builder);} + if (index < 0 || index >= env.size()) { env.add(builder); } else { env.set(index, builder);} + return (A)this; } - public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) { - this.env = new ArrayList(); - } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); - this.env.add(builder); - } - return (A) this; + if (this.env == null) {this.env = new ArrayList();} + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; } - public A addAllToEnv(Collection items) { - if (this.env == null) { - this.env = new ArrayList(); - } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); - this.env.add(builder); - } - return (A) this; + if (this.env == null) {this.env = new ArrayList();} + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; } - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - if (this.env != null) { - this.env.remove(builder); - } - } - return (A) this; + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder);if (this.env != null) {this.env.remove(builder);}} return (A)this; } - public A removeAllFromEnv(Collection items) { - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - if (this.env != null) { - this.env.remove(builder); - } - } - return (A) this; + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder);if (this.env != null) {this.env.remove(builder);}} return (A)this; } - public A removeMatchingFromEnv(Predicate predicate) { if (env == null) return (A) this; final Iterator each = env.iterator(); @@ -412,198 +228,101 @@ public A removeMatchingFromEnv(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEnv instead. - * * @return The buildable object. */ @Deprecated public List getEnv() { return env != null ? build(env) : null; } - public List buildEnv() { return env != null ? build(env) : null; } - public V1EnvVar buildEnv(Integer index) { return this.env.get(index).build(); } - public V1EnvVar buildFirstEnv() { return this.env.get(0).build(); } - public V1EnvVar buildLastEnv() { return this.env.get(env.size() - 1).build(); } - public V1EnvVar buildMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EnvVarBuilder item: env) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EnvVarBuilder item: env) { if(predicate.test(item)){ return true;} } return false; } - public A withEnv(List env) { - if (this.env != null) { - _visitables.get("env").removeAll(this.env); - } - if (env != null) { - this.env = new ArrayList(); - for (V1EnvVar item : env) { - this.addToEnv(item); - } - } else { - this.env = null; - } - return (A) this; + if (this.env != null) { _visitables.get("env").removeAll(this.env);} + if (env != null) {this.env = new ArrayList(); for (V1EnvVar item : env){this.addToEnv(item);}} else { this.env = null;} return (A) this; } - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { - if (this.env != null) { - this.env.clear(); - } - if (env != null) { - for (V1EnvVar item : env) { - this.addToEnv(item); - } - } - return (A) this; + if (this.env != null) {this.env.clear();} + if (env != null) {for (V1EnvVar item :env){ this.addToEnv(item);}} return (A) this; } - public Boolean hasEnv() { return env != null && !env.isEmpty(); } - public V1ContainerFluent.EnvNested addNewEnv() { return new V1ContainerFluentImpl.EnvNestedImpl(); } - public V1ContainerFluent.EnvNested addNewEnvLike(V1EnvVar item) { return new V1ContainerFluentImpl.EnvNestedImpl(-1, item); } - - public V1ContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item) { + public V1ContainerFluent.EnvNested setNewEnvLike(Integer index,V1EnvVar item) { return new V1ContainerFluentImpl.EnvNestedImpl(index, item); } - public V1ContainerFluent.EnvNested editEnv(Integer index) { if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); return setNewEnvLike(index, buildEnv(index)); } - public V1ContainerFluent.EnvNested editFirstEnv() { if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); return setNewEnvLike(0, buildEnv(0)); } - public V1ContainerFluent.EnvNested editLastEnv() { int index = env.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty."); return setNewEnvLike(index, buildEnv(index)); } - public V1ContainerFluent.EnvNested editMatchingEnv(Predicate predicate) { int index = -1; - for (int i = 0; i < env.size(); i++) { - if (predicate.test(env.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(index >= 0 ? index : _visitables.get("envFrom").size(), builder); - this.envFrom.add(index >= 0 ? index : envFrom.size(), builder); - return (A) this; + public A addToEnvFrom(Integer index,V1EnvFromSource item) { + if (this.envFrom == null) {this.envFrom = new ArrayList();} + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(index >= 0 ? index : _visitables.get("envFrom").size(), builder);this.envFrom.add(index >= 0 ? index : envFrom.size(), builder); return (A)this; } - - public A setToEnvFrom(Integer index, V1EnvFromSource item) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); - } + public A setToEnvFrom(Integer index,V1EnvFromSource item) { + if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= _visitables.get("envFrom").size()) { - _visitables.get("envFrom").add(builder); - } else { - _visitables.get("envFrom").set(index, builder); - } - if (index < 0 || index >= envFrom.size()) { - envFrom.add(builder); - } else { - envFrom.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("envFrom").size()) { _visitables.get("envFrom").add(builder); } else { _visitables.get("envFrom").set(index, builder);} + if (index < 0 || index >= envFrom.size()) { envFrom.add(builder); } else { envFrom.set(index, builder);} + return (A)this; } - public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); - } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); - } - return (A) this; + if (this.envFrom == null) {this.envFrom = new ArrayList();} + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; } - public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); - } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); - } - return (A) this; + if (this.envFrom == null) {this.envFrom = new ArrayList();} + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; } - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - if (this.envFrom != null) { - this.envFrom.remove(builder); - } - } - return (A) this; + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder);if (this.envFrom != null) {this.envFrom.remove(builder);}} return (A)this; } - public A removeAllFromEnvFrom(Collection items) { - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - if (this.envFrom != null) { - this.envFrom.remove(builder); - } - } - return (A) this; + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder);if (this.envFrom != null) {this.envFrom.remove(builder);}} return (A)this; } - public A removeMatchingFromEnvFrom(Predicate predicate) { if (envFrom == null) return (A) this; final Iterator each = envFrom.iterator(); @@ -615,342 +334,196 @@ public A removeMatchingFromEnvFrom(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEnvFrom instead. - * * @return The buildable object. */ @Deprecated public List getEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public List buildEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public V1EnvFromSource buildEnvFrom(Integer index) { return this.envFrom.get(index).build(); } - public V1EnvFromSource buildFirstEnvFrom() { return this.envFrom.get(0).build(); } - public V1EnvFromSource buildLastEnvFrom() { return this.envFrom.get(envFrom.size() - 1).build(); } - public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EnvFromSourceBuilder item: envFrom) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EnvFromSourceBuilder item: envFrom) { if(predicate.test(item)){ return true;} } return false; } - public A withEnvFrom(List envFrom) { - if (this.envFrom != null) { - _visitables.get("envFrom").removeAll(this.envFrom); - } - if (envFrom != null) { - this.envFrom = new ArrayList(); - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } else { - this.envFrom = null; - } - return (A) this; + if (this.envFrom != null) { _visitables.get("envFrom").removeAll(this.envFrom);} + if (envFrom != null) {this.envFrom = new ArrayList(); for (V1EnvFromSource item : envFrom){this.addToEnvFrom(item);}} else { this.envFrom = null;} return (A) this; } - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) { - if (this.envFrom != null) { - this.envFrom.clear(); - } - if (envFrom != null) { - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } - return (A) this; + if (this.envFrom != null) {this.envFrom.clear();} + if (envFrom != null) {for (V1EnvFromSource item :envFrom){ this.addToEnvFrom(item);}} return (A) this; } - public Boolean hasEnvFrom() { return envFrom != null && !envFrom.isEmpty(); } - public V1ContainerFluent.EnvFromNested addNewEnvFrom() { return new V1ContainerFluentImpl.EnvFromNestedImpl(); } - public V1ContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { return new V1ContainerFluentImpl.EnvFromNestedImpl(-1, item); } - - public V1ContainerFluent.EnvFromNested setNewEnvFromLike(Integer index, V1EnvFromSource item) { + public V1ContainerFluent.EnvFromNested setNewEnvFromLike(Integer index,V1EnvFromSource item) { return new V1ContainerFluentImpl.EnvFromNestedImpl(index, item); } - public V1ContainerFluent.EnvFromNested editEnvFrom(Integer index) { - if (envFrom.size() <= index) - throw new RuntimeException("Can't edit envFrom. Index exceeds size."); + if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); return setNewEnvFromLike(index, buildEnvFrom(index)); } - public V1ContainerFluent.EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) - throw new RuntimeException("Can't edit first envFrom. The list is empty."); + if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); return setNewEnvFromLike(0, buildEnvFrom(0)); } - public V1ContainerFluent.EnvFromNested editLastEnvFrom() { int index = envFrom.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty."); return setNewEnvFromLike(index, buildEnvFrom(index)); } - - public V1ContainerFluent.EnvFromNested editMatchingEnvFrom( - Predicate predicate) { + public V1ContainerFluent.EnvFromNested editMatchingEnvFrom(Predicate predicate) { int index = -1; - for (int i = 0; i < envFrom.size(); i++) { - if (predicate.test(envFrom.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewLifecycle() { return new V1ContainerFluentImpl.LifecycleNestedImpl(); } - public V1ContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item) { return new V1ContainerFluentImpl.LifecycleNestedImpl(item); } - public V1ContainerFluent.LifecycleNested editLifecycle() { return withNewLifecycleLike(getLifecycle()); } - public V1ContainerFluent.LifecycleNested editOrNewLifecycle() { - return withNewLifecycleLike( - getLifecycle() != null ? getLifecycle() : new V1LifecycleBuilder().build()); + return withNewLifecycleLike(getLifecycle() != null ? getLifecycle(): new V1LifecycleBuilder().build()); } - public V1ContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return withNewLifecycleLike(getLifecycle() != null ? getLifecycle() : item); + return withNewLifecycleLike(getLifecycle() != null ? getLifecycle(): item); } - + /** * This method has been deprecated, please use method buildLivenessProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + return this.livenessProbe!=null ?this.livenessProbe.build():null; } - public V1Probe buildLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + return this.livenessProbe!=null ?this.livenessProbe.build():null; } - public A withLivenessProbe(V1Probe livenessProbe) { _visitables.get("livenessProbe").remove(this.livenessProbe); - if (livenessProbe != null) { - this.livenessProbe = new V1ProbeBuilder(livenessProbe); - _visitables.get("livenessProbe").add(this.livenessProbe); - } else { - this.livenessProbe = null; - _visitables.get("livenessProbe").remove(this.livenessProbe); - } - return (A) this; + if (livenessProbe!=null){ this.livenessProbe= new V1ProbeBuilder(livenessProbe); _visitables.get("livenessProbe").add(this.livenessProbe);} else { this.livenessProbe = null; _visitables.get("livenessProbe").remove(this.livenessProbe); } return (A) this; } - public Boolean hasLivenessProbe() { return this.livenessProbe != null; } - public V1ContainerFluent.LivenessProbeNested withNewLivenessProbe() { return new V1ContainerFluentImpl.LivenessProbeNestedImpl(); } - public V1ContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { return new V1ContainerFluentImpl.LivenessProbeNestedImpl(item); } - public V1ContainerFluent.LivenessProbeNested editLivenessProbe() { return withNewLivenessProbeLike(getLivenessProbe()); } - public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbe() { - return withNewLivenessProbeLike( - getLivenessProbe() != null ? getLivenessProbe() : new V1ProbeBuilder().build()); + return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe(): new V1ProbeBuilder().build()); } - public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe() : item); + return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - - public A addToPorts(Integer index, V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,V1ContainerPort item) { + if (this.ports == null) {this.ports = new ArrayList();} + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,V1ContainerPort item) { + if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -962,474 +535,282 @@ public A removeMatchingFromPorts(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public V1ContainerPort buildPort(Integer index) { return this.ports.get(index).build(); } - public V1ContainerPort buildFirstPort() { return this.ports.get(0).build(); } - public V1ContainerPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public V1ContainerPort buildMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ContainerPortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerPortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (V1ContainerPort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (V1ContainerPort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1ContainerFluent.PortsNested addNewPort() { return new V1ContainerFluentImpl.PortsNestedImpl(); } - public V1ContainerFluent.PortsNested addNewPortLike(V1ContainerPort item) { return new V1ContainerFluentImpl.PortsNestedImpl(-1, item); } - - public V1ContainerFluent.PortsNested setNewPortLike(Integer index, V1ContainerPort item) { + public V1ContainerFluent.PortsNested setNewPortLike(Integer index,V1ContainerPort item) { return new V1ContainerFluentImpl.PortsNestedImpl(index, item); } - public V1ContainerFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1ContainerFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1ContainerFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1ContainerFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1ContainerFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewReadinessProbe() { return new V1ContainerFluentImpl.ReadinessProbeNestedImpl(); } - public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { return new V1ContainerFluentImpl.ReadinessProbeNestedImpl(item); } - public V1ContainerFluent.ReadinessProbeNested editReadinessProbe() { return withNewReadinessProbeLike(getReadinessProbe()); } - public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbe() { - return withNewReadinessProbeLike( - getReadinessProbe() != null ? getReadinessProbe() : new V1ProbeBuilder().build()); + return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe(): new V1ProbeBuilder().build()); } - public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { - return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe() : item); + return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe(): item); } - + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public V1ResourceRequirements getResources() { - return this.resources != null ? this.resources.build() : null; + return this.resources!=null ?this.resources.build():null; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + return this.resources!=null ?this.resources.build():null; } - public A withResources(V1ResourceRequirements resources) { _visitables.get("resources").remove(this.resources); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - _visitables.get("resources").add(this.resources); - } else { - this.resources = null; - _visitables.get("resources").remove(this.resources); - } - return (A) this; + if (resources!=null){ this.resources= new V1ResourceRequirementsBuilder(resources); _visitables.get("resources").add(this.resources);} else { this.resources = null; _visitables.get("resources").remove(this.resources); } return (A) this; } - public Boolean hasResources() { return this.resources != null; } - public V1ContainerFluent.ResourcesNested withNewResources() { return new V1ContainerFluentImpl.ResourcesNestedImpl(); } - public V1ContainerFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { return new V1ContainerFluentImpl.ResourcesNestedImpl(item); } - public V1ContainerFluent.ResourcesNested editResources() { return withNewResourcesLike(getResources()); } - public V1ContainerFluent.ResourcesNested editOrNewResources() { - return withNewResourcesLike( - getResources() != null ? getResources() : new V1ResourceRequirementsBuilder().build()); + return withNewResourcesLike(getResources() != null ? getResources(): new V1ResourceRequirementsBuilder().build()); } - public V1ContainerFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(getResources() != null ? getResources() : item); + return withNewResourcesLike(getResources() != null ? getResources(): item); } - + /** * This method has been deprecated, please use method buildSecurityContext instead. - * * @return The buildable object. */ @Deprecated public V1SecurityContext getSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + return this.securityContext!=null ?this.securityContext.build():null; } - public V1SecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + return this.securityContext!=null ?this.securityContext.build():null; } - public A withSecurityContext(V1SecurityContext securityContext) { _visitables.get("securityContext").remove(this.securityContext); - if (securityContext != null) { - this.securityContext = new V1SecurityContextBuilder(securityContext); - _visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - _visitables.get("securityContext").remove(this.securityContext); - } - return (A) this; + if (securityContext!=null){ this.securityContext= new V1SecurityContextBuilder(securityContext); _visitables.get("securityContext").add(this.securityContext);} else { this.securityContext = null; _visitables.get("securityContext").remove(this.securityContext); } return (A) this; } - public Boolean hasSecurityContext() { return this.securityContext != null; } - public V1ContainerFluent.SecurityContextNested withNewSecurityContext() { return new V1ContainerFluentImpl.SecurityContextNestedImpl(); } - - public V1ContainerFluent.SecurityContextNested withNewSecurityContextLike( - V1SecurityContext item) { + public V1ContainerFluent.SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { return new V1ContainerFluentImpl.SecurityContextNestedImpl(item); } - public V1ContainerFluent.SecurityContextNested editSecurityContext() { return withNewSecurityContextLike(getSecurityContext()); } - public V1ContainerFluent.SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike( - getSecurityContext() != null - ? getSecurityContext() - : new V1SecurityContextBuilder().build()); + return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext(): new V1SecurityContextBuilder().build()); } - - public V1ContainerFluent.SecurityContextNested editOrNewSecurityContextLike( - V1SecurityContext item) { - return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext() : item); + public V1ContainerFluent.SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { + return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext(): item); } - + /** * This method has been deprecated, please use method buildStartupProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + return this.startupProbe!=null ?this.startupProbe.build():null; } - public V1Probe buildStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + return this.startupProbe!=null ?this.startupProbe.build():null; } - public A withStartupProbe(V1Probe startupProbe) { _visitables.get("startupProbe").remove(this.startupProbe); - if (startupProbe != null) { - this.startupProbe = new V1ProbeBuilder(startupProbe); - _visitables.get("startupProbe").add(this.startupProbe); - } else { - this.startupProbe = null; - _visitables.get("startupProbe").remove(this.startupProbe); - } - return (A) this; + if (startupProbe!=null){ this.startupProbe= new V1ProbeBuilder(startupProbe); _visitables.get("startupProbe").add(this.startupProbe);} else { this.startupProbe = null; _visitables.get("startupProbe").remove(this.startupProbe); } return (A) this; } - public Boolean hasStartupProbe() { return this.startupProbe != null; } - public V1ContainerFluent.StartupProbeNested withNewStartupProbe() { return new V1ContainerFluentImpl.StartupProbeNestedImpl(); } - public V1ContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item) { return new V1ContainerFluentImpl.StartupProbeNestedImpl(item); } - public V1ContainerFluent.StartupProbeNested editStartupProbe() { return withNewStartupProbeLike(getStartupProbe()); } - public V1ContainerFluent.StartupProbeNested editOrNewStartupProbe() { - return withNewStartupProbeLike( - getStartupProbe() != null ? getStartupProbe() : new V1ProbeBuilder().build()); + return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe(): new V1ProbeBuilder().build()); } - public V1ContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe() : item); + return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe(): item); } - public Boolean getStdin() { return this.stdin; } - public A withStdin(Boolean stdin) { - this.stdin = stdin; - return (A) this; + this.stdin=stdin; return (A) this; } - public Boolean hasStdin() { return this.stdin != null; } - public Boolean getStdinOnce() { return this.stdinOnce; } - public A withStdinOnce(Boolean stdinOnce) { - this.stdinOnce = stdinOnce; - return (A) this; + this.stdinOnce=stdinOnce; return (A) this; } - public Boolean hasStdinOnce() { return this.stdinOnce != null; } - public String getTerminationMessagePath() { return this.terminationMessagePath; } - public A withTerminationMessagePath(String terminationMessagePath) { - this.terminationMessagePath = terminationMessagePath; - return (A) this; + this.terminationMessagePath=terminationMessagePath; return (A) this; } - public Boolean hasTerminationMessagePath() { return this.terminationMessagePath != null; } - public String getTerminationMessagePolicy() { return this.terminationMessagePolicy; } - public A withTerminationMessagePolicy(String terminationMessagePolicy) { - this.terminationMessagePolicy = terminationMessagePolicy; - return (A) this; + this.terminationMessagePolicy=terminationMessagePolicy; return (A) this; } - public Boolean hasTerminationMessagePolicy() { return this.terminationMessagePolicy != null; } - public Boolean getTty() { return this.tty; } - public A withTty(Boolean tty) { - this.tty = tty; - return (A) this; + this.tty=tty; return (A) this; } - public Boolean hasTty() { return this.tty != null; } - - public A addToVolumeDevices(Integer index, V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables - .get("volumeDevices") - .add(index >= 0 ? index : _visitables.get("volumeDevices").size(), builder); - this.volumeDevices.add(index >= 0 ? index : volumeDevices.size(), builder); - return (A) this; + public A addToVolumeDevices(Integer index,V1VolumeDevice item) { + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(index >= 0 ? index : _visitables.get("volumeDevices").size(), builder);this.volumeDevices.add(index >= 0 ? index : volumeDevices.size(), builder); return (A)this; } - - public A setToVolumeDevices(Integer index, V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } + public A setToVolumeDevices(Integer index,V1VolumeDevice item) { + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= _visitables.get("volumeDevices").size()) { - _visitables.get("volumeDevices").add(builder); - } else { - _visitables.get("volumeDevices").set(index, builder); - } - if (index < 0 || index >= volumeDevices.size()) { - volumeDevices.add(builder); - } else { - volumeDevices.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumeDevices").size()) { _visitables.get("volumeDevices").add(builder); } else { _visitables.get("volumeDevices").set(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { volumeDevices.add(builder); } else { volumeDevices.set(index, builder);} + return (A)this; } - public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); - } - return (A) this; + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; } - public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); - } - return (A) this; + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; } - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - if (this.volumeDevices != null) { - this.volumeDevices.remove(builder); - } - } - return (A) this; + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder);if (this.volumeDevices != null) {this.volumeDevices.remove(builder);}} return (A)this; } - public A removeAllFromVolumeDevices(Collection items) { - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - if (this.volumeDevices != null) { - this.volumeDevices.remove(builder); - } - } - return (A) this; + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder);if (this.volumeDevices != null) {this.volumeDevices.remove(builder);}} return (A)this; } - public A removeMatchingFromVolumeDevices(Predicate predicate) { if (volumeDevices == null) return (A) this; final Iterator each = volumeDevices.iterator(); @@ -1441,204 +822,101 @@ public A removeMatchingFromVolumeDevices(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumeDevices instead. - * * @return The buildable object. */ @Deprecated public List getVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public List buildVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public V1VolumeDevice buildVolumeDevice(Integer index) { return this.volumeDevices.get(index).build(); } - public V1VolumeDevice buildFirstVolumeDevice() { return this.volumeDevices.get(0).build(); } - public V1VolumeDevice buildLastVolumeDevice() { return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeDeviceBuilder item: volumeDevices) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeDeviceBuilder item: volumeDevices) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumeDevices(List volumeDevices) { - if (this.volumeDevices != null) { - _visitables.get("volumeDevices").removeAll(this.volumeDevices); - } - if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } - } else { - this.volumeDevices = null; - } - return (A) this; + if (this.volumeDevices != null) { _visitables.get("volumeDevices").removeAll(this.volumeDevices);} + if (volumeDevices != null) {this.volumeDevices = new ArrayList(); for (V1VolumeDevice item : volumeDevices){this.addToVolumeDevices(item);}} else { this.volumeDevices = null;} return (A) this; } - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) { - if (this.volumeDevices != null) { - this.volumeDevices.clear(); - } - if (volumeDevices != null) { - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } - } - return (A) this; + if (this.volumeDevices != null) {this.volumeDevices.clear();} + if (volumeDevices != null) {for (V1VolumeDevice item :volumeDevices){ this.addToVolumeDevices(item);}} return (A) this; } - public Boolean hasVolumeDevices() { return volumeDevices != null && !volumeDevices.isEmpty(); } - public V1ContainerFluent.VolumeDevicesNested addNewVolumeDevice() { return new V1ContainerFluentImpl.VolumeDevicesNestedImpl(); } - public V1ContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { return new V1ContainerFluentImpl.VolumeDevicesNestedImpl(-1, item); } - - public V1ContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( - Integer index, V1VolumeDevice item) { + public V1ContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike(Integer index,V1VolumeDevice item) { return new V1ContainerFluentImpl.VolumeDevicesNestedImpl(index, item); } - public V1ContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index) { - if (volumeDevices.size() <= index) - throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); + if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - public V1ContainerFluent.VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) - throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); + if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); } - public V1ContainerFluent.VolumeDevicesNested editLastVolumeDevice() { int index = volumeDevices.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty."); return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - - public V1ContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( - Predicate predicate) { + public V1ContainerFluent.VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { int index = -1; - for (int i = 0; i < volumeDevices.size(); i++) { - if (predicate.test(volumeDevices.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables - .get("volumeMounts") - .add(index >= 0 ? index : _visitables.get("volumeMounts").size(), builder); - this.volumeMounts.add(index >= 0 ? index : volumeMounts.size(), builder); - return (A) this; + public A addToVolumeMounts(Integer index,V1VolumeMount item) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(index >= 0 ? index : _visitables.get("volumeMounts").size(), builder);this.volumeMounts.add(index >= 0 ? index : volumeMounts.size(), builder); return (A)this; } - - public A setToVolumeMounts(Integer index, V1VolumeMount item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); - } + public A setToVolumeMounts(Integer index,V1VolumeMount item) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= _visitables.get("volumeMounts").size()) { - _visitables.get("volumeMounts").add(builder); - } else { - _visitables.get("volumeMounts").set(index, builder); - } - if (index < 0 || index >= volumeMounts.size()) { - volumeMounts.add(builder); - } else { - volumeMounts.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumeMounts").size()) { _visitables.get("volumeMounts").add(builder); } else { _visitables.get("volumeMounts").set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { volumeMounts.add(builder); } else { volumeMounts.set(index, builder);} + return (A)this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); - } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); - } - return (A) this; + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); - } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); - } - return (A) this; + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").remove(builder); - if (this.volumeMounts != null) { - this.volumeMounts.remove(builder); - } - } - return (A) this; + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder);if (this.volumeMounts != null) {this.volumeMounts.remove(builder);}} return (A)this; } - public A removeAllFromVolumeMounts(Collection items) { - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").remove(builder); - if (this.volumeMounts != null) { - this.volumeMounts.remove(builder); - } - } - return (A) this; + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder);if (this.volumeMounts != null) {this.volumeMounts.remove(builder);}} return (A)this; } - public A removeMatchingFromVolumeMounts(Predicate predicate) { if (volumeMounts == null) return (A) this; final Iterator each = volumeMounts.iterator(); @@ -1650,573 +928,343 @@ public A removeMatchingFromVolumeMounts(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumeMounts instead. - * * @return The buildable object. */ @Deprecated public List getVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public List buildVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public V1VolumeMount buildVolumeMount(Integer index) { return this.volumeMounts.get(index).build(); } - public V1VolumeMount buildFirstVolumeMount() { return this.volumeMounts.get(0).build(); } - public V1VolumeMount buildLastVolumeMount() { return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeMountBuilder item: volumeMounts) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeMountBuilder item: volumeMounts) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumeMounts(List volumeMounts) { - if (this.volumeMounts != null) { - _visitables.get("volumeMounts").removeAll(this.volumeMounts); - } - if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); - } - } else { - this.volumeMounts = null; - } - return (A) this; + if (this.volumeMounts != null) { _visitables.get("volumeMounts").removeAll(this.volumeMounts);} + if (volumeMounts != null) {this.volumeMounts = new ArrayList(); for (V1VolumeMount item : volumeMounts){this.addToVolumeMounts(item);}} else { this.volumeMounts = null;} return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) { - if (this.volumeMounts != null) { - this.volumeMounts.clear(); - } - if (volumeMounts != null) { - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); - } - } - return (A) this; + if (this.volumeMounts != null) {this.volumeMounts.clear();} + if (volumeMounts != null) {for (V1VolumeMount item :volumeMounts){ this.addToVolumeMounts(item);}} return (A) this; } - public Boolean hasVolumeMounts() { return volumeMounts != null && !volumeMounts.isEmpty(); } - public V1ContainerFluent.VolumeMountsNested addNewVolumeMount() { return new V1ContainerFluentImpl.VolumeMountsNestedImpl(); } - public V1ContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { return new V1ContainerFluentImpl.VolumeMountsNestedImpl(-1, item); } - - public V1ContainerFluent.VolumeMountsNested setNewVolumeMountLike( - Integer index, V1VolumeMount item) { + public V1ContainerFluent.VolumeMountsNested setNewVolumeMountLike(Integer index,V1VolumeMount item) { return new V1ContainerFluentImpl.VolumeMountsNestedImpl(index, item); } - public V1ContainerFluent.VolumeMountsNested editVolumeMount(Integer index) { - if (volumeMounts.size() <= index) - throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); + if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); return setNewVolumeMountLike(index, buildVolumeMount(index)); } - public V1ContainerFluent.VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) - throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); + if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); return setNewVolumeMountLike(0, buildVolumeMount(0)); } - public V1ContainerFluent.VolumeMountsNested editLastVolumeMount() { int index = volumeMounts.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty."); return setNewVolumeMountLike(index, buildVolumeMount(index)); } - - public V1ContainerFluent.VolumeMountsNested editMatchingVolumeMount( - Predicate predicate) { + public V1ContainerFluent.VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { int index = -1; - for (int i = 0; i < volumeMounts.size(); i++) { - if (predicate.test(volumeMounts.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1EnvVarFluentImpl> - implements V1ContainerFluent.EnvNested, Nested { - EnvNestedImpl(Integer index, V1EnvVar item) { + class EnvNestedImpl extends V1EnvVarFluentImpl> implements V1ContainerFluent.EnvNested,Nested{ + EnvNestedImpl(Integer index,V1EnvVar item) { this.index = index; this.builder = new V1EnvVarBuilder(this, item); } - EnvNestedImpl() { this.index = -1; this.builder = new V1EnvVarBuilder(this); } - V1EnvVarBuilder builder; Integer index; - public N and() { - return (N) V1ContainerFluentImpl.this.setToEnv(index, builder.build()); + return (N) V1ContainerFluentImpl.this.setToEnv(index,builder.build()); } - public N endEnv() { return and(); } + } - - class EnvFromNestedImpl extends V1EnvFromSourceFluentImpl> - implements V1ContainerFluent.EnvFromNested, Nested { - EnvFromNestedImpl(Integer index, V1EnvFromSource item) { + class EnvFromNestedImpl extends V1EnvFromSourceFluentImpl> implements V1ContainerFluent.EnvFromNested,Nested{ + EnvFromNestedImpl(Integer index,V1EnvFromSource item) { this.index = index; this.builder = new V1EnvFromSourceBuilder(this, item); } - EnvFromNestedImpl() { this.index = -1; this.builder = new V1EnvFromSourceBuilder(this); } - V1EnvFromSourceBuilder builder; Integer index; - public N and() { - return (N) V1ContainerFluentImpl.this.setToEnvFrom(index, builder.build()); + return (N) V1ContainerFluentImpl.this.setToEnvFrom(index,builder.build()); } - public N endEnvFrom() { return and(); } + } - - class LifecycleNestedImpl extends V1LifecycleFluentImpl> - implements V1ContainerFluent.LifecycleNested, Nested { + class LifecycleNestedImpl extends V1LifecycleFluentImpl> implements V1ContainerFluent.LifecycleNested,Nested{ LifecycleNestedImpl(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } - LifecycleNestedImpl() { this.builder = new V1LifecycleBuilder(this); } - V1LifecycleBuilder builder; - public N and() { return (N) V1ContainerFluentImpl.this.withLifecycle(builder.build()); } - public N endLifecycle() { return and(); } + } - - class LivenessProbeNestedImpl - extends V1ProbeFluentImpl> - implements V1ContainerFluent.LivenessProbeNested, Nested { + class LivenessProbeNestedImpl extends V1ProbeFluentImpl> implements V1ContainerFluent.LivenessProbeNested,Nested{ LivenessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - LivenessProbeNestedImpl() { this.builder = new V1ProbeBuilder(this); } - V1ProbeBuilder builder; - public N and() { return (N) V1ContainerFluentImpl.this.withLivenessProbe(builder.build()); } - public N endLivenessProbe() { return and(); } + } - - class PortsNestedImpl extends V1ContainerPortFluentImpl> - implements V1ContainerFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, V1ContainerPort item) { + class PortsNestedImpl extends V1ContainerPortFluentImpl> implements V1ContainerFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new V1ContainerPortBuilder(this); } - V1ContainerPortBuilder builder; Integer index; - public N and() { - return (N) V1ContainerFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1ContainerFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } - - class ReadinessProbeNestedImpl - extends V1ProbeFluentImpl> - implements V1ContainerFluent.ReadinessProbeNested, Nested { + class ReadinessProbeNestedImpl extends V1ProbeFluentImpl> implements V1ContainerFluent.ReadinessProbeNested,Nested{ ReadinessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - ReadinessProbeNestedImpl() { this.builder = new V1ProbeBuilder(this); } - V1ProbeBuilder builder; - public N and() { return (N) V1ContainerFluentImpl.this.withReadinessProbe(builder.build()); } - public N endReadinessProbe() { return and(); } + } - - class ResourcesNestedImpl - extends V1ResourceRequirementsFluentImpl> - implements V1ContainerFluent.ResourcesNested, Nested { + class ResourcesNestedImpl extends V1ResourceRequirementsFluentImpl> implements V1ContainerFluent.ResourcesNested,Nested{ ResourcesNestedImpl(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - ResourcesNestedImpl() { this.builder = new V1ResourceRequirementsBuilder(this); } - V1ResourceRequirementsBuilder builder; - public N and() { return (N) V1ContainerFluentImpl.this.withResources(builder.build()); } - public N endResources() { return and(); } + } - - class SecurityContextNestedImpl - extends V1SecurityContextFluentImpl> - implements V1ContainerFluent.SecurityContextNested, Nested { + class SecurityContextNestedImpl extends V1SecurityContextFluentImpl> implements V1ContainerFluent.SecurityContextNested,Nested{ SecurityContextNestedImpl(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } - SecurityContextNestedImpl() { this.builder = new V1SecurityContextBuilder(this); } - V1SecurityContextBuilder builder; - public N and() { return (N) V1ContainerFluentImpl.this.withSecurityContext(builder.build()); } - public N endSecurityContext() { return and(); } + } - - class StartupProbeNestedImpl extends V1ProbeFluentImpl> - implements V1ContainerFluent.StartupProbeNested, Nested { + class StartupProbeNestedImpl extends V1ProbeFluentImpl> implements V1ContainerFluent.StartupProbeNested,Nested{ StartupProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - StartupProbeNestedImpl() { this.builder = new V1ProbeBuilder(this); } - V1ProbeBuilder builder; - public N and() { return (N) V1ContainerFluentImpl.this.withStartupProbe(builder.build()); } - public N endStartupProbe() { return and(); } + } - - class VolumeDevicesNestedImpl - extends V1VolumeDeviceFluentImpl> - implements V1ContainerFluent.VolumeDevicesNested, Nested { - VolumeDevicesNestedImpl(Integer index, V1VolumeDevice item) { + class VolumeDevicesNestedImpl extends V1VolumeDeviceFluentImpl> implements V1ContainerFluent.VolumeDevicesNested,Nested{ + VolumeDevicesNestedImpl(Integer index,V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } - VolumeDevicesNestedImpl() { this.index = -1; this.builder = new V1VolumeDeviceBuilder(this); } - V1VolumeDeviceBuilder builder; Integer index; - public N and() { - return (N) V1ContainerFluentImpl.this.setToVolumeDevices(index, builder.build()); + return (N) V1ContainerFluentImpl.this.setToVolumeDevices(index,builder.build()); } - public N endVolumeDevice() { return and(); } + } - - class VolumeMountsNestedImpl - extends V1VolumeMountFluentImpl> - implements V1ContainerFluent.VolumeMountsNested, Nested { - VolumeMountsNestedImpl(Integer index, V1VolumeMount item) { + class VolumeMountsNestedImpl extends V1VolumeMountFluentImpl> implements V1ContainerFluent.VolumeMountsNested,Nested{ + VolumeMountsNestedImpl(Integer index,V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } - VolumeMountsNestedImpl() { this.index = -1; this.builder = new V1VolumeMountBuilder(this); } - V1VolumeMountBuilder builder; Integer index; - public N and() { - return (N) V1ContainerFluentImpl.this.setToVolumeMounts(index, builder.build()); + return (N) V1ContainerFluentImpl.this.setToVolumeMounts(index,builder.build()); } - public N endVolumeMount() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java index e082ac2155..b6fb0b567c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ContainerImageBuilder extends V1ContainerImageFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerImageBuilder extends V1ContainerImageFluentImpl implements VisitableBuilder{ public V1ContainerImageBuilder() { this(false); } - public V1ContainerImageBuilder(Boolean validationEnabled) { this(new V1ContainerImage(), validationEnabled); } - public V1ContainerImageBuilder(V1ContainerImageFluent fluent) { this(fluent, false); } - - public V1ContainerImageBuilder(V1ContainerImageFluent fluent, Boolean validationEnabled) { + public V1ContainerImageBuilder(V1ContainerImageFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerImage(), validationEnabled); } - - public V1ContainerImageBuilder(V1ContainerImageFluent fluent, V1ContainerImage instance) { + public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance) { this(fluent, instance, false); } - - public V1ContainerImageBuilder( - V1ContainerImageFluent fluent, V1ContainerImage instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNames(instance.getNames()); fluent.withSizeBytes(instance.getSizeBytes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerImageBuilder(V1ContainerImage instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerImageBuilder(V1ContainerImage instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerImageBuilder(V1ContainerImage instance,Boolean validationEnabled) { + this.fluent = this; this.withNames(instance.getNames()); this.withSizeBytes(instance.getSizeBytes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerImageFluent fluent; Boolean validationEnabled; - public V1ContainerImage build() { V1ContainerImage buildable = new V1ContainerImage(); buildable.setNames(fluent.getNames()); buildable.setSizeBytes(fluent.getSizeBytes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java index 16343d8b1e..2aa4f2d95c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java @@ -1,57 +1,36 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Long; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1ContainerImageFluent> extends Fluent { - public A addToNames(Integer index, String item); - - public A setToNames(Integer index, String item); - + /** + * Generated + */ +public interface V1ContainerImageFluent> extends Fluent{ + public A addToNames(Integer index,String item); + public A setToNames(Integer index,String item); public A addToNames(java.lang.String... items); - public A addAllToNames(Collection items); - public A removeFromNames(java.lang.String... items); - public A removeAllFromNames(Collection items); - public List getNames(); - public String getName(Integer index); - public String getFirstName(); - public String getLastName(); - public String getMatchingName(Predicate predicate); - public Boolean hasMatchingName(Predicate predicate); - public A withNames(List names); - public A withNames(java.lang.String... names); - public Boolean hasNames(); - public Long getSizeBytes(); - public A withSizeBytes(Long sizeBytes); - public Boolean hasSizeBytes(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java index c65a904182..7d210499fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java @@ -1,193 +1,110 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerImageFluentImpl> extends BaseFluent - implements V1ContainerImageFluent { - public V1ContainerImageFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerImageFluentImpl> extends BaseFluent implements V1ContainerImageFluent{ + public V1ContainerImageFluentImpl() { + } public V1ContainerImageFluentImpl(V1ContainerImage instance) { this.withNames(instance.getNames()); this.withSizeBytes(instance.getSizeBytes()); - } + } private List names; private Long sizeBytes; - - public A addToNames(Integer index, String item) { - if (this.names == null) { - this.names = new ArrayList(); - } + public A addToNames(Integer index,String item) { + if (this.names == null) {this.names = new ArrayList();} this.names.add(index, item); - return (A) this; + return (A)this; } - - public A setToNames(Integer index, String item) { - if (this.names == null) { - this.names = new ArrayList(); - } - this.names.set(index, item); - return (A) this; + public A setToNames(Integer index,String item) { + if (this.names == null) {this.names = new ArrayList();} + this.names.set(index, item); return (A)this; } - public A addToNames(java.lang.String... items) { - if (this.names == null) { - this.names = new ArrayList(); - } - for (String item : items) { - this.names.add(item); - } - return (A) this; + if (this.names == null) {this.names = new ArrayList();} + for (String item : items) {this.names.add(item);} return (A)this; } - public A addAllToNames(Collection items) { - if (this.names == null) { - this.names = new ArrayList(); - } - for (String item : items) { - this.names.add(item); - } - return (A) this; + if (this.names == null) {this.names = new ArrayList();} + for (String item : items) {this.names.add(item);} return (A)this; } - public A removeFromNames(java.lang.String... items) { - for (String item : items) { - if (this.names != null) { - this.names.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.names!= null){ this.names.remove(item);}} return (A)this; } - public A removeAllFromNames(Collection items) { - for (String item : items) { - if (this.names != null) { - this.names.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.names!= null){ this.names.remove(item);}} return (A)this; } - public List getNames() { return this.names; } - public String getName(Integer index) { return this.names.get(index); } - public String getFirstName() { return this.names.get(0); } - public String getLastName() { return this.names.get(names.size() - 1); } - public String getMatchingName(Predicate predicate) { - for (String item : names) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: names) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingName(Predicate predicate) { - for (String item : names) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: names) { if(predicate.test(item)){ return true;} } return false; } - public A withNames(List names) { - if (names != null) { - this.names = new ArrayList(); - for (String item : names) { - this.addToNames(item); - } - } else { - this.names = null; - } - return (A) this; + if (names != null) {this.names = new ArrayList(); for (String item : names){this.addToNames(item);}} else { this.names = null;} return (A) this; } - public A withNames(java.lang.String... names) { - if (this.names != null) { - this.names.clear(); - } - if (names != null) { - for (String item : names) { - this.addToNames(item); - } - } - return (A) this; + if (this.names != null) {this.names.clear();} + if (names != null) {for (String item :names){ this.addToNames(item);}} return (A) this; } - public Boolean hasNames() { return names != null && !names.isEmpty(); } - public Long getSizeBytes() { return this.sizeBytes; } - public A withSizeBytes(Long sizeBytes) { - this.sizeBytes = sizeBytes; - return (A) this; + this.sizeBytes=sizeBytes; return (A) this; } - public Boolean hasSizeBytes() { return this.sizeBytes != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerImageFluentImpl that = (V1ContainerImageFluentImpl) o; - if (names != null ? !names.equals(that.names) : that.names != null) return false; - if (sizeBytes != null ? !sizeBytes.equals(that.sizeBytes) : that.sizeBytes != null) - return false; + if (names != null ? !names.equals(that.names) :that.names != null) return false; + if (sizeBytes != null ? !sizeBytes.equals(that.sizeBytes) :that.sizeBytes != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(names, sizeBytes, super.hashCode()); + return java.util.Objects.hash(names, sizeBytes, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (names != null && !names.isEmpty()) { - sb.append("names:"); - sb.append(names + ","); - } - if (sizeBytes != null) { - sb.append("sizeBytes:"); - sb.append(sizeBytes); - } + if (names != null && !names.isEmpty()) { sb.append("names:"); sb.append(names + ","); } + if (sizeBytes != null) { sb.append("sizeBytes:"); sb.append(sizeBytes); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java index 20a169b7e8..1a392422f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ContainerPortBuilder extends V1ContainerPortFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerPortBuilder extends V1ContainerPortFluentImpl implements VisitableBuilder{ public V1ContainerPortBuilder() { this(false); } - public V1ContainerPortBuilder(Boolean validationEnabled) { this(new V1ContainerPort(), validationEnabled); } - public V1ContainerPortBuilder(V1ContainerPortFluent fluent) { this(fluent, false); } - - public V1ContainerPortBuilder(V1ContainerPortFluent fluent, Boolean validationEnabled) { + public V1ContainerPortBuilder(V1ContainerPortFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerPort(), validationEnabled); } - - public V1ContainerPortBuilder(V1ContainerPortFluent fluent, V1ContainerPort instance) { + public V1ContainerPortBuilder(V1ContainerPortFluent fluent,V1ContainerPort instance) { this(fluent, instance, false); } - - public V1ContainerPortBuilder( - V1ContainerPortFluent fluent, V1ContainerPort instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerPortBuilder(V1ContainerPortFluent fluent,V1ContainerPort instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerPort(instance.getContainerPort()); fluent.withHostIP(instance.getHostIP()); @@ -49,15 +30,13 @@ public V1ContainerPortBuilder( fluent.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerPortBuilder(V1ContainerPort instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerPortBuilder(V1ContainerPort instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerPortBuilder(V1ContainerPort instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerPort(instance.getContainerPort()); this.withHostIP(instance.getHostIP()); @@ -68,12 +47,10 @@ public V1ContainerPortBuilder(V1ContainerPort instance, Boolean validationEnable this.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerPortFluent fluent; Boolean validationEnabled; - public V1ContainerPort build() { V1ContainerPort buildable = new V1ContainerPort(); buildable.setContainerPort(fluent.getContainerPort()); @@ -83,4 +60,5 @@ public V1ContainerPort build() { buildable.setProtocol(fluent.getProtocol()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java index 13ea5647fc..7b0d6cf73b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java @@ -1,48 +1,28 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ContainerPortFluent> extends Fluent { + /** + * Generated + */ +public interface V1ContainerPortFluent> extends Fluent{ public Integer getContainerPort(); - public A withContainerPort(Integer containerPort); - public Boolean hasContainerPort(); - public String getHostIP(); - public A withHostIP(String hostIP); - public Boolean hasHostIP(); - public Integer getHostPort(); - public A withHostPort(Integer hostPort); - public Boolean hasHostPort(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getProtocol(); - public A withProtocol(String protocol); - public Boolean hasProtocol(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java index 8ebd78792c..804809ea47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java @@ -1,25 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerPortFluentImpl> extends BaseFluent - implements V1ContainerPortFluent { - public V1ContainerPortFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerPortFluentImpl> extends BaseFluent implements V1ContainerPortFluent{ + public V1ContainerPortFluentImpl() { + } public V1ContainerPortFluentImpl(V1ContainerPort instance) { this.withContainerPort(instance.getContainerPort()); @@ -30,122 +24,82 @@ public V1ContainerPortFluentImpl(V1ContainerPort instance) { this.withName(instance.getName()); this.withProtocol(instance.getProtocol()); - } + } private Integer containerPort; private String hostIP; private Integer hostPort; private String name; private String protocol; - public Integer getContainerPort() { return this.containerPort; } - public A withContainerPort(Integer containerPort) { - this.containerPort = containerPort; - return (A) this; + this.containerPort=containerPort; return (A) this; } - public Boolean hasContainerPort() { return this.containerPort != null; } - public String getHostIP() { return this.hostIP; } - public A withHostIP(String hostIP) { - this.hostIP = hostIP; - return (A) this; + this.hostIP=hostIP; return (A) this; } - public Boolean hasHostIP() { return this.hostIP != null; } - public Integer getHostPort() { return this.hostPort; } - public A withHostPort(Integer hostPort) { - this.hostPort = hostPort; - return (A) this; + this.hostPort=hostPort; return (A) this; } - public Boolean hasHostPort() { return this.hostPort != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + this.protocol=protocol; return (A) this; } - public Boolean hasProtocol() { return this.protocol != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerPortFluentImpl that = (V1ContainerPortFluentImpl) o; - if (containerPort != null - ? !containerPort.equals(that.containerPort) - : that.containerPort != null) return false; - if (hostIP != null ? !hostIP.equals(that.hostIP) : that.hostIP != null) return false; - if (hostPort != null ? !hostPort.equals(that.hostPort) : that.hostPort != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; + if (containerPort != null ? !containerPort.equals(that.containerPort) :that.containerPort != null) return false; + if (hostIP != null ? !hostIP.equals(that.hostIP) :that.hostIP != null) return false; + if (hostPort != null ? !hostPort.equals(that.hostPort) :that.hostPort != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (protocol != null ? !protocol.equals(that.protocol) :that.protocol != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerPort, hostIP, hostPort, name, protocol, super.hashCode()); + return java.util.Objects.hash(containerPort, hostIP, hostPort, name, protocol, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerPort != null) { - sb.append("containerPort:"); - sb.append(containerPort + ","); - } - if (hostIP != null) { - sb.append("hostIP:"); - sb.append(hostIP + ","); - } - if (hostPort != null) { - sb.append("hostPort:"); - sb.append(hostPort + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (protocol != null) { - sb.append("protocol:"); - sb.append(protocol); - } + if (containerPort != null) { sb.append("containerPort:"); sb.append(containerPort + ","); } + if (hostIP != null) { sb.append("hostIP:"); sb.append(hostIP + ","); } + if (hostPort != null) { sb.append("hostPort:"); sb.append(hostPort + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java index 6726ad54f8..8d33a094c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ContainerStateBuilder extends V1ContainerStateFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerStateBuilder extends V1ContainerStateFluentImpl implements VisitableBuilder{ public V1ContainerStateBuilder() { this(false); } - public V1ContainerStateBuilder(Boolean validationEnabled) { this(new V1ContainerState(), validationEnabled); } - public V1ContainerStateBuilder(V1ContainerStateFluent fluent) { this(fluent, false); } - - public V1ContainerStateBuilder(V1ContainerStateFluent fluent, Boolean validationEnabled) { + public V1ContainerStateBuilder(V1ContainerStateFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerState(), validationEnabled); } - - public V1ContainerStateBuilder(V1ContainerStateFluent fluent, V1ContainerState instance) { + public V1ContainerStateBuilder(V1ContainerStateFluent fluent,V1ContainerState instance) { this(fluent, instance, false); } - - public V1ContainerStateBuilder( - V1ContainerStateFluent fluent, V1ContainerState instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerStateBuilder(V1ContainerStateFluent fluent,V1ContainerState instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRunning(instance.getRunning()); fluent.withTerminated(instance.getTerminated()); fluent.withWaiting(instance.getWaiting()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerStateBuilder(V1ContainerState instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerStateBuilder(V1ContainerState instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerStateBuilder(V1ContainerState instance,Boolean validationEnabled) { + this.fluent = this; this.withRunning(instance.getRunning()); this.withTerminated(instance.getTerminated()); this.withWaiting(instance.getWaiting()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerStateFluent fluent; Boolean validationEnabled; - public V1ContainerState build() { V1ContainerState buildable = new V1ContainerState(); buildable.setRunning(fluent.getRunning()); @@ -73,4 +50,5 @@ public V1ContainerState build() { buildable.setWaiting(fluent.getWaiting()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java index d5a0e35dd7..45e2369855 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java @@ -1,116 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ContainerStateFluent> extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ContainerStateFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildRunning instead. - * * @return The buildable object. */ @Deprecated public V1ContainerStateRunning getRunning(); - public V1ContainerStateRunning buildRunning(); - public A withRunning(V1ContainerStateRunning running); - public Boolean hasRunning(); - public V1ContainerStateFluent.RunningNested withNewRunning(); - public V1ContainerStateFluent.RunningNested withNewRunningLike(V1ContainerStateRunning item); - public V1ContainerStateFluent.RunningNested editRunning(); - public V1ContainerStateFluent.RunningNested editOrNewRunning(); - public V1ContainerStateFluent.RunningNested editOrNewRunningLike(V1ContainerStateRunning item); - + /** * This method has been deprecated, please use method buildTerminated instead. - * * @return The buildable object. */ @Deprecated public V1ContainerStateTerminated getTerminated(); - public V1ContainerStateTerminated buildTerminated(); - public A withTerminated(V1ContainerStateTerminated terminated); - public Boolean hasTerminated(); - public V1ContainerStateFluent.TerminatedNested withNewTerminated(); - - public V1ContainerStateFluent.TerminatedNested withNewTerminatedLike( - V1ContainerStateTerminated item); - + public V1ContainerStateFluent.TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item); public V1ContainerStateFluent.TerminatedNested editTerminated(); - public V1ContainerStateFluent.TerminatedNested editOrNewTerminated(); - - public V1ContainerStateFluent.TerminatedNested editOrNewTerminatedLike( - V1ContainerStateTerminated item); - + public V1ContainerStateFluent.TerminatedNested editOrNewTerminatedLike(V1ContainerStateTerminated item); + /** * This method has been deprecated, please use method buildWaiting instead. - * * @return The buildable object. */ @Deprecated public V1ContainerStateWaiting getWaiting(); - public V1ContainerStateWaiting buildWaiting(); - public A withWaiting(V1ContainerStateWaiting waiting); - public Boolean hasWaiting(); - public V1ContainerStateFluent.WaitingNested withNewWaiting(); - public V1ContainerStateFluent.WaitingNested withNewWaitingLike(V1ContainerStateWaiting item); - public V1ContainerStateFluent.WaitingNested editWaiting(); - public V1ContainerStateFluent.WaitingNested editOrNewWaiting(); - public V1ContainerStateFluent.WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item); - - public interface RunningNested - extends Nested, V1ContainerStateRunningFluent> { + public interface RunningNested extends Nested,V1ContainerStateRunningFluent>{ public N and(); - public N endRunning(); + } - - public interface TerminatedNested - extends Nested, - V1ContainerStateTerminatedFluent> { + public interface TerminatedNested extends Nested,V1ContainerStateTerminatedFluent>{ public N and(); - public N endTerminated(); + } - - public interface WaitingNested - extends Nested, V1ContainerStateWaitingFluent> { + public interface WaitingNested extends Nested,V1ContainerStateWaitingFluent>{ public N and(); - public N endWaiting(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java index 95005ec0ff..c2a365d796 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java @@ -1,294 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerStateFluentImpl> extends BaseFluent - implements V1ContainerStateFluent { - public V1ContainerStateFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerStateFluentImpl> extends BaseFluent implements V1ContainerStateFluent{ + public V1ContainerStateFluentImpl() { + } public V1ContainerStateFluentImpl(V1ContainerState instance) { this.withRunning(instance.getRunning()); this.withTerminated(instance.getTerminated()); this.withWaiting(instance.getWaiting()); - } + } private V1ContainerStateRunningBuilder running; private V1ContainerStateTerminatedBuilder terminated; private V1ContainerStateWaitingBuilder waiting; - + /** * This method has been deprecated, please use method buildRunning instead. - * * @return The buildable object. */ @Deprecated public V1ContainerStateRunning getRunning() { - return this.running != null ? this.running.build() : null; + return this.running!=null ?this.running.build():null; } - public V1ContainerStateRunning buildRunning() { - return this.running != null ? this.running.build() : null; + return this.running!=null ?this.running.build():null; } - public A withRunning(V1ContainerStateRunning running) { _visitables.get("running").remove(this.running); - if (running != null) { - this.running = new V1ContainerStateRunningBuilder(running); - _visitables.get("running").add(this.running); - } else { - this.running = null; - _visitables.get("running").remove(this.running); - } - return (A) this; + if (running!=null){ this.running= new V1ContainerStateRunningBuilder(running); _visitables.get("running").add(this.running);} else { this.running = null; _visitables.get("running").remove(this.running); } return (A) this; } - public Boolean hasRunning() { return this.running != null; } - public V1ContainerStateFluent.RunningNested withNewRunning() { return new V1ContainerStateFluentImpl.RunningNestedImpl(); } - public V1ContainerStateFluent.RunningNested withNewRunningLike(V1ContainerStateRunning item) { return new V1ContainerStateFluentImpl.RunningNestedImpl(item); } - public V1ContainerStateFluent.RunningNested editRunning() { return withNewRunningLike(getRunning()); } - public V1ContainerStateFluent.RunningNested editOrNewRunning() { - return withNewRunningLike( - getRunning() != null ? getRunning() : new V1ContainerStateRunningBuilder().build()); + return withNewRunningLike(getRunning() != null ? getRunning(): new V1ContainerStateRunningBuilder().build()); } - - public V1ContainerStateFluent.RunningNested editOrNewRunningLike( - V1ContainerStateRunning item) { - return withNewRunningLike(getRunning() != null ? getRunning() : item); + public V1ContainerStateFluent.RunningNested editOrNewRunningLike(V1ContainerStateRunning item) { + return withNewRunningLike(getRunning() != null ? getRunning(): item); } - + /** * This method has been deprecated, please use method buildTerminated instead. - * * @return The buildable object. */ @Deprecated public V1ContainerStateTerminated getTerminated() { - return this.terminated != null ? this.terminated.build() : null; + return this.terminated!=null ?this.terminated.build():null; } - public V1ContainerStateTerminated buildTerminated() { - return this.terminated != null ? this.terminated.build() : null; + return this.terminated!=null ?this.terminated.build():null; } - public A withTerminated(V1ContainerStateTerminated terminated) { _visitables.get("terminated").remove(this.terminated); - if (terminated != null) { - this.terminated = new V1ContainerStateTerminatedBuilder(terminated); - _visitables.get("terminated").add(this.terminated); - } else { - this.terminated = null; - _visitables.get("terminated").remove(this.terminated); - } - return (A) this; + if (terminated!=null){ this.terminated= new V1ContainerStateTerminatedBuilder(terminated); _visitables.get("terminated").add(this.terminated);} else { this.terminated = null; _visitables.get("terminated").remove(this.terminated); } return (A) this; } - public Boolean hasTerminated() { return this.terminated != null; } - public V1ContainerStateFluent.TerminatedNested withNewTerminated() { return new V1ContainerStateFluentImpl.TerminatedNestedImpl(); } - - public V1ContainerStateFluent.TerminatedNested withNewTerminatedLike( - V1ContainerStateTerminated item) { + public V1ContainerStateFluent.TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item) { return new V1ContainerStateFluentImpl.TerminatedNestedImpl(item); } - public V1ContainerStateFluent.TerminatedNested editTerminated() { return withNewTerminatedLike(getTerminated()); } - public V1ContainerStateFluent.TerminatedNested editOrNewTerminated() { - return withNewTerminatedLike( - getTerminated() != null - ? getTerminated() - : new V1ContainerStateTerminatedBuilder().build()); + return withNewTerminatedLike(getTerminated() != null ? getTerminated(): new V1ContainerStateTerminatedBuilder().build()); } - - public V1ContainerStateFluent.TerminatedNested editOrNewTerminatedLike( - V1ContainerStateTerminated item) { - return withNewTerminatedLike(getTerminated() != null ? getTerminated() : item); + public V1ContainerStateFluent.TerminatedNested editOrNewTerminatedLike(V1ContainerStateTerminated item) { + return withNewTerminatedLike(getTerminated() != null ? getTerminated(): item); } - + /** * This method has been deprecated, please use method buildWaiting instead. - * * @return The buildable object. */ @Deprecated public V1ContainerStateWaiting getWaiting() { - return this.waiting != null ? this.waiting.build() : null; + return this.waiting!=null ?this.waiting.build():null; } - public V1ContainerStateWaiting buildWaiting() { - return this.waiting != null ? this.waiting.build() : null; + return this.waiting!=null ?this.waiting.build():null; } - public A withWaiting(V1ContainerStateWaiting waiting) { _visitables.get("waiting").remove(this.waiting); - if (waiting != null) { - this.waiting = new V1ContainerStateWaitingBuilder(waiting); - _visitables.get("waiting").add(this.waiting); - } else { - this.waiting = null; - _visitables.get("waiting").remove(this.waiting); - } - return (A) this; + if (waiting!=null){ this.waiting= new V1ContainerStateWaitingBuilder(waiting); _visitables.get("waiting").add(this.waiting);} else { this.waiting = null; _visitables.get("waiting").remove(this.waiting); } return (A) this; } - public Boolean hasWaiting() { return this.waiting != null; } - public V1ContainerStateFluent.WaitingNested withNewWaiting() { return new V1ContainerStateFluentImpl.WaitingNestedImpl(); } - public V1ContainerStateFluent.WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { return new V1ContainerStateFluentImpl.WaitingNestedImpl(item); } - public V1ContainerStateFluent.WaitingNested editWaiting() { return withNewWaitingLike(getWaiting()); } - public V1ContainerStateFluent.WaitingNested editOrNewWaiting() { - return withNewWaitingLike( - getWaiting() != null ? getWaiting() : new V1ContainerStateWaitingBuilder().build()); + return withNewWaitingLike(getWaiting() != null ? getWaiting(): new V1ContainerStateWaitingBuilder().build()); } - - public V1ContainerStateFluent.WaitingNested editOrNewWaitingLike( - V1ContainerStateWaiting item) { - return withNewWaitingLike(getWaiting() != null ? getWaiting() : item); + public V1ContainerStateFluent.WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item) { + return withNewWaitingLike(getWaiting() != null ? getWaiting(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerStateFluentImpl that = (V1ContainerStateFluentImpl) o; - if (running != null ? !running.equals(that.running) : that.running != null) return false; - if (terminated != null ? !terminated.equals(that.terminated) : that.terminated != null) - return false; - if (waiting != null ? !waiting.equals(that.waiting) : that.waiting != null) return false; + if (running != null ? !running.equals(that.running) :that.running != null) return false; + if (terminated != null ? !terminated.equals(that.terminated) :that.terminated != null) return false; + if (waiting != null ? !waiting.equals(that.waiting) :that.waiting != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(running, terminated, waiting, super.hashCode()); + return java.util.Objects.hash(running, terminated, waiting, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (running != null) { - sb.append("running:"); - sb.append(running + ","); - } - if (terminated != null) { - sb.append("terminated:"); - sb.append(terminated + ","); - } - if (waiting != null) { - sb.append("waiting:"); - sb.append(waiting); - } + if (running != null) { sb.append("running:"); sb.append(running + ","); } + if (terminated != null) { sb.append("terminated:"); sb.append(terminated + ","); } + if (waiting != null) { sb.append("waiting:"); sb.append(waiting); } sb.append("}"); return sb.toString(); } - - class RunningNestedImpl - extends V1ContainerStateRunningFluentImpl> - implements V1ContainerStateFluent.RunningNested, Nested { + class RunningNestedImpl extends V1ContainerStateRunningFluentImpl> implements V1ContainerStateFluent.RunningNested,Nested{ RunningNestedImpl(V1ContainerStateRunning item) { this.builder = new V1ContainerStateRunningBuilder(this, item); } - RunningNestedImpl() { this.builder = new V1ContainerStateRunningBuilder(this); } - V1ContainerStateRunningBuilder builder; - public N and() { return (N) V1ContainerStateFluentImpl.this.withRunning(builder.build()); } - public N endRunning() { return and(); } + } - - class TerminatedNestedImpl - extends V1ContainerStateTerminatedFluentImpl> - implements V1ContainerStateFluent.TerminatedNested, Nested { + class TerminatedNestedImpl extends V1ContainerStateTerminatedFluentImpl> implements V1ContainerStateFluent.TerminatedNested,Nested{ TerminatedNestedImpl(V1ContainerStateTerminated item) { this.builder = new V1ContainerStateTerminatedBuilder(this, item); } - TerminatedNestedImpl() { this.builder = new V1ContainerStateTerminatedBuilder(this); } - V1ContainerStateTerminatedBuilder builder; - public N and() { return (N) V1ContainerStateFluentImpl.this.withTerminated(builder.build()); } - public N endTerminated() { return and(); } + } - - class WaitingNestedImpl - extends V1ContainerStateWaitingFluentImpl> - implements V1ContainerStateFluent.WaitingNested, Nested { + class WaitingNestedImpl extends V1ContainerStateWaitingFluentImpl> implements V1ContainerStateFluent.WaitingNested,Nested{ WaitingNestedImpl(V1ContainerStateWaiting item) { this.builder = new V1ContainerStateWaitingBuilder(this, item); } - WaitingNestedImpl() { this.builder = new V1ContainerStateWaitingBuilder(this); } - V1ContainerStateWaitingBuilder builder; - public N and() { return (N) V1ContainerStateFluentImpl.this.withWaiting(builder.build()); } - public N endWaiting() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java index b0d5fa0265..cbc690a404 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1ContainerStateRunningBuilder - extends V1ContainerStateRunningFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerStateRunningBuilder extends V1ContainerStateRunningFluentImpl implements VisitableBuilder{ public V1ContainerStateRunningBuilder() { this(false); } - public V1ContainerStateRunningBuilder(Boolean validationEnabled) { this(new V1ContainerStateRunning(), validationEnabled); } - public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent) { this(fluent, false); } - - public V1ContainerStateRunningBuilder( - V1ContainerStateRunningFluent fluent, Boolean validationEnabled) { + public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerStateRunning(), validationEnabled); } - - public V1ContainerStateRunningBuilder( - V1ContainerStateRunningFluent fluent, V1ContainerStateRunning instance) { + public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,V1ContainerStateRunning instance) { this(fluent, instance, false); } - - public V1ContainerStateRunningBuilder( - V1ContainerStateRunningFluent fluent, - V1ContainerStateRunning instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,V1ContainerStateRunning instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withStartedAt(instance.getStartedAt()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerStateRunningBuilder(V1ContainerStateRunning instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerStateRunningBuilder( - V1ContainerStateRunning instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerStateRunningBuilder(V1ContainerStateRunning instance,Boolean validationEnabled) { + this.fluent = this; this.withStartedAt(instance.getStartedAt()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerStateRunningFluent fluent; Boolean validationEnabled; - public V1ContainerStateRunning build() { V1ContainerStateRunning buildable = new V1ContainerStateRunning(); buildable.setStartedAt(fluent.getStartedAt()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java index fa906a0ee7..cbb4d5a89c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java @@ -1,26 +1,15 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1ContainerStateRunningFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ContainerStateRunningFluent> extends Fluent{ public OffsetDateTime getStartedAt(); - public A withStartedAt(OffsetDateTime startedAt); - public Boolean hasStartedAt(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java index e295f15889..69782432ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java @@ -1,66 +1,49 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerStateRunningFluentImpl> - extends BaseFluent implements V1ContainerStateRunningFluent { - public V1ContainerStateRunningFluentImpl() {} - +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerStateRunningFluentImpl> extends BaseFluent implements V1ContainerStateRunningFluent{ + public V1ContainerStateRunningFluentImpl() { + } public V1ContainerStateRunningFluentImpl(V1ContainerStateRunning instance) { this.withStartedAt(instance.getStartedAt()); - } + } private OffsetDateTime startedAt; - public OffsetDateTime getStartedAt() { return this.startedAt; } - public A withStartedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; - return (A) this; + this.startedAt=startedAt; return (A) this; } - public Boolean hasStartedAt() { return this.startedAt != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerStateRunningFluentImpl that = (V1ContainerStateRunningFluentImpl) o; - if (startedAt != null ? !startedAt.equals(that.startedAt) : that.startedAt != null) - return false; + if (startedAt != null ? !startedAt.equals(that.startedAt) :that.startedAt != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(startedAt, super.hashCode()); + return java.util.Objects.hash(startedAt, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (startedAt != null) { - sb.append("startedAt:"); - sb.append(startedAt); - } + if (startedAt != null) { sb.append("startedAt:"); sb.append(startedAt); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java index ad3b574d75..f777fb4801 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ContainerStateTerminatedBuilder - extends V1ContainerStateTerminatedFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluentImpl implements VisitableBuilder{ public V1ContainerStateTerminatedBuilder() { this(false); } - public V1ContainerStateTerminatedBuilder(Boolean validationEnabled) { this(new V1ContainerStateTerminated(), validationEnabled); } - public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent) { this(fluent, false); } - - public V1ContainerStateTerminatedBuilder( - V1ContainerStateTerminatedFluent fluent, Boolean validationEnabled) { + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerStateTerminated(), validationEnabled); } - - public V1ContainerStateTerminatedBuilder( - V1ContainerStateTerminatedFluent fluent, V1ContainerStateTerminated instance) { + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,V1ContainerStateTerminated instance) { this(fluent, instance, false); } - - public V1ContainerStateTerminatedBuilder( - V1ContainerStateTerminatedFluent fluent, - V1ContainerStateTerminated instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,V1ContainerStateTerminated instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerID(instance.getContainerID()); fluent.withExitCode(instance.getExitCode()); @@ -58,16 +34,13 @@ public V1ContainerStateTerminatedBuilder( fluent.withStartedAt(instance.getStartedAt()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerStateTerminatedBuilder( - V1ContainerStateTerminated instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerID(instance.getContainerID()); this.withExitCode(instance.getExitCode()); @@ -82,12 +55,10 @@ public V1ContainerStateTerminatedBuilder( this.withStartedAt(instance.getStartedAt()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerStateTerminatedFluent fluent; Boolean validationEnabled; - public V1ContainerStateTerminated build() { V1ContainerStateTerminated buildable = new V1ContainerStateTerminated(); buildable.setContainerID(fluent.getContainerID()); @@ -99,4 +70,5 @@ public V1ContainerStateTerminated build() { buildable.setStartedAt(fluent.getStartedAt()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java index b9266bf702..548d95dbc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java @@ -1,62 +1,35 @@ -/* -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.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ContainerStateTerminatedFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ContainerStateTerminatedFluent> extends Fluent{ public String getContainerID(); - public A withContainerID(String containerID); - public Boolean hasContainerID(); - public Integer getExitCode(); - public A withExitCode(Integer exitCode); - public Boolean hasExitCode(); - public OffsetDateTime getFinishedAt(); - public A withFinishedAt(OffsetDateTime finishedAt); - public Boolean hasFinishedAt(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public Integer getSignal(); - public A withSignal(Integer signal); - public Boolean hasSignal(); - public OffsetDateTime getStartedAt(); - public A withStartedAt(OffsetDateTime startedAt); - public Boolean hasStartedAt(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java index 22c44f9bfc..7039996526 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerStateTerminatedFluentImpl> - extends BaseFluent implements V1ContainerStateTerminatedFluent { - public V1ContainerStateTerminatedFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerStateTerminatedFluentImpl> extends BaseFluent implements V1ContainerStateTerminatedFluent{ + public V1ContainerStateTerminatedFluentImpl() { + } public V1ContainerStateTerminatedFluentImpl(V1ContainerStateTerminated instance) { this.withContainerID(instance.getContainerID()); @@ -35,8 +29,8 @@ public V1ContainerStateTerminatedFluentImpl(V1ContainerStateTerminated instance) this.withSignal(instance.getSignal()); this.withStartedAt(instance.getStartedAt()); - } + } private String containerID; private Integer exitCode; private OffsetDateTime finishedAt; @@ -44,152 +38,97 @@ public V1ContainerStateTerminatedFluentImpl(V1ContainerStateTerminated instance) private String reason; private Integer signal; private OffsetDateTime startedAt; - public String getContainerID() { return this.containerID; } - public A withContainerID(String containerID) { - this.containerID = containerID; - return (A) this; + this.containerID=containerID; return (A) this; } - public Boolean hasContainerID() { return this.containerID != null; } - public Integer getExitCode() { return this.exitCode; } - public A withExitCode(Integer exitCode) { - this.exitCode = exitCode; - return (A) this; + this.exitCode=exitCode; return (A) this; } - public Boolean hasExitCode() { return this.exitCode != null; } - public OffsetDateTime getFinishedAt() { return this.finishedAt; } - public A withFinishedAt(OffsetDateTime finishedAt) { - this.finishedAt = finishedAt; - return (A) this; + this.finishedAt=finishedAt; return (A) this; } - public Boolean hasFinishedAt() { return this.finishedAt != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public Integer getSignal() { return this.signal; } - public A withSignal(Integer signal) { - this.signal = signal; - return (A) this; + this.signal=signal; return (A) this; } - public Boolean hasSignal() { return this.signal != null; } - public OffsetDateTime getStartedAt() { return this.startedAt; } - public A withStartedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; - return (A) this; + this.startedAt=startedAt; return (A) this; } - public Boolean hasStartedAt() { return this.startedAt != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerStateTerminatedFluentImpl that = (V1ContainerStateTerminatedFluentImpl) o; - if (containerID != null ? !containerID.equals(that.containerID) : that.containerID != null) - return false; - if (exitCode != null ? !exitCode.equals(that.exitCode) : that.exitCode != null) return false; - if (finishedAt != null ? !finishedAt.equals(that.finishedAt) : that.finishedAt != null) - return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (signal != null ? !signal.equals(that.signal) : that.signal != null) return false; - if (startedAt != null ? !startedAt.equals(that.startedAt) : that.startedAt != null) - return false; + if (containerID != null ? !containerID.equals(that.containerID) :that.containerID != null) return false; + if (exitCode != null ? !exitCode.equals(that.exitCode) :that.exitCode != null) return false; + if (finishedAt != null ? !finishedAt.equals(that.finishedAt) :that.finishedAt != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (signal != null ? !signal.equals(that.signal) :that.signal != null) return false; + if (startedAt != null ? !startedAt.equals(that.startedAt) :that.startedAt != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerID, exitCode, finishedAt, message, reason, signal, startedAt, super.hashCode()); + return java.util.Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerID != null) { - sb.append("containerID:"); - sb.append(containerID + ","); - } - if (exitCode != null) { - sb.append("exitCode:"); - sb.append(exitCode + ","); - } - if (finishedAt != null) { - sb.append("finishedAt:"); - sb.append(finishedAt + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (signal != null) { - sb.append("signal:"); - sb.append(signal + ","); - } - if (startedAt != null) { - sb.append("startedAt:"); - sb.append(startedAt); - } + if (containerID != null) { sb.append("containerID:"); sb.append(containerID + ","); } + if (exitCode != null) { sb.append("exitCode:"); sb.append(exitCode + ","); } + if (finishedAt != null) { sb.append("finishedAt:"); sb.append(finishedAt + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (signal != null) { sb.append("signal:"); sb.append(signal + ","); } + if (startedAt != null) { sb.append("startedAt:"); sb.append(startedAt); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java index 79fd72a99e..b250f57ed8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ContainerStateWaitingBuilder - extends V1ContainerStateWaitingFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerStateWaitingBuilder extends V1ContainerStateWaitingFluentImpl implements VisitableBuilder{ public V1ContainerStateWaitingBuilder() { this(false); } - public V1ContainerStateWaitingBuilder(Boolean validationEnabled) { this(new V1ContainerStateWaiting(), validationEnabled); } - public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent) { this(fluent, false); } - - public V1ContainerStateWaitingBuilder( - V1ContainerStateWaitingFluent fluent, Boolean validationEnabled) { + public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerStateWaiting(), validationEnabled); } - - public V1ContainerStateWaitingBuilder( - V1ContainerStateWaitingFluent fluent, V1ContainerStateWaiting instance) { + public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,V1ContainerStateWaiting instance) { this(fluent, instance, false); } - - public V1ContainerStateWaitingBuilder( - V1ContainerStateWaitingFluent fluent, - V1ContainerStateWaiting instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,V1ContainerStateWaiting instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMessage(instance.getMessage()); fluent.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerStateWaitingBuilder(V1ContainerStateWaiting instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerStateWaitingBuilder( - V1ContainerStateWaiting instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerStateWaitingBuilder(V1ContainerStateWaiting instance,Boolean validationEnabled) { + this.fluent = this; this.withMessage(instance.getMessage()); this.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerStateWaitingFluent fluent; Boolean validationEnabled; - public V1ContainerStateWaiting build() { V1ContainerStateWaiting buildable = new V1ContainerStateWaiting(); buildable.setMessage(fluent.getMessage()); buildable.setReason(fluent.getReason()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java index 9da83670b0..eb03c08873 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ContainerStateWaitingFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ContainerStateWaitingFluent> extends Fluent{ public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java index 292fbba020..fb6bfe0555 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerStateWaitingFluentImpl> - extends BaseFluent implements V1ContainerStateWaitingFluent { - public V1ContainerStateWaitingFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerStateWaitingFluentImpl> extends BaseFluent implements V1ContainerStateWaitingFluent{ + public V1ContainerStateWaitingFluentImpl() { + } public V1ContainerStateWaitingFluentImpl(V1ContainerStateWaiting instance) { this.withMessage(instance.getMessage()); this.withReason(instance.getReason()); - } + } private String message; private String reason; - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerStateWaitingFluentImpl that = (V1ContainerStateWaitingFluentImpl) o; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(message, reason, super.hashCode()); + return java.util.Objects.hash(message, reason, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason); - } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java index 686bd157f4..1f8d5cd8db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ContainerStatusBuilder extends V1ContainerStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ContainerStatusBuilder extends V1ContainerStatusFluentImpl implements VisitableBuilder{ public V1ContainerStatusBuilder() { this(false); } - public V1ContainerStatusBuilder(Boolean validationEnabled) { this(new V1ContainerStatus(), validationEnabled); } - public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent) { this(fluent, false); } - - public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent, Boolean validationEnabled) { + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ContainerStatus(), validationEnabled); } - - public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent, V1ContainerStatus instance) { + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,V1ContainerStatus instance) { this(fluent, instance, false); } - - public V1ContainerStatusBuilder( - V1ContainerStatusFluent fluent, V1ContainerStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,V1ContainerStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerID(instance.getContainerID()); fluent.withImage(instance.getImage()); @@ -57,15 +38,13 @@ public V1ContainerStatusBuilder( fluent.withState(instance.getState()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ContainerStatusBuilder(V1ContainerStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ContainerStatusBuilder(V1ContainerStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ContainerStatusBuilder(V1ContainerStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerID(instance.getContainerID()); this.withImage(instance.getImage()); @@ -84,12 +63,10 @@ public V1ContainerStatusBuilder(V1ContainerStatus instance, Boolean validationEn this.withState(instance.getState()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ContainerStatusFluent fluent; Boolean validationEnabled; - public V1ContainerStatus build() { V1ContainerStatus buildable = new V1ContainerStatus(); buildable.setContainerID(fluent.getContainerID()); @@ -103,4 +80,5 @@ public V1ContainerStatus build() { buildable.setState(fluent.getState()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java index 2e077241dd..dc0990837d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java @@ -1,127 +1,78 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ContainerStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1ContainerStatusFluent> extends Fluent{ public String getContainerID(); - public A withContainerID(String containerID); - public Boolean hasContainerID(); - public String getImage(); - public A withImage(String image); - public Boolean hasImage(); - public String getImageID(); - public A withImageID(String imageID); - public Boolean hasImageID(); - + /** * This method has been deprecated, please use method buildLastState instead. - * * @return The buildable object. */ @Deprecated public V1ContainerState getLastState(); - public V1ContainerState buildLastState(); - public A withLastState(V1ContainerState lastState); - public Boolean hasLastState(); - public V1ContainerStatusFluent.LastStateNested withNewLastState(); - public V1ContainerStatusFluent.LastStateNested withNewLastStateLike(V1ContainerState item); - public V1ContainerStatusFluent.LastStateNested editLastState(); - public V1ContainerStatusFluent.LastStateNested editOrNewLastState(); - public V1ContainerStatusFluent.LastStateNested editOrNewLastStateLike(V1ContainerState item); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getReady(); - public A withReady(Boolean ready); - public Boolean hasReady(); - public Integer getRestartCount(); - public A withRestartCount(Integer restartCount); - public Boolean hasRestartCount(); - public Boolean getStarted(); - public A withStarted(Boolean started); - public Boolean hasStarted(); - + /** * This method has been deprecated, please use method buildState instead. - * * @return The buildable object. */ @Deprecated public V1ContainerState getState(); - public V1ContainerState buildState(); - public A withState(V1ContainerState state); - public Boolean hasState(); - public V1ContainerStatusFluent.StateNested withNewState(); - public V1ContainerStatusFluent.StateNested withNewStateLike(V1ContainerState item); - public V1ContainerStatusFluent.StateNested editState(); - public V1ContainerStatusFluent.StateNested editOrNewState(); - public V1ContainerStatusFluent.StateNested editOrNewStateLike(V1ContainerState item); - public A withReady(); - public A withStarted(); - - public interface LastStateNested - extends Nested, V1ContainerStateFluent> { + public interface LastStateNested extends Nested,V1ContainerStateFluent>{ public N and(); - public N endLastState(); + } - - public interface StateNested - extends Nested, V1ContainerStateFluent> { + public interface StateNested extends Nested,V1ContainerStateFluent>{ public N and(); - public N endState(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java index 48fa6f7ec2..37e620ced5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ContainerStatusFluentImpl> extends BaseFluent - implements V1ContainerStatusFluent { - public V1ContainerStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ContainerStatusFluentImpl> extends BaseFluent implements V1ContainerStatusFluent{ + public V1ContainerStatusFluentImpl() { + } public V1ContainerStatusFluentImpl(V1ContainerStatus instance) { this.withContainerID(instance.getContainerID()); @@ -39,8 +34,8 @@ public V1ContainerStatusFluentImpl(V1ContainerStatus instance) { this.withStarted(instance.getStarted()); this.withState(instance.getState()); - } + } private String containerID; private String image; private String imageID; @@ -50,325 +45,207 @@ public V1ContainerStatusFluentImpl(V1ContainerStatus instance) { private Integer restartCount; private Boolean started; private V1ContainerStateBuilder state; - public String getContainerID() { return this.containerID; } - public A withContainerID(String containerID) { - this.containerID = containerID; - return (A) this; + this.containerID=containerID; return (A) this; } - public Boolean hasContainerID() { return this.containerID != null; } - public String getImage() { return this.image; } - public A withImage(String image) { - this.image = image; - return (A) this; + this.image=image; return (A) this; } - public Boolean hasImage() { return this.image != null; } - public String getImageID() { return this.imageID; } - public A withImageID(String imageID) { - this.imageID = imageID; - return (A) this; + this.imageID=imageID; return (A) this; } - public Boolean hasImageID() { return this.imageID != null; } - + /** * This method has been deprecated, please use method buildLastState instead. - * * @return The buildable object. */ @Deprecated public V1ContainerState getLastState() { - return this.lastState != null ? this.lastState.build() : null; + return this.lastState!=null ?this.lastState.build():null; } - public V1ContainerState buildLastState() { - return this.lastState != null ? this.lastState.build() : null; + return this.lastState!=null ?this.lastState.build():null; } - public A withLastState(V1ContainerState lastState) { _visitables.get("lastState").remove(this.lastState); - if (lastState != null) { - this.lastState = new V1ContainerStateBuilder(lastState); - _visitables.get("lastState").add(this.lastState); - } else { - this.lastState = null; - _visitables.get("lastState").remove(this.lastState); - } - return (A) this; + if (lastState!=null){ this.lastState= new V1ContainerStateBuilder(lastState); _visitables.get("lastState").add(this.lastState);} else { this.lastState = null; _visitables.get("lastState").remove(this.lastState); } return (A) this; } - public Boolean hasLastState() { return this.lastState != null; } - public V1ContainerStatusFluent.LastStateNested withNewLastState() { return new V1ContainerStatusFluentImpl.LastStateNestedImpl(); } - public V1ContainerStatusFluent.LastStateNested withNewLastStateLike(V1ContainerState item) { return new V1ContainerStatusFluentImpl.LastStateNestedImpl(item); } - public V1ContainerStatusFluent.LastStateNested editLastState() { return withNewLastStateLike(getLastState()); } - public V1ContainerStatusFluent.LastStateNested editOrNewLastState() { - return withNewLastStateLike( - getLastState() != null ? getLastState() : new V1ContainerStateBuilder().build()); + return withNewLastStateLike(getLastState() != null ? getLastState(): new V1ContainerStateBuilder().build()); } - public V1ContainerStatusFluent.LastStateNested editOrNewLastStateLike(V1ContainerState item) { - return withNewLastStateLike(getLastState() != null ? getLastState() : item); + return withNewLastStateLike(getLastState() != null ? getLastState(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getReady() { return this.ready; } - public A withReady(Boolean ready) { - this.ready = ready; - return (A) this; + this.ready=ready; return (A) this; } - public Boolean hasReady() { return this.ready != null; } - public Integer getRestartCount() { return this.restartCount; } - public A withRestartCount(Integer restartCount) { - this.restartCount = restartCount; - return (A) this; + this.restartCount=restartCount; return (A) this; } - public Boolean hasRestartCount() { return this.restartCount != null; } - public Boolean getStarted() { return this.started; } - public A withStarted(Boolean started) { - this.started = started; - return (A) this; + this.started=started; return (A) this; } - public Boolean hasStarted() { return this.started != null; } - + /** * This method has been deprecated, please use method buildState instead. - * * @return The buildable object. */ @Deprecated public V1ContainerState getState() { - return this.state != null ? this.state.build() : null; + return this.state!=null ?this.state.build():null; } - public V1ContainerState buildState() { - return this.state != null ? this.state.build() : null; + return this.state!=null ?this.state.build():null; } - public A withState(V1ContainerState state) { _visitables.get("state").remove(this.state); - if (state != null) { - this.state = new V1ContainerStateBuilder(state); - _visitables.get("state").add(this.state); - } else { - this.state = null; - _visitables.get("state").remove(this.state); - } - return (A) this; + if (state!=null){ this.state= new V1ContainerStateBuilder(state); _visitables.get("state").add(this.state);} else { this.state = null; _visitables.get("state").remove(this.state); } return (A) this; } - public Boolean hasState() { return this.state != null; } - public V1ContainerStatusFluent.StateNested withNewState() { return new V1ContainerStatusFluentImpl.StateNestedImpl(); } - public V1ContainerStatusFluent.StateNested withNewStateLike(V1ContainerState item) { return new V1ContainerStatusFluentImpl.StateNestedImpl(item); } - public V1ContainerStatusFluent.StateNested editState() { return withNewStateLike(getState()); } - public V1ContainerStatusFluent.StateNested editOrNewState() { - return withNewStateLike( - getState() != null ? getState() : new V1ContainerStateBuilder().build()); + return withNewStateLike(getState() != null ? getState(): new V1ContainerStateBuilder().build()); } - public V1ContainerStatusFluent.StateNested editOrNewStateLike(V1ContainerState item) { - return withNewStateLike(getState() != null ? getState() : item); + return withNewStateLike(getState() != null ? getState(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ContainerStatusFluentImpl that = (V1ContainerStatusFluentImpl) o; - if (containerID != null ? !containerID.equals(that.containerID) : that.containerID != null) - return false; - if (image != null ? !image.equals(that.image) : that.image != null) return false; - if (imageID != null ? !imageID.equals(that.imageID) : that.imageID != null) return false; - if (lastState != null ? !lastState.equals(that.lastState) : that.lastState != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (ready != null ? !ready.equals(that.ready) : that.ready != null) return false; - if (restartCount != null ? !restartCount.equals(that.restartCount) : that.restartCount != null) - return false; - if (started != null ? !started.equals(that.started) : that.started != null) return false; - if (state != null ? !state.equals(that.state) : that.state != null) return false; + if (containerID != null ? !containerID.equals(that.containerID) :that.containerID != null) return false; + if (image != null ? !image.equals(that.image) :that.image != null) return false; + if (imageID != null ? !imageID.equals(that.imageID) :that.imageID != null) return false; + if (lastState != null ? !lastState.equals(that.lastState) :that.lastState != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (ready != null ? !ready.equals(that.ready) :that.ready != null) return false; + if (restartCount != null ? !restartCount.equals(that.restartCount) :that.restartCount != null) return false; + if (started != null ? !started.equals(that.started) :that.started != null) return false; + if (state != null ? !state.equals(that.state) :that.state != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerID, - image, - imageID, - lastState, - name, - ready, - restartCount, - started, - state, - super.hashCode()); + return java.util.Objects.hash(containerID, image, imageID, lastState, name, ready, restartCount, started, state, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerID != null) { - sb.append("containerID:"); - sb.append(containerID + ","); - } - if (image != null) { - sb.append("image:"); - sb.append(image + ","); - } - if (imageID != null) { - sb.append("imageID:"); - sb.append(imageID + ","); - } - if (lastState != null) { - sb.append("lastState:"); - sb.append(lastState + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (ready != null) { - sb.append("ready:"); - sb.append(ready + ","); - } - if (restartCount != null) { - sb.append("restartCount:"); - sb.append(restartCount + ","); - } - if (started != null) { - sb.append("started:"); - sb.append(started + ","); - } - if (state != null) { - sb.append("state:"); - sb.append(state); - } + if (containerID != null) { sb.append("containerID:"); sb.append(containerID + ","); } + if (image != null) { sb.append("image:"); sb.append(image + ","); } + if (imageID != null) { sb.append("imageID:"); sb.append(imageID + ","); } + if (lastState != null) { sb.append("lastState:"); sb.append(lastState + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } + if (restartCount != null) { sb.append("restartCount:"); sb.append(restartCount + ","); } + if (started != null) { sb.append("started:"); sb.append(started + ","); } + if (state != null) { sb.append("state:"); sb.append(state); } sb.append("}"); return sb.toString(); } - public A withReady() { return withReady(true); } - public A withStarted() { return withStarted(true); } - - class LastStateNestedImpl - extends V1ContainerStateFluentImpl> - implements V1ContainerStatusFluent.LastStateNested, Nested { + class LastStateNestedImpl extends V1ContainerStateFluentImpl> implements V1ContainerStatusFluent.LastStateNested,Nested{ LastStateNestedImpl(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } - LastStateNestedImpl() { this.builder = new V1ContainerStateBuilder(this); } - V1ContainerStateBuilder builder; - public N and() { return (N) V1ContainerStatusFluentImpl.this.withLastState(builder.build()); } - public N endLastState() { return and(); } + } - - class StateNestedImpl - extends V1ContainerStateFluentImpl> - implements V1ContainerStatusFluent.StateNested, Nested { + class StateNestedImpl extends V1ContainerStateFluentImpl> implements V1ContainerStatusFluent.StateNested,Nested{ StateNestedImpl(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } - StateNestedImpl() { this.builder = new V1ContainerStateBuilder(this); } - V1ContainerStateBuilder builder; - public N and() { return (N) V1ContainerStatusFluentImpl.this.withState(builder.build()); } - public N endState() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java index e03c0ba29b..f555ac02af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ControllerRevisionBuilder - extends V1ControllerRevisionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ControllerRevisionBuilder extends V1ControllerRevisionFluentImpl implements VisitableBuilder{ public V1ControllerRevisionBuilder() { this(false); } - public V1ControllerRevisionBuilder(Boolean validationEnabled) { this(new V1ControllerRevision(), validationEnabled); } - public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent) { this(fluent, false); } - - public V1ControllerRevisionBuilder( - V1ControllerRevisionFluent fluent, Boolean validationEnabled) { + public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ControllerRevision(), validationEnabled); } - - public V1ControllerRevisionBuilder( - V1ControllerRevisionFluent fluent, V1ControllerRevision instance) { + public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,V1ControllerRevision instance) { this(fluent, instance, false); } - - public V1ControllerRevisionBuilder( - V1ControllerRevisionFluent fluent, - V1ControllerRevision instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,V1ControllerRevision instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withData(instance.getData()); @@ -54,15 +30,13 @@ public V1ControllerRevisionBuilder( fluent.withRevision(instance.getRevision()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ControllerRevisionBuilder(V1ControllerRevision instance) { - this(instance, false); + this(instance,false); } - - public V1ControllerRevisionBuilder(V1ControllerRevision instance, Boolean validationEnabled) { - this.fluent = this; + public V1ControllerRevisionBuilder(V1ControllerRevision instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withData(instance.getData()); @@ -73,12 +47,10 @@ public V1ControllerRevisionBuilder(V1ControllerRevision instance, Boolean valida this.withRevision(instance.getRevision()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ControllerRevisionFluent fluent; Boolean validationEnabled; - public V1ControllerRevision build() { V1ControllerRevision buildable = new V1ControllerRevision(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +60,5 @@ public V1ControllerRevision build() { buildable.setRevision(fluent.getRevision()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java index 1033328746..2d992f6bcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java @@ -1,75 +1,48 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ControllerRevisionFluent> - extends Fluent { +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ControllerRevisionFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Object getData(); - public A withData(Object data); - public Boolean hasData(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ControllerRevisionFluent.MetadataNested withNewMetadata(); - public V1ControllerRevisionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ControllerRevisionFluent.MetadataNested editMetadata(); - public V1ControllerRevisionFluent.MetadataNested editOrNewMetadata(); - public V1ControllerRevisionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public Long getRevision(); - public A withRevision(Long revision); - public Boolean hasRevision(); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java index da2f455000..ed12e9a574 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ControllerRevisionFluentImpl> - extends BaseFluent implements V1ControllerRevisionFluent { - public V1ControllerRevisionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ControllerRevisionFluentImpl> extends BaseFluent implements V1ControllerRevisionFluent{ + public V1ControllerRevisionFluentImpl() { + } public V1ControllerRevisionFluentImpl(V1ControllerRevision instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,180 +26,123 @@ public V1ControllerRevisionFluentImpl(V1ControllerRevision instance) { this.withMetadata(instance.getMetadata()); this.withRevision(instance.getRevision()); - } + } private String apiVersion; private Object data; private String kind; private V1ObjectMetaBuilder metadata; private Long revision; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Object getData() { return this.data; } - public A withData(Object data) { - this.data = data; - return (A) this; + this.data=data; return (A) this; } - public Boolean hasData() { return this.data != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ControllerRevisionFluent.MetadataNested withNewMetadata() { return new V1ControllerRevisionFluentImpl.MetadataNestedImpl(); } - public V1ControllerRevisionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ControllerRevisionFluentImpl.MetadataNestedImpl(item); } - public V1ControllerRevisionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ControllerRevisionFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ControllerRevisionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public Long getRevision() { return this.revision; } - public A withRevision(Long revision) { - this.revision = revision; - return (A) this; + this.revision=revision; return (A) this; } - public Boolean hasRevision() { return this.revision != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ControllerRevisionFluentImpl that = (V1ControllerRevisionFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (data != null ? !data.equals(that.data) : that.data != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (revision != null ? !revision.equals(that.revision) : that.revision != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (data != null ? !data.equals(that.data) :that.data != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (revision != null ? !revision.equals(that.revision) :that.revision != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, data, kind, metadata, revision, super.hashCode()); + return java.util.Objects.hash(apiVersion, data, kind, metadata, revision, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (data != null) { - sb.append("data:"); - sb.append(data + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (revision != null) { - sb.append("revision:"); - sb.append(revision); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (data != null) { sb.append("data:"); sb.append(data + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (revision != null) { sb.append("revision:"); sb.append(revision); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1ControllerRevisionFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ControllerRevisionFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ControllerRevisionFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java index d5d4c03463..80e40b5eb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ControllerRevisionListBuilder - extends V1ControllerRevisionListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ControllerRevisionListBuilder extends V1ControllerRevisionListFluentImpl implements VisitableBuilder{ public V1ControllerRevisionListBuilder() { this(false); } - public V1ControllerRevisionListBuilder(Boolean validationEnabled) { this(new V1ControllerRevisionList(), validationEnabled); } - public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent) { this(fluent, false); } - - public V1ControllerRevisionListBuilder( - V1ControllerRevisionListFluent fluent, Boolean validationEnabled) { + public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ControllerRevisionList(), validationEnabled); } - - public V1ControllerRevisionListBuilder( - V1ControllerRevisionListFluent fluent, V1ControllerRevisionList instance) { + public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,V1ControllerRevisionList instance) { this(fluent, instance, false); } - - public V1ControllerRevisionListBuilder( - V1ControllerRevisionListFluent fluent, - V1ControllerRevisionList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,V1ControllerRevisionList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1ControllerRevisionListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ControllerRevisionListBuilder(V1ControllerRevisionList instance) { - this(instance, false); + this(instance,false); } - - public V1ControllerRevisionListBuilder( - V1ControllerRevisionList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ControllerRevisionListBuilder(V1ControllerRevisionList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1ControllerRevisionListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ControllerRevisionListFluent fluent; Boolean validationEnabled; - public V1ControllerRevisionList build() { V1ControllerRevisionList buildable = new V1ControllerRevisionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1ControllerRevisionList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java index fe5eada4c5..044ddd1e4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ControllerRevisionListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ControllerRevisionListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ControllerRevision item); - - public A setToItems(Integer index, V1ControllerRevision item); - + public A addToItems(Integer index,V1ControllerRevision item); + public A setToItems(Integer index,V1ControllerRevision item); public A addToItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ControllerRevision buildItem(Integer index); - public V1ControllerRevision buildFirstItem(); - public V1ControllerRevision buildLastItem(); - public V1ControllerRevision buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items); - public Boolean hasItems(); - public V1ControllerRevisionListFluent.ItemsNested addNewItem(); - public V1ControllerRevisionListFluent.ItemsNested addNewItemLike(V1ControllerRevision item); - - public V1ControllerRevisionListFluent.ItemsNested setNewItemLike( - Integer index, V1ControllerRevision item); - + public V1ControllerRevisionListFluent.ItemsNested setNewItemLike(Integer index,V1ControllerRevision item); public V1ControllerRevisionListFluent.ItemsNested editItem(Integer index); - public V1ControllerRevisionListFluent.ItemsNested editFirstItem(); - public V1ControllerRevisionListFluent.ItemsNested editLastItem(); - - public V1ControllerRevisionListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ControllerRevisionListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ControllerRevisionListFluent.MetadataNested withNewMetadata(); - public V1ControllerRevisionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ControllerRevisionListFluent.MetadataNested editMetadata(); - public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadata(); - public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ControllerRevisionFluent> { + public interface ItemsNested extends Nested,V1ControllerRevisionFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java index 5aefd0a448..19b2bc7239 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ControllerRevisionListFluentImpl> - extends BaseFluent implements V1ControllerRevisionListFluent { - public V1ControllerRevisionListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ControllerRevisionListFluentImpl> extends BaseFluent implements V1ControllerRevisionListFluent{ + public V1ControllerRevisionListFluentImpl() { + } public V1ControllerRevisionListFluentImpl(V1ControllerRevisionList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ControllerRevisionListFluentImpl(V1ControllerRevisionList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ControllerRevision item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ControllerRevision item) { + if (this.items == null) {this.items = new ArrayList();} + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ControllerRevision item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ControllerRevision item) { + if (this.items == null) {this.items = new ArrayList();} V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ControllerRevision buildItem(Integer index) { return this.items.get(index).build(); } - public V1ControllerRevision buildFirstItem() { return this.items.get(0).build(); } - public V1ControllerRevision buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ControllerRevision buildMatchingItem(Predicate predicate) { - for (V1ControllerRevisionBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ControllerRevisionBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ControllerRevisionBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ControllerRevisionBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ControllerRevision item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ControllerRevision item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ControllerRevision item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ControllerRevision item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ControllerRevisionListFluent.ItemsNested addNewItem() { return new V1ControllerRevisionListFluentImpl.ItemsNestedImpl(); } - public V1ControllerRevisionListFluent.ItemsNested addNewItemLike(V1ControllerRevision item) { return new V1ControllerRevisionListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ControllerRevisionListFluent.ItemsNested setNewItemLike( - Integer index, V1ControllerRevision item) { + public V1ControllerRevisionListFluent.ItemsNested setNewItemLike(Integer index,V1ControllerRevision item) { return new V1ControllerRevisionListFluentImpl.ItemsNestedImpl(index, item); } - public V1ControllerRevisionListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ControllerRevisionListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ControllerRevisionListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ControllerRevisionListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ControllerRevisionListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ControllerRevisionListFluentImpl.MetadataNestedImpl(); } - public V1ControllerRevisionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ControllerRevisionListFluentImpl.MetadataNestedImpl(item); } - public V1ControllerRevisionListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ControllerRevisionListFluentImpl that = (V1ControllerRevisionListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ControllerRevisionFluentImpl> - implements V1ControllerRevisionListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ControllerRevision item) { + class ItemsNestedImpl extends V1ControllerRevisionFluentImpl> implements V1ControllerRevisionListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ControllerRevision item) { this.index = index; this.builder = new V1ControllerRevisionBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ControllerRevisionBuilder(this); } - V1ControllerRevisionBuilder builder; Integer index; - public N and() { - return (N) V1ControllerRevisionListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ControllerRevisionListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ControllerRevisionListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ControllerRevisionListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ControllerRevisionListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java index b4eeacb257..2d69055823 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CronJobBuilder extends V1CronJobFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CronJobBuilder extends V1CronJobFluentImpl implements VisitableBuilder{ public V1CronJobBuilder() { this(false); } - public V1CronJobBuilder(Boolean validationEnabled) { this(new V1CronJob(), validationEnabled); } - public V1CronJobBuilder(V1CronJobFluent fluent) { this(fluent, false); } - - public V1CronJobBuilder(V1CronJobFluent fluent, Boolean validationEnabled) { + public V1CronJobBuilder(V1CronJobFluent fluent,Boolean validationEnabled) { this(fluent, new V1CronJob(), validationEnabled); } - - public V1CronJobBuilder(V1CronJobFluent fluent, V1CronJob instance) { + public V1CronJobBuilder(V1CronJobFluent fluent,V1CronJob instance) { this(fluent, instance, false); } - - public V1CronJobBuilder( - V1CronJobFluent fluent, V1CronJob instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CronJobBuilder(V1CronJobFluent fluent,V1CronJob instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1CronJobBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CronJobBuilder(V1CronJob instance) { - this(instance, false); + this(instance,false); } - - public V1CronJobBuilder(V1CronJob instance, Boolean validationEnabled) { - this.fluent = this; + public V1CronJobBuilder(V1CronJob instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1CronJobBuilder(V1CronJob instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CronJobFluent fluent; Boolean validationEnabled; - public V1CronJob build() { V1CronJob buildable = new V1CronJob(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1CronJob build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java index ad262974f3..e36fe64154 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1CronJobFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CronJobFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1CronJobFluent.MetadataNested withNewMetadata(); - public V1CronJobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1CronJobFluent.MetadataNested editMetadata(); - public V1CronJobFluent.MetadataNested editOrNewMetadata(); - public V1CronJobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CronJobSpec getSpec(); - public V1CronJobSpec buildSpec(); - public A withSpec(V1CronJobSpec spec); - public Boolean hasSpec(); - public V1CronJobFluent.SpecNested withNewSpec(); - public V1CronJobFluent.SpecNested withNewSpecLike(V1CronJobSpec item); - public V1CronJobFluent.SpecNested editSpec(); - public V1CronJobFluent.SpecNested editOrNewSpec(); - public V1CronJobFluent.SpecNested editOrNewSpecLike(V1CronJobSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1CronJobStatus getStatus(); - public V1CronJobStatus buildStatus(); - public A withStatus(V1CronJobStatus status); - public Boolean hasStatus(); - public V1CronJobFluent.StatusNested withNewStatus(); - public V1CronJobFluent.StatusNested withNewStatusLike(V1CronJobStatus item); - public V1CronJobFluent.StatusNested editStatus(); - public V1CronJobFluent.StatusNested editOrNewStatus(); - public V1CronJobFluent.StatusNested editOrNewStatusLike(V1CronJobStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1CronJobSpecFluent> { + public interface SpecNested extends Nested,V1CronJobSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1CronJobStatusFluent> { + public interface StatusNested extends Nested,V1CronJobStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java index e06250a989..70dacbd4f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CronJobFluentImpl> extends BaseFluent - implements V1CronJobFluent { - public V1CronJobFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CronJobFluentImpl> extends BaseFluent implements V1CronJobFluent{ + public V1CronJobFluentImpl() { + } public V1CronJobFluentImpl(V1CronJob instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1CronJobFluentImpl(V1CronJob instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CronJobSpecBuilder spec; private V1CronJobStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1CronJobFluent.MetadataNested withNewMetadata() { return new V1CronJobFluentImpl.MetadataNestedImpl(); } - public V1CronJobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CronJobFluentImpl.MetadataNestedImpl(item); } - public V1CronJobFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CronJobFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1CronJobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CronJobSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1CronJobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1CronJobSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1CronJobSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1CronJobSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1CronJobFluent.SpecNested withNewSpec() { return new V1CronJobFluentImpl.SpecNestedImpl(); } - public V1CronJobFluent.SpecNested withNewSpecLike(V1CronJobSpec item) { return new V1CronJobFluentImpl.SpecNestedImpl(item); } - public V1CronJobFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1CronJobFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1CronJobSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1CronJobSpecBuilder().build()); } - public V1CronJobFluent.SpecNested editOrNewSpecLike(V1CronJobSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1CronJobStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1CronJobStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1CronJobStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1CronJobStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1CronJobStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1CronJobFluent.StatusNested withNewStatus() { return new V1CronJobFluentImpl.StatusNestedImpl(); } - public V1CronJobFluent.StatusNested withNewStatusLike(V1CronJobStatus item) { return new V1CronJobFluentImpl.StatusNestedImpl(item); } - public V1CronJobFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1CronJobFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1CronJobStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1CronJobStatusBuilder().build()); } - public V1CronJobFluent.StatusNested editOrNewStatusLike(V1CronJobStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CronJobFluentImpl that = (V1CronJobFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1CronJobFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1CronJobFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1CronJobFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1CronJobSpecFluentImpl> - implements V1CronJobFluent.SpecNested, Nested { + class SpecNestedImpl extends V1CronJobSpecFluentImpl> implements V1CronJobFluent.SpecNested,Nested{ SpecNestedImpl(V1CronJobSpec item) { this.builder = new V1CronJobSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1CronJobSpecBuilder(this); } - V1CronJobSpecBuilder builder; - public N and() { return (N) V1CronJobFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1CronJobStatusFluentImpl> - implements V1CronJobFluent.StatusNested, Nested { + class StatusNestedImpl extends V1CronJobStatusFluentImpl> implements V1CronJobFluent.StatusNested,Nested{ StatusNestedImpl(V1CronJobStatus item) { this.builder = new V1CronJobStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1CronJobStatusBuilder(this); } - V1CronJobStatusBuilder builder; - public N and() { return (N) V1CronJobFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java index dab88b18d8..9f1676a2c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CronJobListBuilder extends V1CronJobListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CronJobListBuilder extends V1CronJobListFluentImpl implements VisitableBuilder{ public V1CronJobListBuilder() { this(false); } - public V1CronJobListBuilder(Boolean validationEnabled) { this(new V1CronJobList(), validationEnabled); } - public V1CronJobListBuilder(V1CronJobListFluent fluent) { this(fluent, false); } - - public V1CronJobListBuilder(V1CronJobListFluent fluent, Boolean validationEnabled) { + public V1CronJobListBuilder(V1CronJobListFluent fluent,Boolean validationEnabled) { this(fluent, new V1CronJobList(), validationEnabled); } - - public V1CronJobListBuilder(V1CronJobListFluent fluent, V1CronJobList instance) { + public V1CronJobListBuilder(V1CronJobListFluent fluent,V1CronJobList instance) { this(fluent, instance, false); } - - public V1CronJobListBuilder( - V1CronJobListFluent fluent, V1CronJobList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CronJobListBuilder(V1CronJobListFluent fluent,V1CronJobList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1CronJobListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CronJobListBuilder(V1CronJobList instance) { - this(instance, false); + this(instance,false); } - - public V1CronJobListBuilder(V1CronJobList instance, Boolean validationEnabled) { - this.fluent = this; + public V1CronJobListBuilder(V1CronJobList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1CronJobListBuilder(V1CronJobList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CronJobListFluent fluent; Boolean validationEnabled; - public V1CronJobList build() { V1CronJobList buildable = new V1CronJobList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1CronJobList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java index db67aed7f8..e213b7f407 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CronJobListFluent> extends Fluent { + /** + * Generated + */ +public interface V1CronJobListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1CronJob item); - - public A setToItems(Integer index, V1CronJob item); - + public A addToItems(Integer index,V1CronJob item); + public A setToItems(Integer index,V1CronJob item); public A addToItems(io.kubernetes.client.openapi.models.V1CronJob... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1CronJob buildItem(Integer index); - public V1CronJob buildFirstItem(); - public V1CronJob buildLastItem(); - public V1CronJob buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items); - public Boolean hasItems(); - public V1CronJobListFluent.ItemsNested addNewItem(); - public V1CronJobListFluent.ItemsNested addNewItemLike(V1CronJob item); - - public V1CronJobListFluent.ItemsNested setNewItemLike(Integer index, V1CronJob item); - + public V1CronJobListFluent.ItemsNested setNewItemLike(Integer index,V1CronJob item); public V1CronJobListFluent.ItemsNested editItem(Integer index); - public V1CronJobListFluent.ItemsNested editFirstItem(); - public V1CronJobListFluent.ItemsNested editLastItem(); - public V1CronJobListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1CronJobListFluent.MetadataNested withNewMetadata(); - public V1CronJobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1CronJobListFluent.MetadataNested editMetadata(); - public V1CronJobListFluent.MetadataNested editOrNewMetadata(); - public V1CronJobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1CronJobFluent> { + public interface ItemsNested extends Nested,V1CronJobFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java index 0a3c527420..936d71f621 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CronJobListFluentImpl> extends BaseFluent - implements V1CronJobListFluent { - public V1CronJobListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CronJobListFluentImpl> extends BaseFluent implements V1CronJobListFluent{ + public V1CronJobListFluentImpl() { + } public V1CronJobListFluentImpl(V1CronJobList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1CronJobListFluentImpl(V1CronJobList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1CronJob item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1CronJob item) { + if (this.items == null) {this.items = new ArrayList();} + V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1CronJob item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1CronJob item) { + if (this.items == null) {this.items = new ArrayList();} V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1CronJob buildItem(Integer index) { return this.items.get(index).build(); } - public V1CronJob buildFirstItem() { return this.items.get(0).build(); } - public V1CronJob buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1CronJob buildMatchingItem(Predicate predicate) { - for (V1CronJobBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1CronJobBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1CronJobBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CronJobBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CronJob item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1CronJob item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1CronJob item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1CronJob item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1CronJobListFluent.ItemsNested addNewItem() { return new V1CronJobListFluentImpl.ItemsNestedImpl(); } - public V1CronJobListFluent.ItemsNested addNewItemLike(V1CronJob item) { return new V1CronJobListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1CronJobListFluent.ItemsNested setNewItemLike(Integer index, V1CronJob item) { + public V1CronJobListFluent.ItemsNested setNewItemLike(Integer index,V1CronJob item) { return new V1CronJobListFluentImpl.ItemsNestedImpl(index, item); } - public V1CronJobListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1CronJobListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1CronJobListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1CronJobListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1CronJobListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1CronJobListFluentImpl.MetadataNestedImpl(); } - public V1CronJobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1CronJobListFluentImpl.MetadataNestedImpl(item); } - public V1CronJobListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CronJobListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1CronJobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CronJobListFluentImpl that = (V1CronJobListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1CronJobFluentImpl> - implements V1CronJobListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1CronJob item) { + class ItemsNestedImpl extends V1CronJobFluentImpl> implements V1CronJobListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1CronJob item) { this.index = index; this.builder = new V1CronJobBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1CronJobBuilder(this); } - V1CronJobBuilder builder; Integer index; - public N and() { - return (N) V1CronJobListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1CronJobListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1CronJobListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1CronJobListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1CronJobListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java index 2300c393ff..e0e7b05db4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CronJobSpecBuilder extends V1CronJobSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CronJobSpecBuilder extends V1CronJobSpecFluentImpl implements VisitableBuilder{ public V1CronJobSpecBuilder() { this(false); } - public V1CronJobSpecBuilder(Boolean validationEnabled) { this(new V1CronJobSpec(), validationEnabled); } - public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent) { this(fluent, false); } - - public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent, Boolean validationEnabled) { + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1CronJobSpec(), validationEnabled); } - - public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent, V1CronJobSpec instance) { + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,V1CronJobSpec instance) { this(fluent, instance, false); } - - public V1CronJobSpecBuilder( - V1CronJobSpecFluent fluent, V1CronJobSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,V1CronJobSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConcurrencyPolicy(instance.getConcurrencyPolicy()); fluent.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); @@ -55,15 +36,13 @@ public V1CronJobSpecBuilder( fluent.withTimeZone(instance.getTimeZone()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CronJobSpecBuilder(V1CronJobSpec instance) { - this(instance, false); + this(instance,false); } - - public V1CronJobSpecBuilder(V1CronJobSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1CronJobSpecBuilder(V1CronJobSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); this.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); @@ -80,12 +59,10 @@ public V1CronJobSpecBuilder(V1CronJobSpec instance, Boolean validationEnabled) { this.withTimeZone(instance.getTimeZone()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CronJobSpecFluent fluent; Boolean validationEnabled; - public V1CronJobSpec build() { V1CronJobSpec buildable = new V1CronJobSpec(); buildable.setConcurrencyPolicy(fluent.getConcurrencyPolicy()); @@ -98,4 +75,5 @@ public V1CronJobSpec build() { buildable.setTimeZone(fluent.getTimeZone()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java index a6a2ebaf1b..2db48896b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java @@ -1,94 +1,58 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1CronJobSpecFluent> extends Fluent { +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CronJobSpecFluent> extends Fluent{ public String getConcurrencyPolicy(); - public A withConcurrencyPolicy(String concurrencyPolicy); - public Boolean hasConcurrencyPolicy(); - public Integer getFailedJobsHistoryLimit(); - public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit); - public Boolean hasFailedJobsHistoryLimit(); - + /** * This method has been deprecated, please use method buildJobTemplate instead. - * * @return The buildable object. */ @Deprecated public V1JobTemplateSpec getJobTemplate(); - public V1JobTemplateSpec buildJobTemplate(); - public A withJobTemplate(V1JobTemplateSpec jobTemplate); - public Boolean hasJobTemplate(); - public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplate(); - public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item); - public V1CronJobSpecFluent.JobTemplateNested editJobTemplate(); - public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplate(); - public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item); - public String getSchedule(); - public A withSchedule(String schedule); - public Boolean hasSchedule(); - public Long getStartingDeadlineSeconds(); - public A withStartingDeadlineSeconds(Long startingDeadlineSeconds); - public Boolean hasStartingDeadlineSeconds(); - public Integer getSuccessfulJobsHistoryLimit(); - public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit); - public Boolean hasSuccessfulJobsHistoryLimit(); - public Boolean getSuspend(); - public A withSuspend(Boolean suspend); - public Boolean hasSuspend(); - public String getTimeZone(); - public A withTimeZone(String timeZone); - public Boolean hasTimeZone(); - public A withSuspend(); - - public interface JobTemplateNested - extends Nested, V1JobTemplateSpecFluent> { + public interface JobTemplateNested extends Nested,V1JobTemplateSpecFluent>{ public N and(); - public N endJobTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java index ab70186104..516158bffb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java @@ -1,26 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CronJobSpecFluentImpl> extends BaseFluent - implements V1CronJobSpecFluent { - public V1CronJobSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CronJobSpecFluentImpl> extends BaseFluent implements V1CronJobSpecFluent{ + public V1CronJobSpecFluentImpl() { + } public V1CronJobSpecFluentImpl(V1CronJobSpec instance) { this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); @@ -37,8 +33,8 @@ public V1CronJobSpecFluentImpl(V1CronJobSpec instance) { this.withSuspend(instance.getSuspend()); this.withTimeZone(instance.getTimeZone()); - } + } private String concurrencyPolicy; private Integer failedJobsHistoryLimit; private V1JobTemplateSpecBuilder jobTemplate; @@ -47,248 +43,152 @@ public V1CronJobSpecFluentImpl(V1CronJobSpec instance) { private Integer successfulJobsHistoryLimit; private Boolean suspend; private String timeZone; - public String getConcurrencyPolicy() { return this.concurrencyPolicy; } - public A withConcurrencyPolicy(String concurrencyPolicy) { - this.concurrencyPolicy = concurrencyPolicy; - return (A) this; + this.concurrencyPolicy=concurrencyPolicy; return (A) this; } - public Boolean hasConcurrencyPolicy() { return this.concurrencyPolicy != null; } - public Integer getFailedJobsHistoryLimit() { return this.failedJobsHistoryLimit; } - public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { - this.failedJobsHistoryLimit = failedJobsHistoryLimit; - return (A) this; + this.failedJobsHistoryLimit=failedJobsHistoryLimit; return (A) this; } - public Boolean hasFailedJobsHistoryLimit() { return this.failedJobsHistoryLimit != null; } - + /** * This method has been deprecated, please use method buildJobTemplate instead. - * * @return The buildable object. */ @Deprecated public V1JobTemplateSpec getJobTemplate() { - return this.jobTemplate != null ? this.jobTemplate.build() : null; + return this.jobTemplate!=null ?this.jobTemplate.build():null; } - public V1JobTemplateSpec buildJobTemplate() { - return this.jobTemplate != null ? this.jobTemplate.build() : null; + return this.jobTemplate!=null ?this.jobTemplate.build():null; } - public A withJobTemplate(V1JobTemplateSpec jobTemplate) { _visitables.get("jobTemplate").remove(this.jobTemplate); - if (jobTemplate != null) { - this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); - _visitables.get("jobTemplate").add(this.jobTemplate); - } else { - this.jobTemplate = null; - _visitables.get("jobTemplate").remove(this.jobTemplate); - } - return (A) this; + if (jobTemplate!=null){ this.jobTemplate= new V1JobTemplateSpecBuilder(jobTemplate); _visitables.get("jobTemplate").add(this.jobTemplate);} else { this.jobTemplate = null; _visitables.get("jobTemplate").remove(this.jobTemplate); } return (A) this; } - public Boolean hasJobTemplate() { return this.jobTemplate != null; } - public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplate() { return new V1CronJobSpecFluentImpl.JobTemplateNestedImpl(); } - public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { return new V1CronJobSpecFluentImpl.JobTemplateNestedImpl(item); } - public V1CronJobSpecFluent.JobTemplateNested editJobTemplate() { return withNewJobTemplateLike(getJobTemplate()); } - public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplate() { - return withNewJobTemplateLike( - getJobTemplate() != null ? getJobTemplate() : new V1JobTemplateSpecBuilder().build()); + return withNewJobTemplateLike(getJobTemplate() != null ? getJobTemplate(): new V1JobTemplateSpecBuilder().build()); } - public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item) { - return withNewJobTemplateLike(getJobTemplate() != null ? getJobTemplate() : item); + return withNewJobTemplateLike(getJobTemplate() != null ? getJobTemplate(): item); } - public String getSchedule() { return this.schedule; } - public A withSchedule(String schedule) { - this.schedule = schedule; - return (A) this; + this.schedule=schedule; return (A) this; } - public Boolean hasSchedule() { return this.schedule != null; } - public Long getStartingDeadlineSeconds() { return this.startingDeadlineSeconds; } - public A withStartingDeadlineSeconds(Long startingDeadlineSeconds) { - this.startingDeadlineSeconds = startingDeadlineSeconds; - return (A) this; + this.startingDeadlineSeconds=startingDeadlineSeconds; return (A) this; } - public Boolean hasStartingDeadlineSeconds() { return this.startingDeadlineSeconds != null; } - public Integer getSuccessfulJobsHistoryLimit() { return this.successfulJobsHistoryLimit; } - public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { - this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - return (A) this; + this.successfulJobsHistoryLimit=successfulJobsHistoryLimit; return (A) this; } - public Boolean hasSuccessfulJobsHistoryLimit() { return this.successfulJobsHistoryLimit != null; } - public Boolean getSuspend() { return this.suspend; } - public A withSuspend(Boolean suspend) { - this.suspend = suspend; - return (A) this; + this.suspend=suspend; return (A) this; } - public Boolean hasSuspend() { return this.suspend != null; } - public String getTimeZone() { return this.timeZone; } - public A withTimeZone(String timeZone) { - this.timeZone = timeZone; - return (A) this; + this.timeZone=timeZone; return (A) this; } - public Boolean hasTimeZone() { return this.timeZone != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CronJobSpecFluentImpl that = (V1CronJobSpecFluentImpl) o; - if (concurrencyPolicy != null - ? !concurrencyPolicy.equals(that.concurrencyPolicy) - : that.concurrencyPolicy != null) return false; - if (failedJobsHistoryLimit != null - ? !failedJobsHistoryLimit.equals(that.failedJobsHistoryLimit) - : that.failedJobsHistoryLimit != null) return false; - if (jobTemplate != null ? !jobTemplate.equals(that.jobTemplate) : that.jobTemplate != null) - return false; - if (schedule != null ? !schedule.equals(that.schedule) : that.schedule != null) return false; - if (startingDeadlineSeconds != null - ? !startingDeadlineSeconds.equals(that.startingDeadlineSeconds) - : that.startingDeadlineSeconds != null) return false; - if (successfulJobsHistoryLimit != null - ? !successfulJobsHistoryLimit.equals(that.successfulJobsHistoryLimit) - : that.successfulJobsHistoryLimit != null) return false; - if (suspend != null ? !suspend.equals(that.suspend) : that.suspend != null) return false; - if (timeZone != null ? !timeZone.equals(that.timeZone) : that.timeZone != null) return false; + if (concurrencyPolicy != null ? !concurrencyPolicy.equals(that.concurrencyPolicy) :that.concurrencyPolicy != null) return false; + if (failedJobsHistoryLimit != null ? !failedJobsHistoryLimit.equals(that.failedJobsHistoryLimit) :that.failedJobsHistoryLimit != null) return false; + if (jobTemplate != null ? !jobTemplate.equals(that.jobTemplate) :that.jobTemplate != null) return false; + if (schedule != null ? !schedule.equals(that.schedule) :that.schedule != null) return false; + if (startingDeadlineSeconds != null ? !startingDeadlineSeconds.equals(that.startingDeadlineSeconds) :that.startingDeadlineSeconds != null) return false; + if (successfulJobsHistoryLimit != null ? !successfulJobsHistoryLimit.equals(that.successfulJobsHistoryLimit) :that.successfulJobsHistoryLimit != null) return false; + if (suspend != null ? !suspend.equals(that.suspend) :that.suspend != null) return false; + if (timeZone != null ? !timeZone.equals(that.timeZone) :that.timeZone != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - concurrencyPolicy, - failedJobsHistoryLimit, - jobTemplate, - schedule, - startingDeadlineSeconds, - successfulJobsHistoryLimit, - suspend, - timeZone, - super.hashCode()); + return java.util.Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (concurrencyPolicy != null) { - sb.append("concurrencyPolicy:"); - sb.append(concurrencyPolicy + ","); - } - if (failedJobsHistoryLimit != null) { - sb.append("failedJobsHistoryLimit:"); - sb.append(failedJobsHistoryLimit + ","); - } - if (jobTemplate != null) { - sb.append("jobTemplate:"); - sb.append(jobTemplate + ","); - } - if (schedule != null) { - sb.append("schedule:"); - sb.append(schedule + ","); - } - if (startingDeadlineSeconds != null) { - sb.append("startingDeadlineSeconds:"); - sb.append(startingDeadlineSeconds + ","); - } - if (successfulJobsHistoryLimit != null) { - sb.append("successfulJobsHistoryLimit:"); - sb.append(successfulJobsHistoryLimit + ","); - } - if (suspend != null) { - sb.append("suspend:"); - sb.append(suspend + ","); - } - if (timeZone != null) { - sb.append("timeZone:"); - sb.append(timeZone); - } + if (concurrencyPolicy != null) { sb.append("concurrencyPolicy:"); sb.append(concurrencyPolicy + ","); } + if (failedJobsHistoryLimit != null) { sb.append("failedJobsHistoryLimit:"); sb.append(failedJobsHistoryLimit + ","); } + if (jobTemplate != null) { sb.append("jobTemplate:"); sb.append(jobTemplate + ","); } + if (schedule != null) { sb.append("schedule:"); sb.append(schedule + ","); } + if (startingDeadlineSeconds != null) { sb.append("startingDeadlineSeconds:"); sb.append(startingDeadlineSeconds + ","); } + if (successfulJobsHistoryLimit != null) { sb.append("successfulJobsHistoryLimit:"); sb.append(successfulJobsHistoryLimit + ","); } + if (suspend != null) { sb.append("suspend:"); sb.append(suspend + ","); } + if (timeZone != null) { sb.append("timeZone:"); sb.append(timeZone); } sb.append("}"); return sb.toString(); } - public A withSuspend() { return withSuspend(true); } - - class JobTemplateNestedImpl - extends V1JobTemplateSpecFluentImpl> - implements V1CronJobSpecFluent.JobTemplateNested, Nested { + class JobTemplateNestedImpl extends V1JobTemplateSpecFluentImpl> implements V1CronJobSpecFluent.JobTemplateNested,Nested{ JobTemplateNestedImpl(V1JobTemplateSpec item) { this.builder = new V1JobTemplateSpecBuilder(this, item); } - JobTemplateNestedImpl() { this.builder = new V1JobTemplateSpecBuilder(this); } - V1JobTemplateSpecBuilder builder; - public N and() { return (N) V1CronJobSpecFluentImpl.this.withJobTemplate(builder.build()); } - public N endJobTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java index 780983cc1d..f82fd89685 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1CronJobStatusBuilder extends V1CronJobStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CronJobStatusBuilder extends V1CronJobStatusFluentImpl implements VisitableBuilder{ public V1CronJobStatusBuilder() { this(false); } - public V1CronJobStatusBuilder(Boolean validationEnabled) { this(new V1CronJobStatus(), validationEnabled); } - public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent) { this(fluent, false); } - - public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent, Boolean validationEnabled) { + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1CronJobStatus(), validationEnabled); } - - public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent, V1CronJobStatus instance) { + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,V1CronJobStatus instance) { this(fluent, instance, false); } - - public V1CronJobStatusBuilder( - V1CronJobStatusFluent fluent, V1CronJobStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,V1CronJobStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withActive(instance.getActive()); fluent.withLastScheduleTime(instance.getLastScheduleTime()); fluent.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CronJobStatusBuilder(V1CronJobStatus instance) { - this(instance, false); + this(instance,false); } - - public V1CronJobStatusBuilder(V1CronJobStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1CronJobStatusBuilder(V1CronJobStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withActive(instance.getActive()); this.withLastScheduleTime(instance.getLastScheduleTime()); this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CronJobStatusFluent fluent; Boolean validationEnabled; - public V1CronJobStatus build() { V1CronJobStatus buildable = new V1CronJobStatus(); buildable.setActive(fluent.getActive()); @@ -73,4 +50,5 @@ public V1CronJobStatus build() { buildable.setLastSuccessfulTime(fluent.getLastSuccessfulTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java index 60d0ddc384..a1523ce43c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java @@ -1,98 +1,62 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CronJobStatusFluent> extends Fluent { - public A addToActive(Integer index, V1ObjectReference item); - - public A setToActive(Integer index, V1ObjectReference item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CronJobStatusFluent> extends Fluent{ + public A addToActive(Integer index,V1ObjectReference item); + public A setToActive(Integer index,V1ObjectReference item); public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A addAllToActive(Collection items); - public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A removeAllFromActive(Collection items); - public A removeMatchingFromActive(Predicate predicate); - + /** * This method has been deprecated, please use method buildActive instead. - * * @return The buildable object. */ @Deprecated public List getActive(); - public List buildActive(); - public V1ObjectReference buildActive(Integer index); - public V1ObjectReference buildFirstActive(); - public V1ObjectReference buildLastActive(); - public V1ObjectReference buildMatchingActive(Predicate predicate); - public Boolean hasMatchingActive(Predicate predicate); - public A withActive(List active); - public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active); - public Boolean hasActive(); - public V1CronJobStatusFluent.ActiveNested addNewActive(); - public V1CronJobStatusFluent.ActiveNested addNewActiveLike(V1ObjectReference item); - - public V1CronJobStatusFluent.ActiveNested setNewActiveLike( - Integer index, V1ObjectReference item); - + public V1CronJobStatusFluent.ActiveNested setNewActiveLike(Integer index,V1ObjectReference item); public V1CronJobStatusFluent.ActiveNested editActive(Integer index); - public V1CronJobStatusFluent.ActiveNested editFirstActive(); - public V1CronJobStatusFluent.ActiveNested editLastActive(); - - public V1CronJobStatusFluent.ActiveNested editMatchingActive( - Predicate predicate); - + public V1CronJobStatusFluent.ActiveNested editMatchingActive(Predicate predicate); public OffsetDateTime getLastScheduleTime(); - public A withLastScheduleTime(OffsetDateTime lastScheduleTime); - public Boolean hasLastScheduleTime(); - public OffsetDateTime getLastSuccessfulTime(); - public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime); - public Boolean hasLastSuccessfulTime(); - - public interface ActiveNested - extends Nested, V1ObjectReferenceFluent> { + public interface ActiveNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endActive(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java index 50af90e729..5584d2f32a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java @@ -1,118 +1,64 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CronJobStatusFluentImpl> extends BaseFluent - implements V1CronJobStatusFluent { - public V1CronJobStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CronJobStatusFluentImpl> extends BaseFluent implements V1CronJobStatusFluent{ + public V1CronJobStatusFluentImpl() { + } public V1CronJobStatusFluentImpl(V1CronJobStatus instance) { this.withActive(instance.getActive()); this.withLastScheduleTime(instance.getLastScheduleTime()); this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - } + } private ArrayList active; private OffsetDateTime lastScheduleTime; private OffsetDateTime lastSuccessfulTime; - - public A addToActive(Integer index, V1ObjectReference item) { - if (this.active == null) { - this.active = new ArrayList(); - } - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").add(index >= 0 ? index : _visitables.get("active").size(), builder); - this.active.add(index >= 0 ? index : active.size(), builder); - return (A) this; + public A addToActive(Integer index,V1ObjectReference item) { + if (this.active == null) {this.active = new ArrayList();} + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(index >= 0 ? index : _visitables.get("active").size(), builder);this.active.add(index >= 0 ? index : active.size(), builder); return (A)this; } - - public A setToActive(Integer index, V1ObjectReference item) { - if (this.active == null) { - this.active = new ArrayList(); - } + public A setToActive(Integer index,V1ObjectReference item) { + if (this.active == null) {this.active = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= _visitables.get("active").size()) { - _visitables.get("active").add(builder); - } else { - _visitables.get("active").set(index, builder); - } - if (index < 0 || index >= active.size()) { - active.add(builder); - } else { - active.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("active").size()) { _visitables.get("active").add(builder); } else { _visitables.get("active").set(index, builder);} + if (index < 0 || index >= active.size()) { active.add(builder); } else { active.set(index, builder);} + return (A)this; } - public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.active == null) { - this.active = new ArrayList(); - } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").add(builder); - this.active.add(builder); - } - return (A) this; + if (this.active == null) {this.active = new ArrayList();} + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(builder);this.active.add(builder);} return (A)this; } - public A addAllToActive(Collection items) { - if (this.active == null) { - this.active = new ArrayList(); - } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").add(builder); - this.active.add(builder); - } - return (A) this; + if (this.active == null) {this.active = new ArrayList();} + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(builder);this.active.add(builder);} return (A)this; } - public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").remove(builder); - if (this.active != null) { - this.active.remove(builder); - } - } - return (A) this; + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").remove(builder);if (this.active != null) {this.active.remove(builder);}} return (A)this; } - public A removeAllFromActive(Collection items) { - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").remove(builder); - if (this.active != null) { - this.active.remove(builder); - } - } - return (A) this; + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").remove(builder);if (this.active != null) {this.active.remove(builder);}} return (A)this; } - public A removeMatchingFromActive(Predicate predicate) { if (active == null) return (A) this; final Iterator each = active.iterator(); @@ -124,213 +70,133 @@ public A removeMatchingFromActive(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildActive instead. - * * @return The buildable object. */ @Deprecated public List getActive() { return active != null ? build(active) : null; } - public List buildActive() { return active != null ? build(active) : null; } - public V1ObjectReference buildActive(Integer index) { return this.active.get(index).build(); } - public V1ObjectReference buildFirstActive() { return this.active.get(0).build(); } - public V1ObjectReference buildLastActive() { return this.active.get(active.size() - 1).build(); } - public V1ObjectReference buildMatchingActive(Predicate predicate) { - for (V1ObjectReferenceBuilder item : active) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ObjectReferenceBuilder item: active) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingActive(Predicate predicate) { - for (V1ObjectReferenceBuilder item : active) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ObjectReferenceBuilder item: active) { if(predicate.test(item)){ return true;} } return false; } - public A withActive(List active) { - if (this.active != null) { - _visitables.get("active").removeAll(this.active); - } - if (active != null) { - this.active = new ArrayList(); - for (V1ObjectReference item : active) { - this.addToActive(item); - } - } else { - this.active = null; - } - return (A) this; + if (this.active != null) { _visitables.get("active").removeAll(this.active);} + if (active != null) {this.active = new ArrayList(); for (V1ObjectReference item : active){this.addToActive(item);}} else { this.active = null;} return (A) this; } - public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active) { - if (this.active != null) { - this.active.clear(); - } - if (active != null) { - for (V1ObjectReference item : active) { - this.addToActive(item); - } - } - return (A) this; + if (this.active != null) {this.active.clear();} + if (active != null) {for (V1ObjectReference item :active){ this.addToActive(item);}} return (A) this; } - public Boolean hasActive() { return active != null && !active.isEmpty(); } - public V1CronJobStatusFluent.ActiveNested addNewActive() { return new V1CronJobStatusFluentImpl.ActiveNestedImpl(); } - public V1CronJobStatusFluent.ActiveNested addNewActiveLike(V1ObjectReference item) { return new V1CronJobStatusFluentImpl.ActiveNestedImpl(-1, item); } - - public V1CronJobStatusFluent.ActiveNested setNewActiveLike( - Integer index, V1ObjectReference item) { + public V1CronJobStatusFluent.ActiveNested setNewActiveLike(Integer index,V1ObjectReference item) { return new V1CronJobStatusFluentImpl.ActiveNestedImpl(index, item); } - public V1CronJobStatusFluent.ActiveNested editActive(Integer index) { - if (active.size() <= index) - throw new RuntimeException("Can't edit active. Index exceeds size."); + if (active.size() <= index) throw new RuntimeException("Can't edit active. Index exceeds size."); return setNewActiveLike(index, buildActive(index)); } - public V1CronJobStatusFluent.ActiveNested editFirstActive() { - if (active.size() == 0) - throw new RuntimeException("Can't edit first active. The list is empty."); + if (active.size() == 0) throw new RuntimeException("Can't edit first active. The list is empty."); return setNewActiveLike(0, buildActive(0)); } - public V1CronJobStatusFluent.ActiveNested editLastActive() { int index = active.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last active. The list is empty."); return setNewActiveLike(index, buildActive(index)); } - - public V1CronJobStatusFluent.ActiveNested editMatchingActive( - Predicate predicate) { + public V1CronJobStatusFluent.ActiveNested editMatchingActive(Predicate predicate) { int index = -1; - for (int i = 0; i < active.size(); i++) { - if (predicate.test(active.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ObjectReferenceFluentImpl> - implements V1CronJobStatusFluent.ActiveNested, Nested { - ActiveNestedImpl(Integer index, V1ObjectReference item) { + class ActiveNestedImpl extends V1ObjectReferenceFluentImpl> implements V1CronJobStatusFluent.ActiveNested,Nested{ + ActiveNestedImpl(Integer index,V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } - ActiveNestedImpl() { this.index = -1; this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; Integer index; - public N and() { - return (N) V1CronJobStatusFluentImpl.this.setToActive(index, builder.build()); + return (N) V1CronJobStatusFluentImpl.this.setToActive(index,builder.build()); } - public N endActive() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java index 3f02de6aba..6a48cbd15a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1CrossVersionObjectReferenceBuilder - extends V1CrossVersionObjectReferenceFluentImpl - implements VisitableBuilder< - V1CrossVersionObjectReference, V1CrossVersionObjectReferenceBuilder> { +import java.lang.Boolean; +public class V1CrossVersionObjectReferenceBuilder extends V1CrossVersionObjectReferenceFluentImpl implements VisitableBuilder{ public V1CrossVersionObjectReferenceBuilder() { this(false); } - public V1CrossVersionObjectReferenceBuilder(Boolean validationEnabled) { this(new V1CrossVersionObjectReference(), validationEnabled); } - public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent) { this(fluent, false); } - - public V1CrossVersionObjectReferenceBuilder( - V1CrossVersionObjectReferenceFluent fluent, Boolean validationEnabled) { + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1CrossVersionObjectReference(), validationEnabled); } - - public V1CrossVersionObjectReferenceBuilder( - V1CrossVersionObjectReferenceFluent fluent, V1CrossVersionObjectReference instance) { + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,V1CrossVersionObjectReference instance) { this(fluent, instance, false); } - - public V1CrossVersionObjectReferenceBuilder( - V1CrossVersionObjectReferenceFluent fluent, - V1CrossVersionObjectReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,V1CrossVersionObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V1CrossVersionObjectReferenceBuilder( - V1CrossVersionObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CrossVersionObjectReferenceFluent fluent; Boolean validationEnabled; - public V1CrossVersionObjectReference build() { V1CrossVersionObjectReference buildable = new V1CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -80,4 +50,5 @@ public V1CrossVersionObjectReference build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java index 9e961120a5..52763d6adc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java @@ -1,38 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CrossVersionObjectReferenceFluent< - A extends V1CrossVersionObjectReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CrossVersionObjectReferenceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java index 555fe654d4..ab295663af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java @@ -1,108 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CrossVersionObjectReferenceFluentImpl< - A extends V1CrossVersionObjectReferenceFluent> - extends BaseFluent implements V1CrossVersionObjectReferenceFluent { - public V1CrossVersionObjectReferenceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CrossVersionObjectReferenceFluentImpl> extends BaseFluent implements V1CrossVersionObjectReferenceFluent{ + public V1CrossVersionObjectReferenceFluentImpl() { + } public V1CrossVersionObjectReferenceFluentImpl(V1CrossVersionObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withName(instance.getName()); - } + } private String apiVersion; private String kind; private String name; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CrossVersionObjectReferenceFluentImpl that = (V1CrossVersionObjectReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java index a3fd6aa227..88ddc78271 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceColumnDefinitionBuilder - extends V1CustomResourceColumnDefinitionFluentImpl - implements VisitableBuilder< - V1CustomResourceColumnDefinition, V1CustomResourceColumnDefinitionBuilder> { +import java.lang.Boolean; +public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluentImpl implements VisitableBuilder{ public V1CustomResourceColumnDefinitionBuilder() { this(false); } - public V1CustomResourceColumnDefinitionBuilder(Boolean validationEnabled) { this(new V1CustomResourceColumnDefinition(), validationEnabled); } - public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent) { this(fluent, false); } - - public V1CustomResourceColumnDefinitionBuilder( - V1CustomResourceColumnDefinitionFluent fluent, Boolean validationEnabled) { + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceColumnDefinition(), validationEnabled); } - - public V1CustomResourceColumnDefinitionBuilder( - V1CustomResourceColumnDefinitionFluent fluent, V1CustomResourceColumnDefinition instance) { + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance) { this(fluent, instance, false); } - - public V1CustomResourceColumnDefinitionBuilder( - V1CustomResourceColumnDefinitionFluent fluent, - V1CustomResourceColumnDefinition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDescription(instance.getDescription()); fluent.withFormat(instance.getFormat()); @@ -57,16 +32,13 @@ public V1CustomResourceColumnDefinitionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceColumnDefinitionBuilder( - V1CustomResourceColumnDefinition instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance,Boolean validationEnabled) { + this.fluent = this; this.withDescription(instance.getDescription()); this.withFormat(instance.getFormat()); @@ -79,12 +51,10 @@ public V1CustomResourceColumnDefinitionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceColumnDefinitionFluent fluent; Boolean validationEnabled; - public V1CustomResourceColumnDefinition build() { V1CustomResourceColumnDefinition buildable = new V1CustomResourceColumnDefinition(); buildable.setDescription(fluent.getDescription()); @@ -95,4 +65,5 @@ public V1CustomResourceColumnDefinition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java index c46a2df71a..574890d0e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java @@ -1,56 +1,31 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CustomResourceColumnDefinitionFluent< - A extends V1CustomResourceColumnDefinitionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CustomResourceColumnDefinitionFluent> extends Fluent{ public String getDescription(); - public A withDescription(String description); - public Boolean hasDescription(); - public String getFormat(); - public A withFormat(String format); - public Boolean hasFormat(); - public String getJsonPath(); - public A withJsonPath(String jsonPath); - public Boolean hasJsonPath(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Integer getPriority(); - public A withPriority(Integer priority); - public Boolean hasPriority(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java index 8e3302ff69..8c3d8fefcd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceColumnDefinitionFluentImpl< - A extends V1CustomResourceColumnDefinitionFluent> - extends BaseFluent implements V1CustomResourceColumnDefinitionFluent { - public V1CustomResourceColumnDefinitionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceColumnDefinitionFluentImpl> extends BaseFluent implements V1CustomResourceColumnDefinitionFluent{ + public V1CustomResourceColumnDefinitionFluentImpl() { + } public V1CustomResourceColumnDefinitionFluentImpl(V1CustomResourceColumnDefinition instance) { this.withDescription(instance.getDescription()); @@ -33,141 +26,94 @@ public V1CustomResourceColumnDefinitionFluentImpl(V1CustomResourceColumnDefiniti this.withPriority(instance.getPriority()); this.withType(instance.getType()); - } + } private String description; private String format; private String jsonPath; private String name; private Integer priority; private String type; - public String getDescription() { return this.description; } - public A withDescription(String description) { - this.description = description; - return (A) this; + this.description=description; return (A) this; } - public Boolean hasDescription() { return this.description != null; } - public String getFormat() { return this.format; } - public A withFormat(String format) { - this.format = format; - return (A) this; + this.format=format; return (A) this; } - public Boolean hasFormat() { return this.format != null; } - public String getJsonPath() { return this.jsonPath; } - public A withJsonPath(String jsonPath) { - this.jsonPath = jsonPath; - return (A) this; + this.jsonPath=jsonPath; return (A) this; } - public Boolean hasJsonPath() { return this.jsonPath != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Integer getPriority() { return this.priority; } - public A withPriority(Integer priority) { - this.priority = priority; - return (A) this; + this.priority=priority; return (A) this; } - public Boolean hasPriority() { return this.priority != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1CustomResourceColumnDefinitionFluentImpl that = - (V1CustomResourceColumnDefinitionFluentImpl) o; - if (description != null ? !description.equals(that.description) : that.description != null) - return false; - if (format != null ? !format.equals(that.format) : that.format != null) return false; - if (jsonPath != null ? !jsonPath.equals(that.jsonPath) : that.jsonPath != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (priority != null ? !priority.equals(that.priority) : that.priority != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1CustomResourceColumnDefinitionFluentImpl that = (V1CustomResourceColumnDefinitionFluentImpl) o; + if (description != null ? !description.equals(that.description) :that.description != null) return false; + if (format != null ? !format.equals(that.format) :that.format != null) return false; + if (jsonPath != null ? !jsonPath.equals(that.jsonPath) :that.jsonPath != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (priority != null ? !priority.equals(that.priority) :that.priority != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - description, format, jsonPath, name, priority, type, super.hashCode()); + return java.util.Objects.hash(description, format, jsonPath, name, priority, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (description != null) { - sb.append("description:"); - sb.append(description + ","); - } - if (format != null) { - sb.append("format:"); - sb.append(format + ","); - } - if (jsonPath != null) { - sb.append("jsonPath:"); - sb.append(jsonPath + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (priority != null) { - sb.append("priority:"); - sb.append(priority + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (description != null) { sb.append("description:"); sb.append(description + ","); } + if (format != null) { sb.append("format:"); sb.append(format + ","); } + if (jsonPath != null) { sb.append("jsonPath:"); sb.append(jsonPath + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (priority != null) { sb.append("priority:"); sb.append(priority + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java index e0099591c7..20ab445952 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceConversionBuilder - extends V1CustomResourceConversionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CustomResourceConversionBuilder extends V1CustomResourceConversionFluentImpl implements VisitableBuilder{ public V1CustomResourceConversionBuilder() { this(false); } - public V1CustomResourceConversionBuilder(Boolean validationEnabled) { this(new V1CustomResourceConversion(), validationEnabled); } - public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent) { this(fluent, false); } - - public V1CustomResourceConversionBuilder( - V1CustomResourceConversionFluent fluent, Boolean validationEnabled) { + public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceConversion(), validationEnabled); } - - public V1CustomResourceConversionBuilder( - V1CustomResourceConversionFluent fluent, V1CustomResourceConversion instance) { + public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,V1CustomResourceConversion instance) { this(fluent, instance, false); } - - public V1CustomResourceConversionBuilder( - V1CustomResourceConversionFluent fluent, - V1CustomResourceConversion instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,V1CustomResourceConversion instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withStrategy(instance.getStrategy()); fluent.withWebhook(instance.getWebhook()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceConversionBuilder(V1CustomResourceConversion instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceConversionBuilder( - V1CustomResourceConversion instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceConversionBuilder(V1CustomResourceConversion instance,Boolean validationEnabled) { + this.fluent = this; this.withStrategy(instance.getStrategy()); this.withWebhook(instance.getWebhook()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceConversionFluent fluent; Boolean validationEnabled; - public V1CustomResourceConversion build() { V1CustomResourceConversion buildable = new V1CustomResourceConversion(); buildable.setStrategy(fluent.getStrategy()); buildable.setWebhook(fluent.getWebhook()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java index 2f98469137..80c33420ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java @@ -1,60 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CustomResourceConversionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CustomResourceConversionFluent> extends Fluent{ public String getStrategy(); - public A withStrategy(String strategy); - public Boolean hasStrategy(); - + /** * This method has been deprecated, please use method buildWebhook instead. - * * @return The buildable object. */ @Deprecated public V1WebhookConversion getWebhook(); - public V1WebhookConversion buildWebhook(); - public A withWebhook(V1WebhookConversion webhook); - public Boolean hasWebhook(); - public V1CustomResourceConversionFluent.WebhookNested withNewWebhook(); - - public V1CustomResourceConversionFluent.WebhookNested withNewWebhookLike( - V1WebhookConversion item); - + public V1CustomResourceConversionFluent.WebhookNested withNewWebhookLike(V1WebhookConversion item); public V1CustomResourceConversionFluent.WebhookNested editWebhook(); - public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhook(); - - public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhookLike( - V1WebhookConversion item); - - public interface WebhookNested - extends Nested, - V1WebhookConversionFluent> { + public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhookLike(V1WebhookConversion item); + public interface WebhookNested extends Nested,V1WebhookConversionFluent>{ public N and(); - public N endWebhook(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java index 5cfe6168b0..8a1a87e695 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java @@ -1,148 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceConversionFluentImpl> - extends BaseFluent implements V1CustomResourceConversionFluent { - public V1CustomResourceConversionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceConversionFluentImpl> extends BaseFluent implements V1CustomResourceConversionFluent{ + public V1CustomResourceConversionFluentImpl() { + } public V1CustomResourceConversionFluentImpl(V1CustomResourceConversion instance) { this.withStrategy(instance.getStrategy()); this.withWebhook(instance.getWebhook()); - } + } private String strategy; private V1WebhookConversionBuilder webhook; - public String getStrategy() { return this.strategy; } - public A withStrategy(String strategy) { - this.strategy = strategy; - return (A) this; + this.strategy=strategy; return (A) this; } - public Boolean hasStrategy() { return this.strategy != null; } - + /** * This method has been deprecated, please use method buildWebhook instead. - * * @return The buildable object. */ @Deprecated public V1WebhookConversion getWebhook() { - return this.webhook != null ? this.webhook.build() : null; + return this.webhook!=null ?this.webhook.build():null; } - public V1WebhookConversion buildWebhook() { - return this.webhook != null ? this.webhook.build() : null; + return this.webhook!=null ?this.webhook.build():null; } - public A withWebhook(V1WebhookConversion webhook) { _visitables.get("webhook").remove(this.webhook); - if (webhook != null) { - this.webhook = new V1WebhookConversionBuilder(webhook); - _visitables.get("webhook").add(this.webhook); - } else { - this.webhook = null; - _visitables.get("webhook").remove(this.webhook); - } - return (A) this; + if (webhook!=null){ this.webhook= new V1WebhookConversionBuilder(webhook); _visitables.get("webhook").add(this.webhook);} else { this.webhook = null; _visitables.get("webhook").remove(this.webhook); } return (A) this; } - public Boolean hasWebhook() { return this.webhook != null; } - public V1CustomResourceConversionFluent.WebhookNested withNewWebhook() { return new V1CustomResourceConversionFluentImpl.WebhookNestedImpl(); } - - public V1CustomResourceConversionFluent.WebhookNested withNewWebhookLike( - V1WebhookConversion item) { + public V1CustomResourceConversionFluent.WebhookNested withNewWebhookLike(V1WebhookConversion item) { return new V1CustomResourceConversionFluentImpl.WebhookNestedImpl(item); } - public V1CustomResourceConversionFluent.WebhookNested editWebhook() { return withNewWebhookLike(getWebhook()); } - public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhook() { - return withNewWebhookLike( - getWebhook() != null ? getWebhook() : new V1WebhookConversionBuilder().build()); + return withNewWebhookLike(getWebhook() != null ? getWebhook(): new V1WebhookConversionBuilder().build()); } - - public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhookLike( - V1WebhookConversion item) { - return withNewWebhookLike(getWebhook() != null ? getWebhook() : item); + public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhookLike(V1WebhookConversion item) { + return withNewWebhookLike(getWebhook() != null ? getWebhook(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceConversionFluentImpl that = (V1CustomResourceConversionFluentImpl) o; - if (strategy != null ? !strategy.equals(that.strategy) : that.strategy != null) return false; - if (webhook != null ? !webhook.equals(that.webhook) : that.webhook != null) return false; + if (strategy != null ? !strategy.equals(that.strategy) :that.strategy != null) return false; + if (webhook != null ? !webhook.equals(that.webhook) :that.webhook != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(strategy, webhook, super.hashCode()); + return java.util.Objects.hash(strategy, webhook, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (strategy != null) { - sb.append("strategy:"); - sb.append(strategy + ","); - } - if (webhook != null) { - sb.append("webhook:"); - sb.append(webhook); - } + if (strategy != null) { sb.append("strategy:"); sb.append(strategy + ","); } + if (webhook != null) { sb.append("webhook:"); sb.append(webhook); } sb.append("}"); return sb.toString(); } - - class WebhookNestedImpl - extends V1WebhookConversionFluentImpl> - implements V1CustomResourceConversionFluent.WebhookNested, Nested { + class WebhookNestedImpl extends V1WebhookConversionFluentImpl> implements V1CustomResourceConversionFluent.WebhookNested,Nested{ WebhookNestedImpl(V1WebhookConversion item) { this.builder = new V1WebhookConversionBuilder(this, item); } - WebhookNestedImpl() { this.builder = new V1WebhookConversionBuilder(this); } - V1WebhookConversionBuilder builder; - public N and() { return (N) V1CustomResourceConversionFluentImpl.this.withWebhook(builder.build()); } - public N endWebhook() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java index e05f26d5a2..d09259d357 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionBuilder - extends V1CustomResourceDefinitionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CustomResourceDefinitionBuilder extends V1CustomResourceDefinitionFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionBuilder() { this(false); } - public V1CustomResourceDefinitionBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinition(), validationEnabled); } - public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionBuilder( - V1CustomResourceDefinitionFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinition(), validationEnabled); } - - public V1CustomResourceDefinitionBuilder( - V1CustomResourceDefinitionFluent fluent, V1CustomResourceDefinition instance) { + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,V1CustomResourceDefinition instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionBuilder( - V1CustomResourceDefinitionFluent fluent, - V1CustomResourceDefinition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,V1CustomResourceDefinition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1CustomResourceDefinitionBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinition instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionBuilder( - V1CustomResourceDefinition instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinition instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1CustomResourceDefinitionBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinition build() { V1CustomResourceDefinition buildable = new V1CustomResourceDefinition(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1CustomResourceDefinition build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java index 517cf270db..b2a5bf0272 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionConditionBuilder - extends V1CustomResourceDefinitionConditionFluentImpl< - V1CustomResourceDefinitionConditionBuilder> - implements VisitableBuilder< - V1CustomResourceDefinitionCondition, V1CustomResourceDefinitionConditionBuilder> { +import java.lang.Boolean; +public class V1CustomResourceDefinitionConditionBuilder extends V1CustomResourceDefinitionConditionFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionConditionBuilder() { this(false); } - public V1CustomResourceDefinitionConditionBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionCondition(), validationEnabled); } - - public V1CustomResourceDefinitionConditionBuilder( - V1CustomResourceDefinitionConditionFluent fluent) { + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionConditionBuilder( - V1CustomResourceDefinitionConditionFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionCondition(), validationEnabled); } - - public V1CustomResourceDefinitionConditionBuilder( - V1CustomResourceDefinitionConditionFluent fluent, - V1CustomResourceDefinitionCondition instance) { + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,V1CustomResourceDefinitionCondition instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionConditionBuilder( - V1CustomResourceDefinitionConditionFluent fluent, - V1CustomResourceDefinitionCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,V1CustomResourceDefinitionCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -58,16 +30,13 @@ public V1CustomResourceDefinitionConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCondition instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionConditionBuilder( - V1CustomResourceDefinitionCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -78,12 +47,10 @@ public V1CustomResourceDefinitionConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionConditionFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinitionCondition build() { V1CustomResourceDefinitionCondition buildable = new V1CustomResourceDefinitionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -93,4 +60,5 @@ public V1CustomResourceDefinitionCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java index 640fd0e4c4..1b5f681250 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java @@ -1,51 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CustomResourceDefinitionConditionFluent< - A extends V1CustomResourceDefinitionConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CustomResourceDefinitionConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java index 7be950326b..67a5245811 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java @@ -1,29 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionConditionFluentImpl< - A extends V1CustomResourceDefinitionConditionFluent> - extends BaseFluent implements V1CustomResourceDefinitionConditionFluent { - public V1CustomResourceDefinitionConditionFluentImpl() {} - - public V1CustomResourceDefinitionConditionFluentImpl( - V1CustomResourceDefinitionCondition instance) { +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionConditionFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionConditionFluent{ + public V1CustomResourceDefinitionConditionFluentImpl() { + } + public V1CustomResourceDefinitionConditionFluentImpl(V1CustomResourceDefinitionCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -33,123 +24,82 @@ public V1CustomResourceDefinitionConditionFluentImpl( this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1CustomResourceDefinitionConditionFluentImpl that = - (V1CustomResourceDefinitionConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1CustomResourceDefinitionConditionFluentImpl that = (V1CustomResourceDefinitionConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java index 5bd251ea15..6081fb7e2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java @@ -1,132 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1CustomResourceDefinitionFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CustomResourceDefinitionFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadata(); - public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1CustomResourceDefinitionFluent.MetadataNested editMetadata(); - public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadata(); - - public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionSpec getSpec(); - public V1CustomResourceDefinitionSpec buildSpec(); - public A withSpec(V1CustomResourceDefinitionSpec spec); - public Boolean hasSpec(); - public V1CustomResourceDefinitionFluent.SpecNested withNewSpec(); - - public V1CustomResourceDefinitionFluent.SpecNested withNewSpecLike( - V1CustomResourceDefinitionSpec item); - + public V1CustomResourceDefinitionFluent.SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item); public V1CustomResourceDefinitionFluent.SpecNested editSpec(); - public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpec(); - - public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpecLike( - V1CustomResourceDefinitionSpec item); - + public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpecLike(V1CustomResourceDefinitionSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionStatus getStatus(); - public V1CustomResourceDefinitionStatus buildStatus(); - public A withStatus(V1CustomResourceDefinitionStatus status); - public Boolean hasStatus(); - public V1CustomResourceDefinitionFluent.StatusNested withNewStatus(); - - public V1CustomResourceDefinitionFluent.StatusNested withNewStatusLike( - V1CustomResourceDefinitionStatus item); - + public V1CustomResourceDefinitionFluent.StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item); public V1CustomResourceDefinitionFluent.StatusNested editStatus(); - public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatus(); - - public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatusLike( - V1CustomResourceDefinitionStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1CustomResourceDefinitionSpecFluent> { + public interface SpecNested extends Nested,V1CustomResourceDefinitionSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1CustomResourceDefinitionStatusFluent> { + public interface StatusNested extends Nested,V1CustomResourceDefinitionStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java index d5fede4e36..4726ce0f89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionFluentImpl> - extends BaseFluent implements V1CustomResourceDefinitionFluent { - public V1CustomResourceDefinitionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionFluent{ + public V1CustomResourceDefinitionFluentImpl() { + } public V1CustomResourceDefinitionFluentImpl(V1CustomResourceDefinition instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,307 +25,205 @@ public V1CustomResourceDefinitionFluentImpl(V1CustomResourceDefinition instance) this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CustomResourceDefinitionSpecBuilder spec; private V1CustomResourceDefinitionStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadata() { return new V1CustomResourceDefinitionFluentImpl.MetadataNestedImpl(); } - public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CustomResourceDefinitionFluentImpl.MetadataNestedImpl(item); } - public V1CustomResourceDefinitionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1CustomResourceDefinitionSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1CustomResourceDefinitionSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1CustomResourceDefinitionSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1CustomResourceDefinitionSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1CustomResourceDefinitionFluent.SpecNested withNewSpec() { return new V1CustomResourceDefinitionFluentImpl.SpecNestedImpl(); } - - public V1CustomResourceDefinitionFluent.SpecNested withNewSpecLike( - V1CustomResourceDefinitionSpec item) { + public V1CustomResourceDefinitionFluent.SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item) { return new V1CustomResourceDefinitionFluentImpl.SpecNestedImpl(item); } - public V1CustomResourceDefinitionFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1CustomResourceDefinitionSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1CustomResourceDefinitionSpecBuilder().build()); } - - public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpecLike( - V1CustomResourceDefinitionSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpecLike(V1CustomResourceDefinitionSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1CustomResourceDefinitionStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1CustomResourceDefinitionStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1CustomResourceDefinitionStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1CustomResourceDefinitionStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1CustomResourceDefinitionFluent.StatusNested withNewStatus() { return new V1CustomResourceDefinitionFluentImpl.StatusNestedImpl(); } - - public V1CustomResourceDefinitionFluent.StatusNested withNewStatusLike( - V1CustomResourceDefinitionStatus item) { + public V1CustomResourceDefinitionFluent.StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item) { return new V1CustomResourceDefinitionFluentImpl.StatusNestedImpl(item); } - public V1CustomResourceDefinitionFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1CustomResourceDefinitionStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1CustomResourceDefinitionStatusBuilder().build()); } - - public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatusLike( - V1CustomResourceDefinitionStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceDefinitionFluentImpl that = (V1CustomResourceDefinitionFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1CustomResourceDefinitionFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1CustomResourceDefinitionFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1CustomResourceDefinitionSpecFluentImpl< - V1CustomResourceDefinitionFluent.SpecNested> - implements V1CustomResourceDefinitionFluent.SpecNested, Nested { + class SpecNestedImpl extends V1CustomResourceDefinitionSpecFluentImpl> implements V1CustomResourceDefinitionFluent.SpecNested,Nested{ SpecNestedImpl(V1CustomResourceDefinitionSpec item) { this.builder = new V1CustomResourceDefinitionSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1CustomResourceDefinitionSpecBuilder(this); } - V1CustomResourceDefinitionSpecBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1CustomResourceDefinitionStatusFluentImpl< - V1CustomResourceDefinitionFluent.StatusNested> - implements V1CustomResourceDefinitionFluent.StatusNested, Nested { + class StatusNestedImpl extends V1CustomResourceDefinitionStatusFluentImpl> implements V1CustomResourceDefinitionFluent.StatusNested,Nested{ StatusNestedImpl(V1CustomResourceDefinitionStatus item) { this.builder = new V1CustomResourceDefinitionStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1CustomResourceDefinitionStatusBuilder(this); } - V1CustomResourceDefinitionStatusBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java index 5df238cf4b..6083123ad1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionListBuilder - extends V1CustomResourceDefinitionListFluentImpl - implements VisitableBuilder< - V1CustomResourceDefinitionList, V1CustomResourceDefinitionListBuilder> { +import java.lang.Boolean; +public class V1CustomResourceDefinitionListBuilder extends V1CustomResourceDefinitionListFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionListBuilder() { this(false); } - public V1CustomResourceDefinitionListBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionList(), validationEnabled); } - public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionListBuilder( - V1CustomResourceDefinitionListFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionList(), validationEnabled); } - - public V1CustomResourceDefinitionListBuilder( - V1CustomResourceDefinitionListFluent fluent, V1CustomResourceDefinitionList instance) { + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,V1CustomResourceDefinitionList instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionListBuilder( - V1CustomResourceDefinitionListFluent fluent, - V1CustomResourceDefinitionList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,V1CustomResourceDefinitionList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -53,16 +28,13 @@ public V1CustomResourceDefinitionListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionList instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionListBuilder( - V1CustomResourceDefinitionList instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -71,12 +43,10 @@ public V1CustomResourceDefinitionListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionListFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinitionList build() { V1CustomResourceDefinitionList buildable = new V1CustomResourceDefinitionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V1CustomResourceDefinitionList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java index 12b610d5ad..7537aa0904 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java @@ -1,135 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1CustomResourceDefinitionListFluent< - A extends V1CustomResourceDefinitionListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CustomResourceDefinitionListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1CustomResourceDefinition item); - - public A setToItems(Integer index, V1CustomResourceDefinition item); - + public A addToItems(Integer index,V1CustomResourceDefinition item); + public A setToItems(Integer index,V1CustomResourceDefinition item); public A addToItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1CustomResourceDefinition buildItem(Integer index); - public V1CustomResourceDefinition buildFirstItem(); - public V1CustomResourceDefinition buildLastItem(); - - public V1CustomResourceDefinition buildMatchingItem( - Predicate predicate); - + public V1CustomResourceDefinition buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items); - public Boolean hasItems(); - public V1CustomResourceDefinitionListFluent.ItemsNested addNewItem(); - - public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike( - V1CustomResourceDefinition item); - - public V1CustomResourceDefinitionListFluent.ItemsNested setNewItemLike( - Integer index, V1CustomResourceDefinition item); - + public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike(V1CustomResourceDefinition item); + public V1CustomResourceDefinitionListFluent.ItemsNested setNewItemLike(Integer index,V1CustomResourceDefinition item); public V1CustomResourceDefinitionListFluent.ItemsNested editItem(Integer index); - public V1CustomResourceDefinitionListFluent.ItemsNested editFirstItem(); - public V1CustomResourceDefinitionListFluent.ItemsNested editLastItem(); - - public V1CustomResourceDefinitionListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1CustomResourceDefinitionListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadata(); - - public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V1CustomResourceDefinitionListFluent.MetadataNested editMetadata(); - public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadata(); - - public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1CustomResourceDefinitionFluent> { + public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1CustomResourceDefinitionFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java index fa3eac8b85..b0ff698f24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionListFluentImpl< - A extends V1CustomResourceDefinitionListFluent> - extends BaseFluent implements V1CustomResourceDefinitionListFluent { - public V1CustomResourceDefinitionListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionListFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionListFluent{ + public V1CustomResourceDefinitionListFluentImpl() { + } public V1CustomResourceDefinitionListFluentImpl(V1CustomResourceDefinitionList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,101 +30,46 @@ public V1CustomResourceDefinitionListFluentImpl(V1CustomResourceDefinitionList i this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1CustomResourceDefinition item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1CustomResourceDefinition item) { + if (this.items == null) {this.items = new ArrayList();} + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1CustomResourceDefinition item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1CustomResourceDefinition item) { + if (this.items == null) {this.items = new ArrayList();} V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { + for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -141,278 +81,176 @@ public A removeMatchingFromItems(Predicate pr each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1CustomResourceDefinition buildItem(Integer index) { return this.items.get(index).build(); } - public V1CustomResourceDefinition buildFirstItem() { return this.items.get(0).build(); } - public V1CustomResourceDefinition buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1CustomResourceDefinition buildMatchingItem( - Predicate predicate) { - for (V1CustomResourceDefinitionBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1CustomResourceDefinition buildMatchingItem(Predicate predicate) { + for (V1CustomResourceDefinitionBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1CustomResourceDefinitionBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CustomResourceDefinitionBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CustomResourceDefinition item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1CustomResourceDefinition item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1CustomResourceDefinition item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1CustomResourceDefinition item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1CustomResourceDefinitionListFluent.ItemsNested addNewItem() { return new V1CustomResourceDefinitionListFluentImpl.ItemsNestedImpl(); } - - public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike( - V1CustomResourceDefinition item) { + public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike(V1CustomResourceDefinition item) { return new V1CustomResourceDefinitionListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1CustomResourceDefinitionListFluent.ItemsNested setNewItemLike( - Integer index, V1CustomResourceDefinition item) { + public V1CustomResourceDefinitionListFluent.ItemsNested setNewItemLike(Integer index,V1CustomResourceDefinition item) { return new V1CustomResourceDefinitionListFluentImpl.ItemsNestedImpl(index, item); } - public V1CustomResourceDefinitionListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1CustomResourceDefinitionListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1CustomResourceDefinitionListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1CustomResourceDefinitionListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1CustomResourceDefinitionListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1CustomResourceDefinitionListFluentImpl.MetadataNestedImpl(); } - - public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1CustomResourceDefinitionListFluentImpl.MetadataNestedImpl(item); } - public V1CustomResourceDefinitionListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceDefinitionListFluentImpl that = (V1CustomResourceDefinitionListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1CustomResourceDefinitionFluentImpl< - V1CustomResourceDefinitionListFluent.ItemsNested> - implements V1CustomResourceDefinitionListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1CustomResourceDefinition item) { + class ItemsNestedImpl extends V1CustomResourceDefinitionFluentImpl> implements V1CustomResourceDefinitionListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1CustomResourceDefinition item) { this.index = index; this.builder = new V1CustomResourceDefinitionBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1CustomResourceDefinitionBuilder(this); } - V1CustomResourceDefinitionBuilder builder; Integer index; - public N and() { - return (N) V1CustomResourceDefinitionListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1CustomResourceDefinitionListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1CustomResourceDefinitionListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1CustomResourceDefinitionListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java index 11fd30bfe6..b5c6c61bbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionNamesBuilder - extends V1CustomResourceDefinitionNamesFluentImpl - implements VisitableBuilder< - V1CustomResourceDefinitionNames, V1CustomResourceDefinitionNamesBuilder> { +import java.lang.Boolean; +public class V1CustomResourceDefinitionNamesBuilder extends V1CustomResourceDefinitionNamesFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionNamesBuilder() { this(false); } - public V1CustomResourceDefinitionNamesBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionNames(), validationEnabled); } - public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionNamesBuilder( - V1CustomResourceDefinitionNamesFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionNames(), validationEnabled); } - - public V1CustomResourceDefinitionNamesBuilder( - V1CustomResourceDefinitionNamesFluent fluent, V1CustomResourceDefinitionNames instance) { + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,V1CustomResourceDefinitionNames instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionNamesBuilder( - V1CustomResourceDefinitionNamesFluent fluent, - V1CustomResourceDefinitionNames instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,V1CustomResourceDefinitionNames instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCategories(instance.getCategories()); fluent.withKind(instance.getKind()); @@ -57,16 +32,13 @@ public V1CustomResourceDefinitionNamesBuilder( fluent.withSingular(instance.getSingular()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNames instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionNamesBuilder( - V1CustomResourceDefinitionNames instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNames instance,Boolean validationEnabled) { + this.fluent = this; this.withCategories(instance.getCategories()); this.withKind(instance.getKind()); @@ -79,12 +51,10 @@ public V1CustomResourceDefinitionNamesBuilder( this.withSingular(instance.getSingular()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionNamesFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinitionNames build() { V1CustomResourceDefinitionNames buildable = new V1CustomResourceDefinitionNames(); buildable.setCategories(fluent.getCategories()); @@ -95,4 +65,5 @@ public V1CustomResourceDefinitionNames build() { buildable.setSingular(fluent.getSingular()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java index 58a4c425f9..f37afe4970 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java @@ -1,107 +1,59 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1CustomResourceDefinitionNamesFluent< - A extends V1CustomResourceDefinitionNamesFluent> - extends Fluent { - public A addToCategories(Integer index, String item); - - public A setToCategories(Integer index, String item); - + /** + * Generated + */ +public interface V1CustomResourceDefinitionNamesFluent> extends Fluent{ + public A addToCategories(Integer index,String item); + public A setToCategories(Integer index,String item); public A addToCategories(java.lang.String... items); - public A addAllToCategories(Collection items); - public A removeFromCategories(java.lang.String... items); - public A removeAllFromCategories(Collection items); - public List getCategories(); - public String getCategory(Integer index); - public String getFirstCategory(); - public String getLastCategory(); - public String getMatchingCategory(Predicate predicate); - public Boolean hasMatchingCategory(Predicate predicate); - public A withCategories(List categories); - public A withCategories(java.lang.String... categories); - public Boolean hasCategories(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getListKind(); - public A withListKind(String listKind); - public Boolean hasListKind(); - public String getPlural(); - public A withPlural(String plural); - public Boolean hasPlural(); - - public A addToShortNames(Integer index, String item); - - public A setToShortNames(Integer index, String item); - + public A addToShortNames(Integer index,String item); + public A setToShortNames(Integer index,String item); public A addToShortNames(java.lang.String... items); - public A addAllToShortNames(Collection items); - public A removeFromShortNames(java.lang.String... items); - public A removeAllFromShortNames(Collection items); - public List getShortNames(); - public String getShortName(Integer index); - public String getFirstShortName(); - public String getLastShortName(); - public String getMatchingShortName(Predicate predicate); - public Boolean hasMatchingShortName(Predicate predicate); - public A withShortNames(List shortNames); - public A withShortNames(java.lang.String... shortNames); - public Boolean hasShortNames(); - public String getSingular(); - public A withSingular(String singular); - public Boolean hasSingular(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java index 70943a1354..ad16c4772b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java @@ -1,30 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionNamesFluentImpl< - A extends V1CustomResourceDefinitionNamesFluent> - extends BaseFluent implements V1CustomResourceDefinitionNamesFluent { - public V1CustomResourceDefinitionNamesFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionNamesFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionNamesFluent{ + public V1CustomResourceDefinitionNamesFluentImpl() { + } public V1CustomResourceDefinitionNamesFluentImpl(V1CustomResourceDefinitionNames instance) { this.withCategories(instance.getCategories()); @@ -37,347 +30,178 @@ public V1CustomResourceDefinitionNamesFluentImpl(V1CustomResourceDefinitionNames this.withShortNames(instance.getShortNames()); this.withSingular(instance.getSingular()); - } + } private List categories; private String kind; private String listKind; private String plural; private List shortNames; private String singular; - - public A addToCategories(Integer index, String item) { - if (this.categories == null) { - this.categories = new ArrayList(); - } + public A addToCategories(Integer index,String item) { + if (this.categories == null) {this.categories = new ArrayList();} this.categories.add(index, item); - return (A) this; + return (A)this; } - - public A setToCategories(Integer index, String item) { - if (this.categories == null) { - this.categories = new ArrayList(); - } - this.categories.set(index, item); - return (A) this; + public A setToCategories(Integer index,String item) { + if (this.categories == null) {this.categories = new ArrayList();} + this.categories.set(index, item); return (A)this; } - public A addToCategories(java.lang.String... items) { - if (this.categories == null) { - this.categories = new ArrayList(); - } - for (String item : items) { - this.categories.add(item); - } - return (A) this; + if (this.categories == null) {this.categories = new ArrayList();} + for (String item : items) {this.categories.add(item);} return (A)this; } - public A addAllToCategories(Collection items) { - if (this.categories == null) { - this.categories = new ArrayList(); - } - for (String item : items) { - this.categories.add(item); - } - return (A) this; + if (this.categories == null) {this.categories = new ArrayList();} + for (String item : items) {this.categories.add(item);} return (A)this; } - public A removeFromCategories(java.lang.String... items) { - for (String item : items) { - if (this.categories != null) { - this.categories.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.categories!= null){ this.categories.remove(item);}} return (A)this; } - public A removeAllFromCategories(Collection items) { - for (String item : items) { - if (this.categories != null) { - this.categories.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.categories!= null){ this.categories.remove(item);}} return (A)this; } - public List getCategories() { return this.categories; } - public String getCategory(Integer index) { return this.categories.get(index); } - public String getFirstCategory() { return this.categories.get(0); } - public String getLastCategory() { return this.categories.get(categories.size() - 1); } - public String getMatchingCategory(Predicate predicate) { - for (String item : categories) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: categories) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingCategory(Predicate predicate) { - for (String item : categories) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: categories) { if(predicate.test(item)){ return true;} } return false; } - public A withCategories(List categories) { - if (categories != null) { - this.categories = new ArrayList(); - for (String item : categories) { - this.addToCategories(item); - } - } else { - this.categories = null; - } - return (A) this; + if (categories != null) {this.categories = new ArrayList(); for (String item : categories){this.addToCategories(item);}} else { this.categories = null;} return (A) this; } - public A withCategories(java.lang.String... categories) { - if (this.categories != null) { - this.categories.clear(); - } - if (categories != null) { - for (String item : categories) { - this.addToCategories(item); - } - } - return (A) this; + if (this.categories != null) {this.categories.clear();} + if (categories != null) {for (String item :categories){ this.addToCategories(item);}} return (A) this; } - public Boolean hasCategories() { return categories != null && !categories.isEmpty(); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getListKind() { return this.listKind; } - public A withListKind(String listKind) { - this.listKind = listKind; - return (A) this; + this.listKind=listKind; return (A) this; } - public Boolean hasListKind() { return this.listKind != null; } - public String getPlural() { return this.plural; } - public A withPlural(String plural) { - this.plural = plural; - return (A) this; + this.plural=plural; return (A) this; } - public Boolean hasPlural() { return this.plural != null; } - - public A addToShortNames(Integer index, String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } + public A addToShortNames(Integer index,String item) { + if (this.shortNames == null) {this.shortNames = new ArrayList();} this.shortNames.add(index, item); - return (A) this; + return (A)this; } - - public A setToShortNames(Integer index, String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - this.shortNames.set(index, item); - return (A) this; + public A setToShortNames(Integer index,String item) { + if (this.shortNames == null) {this.shortNames = new ArrayList();} + this.shortNames.set(index, item); return (A)this; } - public A addToShortNames(java.lang.String... items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - for (String item : items) { - this.shortNames.add(item); - } - return (A) this; + if (this.shortNames == null) {this.shortNames = new ArrayList();} + for (String item : items) {this.shortNames.add(item);} return (A)this; } - public A addAllToShortNames(Collection items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - for (String item : items) { - this.shortNames.add(item); - } - return (A) this; + if (this.shortNames == null) {this.shortNames = new ArrayList();} + for (String item : items) {this.shortNames.add(item);} return (A)this; } - public A removeFromShortNames(java.lang.String... items) { - for (String item : items) { - if (this.shortNames != null) { - this.shortNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.shortNames!= null){ this.shortNames.remove(item);}} return (A)this; } - public A removeAllFromShortNames(Collection items) { - for (String item : items) { - if (this.shortNames != null) { - this.shortNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.shortNames!= null){ this.shortNames.remove(item);}} return (A)this; } - public List getShortNames() { return this.shortNames; } - public String getShortName(Integer index) { return this.shortNames.get(index); } - public String getFirstShortName() { return this.shortNames.get(0); } - public String getLastShortName() { return this.shortNames.get(shortNames.size() - 1); } - public String getMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: shortNames) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: shortNames) { if(predicate.test(item)){ return true;} } return false; } - public A withShortNames(List shortNames) { - if (shortNames != null) { - this.shortNames = new ArrayList(); - for (String item : shortNames) { - this.addToShortNames(item); - } - } else { - this.shortNames = null; - } - return (A) this; + if (shortNames != null) {this.shortNames = new ArrayList(); for (String item : shortNames){this.addToShortNames(item);}} else { this.shortNames = null;} return (A) this; } - public A withShortNames(java.lang.String... shortNames) { - if (this.shortNames != null) { - this.shortNames.clear(); - } - if (shortNames != null) { - for (String item : shortNames) { - this.addToShortNames(item); - } - } - return (A) this; + if (this.shortNames != null) {this.shortNames.clear();} + if (shortNames != null) {for (String item :shortNames){ this.addToShortNames(item);}} return (A) this; } - public Boolean hasShortNames() { return shortNames != null && !shortNames.isEmpty(); } - public String getSingular() { return this.singular; } - public A withSingular(String singular) { - this.singular = singular; - return (A) this; + this.singular=singular; return (A) this; } - public Boolean hasSingular() { return this.singular != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceDefinitionNamesFluentImpl that = (V1CustomResourceDefinitionNamesFluentImpl) o; - if (categories != null ? !categories.equals(that.categories) : that.categories != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (listKind != null ? !listKind.equals(that.listKind) : that.listKind != null) return false; - if (plural != null ? !plural.equals(that.plural) : that.plural != null) return false; - if (shortNames != null ? !shortNames.equals(that.shortNames) : that.shortNames != null) - return false; - if (singular != null ? !singular.equals(that.singular) : that.singular != null) return false; + if (categories != null ? !categories.equals(that.categories) :that.categories != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (listKind != null ? !listKind.equals(that.listKind) :that.listKind != null) return false; + if (plural != null ? !plural.equals(that.plural) :that.plural != null) return false; + if (shortNames != null ? !shortNames.equals(that.shortNames) :that.shortNames != null) return false; + if (singular != null ? !singular.equals(that.singular) :that.singular != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - categories, kind, listKind, plural, shortNames, singular, super.hashCode()); + return java.util.Objects.hash(categories, kind, listKind, plural, shortNames, singular, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (categories != null && !categories.isEmpty()) { - sb.append("categories:"); - sb.append(categories + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (listKind != null) { - sb.append("listKind:"); - sb.append(listKind + ","); - } - if (plural != null) { - sb.append("plural:"); - sb.append(plural + ","); - } - if (shortNames != null && !shortNames.isEmpty()) { - sb.append("shortNames:"); - sb.append(shortNames + ","); - } - if (singular != null) { - sb.append("singular:"); - sb.append(singular); - } + if (categories != null && !categories.isEmpty()) { sb.append("categories:"); sb.append(categories + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (listKind != null) { sb.append("listKind:"); sb.append(listKind + ","); } + if (plural != null) { sb.append("plural:"); sb.append(plural + ","); } + if (shortNames != null && !shortNames.isEmpty()) { sb.append("shortNames:"); sb.append(shortNames + ","); } + if (singular != null) { sb.append("singular:"); sb.append(singular); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java index ae39f8c34d..0e955ced3c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionSpecBuilder - extends V1CustomResourceDefinitionSpecFluentImpl - implements VisitableBuilder< - V1CustomResourceDefinitionSpec, V1CustomResourceDefinitionSpecBuilder> { +import java.lang.Boolean; +public class V1CustomResourceDefinitionSpecBuilder extends V1CustomResourceDefinitionSpecFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionSpecBuilder() { this(false); } - public V1CustomResourceDefinitionSpecBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionSpec(), validationEnabled); } - public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionSpecBuilder( - V1CustomResourceDefinitionSpecFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionSpec(), validationEnabled); } - - public V1CustomResourceDefinitionSpecBuilder( - V1CustomResourceDefinitionSpecFluent fluent, V1CustomResourceDefinitionSpec instance) { + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,V1CustomResourceDefinitionSpec instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionSpecBuilder( - V1CustomResourceDefinitionSpecFluent fluent, - V1CustomResourceDefinitionSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,V1CustomResourceDefinitionSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConversion(instance.getConversion()); fluent.withGroup(instance.getGroup()); @@ -57,16 +32,13 @@ public V1CustomResourceDefinitionSpecBuilder( fluent.withVersions(instance.getVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpec instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionSpecBuilder( - V1CustomResourceDefinitionSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withConversion(instance.getConversion()); this.withGroup(instance.getGroup()); @@ -79,12 +51,10 @@ public V1CustomResourceDefinitionSpecBuilder( this.withVersions(instance.getVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionSpecFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinitionSpec build() { V1CustomResourceDefinitionSpec buildable = new V1CustomResourceDefinitionSpec(); buildable.setConversion(fluent.getConversion()); @@ -95,4 +65,5 @@ public V1CustomResourceDefinitionSpec build() { buildable.setVersions(fluent.getVersions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java index 618c0b1e4b..6faea7330a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java @@ -1,186 +1,106 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CustomResourceDefinitionSpecFluent< - A extends V1CustomResourceDefinitionSpecFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1CustomResourceDefinitionSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildConversion instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceConversion getConversion(); - public V1CustomResourceConversion buildConversion(); - public A withConversion(V1CustomResourceConversion conversion); - public Boolean hasConversion(); - public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversion(); - - public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversionLike( - V1CustomResourceConversion item); - + public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversionLike(V1CustomResourceConversion item); public V1CustomResourceDefinitionSpecFluent.ConversionNested editConversion(); - public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversion(); - - public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversionLike( - V1CustomResourceConversion item); - + public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversionLike(V1CustomResourceConversion item); public String getGroup(); - public A withGroup(String group); - public Boolean hasGroup(); - + /** * This method has been deprecated, please use method buildNames instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionNames getNames(); - public V1CustomResourceDefinitionNames buildNames(); - public A withNames(V1CustomResourceDefinitionNames names); - public Boolean hasNames(); - public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNames(); - - public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNamesLike( - V1CustomResourceDefinitionNames item); - + public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item); public V1CustomResourceDefinitionSpecFluent.NamesNested editNames(); - public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNames(); - - public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNamesLike( - V1CustomResourceDefinitionNames item); - + public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNamesLike(V1CustomResourceDefinitionNames item); public Boolean getPreserveUnknownFields(); - public A withPreserveUnknownFields(Boolean preserveUnknownFields); - public Boolean hasPreserveUnknownFields(); - public String getScope(); - public A withScope(String scope); - public Boolean hasScope(); - - public A addToVersions(Integer index, V1CustomResourceDefinitionVersion item); - - public A setToVersions(Integer index, V1CustomResourceDefinitionVersion item); - - public A addToVersions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items); - + public A addToVersions(Integer index,V1CustomResourceDefinitionVersion item); + public A setToVersions(Integer index,V1CustomResourceDefinitionVersion item); + public A addToVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items); public A addAllToVersions(Collection items); - - public A removeFromVersions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items); - + public A removeFromVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items); public A removeAllFromVersions(Collection items); - - public A removeMatchingFromVersions( - Predicate predicate); - + public A removeMatchingFromVersions(Predicate predicate); + /** * This method has been deprecated, please use method buildVersions instead. - * * @return The buildable object. */ @Deprecated public List getVersions(); - public List buildVersions(); - public V1CustomResourceDefinitionVersion buildVersion(Integer index); - public V1CustomResourceDefinitionVersion buildFirstVersion(); - public V1CustomResourceDefinitionVersion buildLastVersion(); - - public V1CustomResourceDefinitionVersion buildMatchingVersion( - Predicate predicate); - + public V1CustomResourceDefinitionVersion buildMatchingVersion(Predicate predicate); public Boolean hasMatchingVersion(Predicate predicate); - public A withVersions(List versions); - - public A withVersions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions); - + public A withVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions); public Boolean hasVersions(); - public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersion(); - - public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersionLike( - V1CustomResourceDefinitionVersion item); - - public V1CustomResourceDefinitionSpecFluent.VersionsNested setNewVersionLike( - Integer index, V1CustomResourceDefinitionVersion item); - + public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item); + public V1CustomResourceDefinitionSpecFluent.VersionsNested setNewVersionLike(Integer index,V1CustomResourceDefinitionVersion item); public V1CustomResourceDefinitionSpecFluent.VersionsNested editVersion(Integer index); - public V1CustomResourceDefinitionSpecFluent.VersionsNested editFirstVersion(); - public V1CustomResourceDefinitionSpecFluent.VersionsNested editLastVersion(); - - public V1CustomResourceDefinitionSpecFluent.VersionsNested editMatchingVersion( - Predicate predicate); - + public V1CustomResourceDefinitionSpecFluent.VersionsNested editMatchingVersion(Predicate predicate); public A withPreserveUnknownFields(); - - public interface ConversionNested - extends Nested, - V1CustomResourceConversionFluent< - V1CustomResourceDefinitionSpecFluent.ConversionNested> { + public interface ConversionNested extends Nested,V1CustomResourceConversionFluent>{ public N and(); - public N endConversion(); + } - - public interface NamesNested - extends Nested, - V1CustomResourceDefinitionNamesFluent< - V1CustomResourceDefinitionSpecFluent.NamesNested> { + public interface NamesNested extends Nested,V1CustomResourceDefinitionNamesFluent>{ public N and(); - public N endNames(); + } - - public interface VersionsNested - extends Nested, - V1CustomResourceDefinitionVersionFluent< - V1CustomResourceDefinitionSpecFluent.VersionsNested> { + public interface VersionsNested extends Nested,V1CustomResourceDefinitionVersionFluent>{ public N and(); - public N endVersion(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java index c399916fdf..3d63b37c34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionSpecFluentImpl< - A extends V1CustomResourceDefinitionSpecFluent> - extends BaseFluent implements V1CustomResourceDefinitionSpecFluent { - public V1CustomResourceDefinitionSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionSpecFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionSpecFluent{ + public V1CustomResourceDefinitionSpecFluentImpl() { + } public V1CustomResourceDefinitionSpecFluentImpl(V1CustomResourceDefinitionSpec instance) { this.withConversion(instance.getConversion()); @@ -39,248 +34,135 @@ public V1CustomResourceDefinitionSpecFluentImpl(V1CustomResourceDefinitionSpec i this.withScope(instance.getScope()); this.withVersions(instance.getVersions()); - } + } private V1CustomResourceConversionBuilder conversion; private String group; private V1CustomResourceDefinitionNamesBuilder names; private Boolean preserveUnknownFields; private String scope; private ArrayList versions; - + /** * This method has been deprecated, please use method buildConversion instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceConversion getConversion() { - return this.conversion != null ? this.conversion.build() : null; + return this.conversion!=null ?this.conversion.build():null; } - public V1CustomResourceConversion buildConversion() { - return this.conversion != null ? this.conversion.build() : null; + return this.conversion!=null ?this.conversion.build():null; } - public A withConversion(V1CustomResourceConversion conversion) { _visitables.get("conversion").remove(this.conversion); - if (conversion != null) { - this.conversion = new V1CustomResourceConversionBuilder(conversion); - _visitables.get("conversion").add(this.conversion); - } else { - this.conversion = null; - _visitables.get("conversion").remove(this.conversion); - } - return (A) this; + if (conversion!=null){ this.conversion= new V1CustomResourceConversionBuilder(conversion); _visitables.get("conversion").add(this.conversion);} else { this.conversion = null; _visitables.get("conversion").remove(this.conversion); } return (A) this; } - public Boolean hasConversion() { return this.conversion != null; } - public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversion() { return new V1CustomResourceDefinitionSpecFluentImpl.ConversionNestedImpl(); } - - public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversionLike( - V1CustomResourceConversion item) { + public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversionLike(V1CustomResourceConversion item) { return new V1CustomResourceDefinitionSpecFluentImpl.ConversionNestedImpl(item); } - public V1CustomResourceDefinitionSpecFluent.ConversionNested editConversion() { return withNewConversionLike(getConversion()); } - public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversion() { - return withNewConversionLike( - getConversion() != null - ? getConversion() - : new V1CustomResourceConversionBuilder().build()); + return withNewConversionLike(getConversion() != null ? getConversion(): new V1CustomResourceConversionBuilder().build()); } - - public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversionLike( - V1CustomResourceConversion item) { - return withNewConversionLike(getConversion() != null ? getConversion() : item); + public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversionLike(V1CustomResourceConversion item) { + return withNewConversionLike(getConversion() != null ? getConversion(): item); } - public String getGroup() { return this.group; } - public A withGroup(String group) { - this.group = group; - return (A) this; + this.group=group; return (A) this; } - public Boolean hasGroup() { return this.group != null; } - + /** * This method has been deprecated, please use method buildNames instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionNames getNames() { - return this.names != null ? this.names.build() : null; + return this.names!=null ?this.names.build():null; } - public V1CustomResourceDefinitionNames buildNames() { - return this.names != null ? this.names.build() : null; + return this.names!=null ?this.names.build():null; } - public A withNames(V1CustomResourceDefinitionNames names) { _visitables.get("names").remove(this.names); - if (names != null) { - this.names = new V1CustomResourceDefinitionNamesBuilder(names); - _visitables.get("names").add(this.names); - } else { - this.names = null; - _visitables.get("names").remove(this.names); - } - return (A) this; + if (names!=null){ this.names= new V1CustomResourceDefinitionNamesBuilder(names); _visitables.get("names").add(this.names);} else { this.names = null; _visitables.get("names").remove(this.names); } return (A) this; } - public Boolean hasNames() { return this.names != null; } - public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNames() { return new V1CustomResourceDefinitionSpecFluentImpl.NamesNestedImpl(); } - - public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNamesLike( - V1CustomResourceDefinitionNames item) { + public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { return new V1CustomResourceDefinitionSpecFluentImpl.NamesNestedImpl(item); } - public V1CustomResourceDefinitionSpecFluent.NamesNested editNames() { return withNewNamesLike(getNames()); } - public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNames() { - return withNewNamesLike( - getNames() != null ? getNames() : new V1CustomResourceDefinitionNamesBuilder().build()); + return withNewNamesLike(getNames() != null ? getNames(): new V1CustomResourceDefinitionNamesBuilder().build()); } - - public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNamesLike( - V1CustomResourceDefinitionNames item) { - return withNewNamesLike(getNames() != null ? getNames() : item); + public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNamesLike(V1CustomResourceDefinitionNames item) { + return withNewNamesLike(getNames() != null ? getNames(): item); } - public Boolean getPreserveUnknownFields() { return this.preserveUnknownFields; } - public A withPreserveUnknownFields(Boolean preserveUnknownFields) { - this.preserveUnknownFields = preserveUnknownFields; - return (A) this; + this.preserveUnknownFields=preserveUnknownFields; return (A) this; } - public Boolean hasPreserveUnknownFields() { return this.preserveUnknownFields != null; } - public String getScope() { return this.scope; } - public A withScope(String scope) { - this.scope = scope; - return (A) this; + this.scope=scope; return (A) this; } - public Boolean hasScope() { return this.scope != null; } - - public A addToVersions(Integer index, V1CustomResourceDefinitionVersion item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - V1CustomResourceDefinitionVersionBuilder builder = - new V1CustomResourceDefinitionVersionBuilder(item); - _visitables - .get("versions") - .add(index >= 0 ? index : _visitables.get("versions").size(), builder); - this.versions.add(index >= 0 ? index : versions.size(), builder); - return (A) this; + public A addToVersions(Integer index,V1CustomResourceDefinitionVersion item) { + if (this.versions == null) {this.versions = new ArrayList();} + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(index >= 0 ? index : _visitables.get("versions").size(), builder);this.versions.add(index >= 0 ? index : versions.size(), builder); return (A)this; } - - public A setToVersions(Integer index, V1CustomResourceDefinitionVersion item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - V1CustomResourceDefinitionVersionBuilder builder = - new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= _visitables.get("versions").size()) { - _visitables.get("versions").add(builder); - } else { - _visitables.get("versions").set(index, builder); - } - if (index < 0 || index >= versions.size()) { - versions.add(builder); - } else { - versions.set(index, builder); - } - return (A) this; + public A setToVersions(Integer index,V1CustomResourceDefinitionVersion item) { + if (this.versions == null) {this.versions = new ArrayList();} + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + if (index < 0 || index >= _visitables.get("versions").size()) { _visitables.get("versions").add(builder); } else { _visitables.get("versions").set(index, builder);} + if (index < 0 || index >= versions.size()) { versions.add(builder); } else { versions.set(index, builder);} + return (A)this; } - - public A addToVersions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = - new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; + public A addToVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { + if (this.versions == null) {this.versions = new ArrayList();} + for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; } - public A addAllToVersions(Collection items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = - new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; + if (this.versions == null) {this.versions = new ArrayList();} + for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; } - - public A removeFromVersions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = - new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").remove(builder); - if (this.versions != null) { - this.versions.remove(builder); - } - } - return (A) this; + public A removeFromVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { + for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").remove(builder);if (this.versions != null) {this.versions.remove(builder);}} return (A)this; } - public A removeAllFromVersions(Collection items) { - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = - new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").remove(builder); - if (this.versions != null) { - this.versions.remove(builder); - } - } - return (A) this; + for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").remove(builder);if (this.versions != null) {this.versions.remove(builder);}} return (A)this; } - - public A removeMatchingFromVersions( - Predicate predicate) { + public A removeMatchingFromVersions(Predicate predicate) { if (versions == null) return (A) this; final Iterator each = versions.iterator(); final List visitables = _visitables.get("versions"); @@ -291,257 +173,156 @@ public A removeMatchingFromVersions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVersions instead. - * * @return The buildable object. */ @Deprecated public List getVersions() { return versions != null ? build(versions) : null; } - public List buildVersions() { return versions != null ? build(versions) : null; } - public V1CustomResourceDefinitionVersion buildVersion(Integer index) { return this.versions.get(index).build(); } - public V1CustomResourceDefinitionVersion buildFirstVersion() { return this.versions.get(0).build(); } - public V1CustomResourceDefinitionVersion buildLastVersion() { return this.versions.get(versions.size() - 1).build(); } - - public V1CustomResourceDefinitionVersion buildMatchingVersion( - Predicate predicate) { - for (V1CustomResourceDefinitionVersionBuilder item : versions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1CustomResourceDefinitionVersion buildMatchingVersion(Predicate predicate) { + for (V1CustomResourceDefinitionVersionBuilder item: versions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVersion(Predicate predicate) { - for (V1CustomResourceDefinitionVersionBuilder item : versions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1CustomResourceDefinitionVersionBuilder item: versions) { if(predicate.test(item)){ return true;} } return false; } - public A withVersions(List versions) { - if (this.versions != null) { - _visitables.get("versions").removeAll(this.versions); - } - if (versions != null) { - this.versions = new ArrayList(); - for (V1CustomResourceDefinitionVersion item : versions) { - this.addToVersions(item); - } - } else { - this.versions = null; - } - return (A) this; + if (this.versions != null) { _visitables.get("versions").removeAll(this.versions);} + if (versions != null) {this.versions = new ArrayList(); for (V1CustomResourceDefinitionVersion item : versions){this.addToVersions(item);}} else { this.versions = null;} return (A) this; } - - public A withVersions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions) { - if (this.versions != null) { - this.versions.clear(); - } - if (versions != null) { - for (V1CustomResourceDefinitionVersion item : versions) { - this.addToVersions(item); - } - } - return (A) this; + public A withVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions) { + if (this.versions != null) {this.versions.clear();} + if (versions != null) {for (V1CustomResourceDefinitionVersion item :versions){ this.addToVersions(item);}} return (A) this; } - public Boolean hasVersions() { return versions != null && !versions.isEmpty(); } - public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersion() { return new V1CustomResourceDefinitionSpecFluentImpl.VersionsNestedImpl(); } - - public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersionLike( - V1CustomResourceDefinitionVersion item) { + public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item) { return new V1CustomResourceDefinitionSpecFluentImpl.VersionsNestedImpl(-1, item); } - - public V1CustomResourceDefinitionSpecFluent.VersionsNested setNewVersionLike( - Integer index, V1CustomResourceDefinitionVersion item) { + public V1CustomResourceDefinitionSpecFluent.VersionsNested setNewVersionLike(Integer index,V1CustomResourceDefinitionVersion item) { return new V1CustomResourceDefinitionSpecFluentImpl.VersionsNestedImpl(index, item); } - public V1CustomResourceDefinitionSpecFluent.VersionsNested editVersion(Integer index) { - if (versions.size() <= index) - throw new RuntimeException("Can't edit versions. Index exceeds size."); + if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); return setNewVersionLike(index, buildVersion(index)); } - public V1CustomResourceDefinitionSpecFluent.VersionsNested editFirstVersion() { - if (versions.size() == 0) - throw new RuntimeException("Can't edit first versions. The list is empty."); + if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); return setNewVersionLike(0, buildVersion(0)); } - public V1CustomResourceDefinitionSpecFluent.VersionsNested editLastVersion() { int index = versions.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last versions. The list is empty."); return setNewVersionLike(index, buildVersion(index)); } - - public V1CustomResourceDefinitionSpecFluent.VersionsNested editMatchingVersion( - Predicate predicate) { + public V1CustomResourceDefinitionSpecFluent.VersionsNested editMatchingVersion(Predicate predicate) { int index = -1; - for (int i = 0; i < versions.size(); i++) { - if (predicate.test(versions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1CustomResourceConversionFluentImpl< - V1CustomResourceDefinitionSpecFluent.ConversionNested> - implements V1CustomResourceDefinitionSpecFluent.ConversionNested, Nested { + class ConversionNestedImpl extends V1CustomResourceConversionFluentImpl> implements V1CustomResourceDefinitionSpecFluent.ConversionNested,Nested{ ConversionNestedImpl(V1CustomResourceConversion item) { this.builder = new V1CustomResourceConversionBuilder(this, item); } - ConversionNestedImpl() { this.builder = new V1CustomResourceConversionBuilder(this); } - V1CustomResourceConversionBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionSpecFluentImpl.this.withConversion(builder.build()); } - public N endConversion() { return and(); } + } - - class NamesNestedImpl - extends V1CustomResourceDefinitionNamesFluentImpl< - V1CustomResourceDefinitionSpecFluent.NamesNested> - implements V1CustomResourceDefinitionSpecFluent.NamesNested, Nested { + class NamesNestedImpl extends V1CustomResourceDefinitionNamesFluentImpl> implements V1CustomResourceDefinitionSpecFluent.NamesNested,Nested{ NamesNestedImpl(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } - NamesNestedImpl() { this.builder = new V1CustomResourceDefinitionNamesBuilder(this); } - V1CustomResourceDefinitionNamesBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionSpecFluentImpl.this.withNames(builder.build()); } - public N endNames() { return and(); } + } - - class VersionsNestedImpl - extends V1CustomResourceDefinitionVersionFluentImpl< - V1CustomResourceDefinitionSpecFluent.VersionsNested> - implements V1CustomResourceDefinitionSpecFluent.VersionsNested, Nested { - VersionsNestedImpl(Integer index, V1CustomResourceDefinitionVersion item) { + class VersionsNestedImpl extends V1CustomResourceDefinitionVersionFluentImpl> implements V1CustomResourceDefinitionSpecFluent.VersionsNested,Nested{ + VersionsNestedImpl(Integer index,V1CustomResourceDefinitionVersion item) { this.index = index; this.builder = new V1CustomResourceDefinitionVersionBuilder(this, item); } - VersionsNestedImpl() { this.index = -1; this.builder = new V1CustomResourceDefinitionVersionBuilder(this); } - V1CustomResourceDefinitionVersionBuilder builder; Integer index; - public N and() { - return (N) - V1CustomResourceDefinitionSpecFluentImpl.this.setToVersions(index, builder.build()); + return (N) V1CustomResourceDefinitionSpecFluentImpl.this.setToVersions(index,builder.build()); } - public N endVersion() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java index 88fd2dd7e9..6b3a2b1c29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionStatusBuilder - extends V1CustomResourceDefinitionStatusFluentImpl - implements VisitableBuilder< - V1CustomResourceDefinitionStatus, V1CustomResourceDefinitionStatusBuilder> { +import java.lang.Boolean; +public class V1CustomResourceDefinitionStatusBuilder extends V1CustomResourceDefinitionStatusFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionStatusBuilder() { this(false); } - public V1CustomResourceDefinitionStatusBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionStatus(), validationEnabled); } - public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionStatusBuilder( - V1CustomResourceDefinitionStatusFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionStatus(), validationEnabled); } - - public V1CustomResourceDefinitionStatusBuilder( - V1CustomResourceDefinitionStatusFluent fluent, V1CustomResourceDefinitionStatus instance) { + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,V1CustomResourceDefinitionStatus instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionStatusBuilder( - V1CustomResourceDefinitionStatusFluent fluent, - V1CustomResourceDefinitionStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,V1CustomResourceDefinitionStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAcceptedNames(instance.getAcceptedNames()); fluent.withConditions(instance.getConditions()); fluent.withStoredVersions(instance.getStoredVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatus instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionStatusBuilder( - V1CustomResourceDefinitionStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAcceptedNames(instance.getAcceptedNames()); this.withConditions(instance.getConditions()); this.withStoredVersions(instance.getStoredVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionStatusFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinitionStatus build() { V1CustomResourceDefinitionStatus buildable = new V1CustomResourceDefinitionStatus(); buildable.setAcceptedNames(fluent.getAcceptedNames()); @@ -80,4 +50,5 @@ public V1CustomResourceDefinitionStatus build() { buildable.setStoredVersions(fluent.getStoredVersions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java index c58b17cfa2..3c76f01a93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java @@ -1,162 +1,91 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CustomResourceDefinitionStatusFluent< - A extends V1CustomResourceDefinitionStatusFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1CustomResourceDefinitionStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildAcceptedNames instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionNames getAcceptedNames(); - public V1CustomResourceDefinitionNames buildAcceptedNames(); - public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames); - public Boolean hasAcceptedNames(); - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNames(); - - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNamesLike( - V1CustomResourceDefinitionNames item); - + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item); public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editAcceptedNames(); - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNames(); - - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNamesLike( - V1CustomResourceDefinitionNames item); - - public A addToConditions(Integer index, V1CustomResourceDefinitionCondition item); - - public A setToConditions(Integer index, V1CustomResourceDefinitionCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items); - + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item); + public A addToConditions(Integer index,V1CustomResourceDefinitionCondition item); + public A setToConditions(Integer index,V1CustomResourceDefinitionCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1CustomResourceDefinitionCondition buildCondition(Integer index); - public V1CustomResourceDefinitionCondition buildFirstCondition(); - public V1CustomResourceDefinitionCondition buildLastCondition(); - - public V1CustomResourceDefinitionCondition buildMatchingCondition( - Predicate predicate); - - public Boolean hasMatchingCondition( - Predicate predicate); - + public V1CustomResourceDefinitionCondition buildMatchingCondition(Predicate predicate); + public Boolean hasMatchingCondition(Predicate predicate); public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions); public Boolean hasConditions(); - public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewCondition(); - - public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditionLike( - V1CustomResourceDefinitionCondition item); - - public V1CustomResourceDefinitionStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1CustomResourceDefinitionCondition item); - + public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item); + public V1CustomResourceDefinitionStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1CustomResourceDefinitionCondition item); public V1CustomResourceDefinitionStatusFluent.ConditionsNested editCondition(Integer index); - public V1CustomResourceDefinitionStatusFluent.ConditionsNested editFirstCondition(); - public V1CustomResourceDefinitionStatusFluent.ConditionsNested editLastCondition(); - - public V1CustomResourceDefinitionStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public A addToStoredVersions(Integer index, String item); - - public A setToStoredVersions(Integer index, String item); - + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public A addToStoredVersions(Integer index,String item); + public A setToStoredVersions(Integer index,String item); public A addToStoredVersions(java.lang.String... items); - public A addAllToStoredVersions(Collection items); - public A removeFromStoredVersions(java.lang.String... items); - public A removeAllFromStoredVersions(Collection items); - public List getStoredVersions(); - public String getStoredVersion(Integer index); - public String getFirstStoredVersion(); - public String getLastStoredVersion(); - public String getMatchingStoredVersion(Predicate predicate); - public Boolean hasMatchingStoredVersion(Predicate predicate); - public A withStoredVersions(List storedVersions); - public A withStoredVersions(java.lang.String... storedVersions); - public Boolean hasStoredVersions(); - - public interface AcceptedNamesNested - extends Nested, - V1CustomResourceDefinitionNamesFluent< - V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested> { + public interface AcceptedNamesNested extends Nested,V1CustomResourceDefinitionNamesFluent>{ public N and(); - public N endAcceptedNames(); + } - - public interface ConditionsNested - extends Nested, - V1CustomResourceDefinitionConditionFluent< - V1CustomResourceDefinitionStatusFluent.ConditionsNested> { + public interface ConditionsNested extends Nested,V1CustomResourceDefinitionConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java index 8d9191f9b5..c6b12bb2fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java @@ -1,185 +1,98 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionStatusFluentImpl< - A extends V1CustomResourceDefinitionStatusFluent> - extends BaseFluent implements V1CustomResourceDefinitionStatusFluent { - public V1CustomResourceDefinitionStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionStatusFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionStatusFluent{ + public V1CustomResourceDefinitionStatusFluentImpl() { + } public V1CustomResourceDefinitionStatusFluentImpl(V1CustomResourceDefinitionStatus instance) { this.withAcceptedNames(instance.getAcceptedNames()); this.withConditions(instance.getConditions()); this.withStoredVersions(instance.getStoredVersions()); - } + } private V1CustomResourceDefinitionNamesBuilder acceptedNames; private ArrayList conditions; private List storedVersions; - + /** * This method has been deprecated, please use method buildAcceptedNames instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceDefinitionNames getAcceptedNames() { - return this.acceptedNames != null ? this.acceptedNames.build() : null; + return this.acceptedNames!=null ?this.acceptedNames.build():null; } - public V1CustomResourceDefinitionNames buildAcceptedNames() { - return this.acceptedNames != null ? this.acceptedNames.build() : null; + return this.acceptedNames!=null ?this.acceptedNames.build():null; } - public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { _visitables.get("acceptedNames").remove(this.acceptedNames); - if (acceptedNames != null) { - this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); - _visitables.get("acceptedNames").add(this.acceptedNames); - } else { - this.acceptedNames = null; - _visitables.get("acceptedNames").remove(this.acceptedNames); - } - return (A) this; + if (acceptedNames!=null){ this.acceptedNames= new V1CustomResourceDefinitionNamesBuilder(acceptedNames); _visitables.get("acceptedNames").add(this.acceptedNames);} else { this.acceptedNames = null; _visitables.get("acceptedNames").remove(this.acceptedNames); } return (A) this; } - public Boolean hasAcceptedNames() { return this.acceptedNames != null; } - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNames() { return new V1CustomResourceDefinitionStatusFluentImpl.AcceptedNamesNestedImpl(); } - - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNamesLike( - V1CustomResourceDefinitionNames item) { + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { return new V1CustomResourceDefinitionStatusFluentImpl.AcceptedNamesNestedImpl(item); } - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editAcceptedNames() { return withNewAcceptedNamesLike(getAcceptedNames()); } - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNames() { - return withNewAcceptedNamesLike( - getAcceptedNames() != null - ? getAcceptedNames() - : new V1CustomResourceDefinitionNamesBuilder().build()); + return withNewAcceptedNamesLike(getAcceptedNames() != null ? getAcceptedNames(): new V1CustomResourceDefinitionNamesBuilder().build()); } - - public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNamesLike( - V1CustomResourceDefinitionNames item) { - return withNewAcceptedNamesLike(getAcceptedNames() != null ? getAcceptedNames() : item); + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { + return withNewAcceptedNamesLike(getAcceptedNames() != null ? getAcceptedNames(): item); } - - public A addToConditions(Integer index, V1CustomResourceDefinitionCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1CustomResourceDefinitionConditionBuilder builder = - new V1CustomResourceDefinitionConditionBuilder(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 addToConditions(Integer index,V1CustomResourceDefinitionCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(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(Integer index, V1CustomResourceDefinitionCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1CustomResourceDefinitionConditionBuilder builder = - new V1CustomResourceDefinitionConditionBuilder(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 setToConditions(Integer index,V1CustomResourceDefinitionCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(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.V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = - new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(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 ArrayList(); - } - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = - new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = - new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { + for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = - new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -190,334 +103,182 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1CustomResourceDefinitionCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1CustomResourceDefinitionCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1CustomResourceDefinitionCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1CustomResourceDefinitionCondition buildMatchingCondition( - Predicate predicate) { - for (V1CustomResourceDefinitionConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1CustomResourceDefinitionCondition buildMatchingCondition(Predicate predicate) { + for (V1CustomResourceDefinitionConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V1CustomResourceDefinitionConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1CustomResourceDefinitionConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1CustomResourceDefinitionCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1CustomResourceDefinitionCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1CustomResourceDefinitionCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1CustomResourceDefinitionCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewCondition() { return new V1CustomResourceDefinitionStatusFluentImpl.ConditionsNestedImpl(); } - - public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditionLike( - V1CustomResourceDefinitionCondition item) { + public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item) { return new V1CustomResourceDefinitionStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1CustomResourceDefinitionStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1CustomResourceDefinitionCondition item) { + public V1CustomResourceDefinitionStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1CustomResourceDefinitionCondition item) { return new V1CustomResourceDefinitionStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1CustomResourceDefinitionStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1CustomResourceDefinitionStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1CustomResourceDefinitionStatusFluent.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 V1CustomResourceDefinitionStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } + public A addToStoredVersions(Integer index,String item) { + if (this.storedVersions == null) {this.storedVersions = new ArrayList();} this.storedVersions.add(index, item); - return (A) this; + return (A)this; } - - public A setToStoredVersions(Integer index, String item) { - if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); - } - this.storedVersions.set(index, item); - return (A) this; + public A setToStoredVersions(Integer index,String item) { + if (this.storedVersions == null) {this.storedVersions = new ArrayList();} + this.storedVersions.set(index, item); return (A)this; } - public A addToStoredVersions(java.lang.String... items) { - if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); - } - for (String item : items) { - this.storedVersions.add(item); - } - return (A) this; + if (this.storedVersions == null) {this.storedVersions = new ArrayList();} + for (String item : items) {this.storedVersions.add(item);} return (A)this; } - public A addAllToStoredVersions(Collection items) { - if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); - } - for (String item : items) { - this.storedVersions.add(item); - } - return (A) this; + if (this.storedVersions == null) {this.storedVersions = new ArrayList();} + for (String item : items) {this.storedVersions.add(item);} return (A)this; } - public A removeFromStoredVersions(java.lang.String... items) { - for (String item : items) { - if (this.storedVersions != null) { - this.storedVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.storedVersions!= null){ this.storedVersions.remove(item);}} return (A)this; } - public A removeAllFromStoredVersions(Collection items) { - for (String item : items) { - if (this.storedVersions != null) { - this.storedVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.storedVersions!= null){ this.storedVersions.remove(item);}} return (A)this; } - public List getStoredVersions() { return this.storedVersions; } - public String getStoredVersion(Integer index) { return this.storedVersions.get(index); } - public String getFirstStoredVersion() { return this.storedVersions.get(0); } - public String getLastStoredVersion() { return this.storedVersions.get(storedVersions.size() - 1); } - public String getMatchingStoredVersion(Predicate predicate) { - for (String item : storedVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: storedVersions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingStoredVersion(Predicate predicate) { - for (String item : storedVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: storedVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withStoredVersions(List storedVersions) { - if (storedVersions != null) { - this.storedVersions = new ArrayList(); - for (String item : storedVersions) { - this.addToStoredVersions(item); - } - } else { - this.storedVersions = null; - } - return (A) this; + if (storedVersions != null) {this.storedVersions = new ArrayList(); for (String item : storedVersions){this.addToStoredVersions(item);}} else { this.storedVersions = null;} return (A) this; } - public A withStoredVersions(java.lang.String... storedVersions) { - if (this.storedVersions != null) { - this.storedVersions.clear(); - } - if (storedVersions != null) { - for (String item : storedVersions) { - this.addToStoredVersions(item); - } - } - return (A) this; + if (this.storedVersions != null) {this.storedVersions.clear();} + if (storedVersions != null) {for (String item :storedVersions){ this.addToStoredVersions(item);}} return (A) this; } - public Boolean hasStoredVersions() { return storedVersions != null && !storedVersions.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1CustomResourceDefinitionStatusFluentImpl that = - (V1CustomResourceDefinitionStatusFluentImpl) o; - if (acceptedNames != null - ? !acceptedNames.equals(that.acceptedNames) - : that.acceptedNames != null) return false; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (storedVersions != null - ? !storedVersions.equals(that.storedVersions) - : that.storedVersions != null) return false; + V1CustomResourceDefinitionStatusFluentImpl that = (V1CustomResourceDefinitionStatusFluentImpl) o; + if (acceptedNames != null ? !acceptedNames.equals(that.acceptedNames) :that.acceptedNames != null) return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (storedVersions != null ? !storedVersions.equals(that.storedVersions) :that.storedVersions != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(acceptedNames, conditions, storedVersions, super.hashCode()); + return java.util.Objects.hash(acceptedNames, conditions, storedVersions, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (acceptedNames != null) { - sb.append("acceptedNames:"); - sb.append(acceptedNames + ","); - } - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (storedVersions != null && !storedVersions.isEmpty()) { - sb.append("storedVersions:"); - sb.append(storedVersions); - } + if (acceptedNames != null) { sb.append("acceptedNames:"); sb.append(acceptedNames + ","); } + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (storedVersions != null && !storedVersions.isEmpty()) { sb.append("storedVersions:"); sb.append(storedVersions); } sb.append("}"); return sb.toString(); } - - class AcceptedNamesNestedImpl - extends V1CustomResourceDefinitionNamesFluentImpl< - V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested> - implements V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested, Nested { + class AcceptedNamesNestedImpl extends V1CustomResourceDefinitionNamesFluentImpl> implements V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested,Nested{ AcceptedNamesNestedImpl(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } - AcceptedNamesNestedImpl() { this.builder = new V1CustomResourceDefinitionNamesBuilder(this); } - V1CustomResourceDefinitionNamesBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionStatusFluentImpl.this.withAcceptedNames(builder.build()); } - public N endAcceptedNames() { return and(); } + } - - class ConditionsNestedImpl - extends V1CustomResourceDefinitionConditionFluentImpl< - V1CustomResourceDefinitionStatusFluent.ConditionsNested> - implements V1CustomResourceDefinitionStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1CustomResourceDefinitionCondition item) { + class ConditionsNestedImpl extends V1CustomResourceDefinitionConditionFluentImpl> implements V1CustomResourceDefinitionStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1CustomResourceDefinitionCondition item) { this.index = index; this.builder = new V1CustomResourceDefinitionConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1CustomResourceDefinitionConditionBuilder(this); } - V1CustomResourceDefinitionConditionBuilder builder; Integer index; - public N and() { - return (N) - V1CustomResourceDefinitionStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1CustomResourceDefinitionStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java index 7455c3fdf2..913baab349 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceDefinitionVersionBuilder - extends V1CustomResourceDefinitionVersionFluentImpl - implements VisitableBuilder< - V1CustomResourceDefinitionVersion, V1CustomResourceDefinitionVersionBuilder> { +import java.lang.Boolean; +public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluentImpl implements VisitableBuilder{ public V1CustomResourceDefinitionVersionBuilder() { this(false); } - public V1CustomResourceDefinitionVersionBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionVersion(), validationEnabled); } - - public V1CustomResourceDefinitionVersionBuilder( - V1CustomResourceDefinitionVersionFluent fluent) { + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent) { this(fluent, false); } - - public V1CustomResourceDefinitionVersionBuilder( - V1CustomResourceDefinitionVersionFluent fluent, Boolean validationEnabled) { + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionVersion(), validationEnabled); } - - public V1CustomResourceDefinitionVersionBuilder( - V1CustomResourceDefinitionVersionFluent fluent, - V1CustomResourceDefinitionVersion instance) { + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,V1CustomResourceDefinitionVersion instance) { this(fluent, instance, false); } - - public V1CustomResourceDefinitionVersionBuilder( - V1CustomResourceDefinitionVersionFluent fluent, - V1CustomResourceDefinitionVersion instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,V1CustomResourceDefinitionVersion instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); fluent.withDeprecated(instance.getDeprecated()); @@ -63,16 +36,13 @@ public V1CustomResourceDefinitionVersionBuilder( fluent.withSubresources(instance.getSubresources()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceDefinitionVersionBuilder( - V1CustomResourceDefinitionVersion instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance,Boolean validationEnabled) { + this.fluent = this; this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); this.withDeprecated(instance.getDeprecated()); @@ -89,12 +59,10 @@ public V1CustomResourceDefinitionVersionBuilder( this.withSubresources(instance.getSubresources()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceDefinitionVersionFluent fluent; Boolean validationEnabled; - public V1CustomResourceDefinitionVersion build() { V1CustomResourceDefinitionVersion buildable = new V1CustomResourceDefinitionVersion(); buildable.setAdditionalPrinterColumns(fluent.getAdditionalPrinterColumns()); @@ -107,4 +75,5 @@ public V1CustomResourceDefinitionVersion build() { buildable.setSubresources(fluent.getSubresources()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java index 72dcecdde5..8bcc8ba40f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java @@ -1,210 +1,114 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1CustomResourceDefinitionVersionFluent< - A extends V1CustomResourceDefinitionVersionFluent> - extends Fluent { - public A addToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item); - - public A setToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item); - - public A addToAdditionalPrinterColumns( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CustomResourceDefinitionVersionFluent> extends Fluent{ + public A addToAdditionalPrinterColumns(Integer index,V1CustomResourceColumnDefinition item); + public A setToAdditionalPrinterColumns(Integer index,V1CustomResourceColumnDefinition item); + public A addToAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items); public A addAllToAdditionalPrinterColumns(Collection items); - - public A removeFromAdditionalPrinterColumns( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items); - - public A removeAllFromAdditionalPrinterColumns( - Collection items); - - public A removeMatchingFromAdditionalPrinterColumns( - Predicate predicate); - + public A removeFromAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items); + public A removeAllFromAdditionalPrinterColumns(Collection items); + public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate); + /** * This method has been deprecated, please use method buildAdditionalPrinterColumns instead. - * * @return The buildable object. */ @Deprecated public List getAdditionalPrinterColumns(); - public List buildAdditionalPrinterColumns(); - public V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(Integer index); - public V1CustomResourceColumnDefinition buildFirstAdditionalPrinterColumn(); - public V1CustomResourceColumnDefinition buildLastAdditionalPrinterColumn(); - - public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn( - Predicate predicate); - - public Boolean hasMatchingAdditionalPrinterColumn( - Predicate predicate); - - public A withAdditionalPrinterColumns( - List additionalPrinterColumns); - - public A withAdditionalPrinterColumns( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... - additionalPrinterColumns); - + public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn(Predicate predicate); + public Boolean hasMatchingAdditionalPrinterColumn(Predicate predicate); + public A withAdditionalPrinterColumns(List additionalPrinterColumns); + public A withAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... additionalPrinterColumns); public Boolean hasAdditionalPrinterColumns(); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - addNewAdditionalPrinterColumn(); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - setNewAdditionalPrinterColumnLike(Integer index, V1CustomResourceColumnDefinition item); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editAdditionalPrinterColumn(Integer index); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editFirstAdditionalPrinterColumn(); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editLastAdditionalPrinterColumn(); - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editMatchingAdditionalPrinterColumn( - Predicate predicate); - + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn(); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(Integer index,V1CustomResourceColumnDefinition item); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editAdditionalPrinterColumn(Integer index); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn(); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn(); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Predicate predicate); public Boolean getDeprecated(); - public A withDeprecated(Boolean deprecated); - public Boolean hasDeprecated(); - public String getDeprecationWarning(); - public A withDeprecationWarning(String deprecationWarning); - public Boolean hasDeprecationWarning(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildSchema instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceValidation getSchema(); - public V1CustomResourceValidation buildSchema(); - public A withSchema(V1CustomResourceValidation schema); - public Boolean hasSchema(); - public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchema(); - - public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchemaLike( - V1CustomResourceValidation item); - + public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchemaLike(V1CustomResourceValidation item); public V1CustomResourceDefinitionVersionFluent.SchemaNested editSchema(); - public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchema(); - - public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchemaLike( - V1CustomResourceValidation item); - + public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item); public Boolean getServed(); - public A withServed(Boolean served); - public Boolean hasServed(); - public Boolean getStorage(); - public A withStorage(Boolean storage); - public Boolean hasStorage(); - + /** * This method has been deprecated, please use method buildSubresources instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceSubresources getSubresources(); - public V1CustomResourceSubresources buildSubresources(); - public A withSubresources(V1CustomResourceSubresources subresources); - public Boolean hasSubresources(); - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresources(); - - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresourcesLike( - V1CustomResourceSubresources item); - + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item); public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editSubresources(); - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresources(); - - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresourcesLike( - V1CustomResourceSubresources item); - + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item); public A withDeprecated(); - public A withServed(); - public A withStorage(); - - public interface AdditionalPrinterColumnsNested - extends Nested, - V1CustomResourceColumnDefinitionFluent< - V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested> { + public interface AdditionalPrinterColumnsNested extends Nested,V1CustomResourceColumnDefinitionFluent>{ public N and(); - public N endAdditionalPrinterColumn(); + } - - public interface SchemaNested - extends Nested, - V1CustomResourceValidationFluent< - V1CustomResourceDefinitionVersionFluent.SchemaNested> { + public interface SchemaNested extends Nested,V1CustomResourceValidationFluent>{ public N and(); - public N endSchema(); + } - - public interface SubresourcesNested - extends Nested, - V1CustomResourceSubresourcesFluent< - V1CustomResourceDefinitionVersionFluent.SubresourcesNested> { + public interface SubresourcesNested extends Nested,V1CustomResourceSubresourcesFluent>{ public N and(); - public N endSubresources(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java index dd1c2c9eb8..055e89595a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceDefinitionVersionFluentImpl< - A extends V1CustomResourceDefinitionVersionFluent> - extends BaseFluent implements V1CustomResourceDefinitionVersionFluent { - public V1CustomResourceDefinitionVersionFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceDefinitionVersionFluentImpl> extends BaseFluent implements V1CustomResourceDefinitionVersionFluent{ + public V1CustomResourceDefinitionVersionFluentImpl() { + } public V1CustomResourceDefinitionVersionFluentImpl(V1CustomResourceDefinitionVersion instance) { this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); @@ -43,8 +38,8 @@ public V1CustomResourceDefinitionVersionFluentImpl(V1CustomResourceDefinitionVer this.withStorage(instance.getStorage()); this.withSubresources(instance.getSubresources()); - } + } private ArrayList additionalPrinterColumns; private Boolean deprecated; private String deprecationWarning; @@ -53,98 +48,34 @@ public V1CustomResourceDefinitionVersionFluentImpl(V1CustomResourceDefinitionVer private Boolean served; private Boolean storage; private V1CustomResourceSubresourcesBuilder subresources; - - public A addToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item) { - if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); - } - V1CustomResourceColumnDefinitionBuilder builder = - new V1CustomResourceColumnDefinitionBuilder(item); - _visitables - .get("additionalPrinterColumns") - .add(index >= 0 ? index : _visitables.get("additionalPrinterColumns").size(), builder); - this.additionalPrinterColumns.add( - index >= 0 ? index : additionalPrinterColumns.size(), builder); - return (A) this; + public A addToAdditionalPrinterColumns(Integer index,V1CustomResourceColumnDefinition item) { + if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(index >= 0 ? index : _visitables.get("additionalPrinterColumns").size(), builder);this.additionalPrinterColumns.add(index >= 0 ? index : additionalPrinterColumns.size(), builder); return (A)this; } - - public A setToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item) { - if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); - } - V1CustomResourceColumnDefinitionBuilder builder = - new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= _visitables.get("additionalPrinterColumns").size()) { - _visitables.get("additionalPrinterColumns").add(builder); - } else { - _visitables.get("additionalPrinterColumns").set(index, builder); - } - if (index < 0 || index >= additionalPrinterColumns.size()) { - additionalPrinterColumns.add(builder); - } else { - additionalPrinterColumns.set(index, builder); - } - return (A) this; + public A setToAdditionalPrinterColumns(Integer index,V1CustomResourceColumnDefinition item) { + if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + if (index < 0 || index >= _visitables.get("additionalPrinterColumns").size()) { _visitables.get("additionalPrinterColumns").add(builder); } else { _visitables.get("additionalPrinterColumns").set(index, builder);} + if (index < 0 || index >= additionalPrinterColumns.size()) { additionalPrinterColumns.add(builder); } else { additionalPrinterColumns.set(index, builder);} + return (A)this; } - - public A addToAdditionalPrinterColumns( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); - } - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = - new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").add(builder); - this.additionalPrinterColumns.add(builder); - } - return (A) this; + public A addToAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { + if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} + for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(builder);this.additionalPrinterColumns.add(builder);} return (A)this; } - public A addAllToAdditionalPrinterColumns(Collection items) { - if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); - } - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = - new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").add(builder); - this.additionalPrinterColumns.add(builder); - } - return (A) this; + if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} + for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(builder);this.additionalPrinterColumns.add(builder);} return (A)this; } - - public A removeFromAdditionalPrinterColumns( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = - new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").remove(builder); - if (this.additionalPrinterColumns != null) { - this.additionalPrinterColumns.remove(builder); - } - } - return (A) this; + public A removeFromAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { + for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").remove(builder);if (this.additionalPrinterColumns != null) {this.additionalPrinterColumns.remove(builder);}} return (A)this; } - - public A removeAllFromAdditionalPrinterColumns( - Collection items) { - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = - new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").remove(builder); - if (this.additionalPrinterColumns != null) { - this.additionalPrinterColumns.remove(builder); - } - } - return (A) this; + public A removeAllFromAdditionalPrinterColumns(Collection items) { + for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").remove(builder);if (this.additionalPrinterColumns != null) {this.additionalPrinterColumns.remove(builder);}} return (A)this; } - - public A removeMatchingFromAdditionalPrinterColumns( - Predicate predicate) { + public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate) { if (additionalPrinterColumns == null) return (A) this; - final Iterator each = - additionalPrinterColumns.iterator(); + final Iterator each = additionalPrinterColumns.iterator(); final List visitables = _visitables.get("additionalPrinterColumns"); while (each.hasNext()) { V1CustomResourceColumnDefinitionBuilder builder = each.next(); @@ -153,474 +84,279 @@ public A removeMatchingFromAdditionalPrinterColumns( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildAdditionalPrinterColumns instead. - * * @return The buildable object. */ @Deprecated public List getAdditionalPrinterColumns() { return additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; } - public List buildAdditionalPrinterColumns() { return additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; } - public V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(Integer index) { return this.additionalPrinterColumns.get(index).build(); } - public V1CustomResourceColumnDefinition buildFirstAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(0).build(); } - public V1CustomResourceColumnDefinition buildLastAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(additionalPrinterColumns.size() - 1).build(); } - - public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn( - Predicate predicate) { - for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn(Predicate predicate) { + for (V1CustomResourceColumnDefinitionBuilder item: additionalPrinterColumns) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingAdditionalPrinterColumn( - Predicate predicate) { - for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingAdditionalPrinterColumn(Predicate predicate) { + for (V1CustomResourceColumnDefinitionBuilder item: additionalPrinterColumns) { if(predicate.test(item)){ return true;} } return false; } - - public A withAdditionalPrinterColumns( - List additionalPrinterColumns) { - if (this.additionalPrinterColumns != null) { - _visitables.get("additionalPrinterColumns").removeAll(this.additionalPrinterColumns); - } - if (additionalPrinterColumns != null) { - this.additionalPrinterColumns = new ArrayList(); - for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { - this.addToAdditionalPrinterColumns(item); - } - } else { - this.additionalPrinterColumns = null; - } - return (A) this; + public A withAdditionalPrinterColumns(List additionalPrinterColumns) { + if (this.additionalPrinterColumns != null) { _visitables.get("additionalPrinterColumns").removeAll(this.additionalPrinterColumns);} + if (additionalPrinterColumns != null) {this.additionalPrinterColumns = new ArrayList(); for (V1CustomResourceColumnDefinition item : additionalPrinterColumns){this.addToAdditionalPrinterColumns(item);}} else { this.additionalPrinterColumns = null;} return (A) this; } - - public A withAdditionalPrinterColumns( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... - additionalPrinterColumns) { - if (this.additionalPrinterColumns != null) { - this.additionalPrinterColumns.clear(); - } - if (additionalPrinterColumns != null) { - for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { - this.addToAdditionalPrinterColumns(item); - } - } - return (A) this; + public A withAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... additionalPrinterColumns) { + if (this.additionalPrinterColumns != null) {this.additionalPrinterColumns.clear();} + if (additionalPrinterColumns != null) {for (V1CustomResourceColumnDefinition item :additionalPrinterColumns){ this.addToAdditionalPrinterColumns(item);}} return (A) this; } - public Boolean hasAdditionalPrinterColumns() { return additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty(); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - addNewAdditionalPrinterColumn() { + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl(); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { - return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl( - -1, item); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { + return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl(-1, item); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - setNewAdditionalPrinterColumnLike(Integer index, V1CustomResourceColumnDefinition item) { - return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl( - index, item); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(Integer index,V1CustomResourceColumnDefinition item) { + return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl(index, item); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editAdditionalPrinterColumn(Integer index) { - if (additionalPrinterColumns.size() <= index) - throw new RuntimeException("Can't edit additionalPrinterColumns. Index exceeds size."); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editAdditionalPrinterColumn(Integer index) { + if (additionalPrinterColumns.size() <= index) throw new RuntimeException("Can't edit additionalPrinterColumns. Index exceeds size."); return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editFirstAdditionalPrinterColumn() { - if (additionalPrinterColumns.size() == 0) - throw new RuntimeException("Can't edit first additionalPrinterColumns. The list is empty."); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn() { + if (additionalPrinterColumns.size() == 0) throw new RuntimeException("Can't edit first additionalPrinterColumns. The list is empty."); return setNewAdditionalPrinterColumnLike(0, buildAdditionalPrinterColumn(0)); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editLastAdditionalPrinterColumn() { + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { int index = additionalPrinterColumns.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last additionalPrinterColumns. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last additionalPrinterColumns. The list is empty."); return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); } - - public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested - editMatchingAdditionalPrinterColumn( - Predicate predicate) { + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Predicate predicate) { int index = -1; - for (int i = 0; i < additionalPrinterColumns.size(); i++) { - if (predicate.test(additionalPrinterColumns.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching additionalPrinterColumns. No match found."); + for (int i=0;i withNewSchema() { return new V1CustomResourceDefinitionVersionFluentImpl.SchemaNestedImpl(); } - - public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchemaLike( - V1CustomResourceValidation item) { + public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchemaLike(V1CustomResourceValidation item) { return new V1CustomResourceDefinitionVersionFluentImpl.SchemaNestedImpl(item); } - public V1CustomResourceDefinitionVersionFluent.SchemaNested editSchema() { return withNewSchemaLike(getSchema()); } - public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchema() { - return withNewSchemaLike( - getSchema() != null ? getSchema() : new V1CustomResourceValidationBuilder().build()); + return withNewSchemaLike(getSchema() != null ? getSchema(): new V1CustomResourceValidationBuilder().build()); } - - public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchemaLike( - V1CustomResourceValidation item) { - return withNewSchemaLike(getSchema() != null ? getSchema() : item); + public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { + return withNewSchemaLike(getSchema() != null ? getSchema(): item); } - public Boolean getServed() { return this.served; } - public A withServed(Boolean served) { - this.served = served; - return (A) this; + this.served=served; return (A) this; } - public Boolean hasServed() { return this.served != null; } - public Boolean getStorage() { return this.storage; } - public A withStorage(Boolean storage) { - this.storage = storage; - return (A) this; + this.storage=storage; return (A) this; } - public Boolean hasStorage() { return this.storage != null; } - + /** * This method has been deprecated, please use method buildSubresources instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceSubresources getSubresources() { - return this.subresources != null ? this.subresources.build() : null; + return this.subresources!=null ?this.subresources.build():null; } - public V1CustomResourceSubresources buildSubresources() { - return this.subresources != null ? this.subresources.build() : null; + return this.subresources!=null ?this.subresources.build():null; } - public A withSubresources(V1CustomResourceSubresources subresources) { _visitables.get("subresources").remove(this.subresources); - if (subresources != null) { - this.subresources = new V1CustomResourceSubresourcesBuilder(subresources); - _visitables.get("subresources").add(this.subresources); - } else { - this.subresources = null; - _visitables.get("subresources").remove(this.subresources); - } - return (A) this; + if (subresources!=null){ this.subresources= new V1CustomResourceSubresourcesBuilder(subresources); _visitables.get("subresources").add(this.subresources);} else { this.subresources = null; _visitables.get("subresources").remove(this.subresources); } return (A) this; } - public Boolean hasSubresources() { return this.subresources != null; } - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresources() { return new V1CustomResourceDefinitionVersionFluentImpl.SubresourcesNestedImpl(); } - - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresourcesLike( - V1CustomResourceSubresources item) { + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item) { return new V1CustomResourceDefinitionVersionFluentImpl.SubresourcesNestedImpl(item); } - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editSubresources() { return withNewSubresourcesLike(getSubresources()); } - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresources() { - return withNewSubresourcesLike( - getSubresources() != null - ? getSubresources() - : new V1CustomResourceSubresourcesBuilder().build()); + return withNewSubresourcesLike(getSubresources() != null ? getSubresources(): new V1CustomResourceSubresourcesBuilder().build()); } - - public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresourcesLike( - V1CustomResourceSubresources item) { - return withNewSubresourcesLike(getSubresources() != null ? getSubresources() : item); + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item) { + return withNewSubresourcesLike(getSubresources() != null ? getSubresources(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1CustomResourceDefinitionVersionFluentImpl that = - (V1CustomResourceDefinitionVersionFluentImpl) o; - if (additionalPrinterColumns != null - ? !additionalPrinterColumns.equals(that.additionalPrinterColumns) - : that.additionalPrinterColumns != null) return false; - if (deprecated != null ? !deprecated.equals(that.deprecated) : that.deprecated != null) - return false; - if (deprecationWarning != null - ? !deprecationWarning.equals(that.deprecationWarning) - : that.deprecationWarning != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (schema != null ? !schema.equals(that.schema) : that.schema != null) return false; - if (served != null ? !served.equals(that.served) : that.served != null) return false; - if (storage != null ? !storage.equals(that.storage) : that.storage != null) return false; - if (subresources != null ? !subresources.equals(that.subresources) : that.subresources != null) - return false; + V1CustomResourceDefinitionVersionFluentImpl that = (V1CustomResourceDefinitionVersionFluentImpl) o; + if (additionalPrinterColumns != null ? !additionalPrinterColumns.equals(that.additionalPrinterColumns) :that.additionalPrinterColumns != null) return false; + if (deprecated != null ? !deprecated.equals(that.deprecated) :that.deprecated != null) return false; + if (deprecationWarning != null ? !deprecationWarning.equals(that.deprecationWarning) :that.deprecationWarning != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (schema != null ? !schema.equals(that.schema) :that.schema != null) return false; + if (served != null ? !served.equals(that.served) :that.served != null) return false; + if (storage != null ? !storage.equals(that.storage) :that.storage != null) return false; + if (subresources != null ? !subresources.equals(that.subresources) :that.subresources != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - additionalPrinterColumns, - deprecated, - deprecationWarning, - name, - schema, - served, - storage, - subresources, - super.hashCode()); + return java.util.Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, served, storage, subresources, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty()) { - sb.append("additionalPrinterColumns:"); - sb.append(additionalPrinterColumns + ","); - } - if (deprecated != null) { - sb.append("deprecated:"); - sb.append(deprecated + ","); - } - if (deprecationWarning != null) { - sb.append("deprecationWarning:"); - sb.append(deprecationWarning + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (schema != null) { - sb.append("schema:"); - sb.append(schema + ","); - } - if (served != null) { - sb.append("served:"); - sb.append(served + ","); - } - if (storage != null) { - sb.append("storage:"); - sb.append(storage + ","); - } - if (subresources != null) { - sb.append("subresources:"); - sb.append(subresources); - } + if (additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty()) { sb.append("additionalPrinterColumns:"); sb.append(additionalPrinterColumns + ","); } + if (deprecated != null) { sb.append("deprecated:"); sb.append(deprecated + ","); } + if (deprecationWarning != null) { sb.append("deprecationWarning:"); sb.append(deprecationWarning + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (schema != null) { sb.append("schema:"); sb.append(schema + ","); } + if (served != null) { sb.append("served:"); sb.append(served + ","); } + if (storage != null) { sb.append("storage:"); sb.append(storage + ","); } + if (subresources != null) { sb.append("subresources:"); sb.append(subresources); } sb.append("}"); return sb.toString(); } - public A withDeprecated() { return withDeprecated(true); } - public A withServed() { return withServed(true); } - public A withStorage() { return withStorage(true); } - - class AdditionalPrinterColumnsNestedImpl - extends V1CustomResourceColumnDefinitionFluentImpl< - V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested> - implements V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested, - Nested { - AdditionalPrinterColumnsNestedImpl(Integer index, V1CustomResourceColumnDefinition item) { + class AdditionalPrinterColumnsNestedImpl extends V1CustomResourceColumnDefinitionFluentImpl> implements V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested,Nested{ + AdditionalPrinterColumnsNestedImpl(Integer index,V1CustomResourceColumnDefinition item) { this.index = index; this.builder = new V1CustomResourceColumnDefinitionBuilder(this, item); } - AdditionalPrinterColumnsNestedImpl() { this.index = -1; this.builder = new V1CustomResourceColumnDefinitionBuilder(this); } - V1CustomResourceColumnDefinitionBuilder builder; Integer index; - public N and() { - return (N) - V1CustomResourceDefinitionVersionFluentImpl.this.setToAdditionalPrinterColumns( - index, builder.build()); + return (N) V1CustomResourceDefinitionVersionFluentImpl.this.setToAdditionalPrinterColumns(index,builder.build()); } - public N endAdditionalPrinterColumn() { return and(); } + } - - class SchemaNestedImpl - extends V1CustomResourceValidationFluentImpl< - V1CustomResourceDefinitionVersionFluent.SchemaNested> - implements V1CustomResourceDefinitionVersionFluent.SchemaNested, Nested { + class SchemaNestedImpl extends V1CustomResourceValidationFluentImpl> implements V1CustomResourceDefinitionVersionFluent.SchemaNested,Nested{ SchemaNestedImpl(V1CustomResourceValidation item) { this.builder = new V1CustomResourceValidationBuilder(this, item); } - SchemaNestedImpl() { this.builder = new V1CustomResourceValidationBuilder(this); } - V1CustomResourceValidationBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionVersionFluentImpl.this.withSchema(builder.build()); } - public N endSchema() { return and(); } + } - - class SubresourcesNestedImpl - extends V1CustomResourceSubresourcesFluentImpl< - V1CustomResourceDefinitionVersionFluent.SubresourcesNested> - implements V1CustomResourceDefinitionVersionFluent.SubresourcesNested, Nested { + class SubresourcesNestedImpl extends V1CustomResourceSubresourcesFluentImpl> implements V1CustomResourceDefinitionVersionFluent.SubresourcesNested,Nested{ SubresourcesNestedImpl(V1CustomResourceSubresources item) { this.builder = new V1CustomResourceSubresourcesBuilder(this, item); } - SubresourcesNestedImpl() { this.builder = new V1CustomResourceSubresourcesBuilder(this); } - V1CustomResourceSubresourcesBuilder builder; - public N and() { return (N) V1CustomResourceDefinitionVersionFluentImpl.this.withSubresources(builder.build()); } - public N endSubresources() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java index 92526f77e0..1ad2d766d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceSubresourceScaleBuilder - extends V1CustomResourceSubresourceScaleFluentImpl - implements VisitableBuilder< - V1CustomResourceSubresourceScale, V1CustomResourceSubresourceScaleBuilder> { +import java.lang.Boolean; +public class V1CustomResourceSubresourceScaleBuilder extends V1CustomResourceSubresourceScaleFluentImpl implements VisitableBuilder{ public V1CustomResourceSubresourceScaleBuilder() { this(false); } - public V1CustomResourceSubresourceScaleBuilder(Boolean validationEnabled) { this(new V1CustomResourceSubresourceScale(), validationEnabled); } - public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent) { this(fluent, false); } - - public V1CustomResourceSubresourceScaleBuilder( - V1CustomResourceSubresourceScaleFluent fluent, Boolean validationEnabled) { + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceSubresourceScale(), validationEnabled); } - - public V1CustomResourceSubresourceScaleBuilder( - V1CustomResourceSubresourceScaleFluent fluent, V1CustomResourceSubresourceScale instance) { + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,V1CustomResourceSubresourceScale instance) { this(fluent, instance, false); } - - public V1CustomResourceSubresourceScaleBuilder( - V1CustomResourceSubresourceScaleFluent fluent, - V1CustomResourceSubresourceScale instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,V1CustomResourceSubresourceScale instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLabelSelectorPath(instance.getLabelSelectorPath()); fluent.withSpecReplicasPath(instance.getSpecReplicasPath()); fluent.withStatusReplicasPath(instance.getStatusReplicasPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScale instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceSubresourceScaleBuilder( - V1CustomResourceSubresourceScale instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScale instance,Boolean validationEnabled) { + this.fluent = this; this.withLabelSelectorPath(instance.getLabelSelectorPath()); this.withSpecReplicasPath(instance.getSpecReplicasPath()); this.withStatusReplicasPath(instance.getStatusReplicasPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceSubresourceScaleFluent fluent; Boolean validationEnabled; - public V1CustomResourceSubresourceScale build() { V1CustomResourceSubresourceScale buildable = new V1CustomResourceSubresourceScale(); buildable.setLabelSelectorPath(fluent.getLabelSelectorPath()); @@ -80,4 +50,5 @@ public V1CustomResourceSubresourceScale build() { buildable.setStatusReplicasPath(fluent.getStatusReplicasPath()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java index 9799741b48..e873006df3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java @@ -1,38 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1CustomResourceSubresourceScaleFluent< - A extends V1CustomResourceSubresourceScaleFluent> - extends Fluent { + /** + * Generated + */ +public interface V1CustomResourceSubresourceScaleFluent> extends Fluent{ public String getLabelSelectorPath(); - public A withLabelSelectorPath(String labelSelectorPath); - public Boolean hasLabelSelectorPath(); - public String getSpecReplicasPath(); - public A withSpecReplicasPath(String specReplicasPath); - public Boolean hasSpecReplicasPath(); - public String getStatusReplicasPath(); - public A withStatusReplicasPath(String statusReplicasPath); - public Boolean hasStatusReplicasPath(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java index a35b0f6b56..441be9134e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java @@ -1,115 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceSubresourceScaleFluentImpl< - A extends V1CustomResourceSubresourceScaleFluent> - extends BaseFluent implements V1CustomResourceSubresourceScaleFluent { - public V1CustomResourceSubresourceScaleFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceSubresourceScaleFluentImpl> extends BaseFluent implements V1CustomResourceSubresourceScaleFluent{ + public V1CustomResourceSubresourceScaleFluentImpl() { + } public V1CustomResourceSubresourceScaleFluentImpl(V1CustomResourceSubresourceScale instance) { this.withLabelSelectorPath(instance.getLabelSelectorPath()); this.withSpecReplicasPath(instance.getSpecReplicasPath()); this.withStatusReplicasPath(instance.getStatusReplicasPath()); - } + } private String labelSelectorPath; private String specReplicasPath; private String statusReplicasPath; - public String getLabelSelectorPath() { return this.labelSelectorPath; } - public A withLabelSelectorPath(String labelSelectorPath) { - this.labelSelectorPath = labelSelectorPath; - return (A) this; + this.labelSelectorPath=labelSelectorPath; return (A) this; } - public Boolean hasLabelSelectorPath() { return this.labelSelectorPath != null; } - public String getSpecReplicasPath() { return this.specReplicasPath; } - public A withSpecReplicasPath(String specReplicasPath) { - this.specReplicasPath = specReplicasPath; - return (A) this; + this.specReplicasPath=specReplicasPath; return (A) this; } - public Boolean hasSpecReplicasPath() { return this.specReplicasPath != null; } - public String getStatusReplicasPath() { return this.statusReplicasPath; } - public A withStatusReplicasPath(String statusReplicasPath) { - this.statusReplicasPath = statusReplicasPath; - return (A) this; + this.statusReplicasPath=statusReplicasPath; return (A) this; } - public Boolean hasStatusReplicasPath() { return this.statusReplicasPath != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1CustomResourceSubresourceScaleFluentImpl that = - (V1CustomResourceSubresourceScaleFluentImpl) o; - if (labelSelectorPath != null - ? !labelSelectorPath.equals(that.labelSelectorPath) - : that.labelSelectorPath != null) return false; - if (specReplicasPath != null - ? !specReplicasPath.equals(that.specReplicasPath) - : that.specReplicasPath != null) return false; - if (statusReplicasPath != null - ? !statusReplicasPath.equals(that.statusReplicasPath) - : that.statusReplicasPath != null) return false; + V1CustomResourceSubresourceScaleFluentImpl that = (V1CustomResourceSubresourceScaleFluentImpl) o; + if (labelSelectorPath != null ? !labelSelectorPath.equals(that.labelSelectorPath) :that.labelSelectorPath != null) return false; + if (specReplicasPath != null ? !specReplicasPath.equals(that.specReplicasPath) :that.specReplicasPath != null) return false; + if (statusReplicasPath != null ? !statusReplicasPath.equals(that.statusReplicasPath) :that.statusReplicasPath != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - labelSelectorPath, specReplicasPath, statusReplicasPath, super.hashCode()); + return java.util.Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelectorPath != null) { - sb.append("labelSelectorPath:"); - sb.append(labelSelectorPath + ","); - } - if (specReplicasPath != null) { - sb.append("specReplicasPath:"); - sb.append(specReplicasPath + ","); - } - if (statusReplicasPath != null) { - sb.append("statusReplicasPath:"); - sb.append(statusReplicasPath); - } + if (labelSelectorPath != null) { sb.append("labelSelectorPath:"); sb.append(labelSelectorPath + ","); } + if (specReplicasPath != null) { sb.append("specReplicasPath:"); sb.append(specReplicasPath + ","); } + if (statusReplicasPath != null) { sb.append("statusReplicasPath:"); sb.append(statusReplicasPath); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java index 7a3bfe49fb..15037ac4ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceSubresourcesBuilder - extends V1CustomResourceSubresourcesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CustomResourceSubresourcesBuilder extends V1CustomResourceSubresourcesFluentImpl implements VisitableBuilder{ public V1CustomResourceSubresourcesBuilder() { this(false); } - public V1CustomResourceSubresourcesBuilder(Boolean validationEnabled) { this(new V1CustomResourceSubresources(), validationEnabled); } - public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent) { this(fluent, false); } - - public V1CustomResourceSubresourcesBuilder( - V1CustomResourceSubresourcesFluent fluent, Boolean validationEnabled) { + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceSubresources(), validationEnabled); } - - public V1CustomResourceSubresourcesBuilder( - V1CustomResourceSubresourcesFluent fluent, V1CustomResourceSubresources instance) { + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,V1CustomResourceSubresources instance) { this(fluent, instance, false); } - - public V1CustomResourceSubresourcesBuilder( - V1CustomResourceSubresourcesFluent fluent, - V1CustomResourceSubresources instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,V1CustomResourceSubresources instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withScale(instance.getScale()); fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresources instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceSubresourcesBuilder( - V1CustomResourceSubresources instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresources instance,Boolean validationEnabled) { + this.fluent = this; this.withScale(instance.getScale()); this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceSubresourcesFluent fluent; Boolean validationEnabled; - public V1CustomResourceSubresources build() { V1CustomResourceSubresources buildable = new V1CustomResourceSubresources(); buildable.setScale(fluent.getScale()); buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java index 96b919a356..459bf1d854 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java @@ -1,62 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1CustomResourceSubresourcesFluent> - extends Fluent { - +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1CustomResourceSubresourcesFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildScale instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceSubresourceScale getScale(); - public V1CustomResourceSubresourceScale buildScale(); - public A withScale(V1CustomResourceSubresourceScale scale); - public Boolean hasScale(); - public V1CustomResourceSubresourcesFluent.ScaleNested withNewScale(); - - public V1CustomResourceSubresourcesFluent.ScaleNested withNewScaleLike( - V1CustomResourceSubresourceScale item); - + public V1CustomResourceSubresourcesFluent.ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item); public V1CustomResourceSubresourcesFluent.ScaleNested editScale(); - public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScale(); - - public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScaleLike( - V1CustomResourceSubresourceScale item); - + public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScaleLike(V1CustomResourceSubresourceScale item); public Object getStatus(); - public A withStatus(Object status); - public Boolean hasStatus(); - - public interface ScaleNested - extends Nested, - V1CustomResourceSubresourceScaleFluent< - V1CustomResourceSubresourcesFluent.ScaleNested> { + public interface ScaleNested extends Nested,V1CustomResourceSubresourceScaleFluent>{ public N and(); - public N endScale(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java index 58a9d14263..024f1c77e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java @@ -1,149 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceSubresourcesFluentImpl> - extends BaseFluent implements V1CustomResourceSubresourcesFluent { - public V1CustomResourceSubresourcesFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceSubresourcesFluentImpl> extends BaseFluent implements V1CustomResourceSubresourcesFluent{ + public V1CustomResourceSubresourcesFluentImpl() { + } public V1CustomResourceSubresourcesFluentImpl(V1CustomResourceSubresources instance) { this.withScale(instance.getScale()); this.withStatus(instance.getStatus()); - } + } private V1CustomResourceSubresourceScaleBuilder scale; private Object status; - + /** * This method has been deprecated, please use method buildScale instead. - * * @return The buildable object. */ @Deprecated public V1CustomResourceSubresourceScale getScale() { - return this.scale != null ? this.scale.build() : null; + return this.scale!=null ?this.scale.build():null; } - public V1CustomResourceSubresourceScale buildScale() { - return this.scale != null ? this.scale.build() : null; + return this.scale!=null ?this.scale.build():null; } - public A withScale(V1CustomResourceSubresourceScale scale) { _visitables.get("scale").remove(this.scale); - if (scale != null) { - this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); - _visitables.get("scale").add(this.scale); - } else { - this.scale = null; - _visitables.get("scale").remove(this.scale); - } - return (A) this; + if (scale!=null){ this.scale= new V1CustomResourceSubresourceScaleBuilder(scale); _visitables.get("scale").add(this.scale);} else { this.scale = null; _visitables.get("scale").remove(this.scale); } return (A) this; } - public Boolean hasScale() { return this.scale != null; } - public V1CustomResourceSubresourcesFluent.ScaleNested withNewScale() { return new V1CustomResourceSubresourcesFluentImpl.ScaleNestedImpl(); } - - public V1CustomResourceSubresourcesFluent.ScaleNested withNewScaleLike( - V1CustomResourceSubresourceScale item) { + public V1CustomResourceSubresourcesFluent.ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { return new V1CustomResourceSubresourcesFluentImpl.ScaleNestedImpl(item); } - public V1CustomResourceSubresourcesFluent.ScaleNested editScale() { return withNewScaleLike(getScale()); } - public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScale() { - return withNewScaleLike( - getScale() != null ? getScale() : new V1CustomResourceSubresourceScaleBuilder().build()); + return withNewScaleLike(getScale() != null ? getScale(): new V1CustomResourceSubresourceScaleBuilder().build()); } - - public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScaleLike( - V1CustomResourceSubresourceScale item) { - return withNewScaleLike(getScale() != null ? getScale() : item); + public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScaleLike(V1CustomResourceSubresourceScale item) { + return withNewScaleLike(getScale() != null ? getScale(): item); } - public Object getStatus() { return this.status; } - public A withStatus(Object status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceSubresourcesFluentImpl that = (V1CustomResourceSubresourcesFluentImpl) o; - if (scale != null ? !scale.equals(that.scale) : that.scale != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (scale != null ? !scale.equals(that.scale) :that.scale != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(scale, status, super.hashCode()); + return java.util.Objects.hash(scale, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (scale != null) { - sb.append("scale:"); - sb.append(scale + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (scale != null) { sb.append("scale:"); sb.append(scale + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class ScaleNestedImpl - extends V1CustomResourceSubresourceScaleFluentImpl< - V1CustomResourceSubresourcesFluent.ScaleNested> - implements V1CustomResourceSubresourcesFluent.ScaleNested, Nested { + class ScaleNestedImpl extends V1CustomResourceSubresourceScaleFluentImpl> implements V1CustomResourceSubresourcesFluent.ScaleNested,Nested{ ScaleNestedImpl(V1CustomResourceSubresourceScale item) { this.builder = new V1CustomResourceSubresourceScaleBuilder(this, item); } - ScaleNestedImpl() { this.builder = new V1CustomResourceSubresourceScaleBuilder(this); } - V1CustomResourceSubresourceScaleBuilder builder; - public N and() { return (N) V1CustomResourceSubresourcesFluentImpl.this.withScale(builder.build()); } - public N endScale() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java index 3d4388afb2..78fa3b7087 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1CustomResourceValidationBuilder - extends V1CustomResourceValidationFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1CustomResourceValidationBuilder extends V1CustomResourceValidationFluentImpl implements VisitableBuilder{ public V1CustomResourceValidationBuilder() { this(false); } - public V1CustomResourceValidationBuilder(Boolean validationEnabled) { this(new V1CustomResourceValidation(), validationEnabled); } - public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent) { this(fluent, false); } - - public V1CustomResourceValidationBuilder( - V1CustomResourceValidationFluent fluent, Boolean validationEnabled) { + public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,Boolean validationEnabled) { this(fluent, new V1CustomResourceValidation(), validationEnabled); } - - public V1CustomResourceValidationBuilder( - V1CustomResourceValidationFluent fluent, V1CustomResourceValidation instance) { + public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,V1CustomResourceValidation instance) { this(fluent, instance, false); } - - public V1CustomResourceValidationBuilder( - V1CustomResourceValidationFluent fluent, - V1CustomResourceValidation instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,V1CustomResourceValidation instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1CustomResourceValidationBuilder(V1CustomResourceValidation instance) { - this(instance, false); + this(instance,false); } - - public V1CustomResourceValidationBuilder( - V1CustomResourceValidation instance, Boolean validationEnabled) { - this.fluent = this; + public V1CustomResourceValidationBuilder(V1CustomResourceValidation instance,Boolean validationEnabled) { + this.fluent = this; this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1CustomResourceValidationFluent fluent; Boolean validationEnabled; - public V1CustomResourceValidation build() { V1CustomResourceValidation buildable = new V1CustomResourceValidation(); buildable.setOpenAPIV3Schema(fluent.getOpenAPIV3Schema()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java index 6e3ffaa004..2013977a67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java @@ -1,55 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1CustomResourceValidationFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1CustomResourceValidationFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildOpenAPIV3Schema instead. - * * @return The buildable object. */ @Deprecated public V1JSONSchemaProps getOpenAPIV3Schema(); - public V1JSONSchemaProps buildOpenAPIV3Schema(); - public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema); - public Boolean hasOpenAPIV3Schema(); - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3Schema(); - - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike( - V1JSONSchemaProps item); - + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item); public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOpenAPIV3Schema(); - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3Schema(); - - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike( - V1JSONSchemaProps item); - - public interface OpenAPIV3SchemaNested - extends Nested, - V1JSONSchemaPropsFluent> { + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike(V1JSONSchemaProps item); + public interface OpenAPIV3SchemaNested extends Nested,V1JSONSchemaPropsFluent>{ public N and(); - public N endOpenAPIV3Schema(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java index b4fdd70892..74a8a6a275 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java @@ -1,131 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1CustomResourceValidationFluentImpl> - extends BaseFluent implements V1CustomResourceValidationFluent { - public V1CustomResourceValidationFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1CustomResourceValidationFluentImpl> extends BaseFluent implements V1CustomResourceValidationFluent{ + public V1CustomResourceValidationFluentImpl() { + } public V1CustomResourceValidationFluentImpl(V1CustomResourceValidation instance) { this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); - } + } private V1JSONSchemaPropsBuilder openAPIV3Schema; - + /** * This method has been deprecated, please use method buildOpenAPIV3Schema instead. - * * @return The buildable object. */ @Deprecated public V1JSONSchemaProps getOpenAPIV3Schema() { - return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; + return this.openAPIV3Schema!=null ?this.openAPIV3Schema.build():null; } - public V1JSONSchemaProps buildOpenAPIV3Schema() { - return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; + return this.openAPIV3Schema!=null ?this.openAPIV3Schema.build():null; } - public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { _visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); - if (openAPIV3Schema != null) { - this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); - _visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); - } else { - this.openAPIV3Schema = null; - _visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); - } - return (A) this; + if (openAPIV3Schema!=null){ this.openAPIV3Schema= new V1JSONSchemaPropsBuilder(openAPIV3Schema); _visitables.get("openAPIV3Schema").add(this.openAPIV3Schema);} else { this.openAPIV3Schema = null; _visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); } return (A) this; } - public Boolean hasOpenAPIV3Schema() { return this.openAPIV3Schema != null; } - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3Schema() { return new V1CustomResourceValidationFluentImpl.OpenAPIV3SchemaNestedImpl(); } - - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike( - V1JSONSchemaProps item) { + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { return new V1CustomResourceValidationFluentImpl.OpenAPIV3SchemaNestedImpl(item); } - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOpenAPIV3Schema() { return withNewOpenAPIV3SchemaLike(getOpenAPIV3Schema()); } - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3Schema() { - return withNewOpenAPIV3SchemaLike( - getOpenAPIV3Schema() != null - ? getOpenAPIV3Schema() - : new V1JSONSchemaPropsBuilder().build()); + return withNewOpenAPIV3SchemaLike(getOpenAPIV3Schema() != null ? getOpenAPIV3Schema(): new V1JSONSchemaPropsBuilder().build()); } - - public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike( - V1JSONSchemaProps item) { - return withNewOpenAPIV3SchemaLike(getOpenAPIV3Schema() != null ? getOpenAPIV3Schema() : item); + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { + return withNewOpenAPIV3SchemaLike(getOpenAPIV3Schema() != null ? getOpenAPIV3Schema(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceValidationFluentImpl that = (V1CustomResourceValidationFluentImpl) o; - if (openAPIV3Schema != null - ? !openAPIV3Schema.equals(that.openAPIV3Schema) - : that.openAPIV3Schema != null) return false; + if (openAPIV3Schema != null ? !openAPIV3Schema.equals(that.openAPIV3Schema) :that.openAPIV3Schema != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(openAPIV3Schema, super.hashCode()); + return java.util.Objects.hash(openAPIV3Schema, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (openAPIV3Schema != null) { - sb.append("openAPIV3Schema:"); - sb.append(openAPIV3Schema); - } + if (openAPIV3Schema != null) { sb.append("openAPIV3Schema:"); sb.append(openAPIV3Schema); } sb.append("}"); return sb.toString(); } - - class OpenAPIV3SchemaNestedImpl - extends V1JSONSchemaPropsFluentImpl> - implements V1CustomResourceValidationFluent.OpenAPIV3SchemaNested, Nested { + class OpenAPIV3SchemaNestedImpl extends V1JSONSchemaPropsFluentImpl> implements V1CustomResourceValidationFluent.OpenAPIV3SchemaNested,Nested{ OpenAPIV3SchemaNestedImpl(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } - OpenAPIV3SchemaNestedImpl() { this.builder = new V1JSONSchemaPropsBuilder(this); } - V1JSONSchemaPropsBuilder builder; - public N and() { return (N) V1CustomResourceValidationFluentImpl.this.withOpenAPIV3Schema(builder.build()); } - public N endOpenAPIV3Schema() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java index 7c2c63b61b..9b5b000f30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluentImpl implements VisitableBuilder{ public V1DaemonEndpointBuilder() { this(false); } - public V1DaemonEndpointBuilder(Boolean validationEnabled) { this(new V1DaemonEndpoint(), validationEnabled); } - public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent) { this(fluent, false); } - - public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent, Boolean validationEnabled) { + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonEndpoint(), validationEnabled); } - - public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent, V1DaemonEndpoint instance) { + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,V1DaemonEndpoint instance) { this(fluent, instance, false); } - - public V1DaemonEndpointBuilder( - V1DaemonEndpointFluent fluent, V1DaemonEndpoint instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,V1DaemonEndpoint instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonEndpointBuilder(V1DaemonEndpoint instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonEndpointBuilder(V1DaemonEndpoint instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonEndpointBuilder(V1DaemonEndpoint instance,Boolean validationEnabled) { + this.fluent = this; this.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonEndpointFluent fluent; Boolean validationEnabled; - public V1DaemonEndpoint build() { V1DaemonEndpoint buildable = new V1DaemonEndpoint(); buildable.setPort(fluent.getPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java index 50e0c05b8f..14da0463ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java @@ -1,24 +1,15 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1DaemonEndpointFluent> extends Fluent { + /** + * Generated + */ +public interface V1DaemonEndpointFluent> extends Fluent{ public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java index 769124e522..cfc5eb4891 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java @@ -1,64 +1,49 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonEndpointFluentImpl> extends BaseFluent - implements V1DaemonEndpointFluent { - public V1DaemonEndpointFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonEndpointFluentImpl> extends BaseFluent implements V1DaemonEndpointFluent{ + public V1DaemonEndpointFluentImpl() { + } public V1DaemonEndpointFluentImpl(V1DaemonEndpoint instance) { this.withPort(instance.getPort()); - } + } private Integer port; - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DaemonEndpointFluentImpl that = (V1DaemonEndpointFluentImpl) o; - if (port != null ? !port.equals(that.port) : that.port != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(port, super.hashCode()); + return java.util.Objects.hash(port, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (port != null) { - sb.append("port:"); - sb.append(port); - } + if (port != null) { sb.append("port:"); sb.append(port); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java index 9dacbf71ee..048727b445 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DaemonSetBuilder extends V1DaemonSetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonSetBuilder extends V1DaemonSetFluentImpl implements VisitableBuilder{ public V1DaemonSetBuilder() { this(false); } - public V1DaemonSetBuilder(Boolean validationEnabled) { this(new V1DaemonSet(), validationEnabled); } - public V1DaemonSetBuilder(V1DaemonSetFluent fluent) { this(fluent, false); } - - public V1DaemonSetBuilder(V1DaemonSetFluent fluent, Boolean validationEnabled) { + public V1DaemonSetBuilder(V1DaemonSetFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonSet(), validationEnabled); } - - public V1DaemonSetBuilder(V1DaemonSetFluent fluent, V1DaemonSet instance) { + public V1DaemonSetBuilder(V1DaemonSetFluent fluent,V1DaemonSet instance) { this(fluent, instance, false); } - - public V1DaemonSetBuilder( - V1DaemonSetFluent fluent, V1DaemonSet instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonSetBuilder(V1DaemonSetFluent fluent,V1DaemonSet instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1DaemonSetBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonSetBuilder(V1DaemonSet instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonSetBuilder(V1DaemonSet instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonSetBuilder(V1DaemonSet instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1DaemonSetBuilder(V1DaemonSet instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonSetFluent fluent; Boolean validationEnabled; - public V1DaemonSet build() { V1DaemonSet buildable = new V1DaemonSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1DaemonSet build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java index 8b617324ce..59971d3f1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DaemonSetConditionBuilder - extends V1DaemonSetConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonSetConditionBuilder extends V1DaemonSetConditionFluentImpl implements VisitableBuilder{ public V1DaemonSetConditionBuilder() { this(false); } - public V1DaemonSetConditionBuilder(Boolean validationEnabled) { this(new V1DaemonSetCondition(), validationEnabled); } - public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent) { this(fluent, false); } - - public V1DaemonSetConditionBuilder( - V1DaemonSetConditionFluent fluent, Boolean validationEnabled) { + public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonSetCondition(), validationEnabled); } - - public V1DaemonSetConditionBuilder( - V1DaemonSetConditionFluent fluent, V1DaemonSetCondition instance) { + public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,V1DaemonSetCondition instance) { this(fluent, instance, false); } - - public V1DaemonSetConditionBuilder( - V1DaemonSetConditionFluent fluent, - V1DaemonSetCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,V1DaemonSetCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,15 +30,13 @@ public V1DaemonSetConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -73,12 +47,10 @@ public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance, Boolean valida this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonSetConditionFluent fluent; Boolean validationEnabled; - public V1DaemonSetCondition build() { V1DaemonSetCondition buildable = new V1DaemonSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -88,4 +60,5 @@ public V1DaemonSetCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java index 45cfc321cf..c37432f2ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1DaemonSetConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1DaemonSetConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java index e487e237e1..c356d9a2d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonSetConditionFluentImpl> - extends BaseFluent implements V1DaemonSetConditionFluent { - public V1DaemonSetConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonSetConditionFluentImpl> extends BaseFluent implements V1DaemonSetConditionFluent{ + public V1DaemonSetConditionFluentImpl() { + } public V1DaemonSetConditionFluentImpl(V1DaemonSetCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1DaemonSetConditionFluentImpl(V1DaemonSetCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DaemonSetConditionFluentImpl that = (V1DaemonSetConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java index 5f5facd2cd..cc60a75423 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DaemonSetFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DaemonSetFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1DaemonSetFluent.MetadataNested withNewMetadata(); - public V1DaemonSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1DaemonSetFluent.MetadataNested editMetadata(); - public V1DaemonSetFluent.MetadataNested editOrNewMetadata(); - public V1DaemonSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1DaemonSetSpec getSpec(); - public V1DaemonSetSpec buildSpec(); - public A withSpec(V1DaemonSetSpec spec); - public Boolean hasSpec(); - public V1DaemonSetFluent.SpecNested withNewSpec(); - public V1DaemonSetFluent.SpecNested withNewSpecLike(V1DaemonSetSpec item); - public V1DaemonSetFluent.SpecNested editSpec(); - public V1DaemonSetFluent.SpecNested editOrNewSpec(); - public V1DaemonSetFluent.SpecNested editOrNewSpecLike(V1DaemonSetSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1DaemonSetStatus getStatus(); - public V1DaemonSetStatus buildStatus(); - public A withStatus(V1DaemonSetStatus status); - public Boolean hasStatus(); - public V1DaemonSetFluent.StatusNested withNewStatus(); - public V1DaemonSetFluent.StatusNested withNewStatusLike(V1DaemonSetStatus item); - public V1DaemonSetFluent.StatusNested editStatus(); - public V1DaemonSetFluent.StatusNested editOrNewStatus(); - public V1DaemonSetFluent.StatusNested editOrNewStatusLike(V1DaemonSetStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1DaemonSetSpecFluent> { + public interface SpecNested extends Nested,V1DaemonSetSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1DaemonSetStatusFluent> { + public interface StatusNested extends Nested,V1DaemonSetStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java index 00718f25ac..e2eff19ded 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonSetFluentImpl> extends BaseFluent - implements V1DaemonSetFluent { - public V1DaemonSetFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonSetFluentImpl> extends BaseFluent implements V1DaemonSetFluent{ + public V1DaemonSetFluentImpl() { + } public V1DaemonSetFluentImpl(V1DaemonSet instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1DaemonSetFluentImpl(V1DaemonSet instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1DaemonSetSpecBuilder spec; private V1DaemonSetStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1DaemonSetFluent.MetadataNested withNewMetadata() { return new V1DaemonSetFluentImpl.MetadataNestedImpl(); } - public V1DaemonSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1DaemonSetFluentImpl.MetadataNestedImpl(item); } - public V1DaemonSetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1DaemonSetFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1DaemonSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1DaemonSetSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1DaemonSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1DaemonSetSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1DaemonSetSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1DaemonSetSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1DaemonSetFluent.SpecNested withNewSpec() { return new V1DaemonSetFluentImpl.SpecNestedImpl(); } - public V1DaemonSetFluent.SpecNested withNewSpecLike(V1DaemonSetSpec item) { return new V1DaemonSetFluentImpl.SpecNestedImpl(item); } - public V1DaemonSetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1DaemonSetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1DaemonSetSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1DaemonSetSpecBuilder().build()); } - public V1DaemonSetFluent.SpecNested editOrNewSpecLike(V1DaemonSetSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1DaemonSetStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1DaemonSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1DaemonSetStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1DaemonSetStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1DaemonSetStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1DaemonSetFluent.StatusNested withNewStatus() { return new V1DaemonSetFluentImpl.StatusNestedImpl(); } - public V1DaemonSetFluent.StatusNested withNewStatusLike(V1DaemonSetStatus item) { return new V1DaemonSetFluentImpl.StatusNestedImpl(item); } - public V1DaemonSetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1DaemonSetFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1DaemonSetStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1DaemonSetStatusBuilder().build()); } - public V1DaemonSetFluent.StatusNested editOrNewStatusLike(V1DaemonSetStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DaemonSetFluentImpl that = (V1DaemonSetFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1DaemonSetFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1DaemonSetFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1DaemonSetFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1DaemonSetSpecFluentImpl> - implements V1DaemonSetFluent.SpecNested, Nested { + class SpecNestedImpl extends V1DaemonSetSpecFluentImpl> implements V1DaemonSetFluent.SpecNested,Nested{ SpecNestedImpl(V1DaemonSetSpec item) { this.builder = new V1DaemonSetSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1DaemonSetSpecBuilder(this); } - V1DaemonSetSpecBuilder builder; - public N and() { return (N) V1DaemonSetFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1DaemonSetStatusFluentImpl> - implements V1DaemonSetFluent.StatusNested, Nested { + class StatusNestedImpl extends V1DaemonSetStatusFluentImpl> implements V1DaemonSetFluent.StatusNested,Nested{ StatusNestedImpl(V1DaemonSetStatus item) { this.builder = new V1DaemonSetStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1DaemonSetStatusBuilder(this); } - V1DaemonSetStatusBuilder builder; - public N and() { return (N) V1DaemonSetFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java index 846a9f178f..6876591c55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DaemonSetListBuilder extends V1DaemonSetListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonSetListBuilder extends V1DaemonSetListFluentImpl implements VisitableBuilder{ public V1DaemonSetListBuilder() { this(false); } - public V1DaemonSetListBuilder(Boolean validationEnabled) { this(new V1DaemonSetList(), validationEnabled); } - public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent) { this(fluent, false); } - - public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent, Boolean validationEnabled) { + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonSetList(), validationEnabled); } - - public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent, V1DaemonSetList instance) { + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,V1DaemonSetList instance) { this(fluent, instance, false); } - - public V1DaemonSetListBuilder( - V1DaemonSetListFluent fluent, V1DaemonSetList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,V1DaemonSetList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1DaemonSetListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonSetListBuilder(V1DaemonSetList instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonSetListBuilder(V1DaemonSetList instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonSetListBuilder(V1DaemonSetList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1DaemonSetListBuilder(V1DaemonSetList instance, Boolean validationEnable this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonSetListFluent fluent; Boolean validationEnabled; - public V1DaemonSetList build() { V1DaemonSetList buildable = new V1DaemonSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1DaemonSetList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java index d8dfa6c3ff..dd86d591b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1DaemonSetListFluent> extends Fluent { + /** + * Generated + */ +public interface V1DaemonSetListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1DaemonSet item); - - public A setToItems(Integer index, V1DaemonSet item); - + public A addToItems(Integer index,V1DaemonSet item); + public A setToItems(Integer index,V1DaemonSet item); public A addToItems(io.kubernetes.client.openapi.models.V1DaemonSet... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1DaemonSet... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1DaemonSet buildItem(Integer index); - public V1DaemonSet buildFirstItem(); - public V1DaemonSet buildLastItem(); - public V1DaemonSet buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items); - public Boolean hasItems(); - public V1DaemonSetListFluent.ItemsNested addNewItem(); - public V1DaemonSetListFluent.ItemsNested addNewItemLike(V1DaemonSet item); - - public V1DaemonSetListFluent.ItemsNested setNewItemLike(Integer index, V1DaemonSet item); - + public V1DaemonSetListFluent.ItemsNested setNewItemLike(Integer index,V1DaemonSet item); public V1DaemonSetListFluent.ItemsNested editItem(Integer index); - public V1DaemonSetListFluent.ItemsNested editFirstItem(); - public V1DaemonSetListFluent.ItemsNested editLastItem(); - - public V1DaemonSetListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1DaemonSetListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1DaemonSetListFluent.MetadataNested withNewMetadata(); - public V1DaemonSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1DaemonSetListFluent.MetadataNested editMetadata(); - public V1DaemonSetListFluent.MetadataNested editOrNewMetadata(); - public V1DaemonSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1DaemonSetFluent> { + public interface ItemsNested extends Nested,V1DaemonSetFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java index 551949c780..e8087d209c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonSetListFluentImpl> extends BaseFluent - implements V1DaemonSetListFluent { - public V1DaemonSetListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonSetListFluentImpl> extends BaseFluent implements V1DaemonSetListFluent{ + public V1DaemonSetListFluentImpl() { + } public V1DaemonSetListFluentImpl(V1DaemonSetList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1DaemonSetListFluentImpl(V1DaemonSetList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1DaemonSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1DaemonSet item) { + if (this.items == null) {this.items = new ArrayList();} + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1DaemonSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1DaemonSet item) { + if (this.items == null) {this.items = new ArrayList();} V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1DaemonSet buildItem(Integer index) { return this.items.get(index).build(); } - public V1DaemonSet buildFirstItem() { return this.items.get(0).build(); } - public V1DaemonSet buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1DaemonSet buildMatchingItem(Predicate predicate) { - for (V1DaemonSetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1DaemonSetBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1DaemonSetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1DaemonSetBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DaemonSet item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1DaemonSet item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1DaemonSet item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1DaemonSet item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1DaemonSetListFluent.ItemsNested addNewItem() { return new V1DaemonSetListFluentImpl.ItemsNestedImpl(); } - public V1DaemonSetListFluent.ItemsNested addNewItemLike(V1DaemonSet item) { return new V1DaemonSetListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1DaemonSetListFluent.ItemsNested setNewItemLike(Integer index, V1DaemonSet item) { + public V1DaemonSetListFluent.ItemsNested setNewItemLike(Integer index,V1DaemonSet item) { return new V1DaemonSetListFluentImpl.ItemsNestedImpl(index, item); } - public V1DaemonSetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1DaemonSetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1DaemonSetListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1DaemonSetListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1DaemonSetListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1DaemonSetListFluentImpl.MetadataNestedImpl(); } - public V1DaemonSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1DaemonSetListFluentImpl.MetadataNestedImpl(item); } - public V1DaemonSetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1DaemonSetListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1DaemonSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DaemonSetListFluentImpl that = (V1DaemonSetListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1DaemonSetFluentImpl> - implements V1DaemonSetListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1DaemonSet item) { + class ItemsNestedImpl extends V1DaemonSetFluentImpl> implements V1DaemonSetListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1DaemonSet item) { this.index = index; this.builder = new V1DaemonSetBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1DaemonSetBuilder(this); } - V1DaemonSetBuilder builder; Integer index; - public N and() { - return (N) V1DaemonSetListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1DaemonSetListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1DaemonSetListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1DaemonSetListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1DaemonSetListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java index 80437aa5a6..0d7cf67a5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluentImpl implements VisitableBuilder{ public V1DaemonSetSpecBuilder() { this(false); } - public V1DaemonSetSpecBuilder(Boolean validationEnabled) { this(new V1DaemonSetSpec(), validationEnabled); } - public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent) { this(fluent, false); } - - public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent, Boolean validationEnabled) { + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonSetSpec(), validationEnabled); } - - public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent, V1DaemonSetSpec instance) { + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,V1DaemonSetSpec instance) { this(fluent, instance, false); } - - public V1DaemonSetSpecBuilder( - V1DaemonSetSpecFluent fluent, V1DaemonSetSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,V1DaemonSetSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); fluent.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); @@ -49,15 +30,13 @@ public V1DaemonSetSpecBuilder( fluent.withUpdateStrategy(instance.getUpdateStrategy()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); @@ -68,12 +47,10 @@ public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance, Boolean validationEnable this.withUpdateStrategy(instance.getUpdateStrategy()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonSetSpecFluent fluent; Boolean validationEnabled; - public V1DaemonSetSpec build() { V1DaemonSetSpec buildable = new V1DaemonSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -83,4 +60,5 @@ public V1DaemonSetSpec build() { buildable.setUpdateStrategy(fluent.getUpdateStrategy()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java index df51ec5b1b..0f41ff6acf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java @@ -1,127 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DaemonSetSpecFluent> extends Fluent { +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DaemonSetSpecFluent> extends Fluent{ public Integer getMinReadySeconds(); - public A withMinReadySeconds(Integer minReadySeconds); - public Boolean hasMinReadySeconds(); - public Integer getRevisionHistoryLimit(); - public A withRevisionHistoryLimit(Integer revisionHistoryLimit); - public Boolean hasRevisionHistoryLimit(); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1DaemonSetSpecFluent.SelectorNested withNewSelector(); - public V1DaemonSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V1DaemonSetSpecFluent.SelectorNested editSelector(); - public V1DaemonSetSpecFluent.SelectorNested editOrNewSelector(); - public V1DaemonSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1DaemonSetSpecFluent.TemplateNested withNewTemplate(); - public V1DaemonSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public V1DaemonSetSpecFluent.TemplateNested editTemplate(); - public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplate(); - public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - + /** * This method has been deprecated, please use method buildUpdateStrategy instead. - * * @return The buildable object. */ @Deprecated public V1DaemonSetUpdateStrategy getUpdateStrategy(); - public V1DaemonSetUpdateStrategy buildUpdateStrategy(); - public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy); - public Boolean hasUpdateStrategy(); - public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy(); - - public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( - V1DaemonSetUpdateStrategy item); - + public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item); public V1DaemonSetSpecFluent.UpdateStrategyNested editUpdateStrategy(); - public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy(); - - public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( - V1DaemonSetUpdateStrategy item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item); + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } - - public interface TemplateNested - extends Nested, V1PodTemplateSpecFluent> { + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } - - public interface UpdateStrategyNested - extends Nested, - V1DaemonSetUpdateStrategyFluent> { + public interface UpdateStrategyNested extends Nested,V1DaemonSetUpdateStrategyFluent>{ public N and(); - public N endUpdateStrategy(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java index 2e1fee2396..79cfb4c5df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonSetSpecFluentImpl> extends BaseFluent - implements V1DaemonSetSpecFluent { - public V1DaemonSetSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonSetSpecFluentImpl> extends BaseFluent implements V1DaemonSetSpecFluent{ + public V1DaemonSetSpecFluentImpl() { + } public V1DaemonSetSpecFluentImpl(V1DaemonSetSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -31,315 +26,205 @@ public V1DaemonSetSpecFluentImpl(V1DaemonSetSpec instance) { this.withTemplate(instance.getTemplate()); this.withUpdateStrategy(instance.getUpdateStrategy()); - } + } private Integer minReadySeconds; private Integer revisionHistoryLimit; private V1LabelSelectorBuilder selector; private V1PodTemplateSpecBuilder template; private V1DaemonSetUpdateStrategyBuilder updateStrategy; - public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + this.minReadySeconds=minReadySeconds; return (A) this; } - public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public Integer getRevisionHistoryLimit() { return this.revisionHistoryLimit; } - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; + this.revisionHistoryLimit=revisionHistoryLimit; return (A) this; } - public Boolean hasRevisionHistoryLimit() { return this.revisionHistoryLimit != null; } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1DaemonSetSpecFluent.SelectorNested withNewSelector() { return new V1DaemonSetSpecFluentImpl.SelectorNestedImpl(); } - public V1DaemonSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1DaemonSetSpecFluentImpl.SelectorNestedImpl(item); } - public V1DaemonSetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1DaemonSetSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - public V1DaemonSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1DaemonSetSpecFluent.TemplateNested withNewTemplate() { return new V1DaemonSetSpecFluentImpl.TemplateNestedImpl(); } - public V1DaemonSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1DaemonSetSpecFluentImpl.TemplateNestedImpl(item); } - public V1DaemonSetSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - + /** * This method has been deprecated, please use method buildUpdateStrategy instead. - * * @return The buildable object. */ @Deprecated public V1DaemonSetUpdateStrategy getUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; + return this.updateStrategy!=null ?this.updateStrategy.build():null; } - public V1DaemonSetUpdateStrategy buildUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; + return this.updateStrategy!=null ?this.updateStrategy.build():null; } - public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { _visitables.get("updateStrategy").remove(this.updateStrategy); - if (updateStrategy != null) { - this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); - _visitables.get("updateStrategy").add(this.updateStrategy); - } else { - this.updateStrategy = null; - _visitables.get("updateStrategy").remove(this.updateStrategy); - } - return (A) this; + if (updateStrategy!=null){ this.updateStrategy= new V1DaemonSetUpdateStrategyBuilder(updateStrategy); _visitables.get("updateStrategy").add(this.updateStrategy);} else { this.updateStrategy = null; _visitables.get("updateStrategy").remove(this.updateStrategy); } return (A) this; } - public Boolean hasUpdateStrategy() { return this.updateStrategy != null; } - public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy() { return new V1DaemonSetSpecFluentImpl.UpdateStrategyNestedImpl(); } - - public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( - V1DaemonSetUpdateStrategy item) { + public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { return new V1DaemonSetSpecFluentImpl.UpdateStrategyNestedImpl(item); } - public V1DaemonSetSpecFluent.UpdateStrategyNested editUpdateStrategy() { return withNewUpdateStrategyLike(getUpdateStrategy()); } - public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy() { - return withNewUpdateStrategyLike( - getUpdateStrategy() != null - ? getUpdateStrategy() - : new V1DaemonSetUpdateStrategyBuilder().build()); + return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy(): new V1DaemonSetUpdateStrategyBuilder().build()); } - - public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( - V1DaemonSetUpdateStrategy item) { - return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy() : item); + public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { + return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DaemonSetSpecFluentImpl that = (V1DaemonSetSpecFluentImpl) o; - if (minReadySeconds != null - ? !minReadySeconds.equals(that.minReadySeconds) - : that.minReadySeconds != null) return false; - if (revisionHistoryLimit != null - ? !revisionHistoryLimit.equals(that.revisionHistoryLimit) - : that.revisionHistoryLimit != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (template != null ? !template.equals(that.template) : that.template != null) return false; - if (updateStrategy != null - ? !updateStrategy.equals(that.updateStrategy) - : that.updateStrategy != null) return false; + if (minReadySeconds != null ? !minReadySeconds.equals(that.minReadySeconds) :that.minReadySeconds != null) return false; + if (revisionHistoryLimit != null ? !revisionHistoryLimit.equals(that.revisionHistoryLimit) :that.revisionHistoryLimit != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (template != null ? !template.equals(that.template) :that.template != null) return false; + if (updateStrategy != null ? !updateStrategy.equals(that.updateStrategy) :that.updateStrategy != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - minReadySeconds, - revisionHistoryLimit, - selector, - template, - updateStrategy, - super.hashCode()); + return java.util.Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { - sb.append("minReadySeconds:"); - sb.append(minReadySeconds + ","); - } - if (revisionHistoryLimit != null) { - sb.append("revisionHistoryLimit:"); - sb.append(revisionHistoryLimit + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (template != null) { - sb.append("template:"); - sb.append(template + ","); - } - if (updateStrategy != null) { - sb.append("updateStrategy:"); - sb.append(updateStrategy); - } + if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } + if (revisionHistoryLimit != null) { sb.append("revisionHistoryLimit:"); sb.append(revisionHistoryLimit + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } + if (template != null) { sb.append("template:"); sb.append(template + ","); } + if (updateStrategy != null) { sb.append("updateStrategy:"); sb.append(updateStrategy); } sb.append("}"); return sb.toString(); } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1DaemonSetSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1DaemonSetSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1DaemonSetSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } - - class TemplateNestedImpl - extends V1PodTemplateSpecFluentImpl> - implements V1DaemonSetSpecFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1DaemonSetSpecFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1DaemonSetSpecFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } - - class UpdateStrategyNestedImpl - extends V1DaemonSetUpdateStrategyFluentImpl> - implements V1DaemonSetSpecFluent.UpdateStrategyNested, Nested { + class UpdateStrategyNestedImpl extends V1DaemonSetUpdateStrategyFluentImpl> implements V1DaemonSetSpecFluent.UpdateStrategyNested,Nested{ UpdateStrategyNestedImpl(V1DaemonSetUpdateStrategy item) { this.builder = new V1DaemonSetUpdateStrategyBuilder(this, item); } - UpdateStrategyNestedImpl() { this.builder = new V1DaemonSetUpdateStrategyBuilder(this); } - V1DaemonSetUpdateStrategyBuilder builder; - public N and() { return (N) V1DaemonSetSpecFluentImpl.this.withUpdateStrategy(builder.build()); } - public N endUpdateStrategy() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java index 9cde86bcea..d629adca70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluentImpl implements VisitableBuilder{ public V1DaemonSetStatusBuilder() { this(false); } - public V1DaemonSetStatusBuilder(Boolean validationEnabled) { this(new V1DaemonSetStatus(), validationEnabled); } - public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent) { this(fluent, false); } - - public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent, Boolean validationEnabled) { + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonSetStatus(), validationEnabled); } - - public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent, V1DaemonSetStatus instance) { + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,V1DaemonSetStatus instance) { this(fluent, instance, false); } - - public V1DaemonSetStatusBuilder( - V1DaemonSetStatusFluent fluent, V1DaemonSetStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,V1DaemonSetStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCollisionCount(instance.getCollisionCount()); fluent.withConditions(instance.getConditions()); @@ -59,15 +40,13 @@ public V1DaemonSetStatusBuilder( fluent.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCollisionCount(instance.getCollisionCount()); this.withConditions(instance.getConditions()); @@ -88,12 +67,10 @@ public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance, Boolean validationEn this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonSetStatusFluent fluent; Boolean validationEnabled; - public V1DaemonSetStatus build() { V1DaemonSetStatus buildable = new V1DaemonSetStatus(); buildable.setCollisionCount(fluent.getCollisionCount()); @@ -108,4 +85,5 @@ public V1DaemonSetStatus build() { buildable.setUpdatedNumberScheduled(fluent.getUpdatedNumberScheduled()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java index 56e6176227..9745e3da39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java @@ -1,140 +1,83 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1DaemonSetStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1DaemonSetStatusFluent> extends Fluent{ public Integer getCollisionCount(); - public A withCollisionCount(Integer collisionCount); - public Boolean hasCollisionCount(); - - public A addToConditions(Integer index, V1DaemonSetCondition item); - - public A setToConditions(Integer index, V1DaemonSetCondition item); - + public A addToConditions(Integer index,V1DaemonSetCondition item); + public A setToConditions(Integer index,V1DaemonSetCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1DaemonSetCondition buildCondition(Integer index); - public V1DaemonSetCondition buildFirstCondition(); - public V1DaemonSetCondition buildLastCondition(); - - public V1DaemonSetCondition buildMatchingCondition( - Predicate predicate); - + public V1DaemonSetCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... conditions); - public Boolean hasConditions(); - public V1DaemonSetStatusFluent.ConditionsNested addNewCondition(); - public V1DaemonSetStatusFluent.ConditionsNested addNewConditionLike(V1DaemonSetCondition item); - - public V1DaemonSetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1DaemonSetCondition item); - + public V1DaemonSetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1DaemonSetCondition item); public V1DaemonSetStatusFluent.ConditionsNested editCondition(Integer index); - public V1DaemonSetStatusFluent.ConditionsNested editFirstCondition(); - public V1DaemonSetStatusFluent.ConditionsNested editLastCondition(); - - public V1DaemonSetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1DaemonSetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Integer getCurrentNumberScheduled(); - public A withCurrentNumberScheduled(Integer currentNumberScheduled); - public Boolean hasCurrentNumberScheduled(); - public Integer getDesiredNumberScheduled(); - public A withDesiredNumberScheduled(Integer desiredNumberScheduled); - public Boolean hasDesiredNumberScheduled(); - public Integer getNumberAvailable(); - public A withNumberAvailable(Integer numberAvailable); - public Boolean hasNumberAvailable(); - public Integer getNumberMisscheduled(); - public A withNumberMisscheduled(Integer numberMisscheduled); - public Boolean hasNumberMisscheduled(); - public Integer getNumberReady(); - public A withNumberReady(Integer numberReady); - public Boolean hasNumberReady(); - public Integer getNumberUnavailable(); - public A withNumberUnavailable(Integer numberUnavailable); - public Boolean hasNumberUnavailable(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public Integer getUpdatedNumberScheduled(); - public A withUpdatedNumberScheduled(Integer updatedNumberScheduled); - public Boolean hasUpdatedNumberScheduled(); - - public interface ConditionsNested - extends Nested, V1DaemonSetConditionFluent> { + public interface ConditionsNested extends Nested,V1DaemonSetConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java index 53921cc581..84ca707a95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java @@ -1,31 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonSetStatusFluentImpl> extends BaseFluent - implements V1DaemonSetStatusFluent { - public V1DaemonSetStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonSetStatusFluentImpl> extends BaseFluent implements V1DaemonSetStatusFluent{ + public V1DaemonSetStatusFluentImpl() { + } public V1DaemonSetStatusFluentImpl(V1DaemonSetStatus instance) { this.withCollisionCount(instance.getCollisionCount()); @@ -46,8 +43,8 @@ public V1DaemonSetStatusFluentImpl(V1DaemonSetStatus instance) { this.withObservedGeneration(instance.getObservedGeneration()); this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); - } + } private Integer collisionCount; private ArrayList conditions; private Integer currentNumberScheduled; @@ -58,96 +55,40 @@ public V1DaemonSetStatusFluentImpl(V1DaemonSetStatus instance) { private Integer numberUnavailable; private Long observedGeneration; private Integer updatedNumberScheduled; - public Integer getCollisionCount() { return this.collisionCount; } - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; - return (A) this; + this.collisionCount=collisionCount; return (A) this; } - public Boolean hasCollisionCount() { return this.collisionCount != null; } - - public A addToConditions(Integer index, V1DaemonSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(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 addToConditions(Integer index,V1DaemonSetCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(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(Integer index, V1DaemonSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1DaemonSetCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(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; + 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.V1DaemonSetCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(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 ArrayList(); - } - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(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(); @@ -159,353 +100,201 @@ public A removeMatchingFromConditions(Predicate pre each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1DaemonSetCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1DaemonSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1DaemonSetCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1DaemonSetCondition buildMatchingCondition( - Predicate predicate) { - for (V1DaemonSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1DaemonSetCondition buildMatchingCondition(Predicate predicate) { + for (V1DaemonSetConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1DaemonSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1DaemonSetConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1DaemonSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1DaemonSetCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1DaemonSetCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1DaemonSetCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1DaemonSetStatusFluent.ConditionsNested addNewCondition() { return new V1DaemonSetStatusFluentImpl.ConditionsNestedImpl(); } - - public V1DaemonSetStatusFluent.ConditionsNested addNewConditionLike( - V1DaemonSetCondition item) { + public V1DaemonSetStatusFluent.ConditionsNested addNewConditionLike(V1DaemonSetCondition item) { return new V1DaemonSetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1DaemonSetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1DaemonSetCondition item) { + public V1DaemonSetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1DaemonSetCondition item) { return new V1DaemonSetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1DaemonSetStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1DaemonSetStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1DaemonSetStatusFluent.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 V1DaemonSetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1DaemonSetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1DaemonSetConditionFluentImpl> - implements V1DaemonSetStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1DaemonSetCondition item) { + class ConditionsNestedImpl extends V1DaemonSetConditionFluentImpl> implements V1DaemonSetStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1DaemonSetCondition item) { this.index = index; this.builder = new V1DaemonSetConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1DaemonSetConditionBuilder(this); } - V1DaemonSetConditionBuilder builder; Integer index; - public N and() { - return (N) V1DaemonSetStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1DaemonSetStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java index d754141121..871d223bcd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1DaemonSetUpdateStrategyBuilder - extends V1DaemonSetUpdateStrategyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DaemonSetUpdateStrategyBuilder extends V1DaemonSetUpdateStrategyFluentImpl implements VisitableBuilder{ public V1DaemonSetUpdateStrategyBuilder() { this(false); } - public V1DaemonSetUpdateStrategyBuilder(Boolean validationEnabled) { this(new V1DaemonSetUpdateStrategy(), validationEnabled); } - public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent) { this(fluent, false); } - - public V1DaemonSetUpdateStrategyBuilder( - V1DaemonSetUpdateStrategyFluent fluent, Boolean validationEnabled) { + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,Boolean validationEnabled) { this(fluent, new V1DaemonSetUpdateStrategy(), validationEnabled); } - - public V1DaemonSetUpdateStrategyBuilder( - V1DaemonSetUpdateStrategyFluent fluent, V1DaemonSetUpdateStrategy instance) { + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,V1DaemonSetUpdateStrategy instance) { this(fluent, instance, false); } - - public V1DaemonSetUpdateStrategyBuilder( - V1DaemonSetUpdateStrategyFluent fluent, - V1DaemonSetUpdateStrategy instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,V1DaemonSetUpdateStrategy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRollingUpdate(instance.getRollingUpdate()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategy instance) { - this(instance, false); + this(instance,false); } - - public V1DaemonSetUpdateStrategyBuilder( - V1DaemonSetUpdateStrategy instance, Boolean validationEnabled) { - this.fluent = this; + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategy instance,Boolean validationEnabled) { + this.fluent = this; this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DaemonSetUpdateStrategyFluent fluent; Boolean validationEnabled; - public V1DaemonSetUpdateStrategy build() { V1DaemonSetUpdateStrategy buildable = new V1DaemonSetUpdateStrategy(); buildable.setRollingUpdate(fluent.getRollingUpdate()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java index 1b100b1873..b761a1e5c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DaemonSetUpdateStrategyFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DaemonSetUpdateStrategyFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildRollingUpdate instead. - * * @return The buildable object. */ @Deprecated public V1RollingUpdateDaemonSet getRollingUpdate(); - public V1RollingUpdateDaemonSet buildRollingUpdate(); - public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate); - public Boolean hasRollingUpdate(); - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdate(); - - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( - V1RollingUpdateDaemonSet item); - + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item); public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate(); - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate(); - - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( - V1RollingUpdateDaemonSet item); - + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDaemonSet item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface RollingUpdateNested - extends Nested, - V1RollingUpdateDaemonSetFluent> { + public interface RollingUpdateNested extends Nested,V1RollingUpdateDaemonSetFluent>{ public N and(); - public N endRollingUpdate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java index 0360741b34..4f12ff9048 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java @@ -1,153 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DaemonSetUpdateStrategyFluentImpl> - extends BaseFluent implements V1DaemonSetUpdateStrategyFluent { - public V1DaemonSetUpdateStrategyFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DaemonSetUpdateStrategyFluentImpl> extends BaseFluent implements V1DaemonSetUpdateStrategyFluent{ + public V1DaemonSetUpdateStrategyFluentImpl() { + } public V1DaemonSetUpdateStrategyFluentImpl(V1DaemonSetUpdateStrategy instance) { this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); - } + } private V1RollingUpdateDaemonSetBuilder rollingUpdate; private String type; - + /** * This method has been deprecated, please use method buildRollingUpdate instead. - * * @return The buildable object. */ @Deprecated public V1RollingUpdateDaemonSet getRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + return this.rollingUpdate!=null ?this.rollingUpdate.build():null; } - public V1RollingUpdateDaemonSet buildRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + return this.rollingUpdate!=null ?this.rollingUpdate.build():null; } - public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { _visitables.get("rollingUpdate").remove(this.rollingUpdate); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); - _visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - _visitables.get("rollingUpdate").remove(this.rollingUpdate); - } - return (A) this; + if (rollingUpdate!=null){ this.rollingUpdate= new V1RollingUpdateDaemonSetBuilder(rollingUpdate); _visitables.get("rollingUpdate").add(this.rollingUpdate);} else { this.rollingUpdate = null; _visitables.get("rollingUpdate").remove(this.rollingUpdate); } return (A) this; } - public Boolean hasRollingUpdate() { return this.rollingUpdate != null; } - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdate() { return new V1DaemonSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(); } - - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( - V1RollingUpdateDaemonSet item) { + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { return new V1DaemonSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(item); } - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate() { return withNewRollingUpdateLike(getRollingUpdate()); } - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike( - getRollingUpdate() != null - ? getRollingUpdate() - : new V1RollingUpdateDaemonSetBuilder().build()); + return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate(): new V1RollingUpdateDaemonSetBuilder().build()); } - - public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( - V1RollingUpdateDaemonSet item) { - return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate() : item); + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { + return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DaemonSetUpdateStrategyFluentImpl that = (V1DaemonSetUpdateStrategyFluentImpl) o; - if (rollingUpdate != null - ? !rollingUpdate.equals(that.rollingUpdate) - : that.rollingUpdate != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (rollingUpdate != null ? !rollingUpdate.equals(that.rollingUpdate) :that.rollingUpdate != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { - sb.append("rollingUpdate:"); - sb.append(rollingUpdate + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class RollingUpdateNestedImpl - extends V1RollingUpdateDaemonSetFluentImpl< - V1DaemonSetUpdateStrategyFluent.RollingUpdateNested> - implements V1DaemonSetUpdateStrategyFluent.RollingUpdateNested, Nested { + class RollingUpdateNestedImpl extends V1RollingUpdateDaemonSetFluentImpl> implements V1DaemonSetUpdateStrategyFluent.RollingUpdateNested,Nested{ RollingUpdateNestedImpl(V1RollingUpdateDaemonSet item) { this.builder = new V1RollingUpdateDaemonSetBuilder(this, item); } - RollingUpdateNestedImpl() { this.builder = new V1RollingUpdateDaemonSetBuilder(this); } - V1RollingUpdateDaemonSetBuilder builder; - public N and() { return (N) V1DaemonSetUpdateStrategyFluentImpl.this.withRollingUpdate(builder.build()); } - public N endRollingUpdate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java index f0297a4895..3c53754055 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluentImpl implements VisitableBuilder{ public V1DeleteOptionsBuilder() { this(false); } - public V1DeleteOptionsBuilder(Boolean validationEnabled) { this(new V1DeleteOptions(), validationEnabled); } - public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent) { this(fluent, false); } - - public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent, Boolean validationEnabled) { + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,Boolean validationEnabled) { this(fluent, new V1DeleteOptions(), validationEnabled); } - - public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent, V1DeleteOptions instance) { + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,V1DeleteOptions instance) { this(fluent, instance, false); } - - public V1DeleteOptionsBuilder( - V1DeleteOptionsFluent fluent, V1DeleteOptions instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,V1DeleteOptions instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withDryRun(instance.getDryRun()); @@ -53,15 +34,13 @@ public V1DeleteOptionsBuilder( fluent.withPropagationPolicy(instance.getPropagationPolicy()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeleteOptionsBuilder(V1DeleteOptions instance) { - this(instance, false); + this(instance,false); } - - public V1DeleteOptionsBuilder(V1DeleteOptions instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeleteOptionsBuilder(V1DeleteOptions instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withDryRun(instance.getDryRun()); @@ -76,12 +55,10 @@ public V1DeleteOptionsBuilder(V1DeleteOptions instance, Boolean validationEnable this.withPropagationPolicy(instance.getPropagationPolicy()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeleteOptionsFluent fluent; Boolean validationEnabled; - public V1DeleteOptions build() { V1DeleteOptions buildable = new V1DeleteOptions(); buildable.setApiVersion(fluent.getApiVersion()); @@ -93,4 +70,5 @@ public V1DeleteOptions build() { buildable.setPropagationPolicy(fluent.getPropagationPolicy()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java index 8dbc4fbe81..063341034f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java @@ -1,117 +1,71 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1DeleteOptionsFluent> extends Fluent { + /** + * Generated + */ +public interface V1DeleteOptionsFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToDryRun(Integer index, String item); - - public A setToDryRun(Integer index, String item); - + public A addToDryRun(Integer index,String item); + public A setToDryRun(Integer index,String item); public A addToDryRun(java.lang.String... items); - public A addAllToDryRun(Collection items); - public A removeFromDryRun(java.lang.String... items); - public A removeAllFromDryRun(Collection items); - public List getDryRun(); - public String getDryRun(Integer index); - public String getFirstDryRun(); - public String getLastDryRun(); - public String getMatchingDryRun(Predicate predicate); - public Boolean hasMatchingDryRun(Predicate predicate); - public A withDryRun(List dryRun); - public A withDryRun(java.lang.String... dryRun); - public Boolean hasDryRun(); - public Long getGracePeriodSeconds(); - public A withGracePeriodSeconds(Long gracePeriodSeconds); - public Boolean hasGracePeriodSeconds(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public Boolean getOrphanDependents(); - public A withOrphanDependents(Boolean orphanDependents); - public Boolean hasOrphanDependents(); - + /** * This method has been deprecated, please use method buildPreconditions instead. - * * @return The buildable object. */ @Deprecated public V1Preconditions getPreconditions(); - public V1Preconditions buildPreconditions(); - public A withPreconditions(V1Preconditions preconditions); - public Boolean hasPreconditions(); - public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditions(); - - public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditionsLike( - V1Preconditions item); - + public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditionsLike(V1Preconditions item); public V1DeleteOptionsFluent.PreconditionsNested editPreconditions(); - public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditions(); - - public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditionsLike( - V1Preconditions item); - + public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item); public String getPropagationPolicy(); - public A withPropagationPolicy(String propagationPolicy); - public Boolean hasPropagationPolicy(); - public A withOrphanDependents(); - - public interface PreconditionsNested - extends Nested, V1PreconditionsFluent> { + public interface PreconditionsNested extends Nested,V1PreconditionsFluent>{ public N and(); - public N endPreconditions(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java index c0dd81a8ba..a8aea4c707 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java @@ -1,30 +1,26 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeleteOptionsFluentImpl> extends BaseFluent - implements V1DeleteOptionsFluent { - public V1DeleteOptionsFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeleteOptionsFluentImpl> extends BaseFluent implements V1DeleteOptionsFluent{ + public V1DeleteOptionsFluentImpl() { + } public V1DeleteOptionsFluentImpl(V1DeleteOptions instance) { this.withApiVersion(instance.getApiVersion()); @@ -39,8 +35,8 @@ public V1DeleteOptionsFluentImpl(V1DeleteOptions instance) { this.withPreconditions(instance.getPreconditions()); this.withPropagationPolicy(instance.getPropagationPolicy()); - } + } private String apiVersion; private List dryRun; private Long gracePeriodSeconds; @@ -48,334 +44,183 @@ public V1DeleteOptionsFluentImpl(V1DeleteOptions instance) { private Boolean orphanDependents; private V1PreconditionsBuilder preconditions; private String propagationPolicy; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToDryRun(Integer index, String item) { - if (this.dryRun == null) { - this.dryRun = new ArrayList(); - } + public A addToDryRun(Integer index,String item) { + if (this.dryRun == null) {this.dryRun = new ArrayList();} this.dryRun.add(index, item); - return (A) this; + return (A)this; } - - public A setToDryRun(Integer index, String item) { - if (this.dryRun == null) { - this.dryRun = new ArrayList(); - } - this.dryRun.set(index, item); - return (A) this; + public A setToDryRun(Integer index,String item) { + if (this.dryRun == null) {this.dryRun = new ArrayList();} + this.dryRun.set(index, item); return (A)this; } - public A addToDryRun(java.lang.String... items) { - if (this.dryRun == null) { - this.dryRun = new ArrayList(); - } - for (String item : items) { - this.dryRun.add(item); - } - return (A) this; + if (this.dryRun == null) {this.dryRun = new ArrayList();} + for (String item : items) {this.dryRun.add(item);} return (A)this; } - public A addAllToDryRun(Collection items) { - if (this.dryRun == null) { - this.dryRun = new ArrayList(); - } - for (String item : items) { - this.dryRun.add(item); - } - return (A) this; + if (this.dryRun == null) {this.dryRun = new ArrayList();} + for (String item : items) {this.dryRun.add(item);} return (A)this; } - public A removeFromDryRun(java.lang.String... items) { - for (String item : items) { - if (this.dryRun != null) { - this.dryRun.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.dryRun!= null){ this.dryRun.remove(item);}} return (A)this; } - public A removeAllFromDryRun(Collection items) { - for (String item : items) { - if (this.dryRun != null) { - this.dryRun.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.dryRun!= null){ this.dryRun.remove(item);}} return (A)this; } - public List getDryRun() { return this.dryRun; } - public String getDryRun(Integer index) { return this.dryRun.get(index); } - public String getFirstDryRun() { return this.dryRun.get(0); } - public String getLastDryRun() { return this.dryRun.get(dryRun.size() - 1); } - public String getMatchingDryRun(Predicate predicate) { - for (String item : dryRun) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: dryRun) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingDryRun(Predicate predicate) { - for (String item : dryRun) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: dryRun) { if(predicate.test(item)){ return true;} } return false; } - public A withDryRun(List dryRun) { - if (dryRun != null) { - this.dryRun = new ArrayList(); - for (String item : dryRun) { - this.addToDryRun(item); - } - } else { - this.dryRun = null; - } - return (A) this; + if (dryRun != null) {this.dryRun = new ArrayList(); for (String item : dryRun){this.addToDryRun(item);}} else { this.dryRun = null;} return (A) this; } - public A withDryRun(java.lang.String... dryRun) { - if (this.dryRun != null) { - this.dryRun.clear(); - } - if (dryRun != null) { - for (String item : dryRun) { - this.addToDryRun(item); - } - } - return (A) this; + if (this.dryRun != null) {this.dryRun.clear();} + if (dryRun != null) {for (String item :dryRun){ this.addToDryRun(item);}} return (A) this; } - public Boolean hasDryRun() { return dryRun != null && !dryRun.isEmpty(); } - public Long getGracePeriodSeconds() { return this.gracePeriodSeconds; } - public A withGracePeriodSeconds(Long gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return (A) this; + this.gracePeriodSeconds=gracePeriodSeconds; return (A) this; } - public Boolean hasGracePeriodSeconds() { return this.gracePeriodSeconds != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public Boolean getOrphanDependents() { return this.orphanDependents; } - public A withOrphanDependents(Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return (A) this; + this.orphanDependents=orphanDependents; return (A) this; } - public Boolean hasOrphanDependents() { return this.orphanDependents != null; } - + /** * This method has been deprecated, please use method buildPreconditions instead. - * * @return The buildable object. */ @Deprecated public V1Preconditions getPreconditions() { - return this.preconditions != null ? this.preconditions.build() : null; + return this.preconditions!=null ?this.preconditions.build():null; } - public V1Preconditions buildPreconditions() { - return this.preconditions != null ? this.preconditions.build() : null; + return this.preconditions!=null ?this.preconditions.build():null; } - public A withPreconditions(V1Preconditions preconditions) { _visitables.get("preconditions").remove(this.preconditions); - if (preconditions != null) { - this.preconditions = new V1PreconditionsBuilder(preconditions); - _visitables.get("preconditions").add(this.preconditions); - } else { - this.preconditions = null; - _visitables.get("preconditions").remove(this.preconditions); - } - return (A) this; + if (preconditions!=null){ this.preconditions= new V1PreconditionsBuilder(preconditions); _visitables.get("preconditions").add(this.preconditions);} else { this.preconditions = null; _visitables.get("preconditions").remove(this.preconditions); } return (A) this; } - public Boolean hasPreconditions() { return this.preconditions != null; } - public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditions() { return new V1DeleteOptionsFluentImpl.PreconditionsNestedImpl(); } - - public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditionsLike( - V1Preconditions item) { + public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { return new V1DeleteOptionsFluentImpl.PreconditionsNestedImpl(item); } - public V1DeleteOptionsFluent.PreconditionsNested editPreconditions() { return withNewPreconditionsLike(getPreconditions()); } - public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditions() { - return withNewPreconditionsLike( - getPreconditions() != null ? getPreconditions() : new V1PreconditionsBuilder().build()); + return withNewPreconditionsLike(getPreconditions() != null ? getPreconditions(): new V1PreconditionsBuilder().build()); } - - public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditionsLike( - V1Preconditions item) { - return withNewPreconditionsLike(getPreconditions() != null ? getPreconditions() : item); + public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item) { + return withNewPreconditionsLike(getPreconditions() != null ? getPreconditions(): item); } - public String getPropagationPolicy() { return this.propagationPolicy; } - public A withPropagationPolicy(String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return (A) this; + this.propagationPolicy=propagationPolicy; return (A) this; } - public Boolean hasPropagationPolicy() { return this.propagationPolicy != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DeleteOptionsFluentImpl that = (V1DeleteOptionsFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (dryRun != null ? !dryRun.equals(that.dryRun) : that.dryRun != null) return false; - if (gracePeriodSeconds != null - ? !gracePeriodSeconds.equals(that.gracePeriodSeconds) - : that.gracePeriodSeconds != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (orphanDependents != null - ? !orphanDependents.equals(that.orphanDependents) - : that.orphanDependents != null) return false; - if (preconditions != null - ? !preconditions.equals(that.preconditions) - : that.preconditions != null) return false; - if (propagationPolicy != null - ? !propagationPolicy.equals(that.propagationPolicy) - : that.propagationPolicy != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (dryRun != null ? !dryRun.equals(that.dryRun) :that.dryRun != null) return false; + if (gracePeriodSeconds != null ? !gracePeriodSeconds.equals(that.gracePeriodSeconds) :that.gracePeriodSeconds != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (orphanDependents != null ? !orphanDependents.equals(that.orphanDependents) :that.orphanDependents != null) return false; + if (preconditions != null ? !preconditions.equals(that.preconditions) :that.preconditions != null) return false; + if (propagationPolicy != null ? !propagationPolicy.equals(that.propagationPolicy) :that.propagationPolicy != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, - dryRun, - gracePeriodSeconds, - kind, - orphanDependents, - preconditions, - propagationPolicy, - super.hashCode()); + return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (dryRun != null && !dryRun.isEmpty()) { - sb.append("dryRun:"); - sb.append(dryRun + ","); - } - if (gracePeriodSeconds != null) { - sb.append("gracePeriodSeconds:"); - sb.append(gracePeriodSeconds + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (orphanDependents != null) { - sb.append("orphanDependents:"); - sb.append(orphanDependents + ","); - } - if (preconditions != null) { - sb.append("preconditions:"); - sb.append(preconditions + ","); - } - if (propagationPolicy != null) { - sb.append("propagationPolicy:"); - sb.append(propagationPolicy); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (dryRun != null && !dryRun.isEmpty()) { sb.append("dryRun:"); sb.append(dryRun + ","); } + if (gracePeriodSeconds != null) { sb.append("gracePeriodSeconds:"); sb.append(gracePeriodSeconds + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (orphanDependents != null) { sb.append("orphanDependents:"); sb.append(orphanDependents + ","); } + if (preconditions != null) { sb.append("preconditions:"); sb.append(preconditions + ","); } + if (propagationPolicy != null) { sb.append("propagationPolicy:"); sb.append(propagationPolicy); } sb.append("}"); return sb.toString(); } - public A withOrphanDependents() { return withOrphanDependents(true); } - - class PreconditionsNestedImpl - extends V1PreconditionsFluentImpl> - implements V1DeleteOptionsFluent.PreconditionsNested, Nested { + class PreconditionsNestedImpl extends V1PreconditionsFluentImpl> implements V1DeleteOptionsFluent.PreconditionsNested,Nested{ PreconditionsNestedImpl(V1Preconditions item) { this.builder = new V1PreconditionsBuilder(this, item); } - PreconditionsNestedImpl() { this.builder = new V1PreconditionsBuilder(this); } - V1PreconditionsBuilder builder; - public N and() { return (N) V1DeleteOptionsFluentImpl.this.withPreconditions(builder.build()); } - public N endPreconditions() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java index 329d8f8e86..0a0fd6092b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DeploymentBuilder extends V1DeploymentFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeploymentBuilder extends V1DeploymentFluentImpl implements VisitableBuilder{ public V1DeploymentBuilder() { this(false); } - public V1DeploymentBuilder(Boolean validationEnabled) { this(new V1Deployment(), validationEnabled); } - public V1DeploymentBuilder(V1DeploymentFluent fluent) { this(fluent, false); } - - public V1DeploymentBuilder(V1DeploymentFluent fluent, Boolean validationEnabled) { + public V1DeploymentBuilder(V1DeploymentFluent fluent,Boolean validationEnabled) { this(fluent, new V1Deployment(), validationEnabled); } - - public V1DeploymentBuilder(V1DeploymentFluent fluent, V1Deployment instance) { + public V1DeploymentBuilder(V1DeploymentFluent fluent,V1Deployment instance) { this(fluent, instance, false); } - - public V1DeploymentBuilder( - V1DeploymentFluent fluent, V1Deployment instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DeploymentBuilder(V1DeploymentFluent fluent,V1Deployment instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1DeploymentBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeploymentBuilder(V1Deployment instance) { - this(instance, false); + this(instance,false); } - - public V1DeploymentBuilder(V1Deployment instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeploymentBuilder(V1Deployment instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1DeploymentBuilder(V1Deployment instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeploymentFluent fluent; Boolean validationEnabled; - public V1Deployment build() { V1Deployment buildable = new V1Deployment(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1Deployment build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java index 8c73153c33..afba222307 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DeploymentConditionBuilder - extends V1DeploymentConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeploymentConditionBuilder extends V1DeploymentConditionFluentImpl implements VisitableBuilder{ public V1DeploymentConditionBuilder() { this(false); } - public V1DeploymentConditionBuilder(Boolean validationEnabled) { this(new V1DeploymentCondition(), validationEnabled); } - public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent) { this(fluent, false); } - - public V1DeploymentConditionBuilder( - V1DeploymentConditionFluent fluent, Boolean validationEnabled) { + public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1DeploymentCondition(), validationEnabled); } - - public V1DeploymentConditionBuilder( - V1DeploymentConditionFluent fluent, V1DeploymentCondition instance) { + public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,V1DeploymentCondition instance) { this(fluent, instance, false); } - - public V1DeploymentConditionBuilder( - V1DeploymentConditionFluent fluent, - V1DeploymentCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,V1DeploymentCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withLastUpdateTime(instance.getLastUpdateTime()); @@ -56,15 +32,13 @@ public V1DeploymentConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeploymentConditionBuilder(V1DeploymentCondition instance) { - this(instance, false); + this(instance,false); } - - public V1DeploymentConditionBuilder(V1DeploymentCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeploymentConditionBuilder(V1DeploymentCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withLastUpdateTime(instance.getLastUpdateTime()); @@ -77,12 +51,10 @@ public V1DeploymentConditionBuilder(V1DeploymentCondition instance, Boolean vali this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeploymentConditionFluent fluent; Boolean validationEnabled; - public V1DeploymentCondition build() { V1DeploymentCondition buildable = new V1DeploymentCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -93,4 +65,5 @@ public V1DeploymentCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java index b9dd027769..6c32963921 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java @@ -1,56 +1,31 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1DeploymentConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1DeploymentConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public OffsetDateTime getLastUpdateTime(); - public A withLastUpdateTime(OffsetDateTime lastUpdateTime); - public Boolean hasLastUpdateTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java index b18331a295..829ca39b5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeploymentConditionFluentImpl> - extends BaseFluent implements V1DeploymentConditionFluent { - public V1DeploymentConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeploymentConditionFluentImpl> extends BaseFluent implements V1DeploymentConditionFluent{ + public V1DeploymentConditionFluentImpl() { + } public V1DeploymentConditionFluentImpl(V1DeploymentCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -33,143 +26,94 @@ public V1DeploymentConditionFluentImpl(V1DeploymentCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; + this.lastUpdateTime=lastUpdateTime; return (A) this; } - public Boolean hasLastUpdateTime() { return this.lastUpdateTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DeploymentConditionFluentImpl that = (V1DeploymentConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (lastUpdateTime != null - ? !lastUpdateTime.equals(that.lastUpdateTime) - : that.lastUpdateTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (lastUpdateTime != null ? !lastUpdateTime.equals(that.lastUpdateTime) :that.lastUpdateTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (lastUpdateTime != null) { - sb.append("lastUpdateTime:"); - sb.append(lastUpdateTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (lastUpdateTime != null) { sb.append("lastUpdateTime:"); sb.append(lastUpdateTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java index 27f3f7851a..8817054799 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DeploymentFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DeploymentFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1DeploymentFluent.MetadataNested withNewMetadata(); - public V1DeploymentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1DeploymentFluent.MetadataNested editMetadata(); - public V1DeploymentFluent.MetadataNested editOrNewMetadata(); - public V1DeploymentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1DeploymentSpec getSpec(); - public V1DeploymentSpec buildSpec(); - public A withSpec(V1DeploymentSpec spec); - public Boolean hasSpec(); - public V1DeploymentFluent.SpecNested withNewSpec(); - public V1DeploymentFluent.SpecNested withNewSpecLike(V1DeploymentSpec item); - public V1DeploymentFluent.SpecNested editSpec(); - public V1DeploymentFluent.SpecNested editOrNewSpec(); - public V1DeploymentFluent.SpecNested editOrNewSpecLike(V1DeploymentSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1DeploymentStatus getStatus(); - public V1DeploymentStatus buildStatus(); - public A withStatus(V1DeploymentStatus status); - public Boolean hasStatus(); - public V1DeploymentFluent.StatusNested withNewStatus(); - public V1DeploymentFluent.StatusNested withNewStatusLike(V1DeploymentStatus item); - public V1DeploymentFluent.StatusNested editStatus(); - public V1DeploymentFluent.StatusNested editOrNewStatus(); - public V1DeploymentFluent.StatusNested editOrNewStatusLike(V1DeploymentStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1DeploymentSpecFluent> { + public interface SpecNested extends Nested,V1DeploymentSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1DeploymentStatusFluent> { + public interface StatusNested extends Nested,V1DeploymentStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java index 529bc87f37..be256c1e01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeploymentFluentImpl> extends BaseFluent - implements V1DeploymentFluent { - public V1DeploymentFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeploymentFluentImpl> extends BaseFluent implements V1DeploymentFluent{ + public V1DeploymentFluentImpl() { + } public V1DeploymentFluentImpl(V1Deployment instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1DeploymentFluentImpl(V1Deployment instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1DeploymentSpecBuilder spec; private V1DeploymentStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1DeploymentFluent.MetadataNested withNewMetadata() { return new V1DeploymentFluentImpl.MetadataNestedImpl(); } - public V1DeploymentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1DeploymentFluentImpl.MetadataNestedImpl(item); } - public V1DeploymentFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1DeploymentFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1DeploymentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1DeploymentSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1DeploymentSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1DeploymentSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1DeploymentSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1DeploymentSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1DeploymentFluent.SpecNested withNewSpec() { return new V1DeploymentFluentImpl.SpecNestedImpl(); } - public V1DeploymentFluent.SpecNested withNewSpecLike(V1DeploymentSpec item) { return new V1DeploymentFluentImpl.SpecNestedImpl(item); } - public V1DeploymentFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1DeploymentFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1DeploymentSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1DeploymentSpecBuilder().build()); } - public V1DeploymentFluent.SpecNested editOrNewSpecLike(V1DeploymentSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1DeploymentStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1DeploymentStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1DeploymentStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1DeploymentStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1DeploymentStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1DeploymentFluent.StatusNested withNewStatus() { return new V1DeploymentFluentImpl.StatusNestedImpl(); } - public V1DeploymentFluent.StatusNested withNewStatusLike(V1DeploymentStatus item) { return new V1DeploymentFluentImpl.StatusNestedImpl(item); } - public V1DeploymentFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1DeploymentFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1DeploymentStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1DeploymentStatusBuilder().build()); } - public V1DeploymentFluent.StatusNested editOrNewStatusLike(V1DeploymentStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DeploymentFluentImpl that = (V1DeploymentFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1DeploymentFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1DeploymentFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1DeploymentFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1DeploymentSpecFluentImpl> - implements V1DeploymentFluent.SpecNested, Nested { + class SpecNestedImpl extends V1DeploymentSpecFluentImpl> implements V1DeploymentFluent.SpecNested,Nested{ SpecNestedImpl(V1DeploymentSpec item) { this.builder = new V1DeploymentSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1DeploymentSpecBuilder(this); } - V1DeploymentSpecBuilder builder; - public N and() { return (N) V1DeploymentFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1DeploymentStatusFluentImpl> - implements V1DeploymentFluent.StatusNested, Nested { + class StatusNestedImpl extends V1DeploymentStatusFluentImpl> implements V1DeploymentFluent.StatusNested,Nested{ StatusNestedImpl(V1DeploymentStatus item) { this.builder = new V1DeploymentStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1DeploymentStatusBuilder(this); } - V1DeploymentStatusBuilder builder; - public N and() { return (N) V1DeploymentFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java index f5a638af14..7d56a065f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DeploymentListBuilder extends V1DeploymentListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeploymentListBuilder extends V1DeploymentListFluentImpl implements VisitableBuilder{ public V1DeploymentListBuilder() { this(false); } - public V1DeploymentListBuilder(Boolean validationEnabled) { this(new V1DeploymentList(), validationEnabled); } - public V1DeploymentListBuilder(V1DeploymentListFluent fluent) { this(fluent, false); } - - public V1DeploymentListBuilder(V1DeploymentListFluent fluent, Boolean validationEnabled) { + public V1DeploymentListBuilder(V1DeploymentListFluent fluent,Boolean validationEnabled) { this(fluent, new V1DeploymentList(), validationEnabled); } - - public V1DeploymentListBuilder(V1DeploymentListFluent fluent, V1DeploymentList instance) { + public V1DeploymentListBuilder(V1DeploymentListFluent fluent,V1DeploymentList instance) { this(fluent, instance, false); } - - public V1DeploymentListBuilder( - V1DeploymentListFluent fluent, V1DeploymentList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DeploymentListBuilder(V1DeploymentListFluent fluent,V1DeploymentList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1DeploymentListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeploymentListBuilder(V1DeploymentList instance) { - this(instance, false); + this(instance,false); } - - public V1DeploymentListBuilder(V1DeploymentList instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeploymentListBuilder(V1DeploymentList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1DeploymentListBuilder(V1DeploymentList instance, Boolean validationEnab this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeploymentListFluent fluent; Boolean validationEnabled; - public V1DeploymentList build() { V1DeploymentList buildable = new V1DeploymentList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1DeploymentList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java index 2a61cd739f..a61e71dd1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1DeploymentListFluent> extends Fluent { + /** + * Generated + */ +public interface V1DeploymentListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Deployment item); - - public A setToItems(Integer index, V1Deployment item); - + public A addToItems(Integer index,V1Deployment item); + public A setToItems(Integer index,V1Deployment item); public A addToItems(io.kubernetes.client.openapi.models.V1Deployment... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Deployment... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Deployment buildItem(Integer index); - public V1Deployment buildFirstItem(); - public V1Deployment buildLastItem(); - public V1Deployment buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items); - public Boolean hasItems(); - public V1DeploymentListFluent.ItemsNested addNewItem(); - public V1DeploymentListFluent.ItemsNested addNewItemLike(V1Deployment item); - - public V1DeploymentListFluent.ItemsNested setNewItemLike(Integer index, V1Deployment item); - + public V1DeploymentListFluent.ItemsNested setNewItemLike(Integer index,V1Deployment item); public V1DeploymentListFluent.ItemsNested editItem(Integer index); - public V1DeploymentListFluent.ItemsNested editFirstItem(); - public V1DeploymentListFluent.ItemsNested editLastItem(); - - public V1DeploymentListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1DeploymentListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1DeploymentListFluent.MetadataNested withNewMetadata(); - public V1DeploymentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1DeploymentListFluent.MetadataNested editMetadata(); - public V1DeploymentListFluent.MetadataNested editOrNewMetadata(); - public V1DeploymentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1DeploymentFluent> { + public interface ItemsNested extends Nested,V1DeploymentFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java index 15bf6e6424..3d9e120582 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeploymentListFluentImpl> extends BaseFluent - implements V1DeploymentListFluent { - public V1DeploymentListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeploymentListFluentImpl> extends BaseFluent implements V1DeploymentListFluent{ + public V1DeploymentListFluentImpl() { + } public V1DeploymentListFluentImpl(V1DeploymentList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1DeploymentListFluentImpl(V1DeploymentList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Deployment item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Deployment item) { + if (this.items == null) {this.items = new ArrayList();} + V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Deployment item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Deployment item) { + if (this.items == null) {this.items = new ArrayList();} V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Deployment buildItem(Integer index) { return this.items.get(index).build(); } - public V1Deployment buildFirstItem() { return this.items.get(0).build(); } - public V1Deployment buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Deployment buildMatchingItem(Predicate predicate) { - for (V1DeploymentBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1DeploymentBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1DeploymentBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1DeploymentBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Deployment item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Deployment item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Deployment item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Deployment item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1DeploymentListFluent.ItemsNested addNewItem() { return new V1DeploymentListFluentImpl.ItemsNestedImpl(); } - public V1DeploymentListFluent.ItemsNested addNewItemLike(V1Deployment item) { return new V1DeploymentListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1DeploymentListFluent.ItemsNested setNewItemLike(Integer index, V1Deployment item) { + public V1DeploymentListFluent.ItemsNested setNewItemLike(Integer index,V1Deployment item) { return new V1DeploymentListFluentImpl.ItemsNestedImpl(index, item); } - public V1DeploymentListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1DeploymentListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1DeploymentListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1DeploymentListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1DeploymentListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1DeploymentListFluentImpl.MetadataNestedImpl(); } - public V1DeploymentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1DeploymentListFluentImpl.MetadataNestedImpl(item); } - public V1DeploymentListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1DeploymentListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1DeploymentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DeploymentListFluentImpl that = (V1DeploymentListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1DeploymentFluentImpl> - implements V1DeploymentListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Deployment item) { + class ItemsNestedImpl extends V1DeploymentFluentImpl> implements V1DeploymentListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Deployment item) { this.index = index; this.builder = new V1DeploymentBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1DeploymentBuilder(this); } - V1DeploymentBuilder builder; Integer index; - public N and() { - return (N) V1DeploymentListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1DeploymentListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1DeploymentListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1DeploymentListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1DeploymentListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java index 686e597207..65a6da45b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluentImpl implements VisitableBuilder{ public V1DeploymentSpecBuilder() { this(false); } - public V1DeploymentSpecBuilder(Boolean validationEnabled) { this(new V1DeploymentSpec(), validationEnabled); } - public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent) { this(fluent, false); } - - public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent, Boolean validationEnabled) { + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1DeploymentSpec(), validationEnabled); } - - public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent, V1DeploymentSpec instance) { + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,V1DeploymentSpec instance) { this(fluent, instance, false); } - - public V1DeploymentSpecBuilder( - V1DeploymentSpecFluent fluent, V1DeploymentSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,V1DeploymentSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); fluent.withPaused(instance.getPaused()); @@ -55,15 +36,13 @@ public V1DeploymentSpecBuilder( fluent.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeploymentSpecBuilder(V1DeploymentSpec instance) { - this(instance, false); + this(instance,false); } - - public V1DeploymentSpecBuilder(V1DeploymentSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeploymentSpecBuilder(V1DeploymentSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); this.withPaused(instance.getPaused()); @@ -80,12 +59,10 @@ public V1DeploymentSpecBuilder(V1DeploymentSpec instance, Boolean validationEnab this.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeploymentSpecFluent fluent; Boolean validationEnabled; - public V1DeploymentSpec build() { V1DeploymentSpec buildable = new V1DeploymentSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -98,4 +75,5 @@ public V1DeploymentSpec build() { buildable.setTemplate(fluent.getTemplate()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java index 2d8702b5cf..fb513eec22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java @@ -1,144 +1,90 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DeploymentSpecFluent> extends Fluent { +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DeploymentSpecFluent> extends Fluent{ public Integer getMinReadySeconds(); - public A withMinReadySeconds(Integer minReadySeconds); - public Boolean hasMinReadySeconds(); - public Boolean getPaused(); - public A withPaused(Boolean paused); - public Boolean hasPaused(); - public Integer getProgressDeadlineSeconds(); - public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds); - public Boolean hasProgressDeadlineSeconds(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - public Integer getRevisionHistoryLimit(); - public A withRevisionHistoryLimit(Integer revisionHistoryLimit); - public Boolean hasRevisionHistoryLimit(); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1DeploymentSpecFluent.SelectorNested withNewSelector(); - public V1DeploymentSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V1DeploymentSpecFluent.SelectorNested editSelector(); - public V1DeploymentSpecFluent.SelectorNested editOrNewSelector(); - public V1DeploymentSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - + /** * This method has been deprecated, please use method buildStrategy instead. - * * @return The buildable object. */ @Deprecated public V1DeploymentStrategy getStrategy(); - public V1DeploymentStrategy buildStrategy(); - public A withStrategy(V1DeploymentStrategy strategy); - public Boolean hasStrategy(); - public V1DeploymentSpecFluent.StrategyNested withNewStrategy(); - public V1DeploymentSpecFluent.StrategyNested withNewStrategyLike(V1DeploymentStrategy item); - public V1DeploymentSpecFluent.StrategyNested editStrategy(); - public V1DeploymentSpecFluent.StrategyNested editOrNewStrategy(); - public V1DeploymentSpecFluent.StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1DeploymentSpecFluent.TemplateNested withNewTemplate(); - public V1DeploymentSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public V1DeploymentSpecFluent.TemplateNested editTemplate(); - public V1DeploymentSpecFluent.TemplateNested editOrNewTemplate(); - public V1DeploymentSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - public A withPaused(); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } - - public interface StrategyNested - extends Nested, V1DeploymentStrategyFluent> { + public interface StrategyNested extends Nested,V1DeploymentStrategyFluent>{ public N and(); - public N endStrategy(); + } - - public interface TemplateNested - extends Nested, V1PodTemplateSpecFluent> { + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java index 6cb542ff2f..b23f8996b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeploymentSpecFluentImpl> extends BaseFluent - implements V1DeploymentSpecFluent { - public V1DeploymentSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeploymentSpecFluentImpl> extends BaseFluent implements V1DeploymentSpecFluent{ + public V1DeploymentSpecFluentImpl() { + } public V1DeploymentSpecFluentImpl(V1DeploymentSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -37,8 +32,8 @@ public V1DeploymentSpecFluentImpl(V1DeploymentSpec instance) { this.withStrategy(instance.getStrategy()); this.withTemplate(instance.getTemplate()); - } + } private Integer minReadySeconds; private Boolean paused; private Integer progressDeadlineSeconds; @@ -47,365 +42,234 @@ public V1DeploymentSpecFluentImpl(V1DeploymentSpec instance) { private V1LabelSelectorBuilder selector; private V1DeploymentStrategyBuilder strategy; private V1PodTemplateSpecBuilder template; - public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + this.minReadySeconds=minReadySeconds; return (A) this; } - public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public Boolean getPaused() { return this.paused; } - public A withPaused(Boolean paused) { - this.paused = paused; - return (A) this; + this.paused=paused; return (A) this; } - public Boolean hasPaused() { return this.paused != null; } - public Integer getProgressDeadlineSeconds() { return this.progressDeadlineSeconds; } - public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds) { - this.progressDeadlineSeconds = progressDeadlineSeconds; - return (A) this; + this.progressDeadlineSeconds=progressDeadlineSeconds; return (A) this; } - public Boolean hasProgressDeadlineSeconds() { return this.progressDeadlineSeconds != null; } - public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + this.replicas=replicas; return (A) this; } - public Boolean hasReplicas() { return this.replicas != null; } - public Integer getRevisionHistoryLimit() { return this.revisionHistoryLimit; } - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; + this.revisionHistoryLimit=revisionHistoryLimit; return (A) this; } - public Boolean hasRevisionHistoryLimit() { return this.revisionHistoryLimit != null; } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1DeploymentSpecFluent.SelectorNested withNewSelector() { return new V1DeploymentSpecFluentImpl.SelectorNestedImpl(); } - public V1DeploymentSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1DeploymentSpecFluentImpl.SelectorNestedImpl(item); } - public V1DeploymentSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1DeploymentSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - public V1DeploymentSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - + /** * This method has been deprecated, please use method buildStrategy instead. - * * @return The buildable object. */ @Deprecated public V1DeploymentStrategy getStrategy() { - return this.strategy != null ? this.strategy.build() : null; + return this.strategy!=null ?this.strategy.build():null; } - public V1DeploymentStrategy buildStrategy() { - return this.strategy != null ? this.strategy.build() : null; + return this.strategy!=null ?this.strategy.build():null; } - public A withStrategy(V1DeploymentStrategy strategy) { _visitables.get("strategy").remove(this.strategy); - if (strategy != null) { - this.strategy = new V1DeploymentStrategyBuilder(strategy); - _visitables.get("strategy").add(this.strategy); - } else { - this.strategy = null; - _visitables.get("strategy").remove(this.strategy); - } - return (A) this; + if (strategy!=null){ this.strategy= new V1DeploymentStrategyBuilder(strategy); _visitables.get("strategy").add(this.strategy);} else { this.strategy = null; _visitables.get("strategy").remove(this.strategy); } return (A) this; } - public Boolean hasStrategy() { return this.strategy != null; } - public V1DeploymentSpecFluent.StrategyNested withNewStrategy() { return new V1DeploymentSpecFluentImpl.StrategyNestedImpl(); } - public V1DeploymentSpecFluent.StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { return new V1DeploymentSpecFluentImpl.StrategyNestedImpl(item); } - public V1DeploymentSpecFluent.StrategyNested editStrategy() { return withNewStrategyLike(getStrategy()); } - public V1DeploymentSpecFluent.StrategyNested editOrNewStrategy() { - return withNewStrategyLike( - getStrategy() != null ? getStrategy() : new V1DeploymentStrategyBuilder().build()); + return withNewStrategyLike(getStrategy() != null ? getStrategy(): new V1DeploymentStrategyBuilder().build()); } - public V1DeploymentSpecFluent.StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item) { - return withNewStrategyLike(getStrategy() != null ? getStrategy() : item); + return withNewStrategyLike(getStrategy() != null ? getStrategy(): item); } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1DeploymentSpecFluent.TemplateNested withNewTemplate() { return new V1DeploymentSpecFluentImpl.TemplateNestedImpl(); } - public V1DeploymentSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1DeploymentSpecFluentImpl.TemplateNestedImpl(item); } - public V1DeploymentSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1DeploymentSpecFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - public V1DeploymentSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DeploymentSpecFluentImpl that = (V1DeploymentSpecFluentImpl) o; - if (minReadySeconds != null - ? !minReadySeconds.equals(that.minReadySeconds) - : that.minReadySeconds != null) return false; - if (paused != null ? !paused.equals(that.paused) : that.paused != null) return false; - if (progressDeadlineSeconds != null - ? !progressDeadlineSeconds.equals(that.progressDeadlineSeconds) - : that.progressDeadlineSeconds != null) return false; - if (replicas != null ? !replicas.equals(that.replicas) : that.replicas != null) return false; - if (revisionHistoryLimit != null - ? !revisionHistoryLimit.equals(that.revisionHistoryLimit) - : that.revisionHistoryLimit != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (strategy != null ? !strategy.equals(that.strategy) : that.strategy != null) return false; - if (template != null ? !template.equals(that.template) : that.template != null) return false; + if (minReadySeconds != null ? !minReadySeconds.equals(that.minReadySeconds) :that.minReadySeconds != null) return false; + if (paused != null ? !paused.equals(that.paused) :that.paused != null) return false; + if (progressDeadlineSeconds != null ? !progressDeadlineSeconds.equals(that.progressDeadlineSeconds) :that.progressDeadlineSeconds != null) return false; + if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false; + if (revisionHistoryLimit != null ? !revisionHistoryLimit.equals(that.revisionHistoryLimit) :that.revisionHistoryLimit != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (strategy != null ? !strategy.equals(that.strategy) :that.strategy != null) return false; + if (template != null ? !template.equals(that.template) :that.template != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - minReadySeconds, - paused, - progressDeadlineSeconds, - replicas, - revisionHistoryLimit, - selector, - strategy, - template, - super.hashCode()); + return java.util.Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { - sb.append("minReadySeconds:"); - sb.append(minReadySeconds + ","); - } - if (paused != null) { - sb.append("paused:"); - sb.append(paused + ","); - } - if (progressDeadlineSeconds != null) { - sb.append("progressDeadlineSeconds:"); - sb.append(progressDeadlineSeconds + ","); - } - if (replicas != null) { - sb.append("replicas:"); - sb.append(replicas + ","); - } - if (revisionHistoryLimit != null) { - sb.append("revisionHistoryLimit:"); - sb.append(revisionHistoryLimit + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (strategy != null) { - sb.append("strategy:"); - sb.append(strategy + ","); - } - if (template != null) { - sb.append("template:"); - sb.append(template); - } + if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } + if (paused != null) { sb.append("paused:"); sb.append(paused + ","); } + if (progressDeadlineSeconds != null) { sb.append("progressDeadlineSeconds:"); sb.append(progressDeadlineSeconds + ","); } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (revisionHistoryLimit != null) { sb.append("revisionHistoryLimit:"); sb.append(revisionHistoryLimit + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } + if (strategy != null) { sb.append("strategy:"); sb.append(strategy + ","); } + if (template != null) { sb.append("template:"); sb.append(template); } sb.append("}"); return sb.toString(); } - public A withPaused() { return withPaused(true); } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1DeploymentSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1DeploymentSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1DeploymentSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } - - class StrategyNestedImpl - extends V1DeploymentStrategyFluentImpl> - implements V1DeploymentSpecFluent.StrategyNested, Nested { + class StrategyNestedImpl extends V1DeploymentStrategyFluentImpl> implements V1DeploymentSpecFluent.StrategyNested,Nested{ StrategyNestedImpl(V1DeploymentStrategy item) { this.builder = new V1DeploymentStrategyBuilder(this, item); } - StrategyNestedImpl() { this.builder = new V1DeploymentStrategyBuilder(this); } - V1DeploymentStrategyBuilder builder; - public N and() { return (N) V1DeploymentSpecFluentImpl.this.withStrategy(builder.build()); } - public N endStrategy() { return and(); } + } - - class TemplateNestedImpl - extends V1PodTemplateSpecFluentImpl> - implements V1DeploymentSpecFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1DeploymentSpecFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1DeploymentSpecFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java index bc2c8a361d..1fcf0e8b6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DeploymentStatusBuilder - extends V1DeploymentStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeploymentStatusBuilder extends V1DeploymentStatusFluentImpl implements VisitableBuilder{ public V1DeploymentStatusBuilder() { this(false); } - public V1DeploymentStatusBuilder(Boolean validationEnabled) { this(new V1DeploymentStatus(), validationEnabled); } - public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent) { this(fluent, false); } - - public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent, Boolean validationEnabled) { + public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1DeploymentStatus(), validationEnabled); } - - public V1DeploymentStatusBuilder( - V1DeploymentStatusFluent fluent, V1DeploymentStatus instance) { + public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,V1DeploymentStatus instance) { this(fluent, instance, false); } - - public V1DeploymentStatusBuilder( - V1DeploymentStatusFluent fluent, V1DeploymentStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,V1DeploymentStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); fluent.withCollisionCount(instance.getCollisionCount()); @@ -57,15 +36,13 @@ public V1DeploymentStatusBuilder( fluent.withUpdatedReplicas(instance.getUpdatedReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeploymentStatusBuilder(V1DeploymentStatus instance) { - this(instance, false); + this(instance,false); } - - public V1DeploymentStatusBuilder(V1DeploymentStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeploymentStatusBuilder(V1DeploymentStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); this.withCollisionCount(instance.getCollisionCount()); @@ -82,12 +59,10 @@ public V1DeploymentStatusBuilder(V1DeploymentStatus instance, Boolean validation this.withUpdatedReplicas(instance.getUpdatedReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeploymentStatusFluent fluent; Boolean validationEnabled; - public V1DeploymentStatus build() { V1DeploymentStatus buildable = new V1DeploymentStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -100,4 +75,5 @@ public V1DeploymentStatus build() { buildable.setUpdatedReplicas(fluent.getUpdatedReplicas()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java index b8da6f457c..fb6b155947 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java @@ -1,129 +1,77 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1DeploymentStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1DeploymentStatusFluent> extends Fluent{ public Integer getAvailableReplicas(); - public A withAvailableReplicas(Integer availableReplicas); - public Boolean hasAvailableReplicas(); - public Integer getCollisionCount(); - public A withCollisionCount(Integer collisionCount); - public Boolean hasCollisionCount(); - - public A addToConditions(Integer index, V1DeploymentCondition item); - - public A setToConditions(Integer index, V1DeploymentCondition item); - + public A addToConditions(Integer index,V1DeploymentCondition item); + public A setToConditions(Integer index,V1DeploymentCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1DeploymentCondition buildCondition(Integer index); - public V1DeploymentCondition buildFirstCondition(); - public V1DeploymentCondition buildLastCondition(); - - public V1DeploymentCondition buildMatchingCondition( - Predicate predicate); - + public V1DeploymentCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... conditions); - public Boolean hasConditions(); - public V1DeploymentStatusFluent.ConditionsNested addNewCondition(); - - public V1DeploymentStatusFluent.ConditionsNested addNewConditionLike( - V1DeploymentCondition item); - - public V1DeploymentStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1DeploymentCondition item); - + public V1DeploymentStatusFluent.ConditionsNested addNewConditionLike(V1DeploymentCondition item); + public V1DeploymentStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1DeploymentCondition item); public V1DeploymentStatusFluent.ConditionsNested editCondition(Integer index); - public V1DeploymentStatusFluent.ConditionsNested editFirstCondition(); - public V1DeploymentStatusFluent.ConditionsNested editLastCondition(); - - public V1DeploymentStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1DeploymentStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public Integer getReadyReplicas(); - public A withReadyReplicas(Integer readyReplicas); - public Boolean hasReadyReplicas(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - public Integer getUnavailableReplicas(); - public A withUnavailableReplicas(Integer unavailableReplicas); - public Boolean hasUnavailableReplicas(); - public Integer getUpdatedReplicas(); - public A withUpdatedReplicas(Integer updatedReplicas); - public Boolean hasUpdatedReplicas(); - - public interface ConditionsNested - extends Nested, V1DeploymentConditionFluent> { + public interface ConditionsNested extends Nested,V1DeploymentConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java index f11e541cea..fb1ca21a42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java @@ -1,31 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeploymentStatusFluentImpl> - extends BaseFluent implements V1DeploymentStatusFluent { - public V1DeploymentStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeploymentStatusFluentImpl> extends BaseFluent implements V1DeploymentStatusFluent{ + public V1DeploymentStatusFluentImpl() { + } public V1DeploymentStatusFluentImpl(V1DeploymentStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -42,8 +39,8 @@ public V1DeploymentStatusFluentImpl(V1DeploymentStatus instance) { this.withUnavailableReplicas(instance.getUnavailableReplicas()); this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } + } private Integer availableReplicas; private Integer collisionCount; private ArrayList conditions; @@ -52,110 +49,49 @@ public V1DeploymentStatusFluentImpl(V1DeploymentStatus instance) { private Integer replicas; private Integer unavailableReplicas; private Integer updatedReplicas; - public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; + this.availableReplicas=availableReplicas; return (A) this; } - public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - public Integer getCollisionCount() { return this.collisionCount; } - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; - return (A) this; + this.collisionCount=collisionCount; return (A) this; } - public Boolean hasCollisionCount() { return this.collisionCount != null; } - - public A addToConditions(Integer index, V1DeploymentCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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 addToConditions(Integer index,V1DeploymentCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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(Integer index, V1DeploymentCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1DeploymentCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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; + 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.V1DeploymentCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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 ArrayList(); - } - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { + for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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(); @@ -167,297 +103,170 @@ public A removeMatchingFromConditions(Predicate pr each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1DeploymentCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1DeploymentCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1DeploymentCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1DeploymentCondition buildMatchingCondition( - Predicate predicate) { - for (V1DeploymentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1DeploymentCondition buildMatchingCondition(Predicate predicate) { + for (V1DeploymentConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1DeploymentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1DeploymentConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1DeploymentCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1DeploymentCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1DeploymentCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1DeploymentCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1DeploymentStatusFluent.ConditionsNested addNewCondition() { return new V1DeploymentStatusFluentImpl.ConditionsNestedImpl(); } - - public V1DeploymentStatusFluent.ConditionsNested addNewConditionLike( - V1DeploymentCondition item) { + public V1DeploymentStatusFluent.ConditionsNested addNewConditionLike(V1DeploymentCondition item) { return new V1DeploymentStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1DeploymentStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1DeploymentCondition item) { + public V1DeploymentStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1DeploymentCondition item) { return new V1DeploymentStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1DeploymentStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1DeploymentStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1DeploymentStatusFluent.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 V1DeploymentStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1DeploymentStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1DeploymentConditionFluentImpl> - implements V1DeploymentStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1DeploymentCondition item) { + class ConditionsNestedImpl extends V1DeploymentConditionFluentImpl> implements V1DeploymentStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1DeploymentCondition item) { this.index = index; this.builder = new V1DeploymentConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1DeploymentConditionBuilder(this); } - V1DeploymentConditionBuilder builder; Integer index; - public N and() { - return (N) V1DeploymentStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1DeploymentStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java index c8ab882c26..a22f6010e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1DeploymentStrategyBuilder - extends V1DeploymentStrategyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DeploymentStrategyBuilder extends V1DeploymentStrategyFluentImpl implements VisitableBuilder{ public V1DeploymentStrategyBuilder() { this(false); } - public V1DeploymentStrategyBuilder(Boolean validationEnabled) { this(new V1DeploymentStrategy(), validationEnabled); } - public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent) { this(fluent, false); } - - public V1DeploymentStrategyBuilder( - V1DeploymentStrategyFluent fluent, Boolean validationEnabled) { + public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,Boolean validationEnabled) { this(fluent, new V1DeploymentStrategy(), validationEnabled); } - - public V1DeploymentStrategyBuilder( - V1DeploymentStrategyFluent fluent, V1DeploymentStrategy instance) { + public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,V1DeploymentStrategy instance) { this(fluent, instance, false); } - - public V1DeploymentStrategyBuilder( - V1DeploymentStrategyFluent fluent, - V1DeploymentStrategy instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,V1DeploymentStrategy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRollingUpdate(instance.getRollingUpdate()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance) { - this(instance, false); + this(instance,false); } - - public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance, Boolean validationEnabled) { - this.fluent = this; + public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance,Boolean validationEnabled) { + this.fluent = this; this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DeploymentStrategyFluent fluent; Boolean validationEnabled; - public V1DeploymentStrategy build() { V1DeploymentStrategy buildable = new V1DeploymentStrategy(); buildable.setRollingUpdate(fluent.getRollingUpdate()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java index 00c9ff959c..0bc504b9a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DeploymentStrategyFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DeploymentStrategyFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildRollingUpdate instead. - * * @return The buildable object. */ @Deprecated public V1RollingUpdateDeployment getRollingUpdate(); - public V1RollingUpdateDeployment buildRollingUpdate(); - public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate); - public Boolean hasRollingUpdate(); - public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdate(); - - public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( - V1RollingUpdateDeployment item); - + public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item); public V1DeploymentStrategyFluent.RollingUpdateNested editRollingUpdate(); - public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdate(); - - public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( - V1RollingUpdateDeployment item); - + public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDeployment item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface RollingUpdateNested - extends Nested, - V1RollingUpdateDeploymentFluent> { + public interface RollingUpdateNested extends Nested,V1RollingUpdateDeploymentFluent>{ public N and(); - public N endRollingUpdate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java index 28585662e2..028675bc94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java @@ -1,152 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DeploymentStrategyFluentImpl> - extends BaseFluent implements V1DeploymentStrategyFluent { - public V1DeploymentStrategyFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DeploymentStrategyFluentImpl> extends BaseFluent implements V1DeploymentStrategyFluent{ + public V1DeploymentStrategyFluentImpl() { + } public V1DeploymentStrategyFluentImpl(V1DeploymentStrategy instance) { this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); - } + } private V1RollingUpdateDeploymentBuilder rollingUpdate; private String type; - + /** * This method has been deprecated, please use method buildRollingUpdate instead. - * * @return The buildable object. */ @Deprecated public V1RollingUpdateDeployment getRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + return this.rollingUpdate!=null ?this.rollingUpdate.build():null; } - public V1RollingUpdateDeployment buildRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + return this.rollingUpdate!=null ?this.rollingUpdate.build():null; } - public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { _visitables.get("rollingUpdate").remove(this.rollingUpdate); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); - _visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - _visitables.get("rollingUpdate").remove(this.rollingUpdate); - } - return (A) this; + if (rollingUpdate!=null){ this.rollingUpdate= new V1RollingUpdateDeploymentBuilder(rollingUpdate); _visitables.get("rollingUpdate").add(this.rollingUpdate);} else { this.rollingUpdate = null; _visitables.get("rollingUpdate").remove(this.rollingUpdate); } return (A) this; } - public Boolean hasRollingUpdate() { return this.rollingUpdate != null; } - public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdate() { return new V1DeploymentStrategyFluentImpl.RollingUpdateNestedImpl(); } - - public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( - V1RollingUpdateDeployment item) { + public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item) { return new V1DeploymentStrategyFluentImpl.RollingUpdateNestedImpl(item); } - public V1DeploymentStrategyFluent.RollingUpdateNested editRollingUpdate() { return withNewRollingUpdateLike(getRollingUpdate()); } - public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike( - getRollingUpdate() != null - ? getRollingUpdate() - : new V1RollingUpdateDeploymentBuilder().build()); + return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate(): new V1RollingUpdateDeploymentBuilder().build()); } - - public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( - V1RollingUpdateDeployment item) { - return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate() : item); + public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDeployment item) { + return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DeploymentStrategyFluentImpl that = (V1DeploymentStrategyFluentImpl) o; - if (rollingUpdate != null - ? !rollingUpdate.equals(that.rollingUpdate) - : that.rollingUpdate != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (rollingUpdate != null ? !rollingUpdate.equals(that.rollingUpdate) :that.rollingUpdate != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { - sb.append("rollingUpdate:"); - sb.append(rollingUpdate + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class RollingUpdateNestedImpl - extends V1RollingUpdateDeploymentFluentImpl> - implements V1DeploymentStrategyFluent.RollingUpdateNested, Nested { + class RollingUpdateNestedImpl extends V1RollingUpdateDeploymentFluentImpl> implements V1DeploymentStrategyFluent.RollingUpdateNested,Nested{ RollingUpdateNestedImpl(V1RollingUpdateDeployment item) { this.builder = new V1RollingUpdateDeploymentBuilder(this, item); } - RollingUpdateNestedImpl() { this.builder = new V1RollingUpdateDeploymentBuilder(this); } - V1RollingUpdateDeploymentBuilder builder; - public N and() { return (N) V1DeploymentStrategyFluentImpl.this.withRollingUpdate(builder.build()); } - public N endRollingUpdate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java index 15000aca5a..8534a03aa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1DownwardAPIProjectionBuilder - extends V1DownwardAPIProjectionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DownwardAPIProjectionBuilder extends V1DownwardAPIProjectionFluentImpl implements VisitableBuilder{ public V1DownwardAPIProjectionBuilder() { this(false); } - public V1DownwardAPIProjectionBuilder(Boolean validationEnabled) { this(new V1DownwardAPIProjection(), validationEnabled); } - public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent) { this(fluent, false); } - - public V1DownwardAPIProjectionBuilder( - V1DownwardAPIProjectionFluent fluent, Boolean validationEnabled) { + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,Boolean validationEnabled) { this(fluent, new V1DownwardAPIProjection(), validationEnabled); } - - public V1DownwardAPIProjectionBuilder( - V1DownwardAPIProjectionFluent fluent, V1DownwardAPIProjection instance) { + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,V1DownwardAPIProjection instance) { this(fluent, instance, false); } - - public V1DownwardAPIProjectionBuilder( - V1DownwardAPIProjectionFluent fluent, - V1DownwardAPIProjection instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,V1DownwardAPIProjection instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withItems(instance.getItems()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjection instance) { - this(instance, false); + this(instance,false); } - - public V1DownwardAPIProjectionBuilder( - V1DownwardAPIProjection instance, Boolean validationEnabled) { - this.fluent = this; + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjection instance,Boolean validationEnabled) { + this.fluent = this; this.withItems(instance.getItems()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DownwardAPIProjectionFluent fluent; Boolean validationEnabled; - public V1DownwardAPIProjection build() { V1DownwardAPIProjection buildable = new V1DownwardAPIProjection(); buildable.setItems(fluent.getItems()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java index a5b52e47fa..4485383255 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java @@ -1,88 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1DownwardAPIProjectionFluent> - extends Fluent { - public A addToItems(Integer index, V1DownwardAPIVolumeFile item); - - public A setToItems(Integer index, V1DownwardAPIVolumeFile item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DownwardAPIProjectionFluent> extends Fluent{ + public A addToItems(Integer index,V1DownwardAPIVolumeFile item); + public A setToItems(Integer index,V1DownwardAPIVolumeFile item); public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1DownwardAPIVolumeFile buildItem(Integer index); - public V1DownwardAPIVolumeFile buildFirstItem(); - public V1DownwardAPIVolumeFile buildLastItem(); - - public V1DownwardAPIVolumeFile buildMatchingItem( - Predicate predicate); - + public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public Boolean hasItems(); - public V1DownwardAPIProjectionFluent.ItemsNested addNewItem(); - public V1DownwardAPIProjectionFluent.ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item); - - public V1DownwardAPIProjectionFluent.ItemsNested setNewItemLike( - Integer index, V1DownwardAPIVolumeFile item); - + public V1DownwardAPIProjectionFluent.ItemsNested setNewItemLike(Integer index,V1DownwardAPIVolumeFile item); public V1DownwardAPIProjectionFluent.ItemsNested editItem(Integer index); - public V1DownwardAPIProjectionFluent.ItemsNested editFirstItem(); - public V1DownwardAPIProjectionFluent.ItemsNested editLastItem(); - - public V1DownwardAPIProjectionFluent.ItemsNested editMatchingItem( - Predicate predicate); - - public interface ItemsNested - extends Nested, - V1DownwardAPIVolumeFileFluent> { + public V1DownwardAPIProjectionFluent.ItemsNested editMatchingItem(Predicate predicate); + public interface ItemsNested extends Nested,V1DownwardAPIVolumeFileFluent>{ public N and(); - public N endItem(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java index 2b45f9bf4e..cb6c20a1be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java @@ -1,111 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DownwardAPIProjectionFluentImpl> - extends BaseFluent implements V1DownwardAPIProjectionFluent { - public V1DownwardAPIProjectionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DownwardAPIProjectionFluentImpl> extends BaseFluent implements V1DownwardAPIProjectionFluent{ + public V1DownwardAPIProjectionFluentImpl() { + } public V1DownwardAPIProjectionFluentImpl(V1DownwardAPIProjection instance) { this.withItems(instance.getItems()); - } + } private ArrayList items; - - public A addToItems(Integer index, V1DownwardAPIVolumeFile item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1DownwardAPIVolumeFile item) { + if (this.items == null) {this.items = new ArrayList();} + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1DownwardAPIVolumeFile item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1DownwardAPIVolumeFile item) { + if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -117,172 +63,111 @@ public A removeMatchingFromItems(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1DownwardAPIVolumeFile buildItem(Integer index) { return this.items.get(index).build(); } - public V1DownwardAPIVolumeFile buildFirstItem() { return this.items.get(0).build(); } - public V1DownwardAPIVolumeFile buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1DownwardAPIVolumeFile buildMatchingItem( - Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1DownwardAPIVolumeFileBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1DownwardAPIVolumeFile item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1DownwardAPIVolumeFile item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1DownwardAPIProjectionFluent.ItemsNested addNewItem() { return new V1DownwardAPIProjectionFluentImpl.ItemsNestedImpl(); } - public V1DownwardAPIProjectionFluent.ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { return new V1DownwardAPIProjectionFluentImpl.ItemsNestedImpl(-1, item); } - - public V1DownwardAPIProjectionFluent.ItemsNested setNewItemLike( - Integer index, V1DownwardAPIVolumeFile item) { + public V1DownwardAPIProjectionFluent.ItemsNested setNewItemLike(Integer index,V1DownwardAPIVolumeFile item) { return new V1DownwardAPIProjectionFluentImpl.ItemsNestedImpl(index, item); } - public V1DownwardAPIProjectionFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1DownwardAPIProjectionFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1DownwardAPIProjectionFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1DownwardAPIProjectionFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1DownwardAPIProjectionFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1DownwardAPIVolumeFileFluentImpl> - implements V1DownwardAPIProjectionFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1DownwardAPIVolumeFile item) { + class ItemsNestedImpl extends V1DownwardAPIVolumeFileFluentImpl> implements V1DownwardAPIProjectionFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1DownwardAPIVolumeFileBuilder(this); } - V1DownwardAPIVolumeFileBuilder builder; Integer index; - public N and() { - return (N) V1DownwardAPIProjectionFluentImpl.this.setToItems(index, builder.build()); + return (N) V1DownwardAPIProjectionFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java index 15b398c8ea..dd1123d126 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1DownwardAPIVolumeFileBuilder - extends V1DownwardAPIVolumeFileFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DownwardAPIVolumeFileBuilder extends V1DownwardAPIVolumeFileFluentImpl implements VisitableBuilder{ public V1DownwardAPIVolumeFileBuilder() { this(false); } - public V1DownwardAPIVolumeFileBuilder(Boolean validationEnabled) { this(new V1DownwardAPIVolumeFile(), validationEnabled); } - public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent) { this(fluent, false); } - - public V1DownwardAPIVolumeFileBuilder( - V1DownwardAPIVolumeFileFluent fluent, Boolean validationEnabled) { + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,Boolean validationEnabled) { this(fluent, new V1DownwardAPIVolumeFile(), validationEnabled); } - - public V1DownwardAPIVolumeFileBuilder( - V1DownwardAPIVolumeFileFluent fluent, V1DownwardAPIVolumeFile instance) { + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,V1DownwardAPIVolumeFile instance) { this(fluent, instance, false); } - - public V1DownwardAPIVolumeFileBuilder( - V1DownwardAPIVolumeFileFluent fluent, - V1DownwardAPIVolumeFile instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,V1DownwardAPIVolumeFile instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFieldRef(instance.getFieldRef()); fluent.withMode(instance.getMode()); @@ -52,16 +28,13 @@ public V1DownwardAPIVolumeFileBuilder( fluent.withResourceFieldRef(instance.getResourceFieldRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFile instance) { - this(instance, false); + this(instance,false); } - - public V1DownwardAPIVolumeFileBuilder( - V1DownwardAPIVolumeFile instance, Boolean validationEnabled) { - this.fluent = this; + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFile instance,Boolean validationEnabled) { + this.fluent = this; this.withFieldRef(instance.getFieldRef()); this.withMode(instance.getMode()); @@ -70,12 +43,10 @@ public V1DownwardAPIVolumeFileBuilder( this.withResourceFieldRef(instance.getResourceFieldRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DownwardAPIVolumeFileFluent fluent; Boolean validationEnabled; - public V1DownwardAPIVolumeFile build() { V1DownwardAPIVolumeFile buildable = new V1DownwardAPIVolumeFile(); buildable.setFieldRef(fluent.getFieldRef()); @@ -84,4 +55,5 @@ public V1DownwardAPIVolumeFile build() { buildable.setResourceFieldRef(fluent.getResourceFieldRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java index 360b9e37be..340fe6aaee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java @@ -1,101 +1,61 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1DownwardAPIVolumeFileFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1DownwardAPIVolumeFileFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectFieldSelector getFieldRef(); - public V1ObjectFieldSelector buildFieldRef(); - public A withFieldRef(V1ObjectFieldSelector fieldRef); - public Boolean hasFieldRef(); - public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRef(); - - public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRefLike( - V1ObjectFieldSelector item); - + public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item); public V1DownwardAPIVolumeFileFluent.FieldRefNested editFieldRef(); - public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRef(); - - public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRefLike( - V1ObjectFieldSelector item); - + public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item); public Integer getMode(); - public A withMode(Integer mode); - public Boolean hasMode(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - + /** * This method has been deprecated, please use method buildResourceFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ResourceFieldSelector getResourceFieldRef(); - public V1ResourceFieldSelector buildResourceFieldRef(); - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef); - public Boolean hasResourceFieldRef(); - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRef(); - - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRefLike( - V1ResourceFieldSelector item); - + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item); public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editResourceFieldRef(); - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRef(); - - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( - V1ResourceFieldSelector item); - - public interface FieldRefNested - extends Nested, - V1ObjectFieldSelectorFluent> { + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item); + public interface FieldRefNested extends Nested,V1ObjectFieldSelectorFluent>{ public N and(); - public N endFieldRef(); + } - - public interface ResourceFieldRefNested - extends Nested, - V1ResourceFieldSelectorFluent> { + public interface ResourceFieldRefNested extends Nested,V1ResourceFieldSelectorFluent>{ public N and(); - public N endResourceFieldRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java index f2a6f0206a..7f59ed5a6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DownwardAPIVolumeFileFluentImpl> - extends BaseFluent implements V1DownwardAPIVolumeFileFluent { - public V1DownwardAPIVolumeFileFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DownwardAPIVolumeFileFluentImpl> extends BaseFluent implements V1DownwardAPIVolumeFileFluent{ + public V1DownwardAPIVolumeFileFluentImpl() { + } public V1DownwardAPIVolumeFileFluentImpl(V1DownwardAPIVolumeFile instance) { this.withFieldRef(instance.getFieldRef()); @@ -29,230 +24,152 @@ public V1DownwardAPIVolumeFileFluentImpl(V1DownwardAPIVolumeFile instance) { this.withPath(instance.getPath()); this.withResourceFieldRef(instance.getResourceFieldRef()); - } + } private V1ObjectFieldSelectorBuilder fieldRef; private Integer mode; private String path; private V1ResourceFieldSelectorBuilder resourceFieldRef; - + /** * This method has been deprecated, please use method buildFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectFieldSelector getFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; + return this.fieldRef!=null ?this.fieldRef.build():null; } - public V1ObjectFieldSelector buildFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; + return this.fieldRef!=null ?this.fieldRef.build():null; } - public A withFieldRef(V1ObjectFieldSelector fieldRef) { _visitables.get("fieldRef").remove(this.fieldRef); - if (fieldRef != null) { - this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); - _visitables.get("fieldRef").add(this.fieldRef); - } else { - this.fieldRef = null; - _visitables.get("fieldRef").remove(this.fieldRef); - } - return (A) this; + if (fieldRef!=null){ this.fieldRef= new V1ObjectFieldSelectorBuilder(fieldRef); _visitables.get("fieldRef").add(this.fieldRef);} else { this.fieldRef = null; _visitables.get("fieldRef").remove(this.fieldRef); } return (A) this; } - public Boolean hasFieldRef() { return this.fieldRef != null; } - public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRef() { return new V1DownwardAPIVolumeFileFluentImpl.FieldRefNestedImpl(); } - - public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRefLike( - V1ObjectFieldSelector item) { + public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { return new V1DownwardAPIVolumeFileFluentImpl.FieldRefNestedImpl(item); } - public V1DownwardAPIVolumeFileFluent.FieldRefNested editFieldRef() { return withNewFieldRefLike(getFieldRef()); } - public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRef() { - return withNewFieldRefLike( - getFieldRef() != null ? getFieldRef() : new V1ObjectFieldSelectorBuilder().build()); + return withNewFieldRefLike(getFieldRef() != null ? getFieldRef(): new V1ObjectFieldSelectorBuilder().build()); } - - public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRefLike( - V1ObjectFieldSelector item) { - return withNewFieldRefLike(getFieldRef() != null ? getFieldRef() : item); + public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { + return withNewFieldRefLike(getFieldRef() != null ? getFieldRef(): item); } - public Integer getMode() { return this.mode; } - public A withMode(Integer mode) { - this.mode = mode; - return (A) this; + this.mode=mode; return (A) this; } - public Boolean hasMode() { return this.mode != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - + /** * This method has been deprecated, please use method buildResourceFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ResourceFieldSelector getResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + return this.resourceFieldRef!=null ?this.resourceFieldRef.build():null; } - public V1ResourceFieldSelector buildResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + return this.resourceFieldRef!=null ?this.resourceFieldRef.build():null; } - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); - if (resourceFieldRef != null) { - this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); - _visitables.get("resourceFieldRef").add(this.resourceFieldRef); - } else { - this.resourceFieldRef = null; - _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); - } - return (A) this; + if (resourceFieldRef!=null){ this.resourceFieldRef= new V1ResourceFieldSelectorBuilder(resourceFieldRef); _visitables.get("resourceFieldRef").add(this.resourceFieldRef);} else { this.resourceFieldRef = null; _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); } return (A) this; } - public Boolean hasResourceFieldRef() { return this.resourceFieldRef != null; } - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRef() { return new V1DownwardAPIVolumeFileFluentImpl.ResourceFieldRefNestedImpl(); } - - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRefLike( - V1ResourceFieldSelector item) { + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { return new V1DownwardAPIVolumeFileFluentImpl.ResourceFieldRefNestedImpl(item); } - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editResourceFieldRef() { return withNewResourceFieldRefLike(getResourceFieldRef()); } - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRef() { - return withNewResourceFieldRefLike( - getResourceFieldRef() != null - ? getResourceFieldRef() - : new V1ResourceFieldSelectorBuilder().build()); + return withNewResourceFieldRefLike(getResourceFieldRef() != null ? getResourceFieldRef(): new V1ResourceFieldSelectorBuilder().build()); } - - public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( - V1ResourceFieldSelector item) { - return withNewResourceFieldRefLike( - getResourceFieldRef() != null ? getResourceFieldRef() : item); + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return withNewResourceFieldRefLike(getResourceFieldRef() != null ? getResourceFieldRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1DownwardAPIVolumeFileFluentImpl that = (V1DownwardAPIVolumeFileFluentImpl) o; - if (fieldRef != null ? !fieldRef.equals(that.fieldRef) : that.fieldRef != null) return false; - if (mode != null ? !mode.equals(that.mode) : that.mode != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (resourceFieldRef != null - ? !resourceFieldRef.equals(that.resourceFieldRef) - : that.resourceFieldRef != null) return false; + if (fieldRef != null ? !fieldRef.equals(that.fieldRef) :that.fieldRef != null) return false; + if (mode != null ? !mode.equals(that.mode) :that.mode != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (resourceFieldRef != null ? !resourceFieldRef.equals(that.resourceFieldRef) :that.resourceFieldRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fieldRef, mode, path, resourceFieldRef, super.hashCode()); + return java.util.Objects.hash(fieldRef, mode, path, resourceFieldRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fieldRef != null) { - sb.append("fieldRef:"); - sb.append(fieldRef + ","); - } - if (mode != null) { - sb.append("mode:"); - sb.append(mode + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (resourceFieldRef != null) { - sb.append("resourceFieldRef:"); - sb.append(resourceFieldRef); - } + if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } + if (mode != null) { sb.append("mode:"); sb.append(mode + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (resourceFieldRef != null) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef); } sb.append("}"); return sb.toString(); } - - class FieldRefNestedImpl - extends V1ObjectFieldSelectorFluentImpl> - implements V1DownwardAPIVolumeFileFluent.FieldRefNested, Nested { + class FieldRefNestedImpl extends V1ObjectFieldSelectorFluentImpl> implements V1DownwardAPIVolumeFileFluent.FieldRefNested,Nested{ FieldRefNestedImpl(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } - FieldRefNestedImpl() { this.builder = new V1ObjectFieldSelectorBuilder(this); } - V1ObjectFieldSelectorBuilder builder; - public N and() { return (N) V1DownwardAPIVolumeFileFluentImpl.this.withFieldRef(builder.build()); } - public N endFieldRef() { return and(); } + } - - class ResourceFieldRefNestedImpl - extends V1ResourceFieldSelectorFluentImpl< - V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested> - implements V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested, Nested { + class ResourceFieldRefNestedImpl extends V1ResourceFieldSelectorFluentImpl> implements V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested,Nested{ ResourceFieldRefNestedImpl(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } - ResourceFieldRefNestedImpl() { this.builder = new V1ResourceFieldSelectorBuilder(this); } - V1ResourceFieldSelectorBuilder builder; - public N and() { return (N) V1DownwardAPIVolumeFileFluentImpl.this.withResourceFieldRef(builder.build()); } - public N endResourceFieldRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java index 109d8b9de5..f622a6ee02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1DownwardAPIVolumeSourceBuilder - extends V1DownwardAPIVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1DownwardAPIVolumeSourceBuilder extends V1DownwardAPIVolumeSourceFluentImpl implements VisitableBuilder{ public V1DownwardAPIVolumeSourceBuilder() { this(false); } - public V1DownwardAPIVolumeSourceBuilder(Boolean validationEnabled) { this(new V1DownwardAPIVolumeSource(), validationEnabled); } - public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent) { this(fluent, false); } - - public V1DownwardAPIVolumeSourceBuilder( - V1DownwardAPIVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1DownwardAPIVolumeSource(), validationEnabled); } - - public V1DownwardAPIVolumeSourceBuilder( - V1DownwardAPIVolumeSourceFluent fluent, V1DownwardAPIVolumeSource instance) { + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,V1DownwardAPIVolumeSource instance) { this(fluent, instance, false); } - - public V1DownwardAPIVolumeSourceBuilder( - V1DownwardAPIVolumeSourceFluent fluent, - V1DownwardAPIVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,V1DownwardAPIVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); fluent.withItems(instance.getItems()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1DownwardAPIVolumeSourceBuilder( - V1DownwardAPIVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1DownwardAPIVolumeSourceFluent fluent; Boolean validationEnabled; - public V1DownwardAPIVolumeSource build() { V1DownwardAPIVolumeSource buildable = new V1DownwardAPIVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); buildable.setItems(fluent.getItems()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java index 8634c23018..ed93b5ed74 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java @@ -1,95 +1,58 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1DownwardAPIVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1DownwardAPIVolumeSourceFluent> extends Fluent{ public Integer getDefaultMode(); - public A withDefaultMode(Integer defaultMode); - public Boolean hasDefaultMode(); - - public A addToItems(Integer index, V1DownwardAPIVolumeFile item); - - public A setToItems(Integer index, V1DownwardAPIVolumeFile item); - + public A addToItems(Integer index,V1DownwardAPIVolumeFile item); + public A setToItems(Integer index,V1DownwardAPIVolumeFile item); public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1DownwardAPIVolumeFile buildItem(Integer index); - public V1DownwardAPIVolumeFile buildFirstItem(); - public V1DownwardAPIVolumeFile buildLastItem(); - - public V1DownwardAPIVolumeFile buildMatchingItem( - Predicate predicate); - + public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public Boolean hasItems(); - public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItem(); - - public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItemLike( - V1DownwardAPIVolumeFile item); - - public V1DownwardAPIVolumeSourceFluent.ItemsNested setNewItemLike( - Integer index, V1DownwardAPIVolumeFile item); - + public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item); + public V1DownwardAPIVolumeSourceFluent.ItemsNested setNewItemLike(Integer index,V1DownwardAPIVolumeFile item); public V1DownwardAPIVolumeSourceFluent.ItemsNested editItem(Integer index); - public V1DownwardAPIVolumeSourceFluent.ItemsNested editFirstItem(); - public V1DownwardAPIVolumeSourceFluent.ItemsNested editLastItem(); - - public V1DownwardAPIVolumeSourceFluent.ItemsNested editMatchingItem( - Predicate predicate); - - public interface ItemsNested - extends Nested, - V1DownwardAPIVolumeFileFluent> { + public V1DownwardAPIVolumeSourceFluent.ItemsNested editMatchingItem(Predicate predicate); + public interface ItemsNested extends Nested,V1DownwardAPIVolumeFileFluent>{ public N and(); - public N endItem(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java index 4e154017ed..bb6907fce3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java @@ -1,127 +1,69 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1DownwardAPIVolumeSourceFluentImpl> - extends BaseFluent implements V1DownwardAPIVolumeSourceFluent { - public V1DownwardAPIVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1DownwardAPIVolumeSourceFluentImpl> extends BaseFluent implements V1DownwardAPIVolumeSourceFluent{ + public V1DownwardAPIVolumeSourceFluentImpl() { + } public V1DownwardAPIVolumeSourceFluentImpl(V1DownwardAPIVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); - } + } private Integer defaultMode; private ArrayList items; - public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + this.defaultMode=defaultMode; return (A) this; } - public Boolean hasDefaultMode() { return this.defaultMode != null; } - - public A addToItems(Integer index, V1DownwardAPIVolumeFile item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1DownwardAPIVolumeFile item) { + if (this.items == null) {this.items = new ArrayList();} + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1DownwardAPIVolumeFile item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1DownwardAPIVolumeFile item) { + if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -133,179 +75,113 @@ public A removeMatchingFromItems(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1DownwardAPIVolumeFile buildItem(Integer index) { return this.items.get(index).build(); } - public V1DownwardAPIVolumeFile buildFirstItem() { return this.items.get(0).build(); } - public V1DownwardAPIVolumeFile buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1DownwardAPIVolumeFile buildMatchingItem( - Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1DownwardAPIVolumeFileBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1DownwardAPIVolumeFile item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1DownwardAPIVolumeFile item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItem() { return new V1DownwardAPIVolumeSourceFluentImpl.ItemsNestedImpl(); } - - public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItemLike( - V1DownwardAPIVolumeFile item) { + public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { return new V1DownwardAPIVolumeSourceFluentImpl.ItemsNestedImpl(-1, item); } - - public V1DownwardAPIVolumeSourceFluent.ItemsNested setNewItemLike( - Integer index, V1DownwardAPIVolumeFile item) { + public V1DownwardAPIVolumeSourceFluent.ItemsNested setNewItemLike(Integer index,V1DownwardAPIVolumeFile item) { return new V1DownwardAPIVolumeSourceFluentImpl.ItemsNestedImpl(index, item); } - public V1DownwardAPIVolumeSourceFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1DownwardAPIVolumeSourceFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1DownwardAPIVolumeSourceFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1DownwardAPIVolumeSourceFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1DownwardAPIVolumeSourceFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1DownwardAPIVolumeFileFluentImpl> - implements V1DownwardAPIVolumeSourceFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1DownwardAPIVolumeFile item) { + class ItemsNestedImpl extends V1DownwardAPIVolumeFileFluentImpl> implements V1DownwardAPIVolumeSourceFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1DownwardAPIVolumeFileBuilder(this); } - V1DownwardAPIVolumeFileBuilder builder; Integer index; - public N and() { - return (N) V1DownwardAPIVolumeSourceFluentImpl.this.setToItems(index, builder.build()); + return (N) V1DownwardAPIVolumeSourceFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java index bc38787394..05a8c6709b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1EmptyDirVolumeSourceBuilder - extends V1EmptyDirVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EmptyDirVolumeSourceBuilder extends V1EmptyDirVolumeSourceFluentImpl implements VisitableBuilder{ public V1EmptyDirVolumeSourceBuilder() { this(false); } - public V1EmptyDirVolumeSourceBuilder(Boolean validationEnabled) { this(new V1EmptyDirVolumeSource(), validationEnabled); } - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent) { this(fluent, false); } - - public V1EmptyDirVolumeSourceBuilder( - V1EmptyDirVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1EmptyDirVolumeSource(), validationEnabled); } - - public V1EmptyDirVolumeSourceBuilder( - V1EmptyDirVolumeSourceFluent fluent, V1EmptyDirVolumeSource instance) { + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1EmptyDirVolumeSource instance) { this(fluent, instance, false); } - - public V1EmptyDirVolumeSourceBuilder( - V1EmptyDirVolumeSourceFluent fluent, - V1EmptyDirVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1EmptyDirVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMedium(instance.getMedium()); fluent.withSizeLimit(instance.getSizeLimit()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMedium(instance.getMedium()); this.withSizeLimit(instance.getSizeLimit()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EmptyDirVolumeSourceFluent fluent; Boolean validationEnabled; - public V1EmptyDirVolumeSource build() { V1EmptyDirVolumeSource buildable = new V1EmptyDirVolumeSource(); buildable.setMedium(fluent.getMedium()); buildable.setSizeLimit(fluent.getSizeLimit()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java index 72b44abb8c..0699368c83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java @@ -1,34 +1,20 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1EmptyDirVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1EmptyDirVolumeSourceFluent> extends Fluent{ public String getMedium(); - public A withMedium(String medium); - public Boolean hasMedium(); - public Quantity getSizeLimit(); - public A withSizeLimit(Quantity sizeLimit); - public Boolean hasSizeLimit(); - public A withNewSizeLimit(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java index ff850c975a..7611906aa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java @@ -1,91 +1,66 @@ -/* -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.custom.Quantity; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EmptyDirVolumeSourceFluentImpl> - extends BaseFluent implements V1EmptyDirVolumeSourceFluent { - public V1EmptyDirVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EmptyDirVolumeSourceFluentImpl> extends BaseFluent implements V1EmptyDirVolumeSourceFluent{ + public V1EmptyDirVolumeSourceFluentImpl() { + } public V1EmptyDirVolumeSourceFluentImpl(V1EmptyDirVolumeSource instance) { this.withMedium(instance.getMedium()); this.withSizeLimit(instance.getSizeLimit()); - } + } private String medium; private Quantity sizeLimit; - public String getMedium() { return this.medium; } - public A withMedium(String medium) { - this.medium = medium; - return (A) this; + this.medium=medium; return (A) this; } - public Boolean hasMedium() { return this.medium != null; } - public Quantity getSizeLimit() { return this.sizeLimit; } - public A withSizeLimit(Quantity sizeLimit) { - this.sizeLimit = sizeLimit; - return (A) this; + this.sizeLimit=sizeLimit; return (A) this; } - public Boolean hasSizeLimit() { return this.sizeLimit != null; } - public A withNewSizeLimit(String value) { - return (A) withSizeLimit(new Quantity(value)); + return (A)withSizeLimit(new Quantity(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EmptyDirVolumeSourceFluentImpl that = (V1EmptyDirVolumeSourceFluentImpl) o; - if (medium != null ? !medium.equals(that.medium) : that.medium != null) return false; - if (sizeLimit != null ? !sizeLimit.equals(that.sizeLimit) : that.sizeLimit != null) - return false; + if (medium != null ? !medium.equals(that.medium) :that.medium != null) return false; + if (sizeLimit != null ? !sizeLimit.equals(that.sizeLimit) :that.sizeLimit != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(medium, sizeLimit, super.hashCode()); + return java.util.Objects.hash(medium, sizeLimit, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (medium != null) { - sb.append("medium:"); - sb.append(medium + ","); - } - if (sizeLimit != null) { - sb.append("sizeLimit:"); - sb.append(sizeLimit); - } + if (medium != null) { sb.append("medium:"); sb.append(medium + ","); } + if (sizeLimit != null) { sb.append("sizeLimit:"); sb.append(sizeLimit); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java index 38b607961f..1dcdbd22ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EndpointAddressBuilder extends V1EndpointAddressFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointAddressBuilder extends V1EndpointAddressFluentImpl implements VisitableBuilder{ public V1EndpointAddressBuilder() { this(false); } - public V1EndpointAddressBuilder(Boolean validationEnabled) { this(new V1EndpointAddress(), validationEnabled); } - public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent) { this(fluent, false); } - - public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent, Boolean validationEnabled) { + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointAddress(), validationEnabled); } - - public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent, V1EndpointAddress instance) { + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,V1EndpointAddress instance) { this(fluent, instance, false); } - - public V1EndpointAddressBuilder( - V1EndpointAddressFluent fluent, V1EndpointAddress instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,V1EndpointAddress instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHostname(instance.getHostname()); fluent.withIp(instance.getIp()); @@ -47,15 +28,13 @@ public V1EndpointAddressBuilder( fluent.withTargetRef(instance.getTargetRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointAddressBuilder(V1EndpointAddress instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointAddressBuilder(V1EndpointAddress instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointAddressBuilder(V1EndpointAddress instance,Boolean validationEnabled) { + this.fluent = this; this.withHostname(instance.getHostname()); this.withIp(instance.getIp()); @@ -64,12 +43,10 @@ public V1EndpointAddressBuilder(V1EndpointAddress instance, Boolean validationEn this.withTargetRef(instance.getTargetRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointAddressFluent fluent; Boolean validationEnabled; - public V1EndpointAddress build() { V1EndpointAddress buildable = new V1EndpointAddress(); buildable.setHostname(fluent.getHostname()); @@ -78,4 +55,5 @@ public V1EndpointAddress build() { buildable.setTargetRef(fluent.getTargetRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java index 8e97dd8551..1ebcc05d3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java @@ -1,68 +1,43 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1EndpointAddressFluent> extends Fluent { + /** + * Generated + */ +public interface V1EndpointAddressFluent> extends Fluent{ public String getHostname(); - public A withHostname(String hostname); - public Boolean hasHostname(); - public String getIp(); - public A withIp(String ip); - public Boolean hasIp(); - public String getNodeName(); - public A withNodeName(String nodeName); - public Boolean hasNodeName(); - + /** * This method has been deprecated, please use method buildTargetRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getTargetRef(); - public V1ObjectReference buildTargetRef(); - public A withTargetRef(V1ObjectReference targetRef); - public Boolean hasTargetRef(); - public V1EndpointAddressFluent.TargetRefNested withNewTargetRef(); - public V1EndpointAddressFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item); - public V1EndpointAddressFluent.TargetRefNested editTargetRef(); - public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRef(); - public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item); - - public interface TargetRefNested - extends Nested, V1ObjectReferenceFluent> { + public interface TargetRefNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endTargetRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java index 104c81d161..e57591bf28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointAddressFluentImpl> extends BaseFluent - implements V1EndpointAddressFluent { - public V1EndpointAddressFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointAddressFluentImpl> extends BaseFluent implements V1EndpointAddressFluent{ + public V1EndpointAddressFluentImpl() { + } public V1EndpointAddressFluentImpl(V1EndpointAddress instance) { this.withHostname(instance.getHostname()); @@ -29,161 +23,111 @@ public V1EndpointAddressFluentImpl(V1EndpointAddress instance) { this.withNodeName(instance.getNodeName()); this.withTargetRef(instance.getTargetRef()); - } + } private String hostname; private String ip; private String nodeName; private V1ObjectReferenceBuilder targetRef; - public String getHostname() { return this.hostname; } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + this.hostname=hostname; return (A) this; } - public Boolean hasHostname() { return this.hostname != null; } - public String getIp() { return this.ip; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + this.ip=ip; return (A) this; } - public Boolean hasIp() { return this.ip != null; } - public String getNodeName() { return this.nodeName; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + this.nodeName=nodeName; return (A) this; } - public Boolean hasNodeName() { return this.nodeName != null; } - + /** * This method has been deprecated, please use method buildTargetRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; + return this.targetRef!=null ?this.targetRef.build():null; } - public V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; + return this.targetRef!=null ?this.targetRef.build():null; } - public A withTargetRef(V1ObjectReference targetRef) { _visitables.get("targetRef").remove(this.targetRef); - if (targetRef != null) { - this.targetRef = new V1ObjectReferenceBuilder(targetRef); - _visitables.get("targetRef").add(this.targetRef); - } else { - this.targetRef = null; - _visitables.get("targetRef").remove(this.targetRef); - } - return (A) this; + if (targetRef!=null){ this.targetRef= new V1ObjectReferenceBuilder(targetRef); _visitables.get("targetRef").add(this.targetRef);} else { this.targetRef = null; _visitables.get("targetRef").remove(this.targetRef); } return (A) this; } - public Boolean hasTargetRef() { return this.targetRef != null; } - public V1EndpointAddressFluent.TargetRefNested withNewTargetRef() { return new V1EndpointAddressFluentImpl.TargetRefNestedImpl(); } - public V1EndpointAddressFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item) { return new V1EndpointAddressFluentImpl.TargetRefNestedImpl(item); } - public V1EndpointAddressFluent.TargetRefNested editTargetRef() { return withNewTargetRefLike(getTargetRef()); } - public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRef() { - return withNewTargetRefLike( - getTargetRef() != null ? getTargetRef() : new V1ObjectReferenceBuilder().build()); + return withNewTargetRefLike(getTargetRef() != null ? getTargetRef(): new V1ObjectReferenceBuilder().build()); } - public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return withNewTargetRefLike(getTargetRef() != null ? getTargetRef() : item); + return withNewTargetRefLike(getTargetRef() != null ? getTargetRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EndpointAddressFluentImpl that = (V1EndpointAddressFluentImpl) o; - if (hostname != null ? !hostname.equals(that.hostname) : that.hostname != null) return false; - if (ip != null ? !ip.equals(that.ip) : that.ip != null) return false; - if (nodeName != null ? !nodeName.equals(that.nodeName) : that.nodeName != null) return false; - if (targetRef != null ? !targetRef.equals(that.targetRef) : that.targetRef != null) - return false; + if (hostname != null ? !hostname.equals(that.hostname) :that.hostname != null) return false; + if (ip != null ? !ip.equals(that.ip) :that.ip != null) return false; + if (nodeName != null ? !nodeName.equals(that.nodeName) :that.nodeName != null) return false; + if (targetRef != null ? !targetRef.equals(that.targetRef) :that.targetRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(hostname, ip, nodeName, targetRef, super.hashCode()); + return java.util.Objects.hash(hostname, ip, nodeName, targetRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hostname != null) { - sb.append("hostname:"); - sb.append(hostname + ","); - } - if (ip != null) { - sb.append("ip:"); - sb.append(ip + ","); - } - if (nodeName != null) { - sb.append("nodeName:"); - sb.append(nodeName + ","); - } - if (targetRef != null) { - sb.append("targetRef:"); - sb.append(targetRef); - } + if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } + if (ip != null) { sb.append("ip:"); sb.append(ip + ","); } + if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } + if (targetRef != null) { sb.append("targetRef:"); sb.append(targetRef); } sb.append("}"); return sb.toString(); } - - class TargetRefNestedImpl - extends V1ObjectReferenceFluentImpl> - implements V1EndpointAddressFluent.TargetRefNested, Nested { + class TargetRefNestedImpl extends V1ObjectReferenceFluentImpl> implements V1EndpointAddressFluent.TargetRefNested,Nested{ TargetRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - TargetRefNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) V1EndpointAddressFluentImpl.this.withTargetRef(builder.build()); } - public N endTargetRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java index 6a5080b1c8..970648e219 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EndpointBuilder extends V1EndpointFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointBuilder extends V1EndpointFluentImpl implements VisitableBuilder{ public V1EndpointBuilder() { this(false); } - public V1EndpointBuilder(Boolean validationEnabled) { this(new V1Endpoint(), validationEnabled); } - public V1EndpointBuilder(V1EndpointFluent fluent) { this(fluent, false); } - - public V1EndpointBuilder(V1EndpointFluent fluent, Boolean validationEnabled) { + public V1EndpointBuilder(V1EndpointFluent fluent,Boolean validationEnabled) { this(fluent, new V1Endpoint(), validationEnabled); } - - public V1EndpointBuilder(V1EndpointFluent fluent, V1Endpoint instance) { + public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance) { this(fluent, instance, false); } - - public V1EndpointBuilder( - V1EndpointFluent fluent, V1Endpoint instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAddresses(instance.getAddresses()); fluent.withConditions(instance.getConditions()); @@ -55,15 +36,13 @@ public V1EndpointBuilder( fluent.withZone(instance.getZone()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointBuilder(V1Endpoint instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointBuilder(V1Endpoint instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointBuilder(V1Endpoint instance,Boolean validationEnabled) { + this.fluent = this; this.withAddresses(instance.getAddresses()); this.withConditions(instance.getConditions()); @@ -80,12 +59,10 @@ public V1EndpointBuilder(V1Endpoint instance, Boolean validationEnabled) { this.withZone(instance.getZone()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointFluent fluent; Boolean validationEnabled; - public V1Endpoint build() { V1Endpoint buildable = new V1Endpoint(); buildable.setAddresses(fluent.getAddresses()); @@ -98,4 +75,5 @@ public V1Endpoint build() { buildable.setZone(fluent.getZone()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java index 5029899ba0..8eb1975590 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1EndpointConditionsBuilder - extends V1EndpointConditionsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointConditionsBuilder extends V1EndpointConditionsFluentImpl implements VisitableBuilder{ public V1EndpointConditionsBuilder() { this(false); } - public V1EndpointConditionsBuilder(Boolean validationEnabled) { this(new V1EndpointConditions(), validationEnabled); } - public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent) { this(fluent, false); } - - public V1EndpointConditionsBuilder( - V1EndpointConditionsFluent fluent, Boolean validationEnabled) { + public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointConditions(), validationEnabled); } - - public V1EndpointConditionsBuilder( - V1EndpointConditionsFluent fluent, V1EndpointConditions instance) { + public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,V1EndpointConditions instance) { this(fluent, instance, false); } - - public V1EndpointConditionsBuilder( - V1EndpointConditionsFluent fluent, - V1EndpointConditions instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,V1EndpointConditions instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withReady(instance.getReady()); fluent.withServing(instance.getServing()); fluent.withTerminating(instance.getTerminating()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointConditionsBuilder(V1EndpointConditions instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointConditionsBuilder(V1EndpointConditions instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointConditionsBuilder(V1EndpointConditions instance,Boolean validationEnabled) { + this.fluent = this; this.withReady(instance.getReady()); this.withServing(instance.getServing()); this.withTerminating(instance.getTerminating()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointConditionsFluent fluent; Boolean validationEnabled; - public V1EndpointConditions build() { V1EndpointConditions buildable = new V1EndpointConditions(); buildable.setReady(fluent.getReady()); @@ -78,4 +50,5 @@ public V1EndpointConditions build() { buildable.setTerminating(fluent.getTerminating()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java index aca7727815..655e733d0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java @@ -1,43 +1,23 @@ -/* -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.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1EndpointConditionsFluent> - extends Fluent { + /** + * Generated + */ +public interface V1EndpointConditionsFluent> extends Fluent{ public Boolean getReady(); - public A withReady(Boolean ready); - public Boolean hasReady(); - public Boolean getServing(); - public A withServing(Boolean serving); - public Boolean hasServing(); - public Boolean getTerminating(); - public A withTerminating(Boolean terminating); - public Boolean hasTerminating(); - public A withReady(); - public A withServing(); - public A withTerminating(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java index 41c3d3d610..a41f062904 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java @@ -1,119 +1,85 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointConditionsFluentImpl> - extends BaseFluent implements V1EndpointConditionsFluent { - public V1EndpointConditionsFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointConditionsFluentImpl> extends BaseFluent implements V1EndpointConditionsFluent{ + public V1EndpointConditionsFluentImpl() { + } public V1EndpointConditionsFluentImpl(V1EndpointConditions instance) { this.withReady(instance.getReady()); this.withServing(instance.getServing()); this.withTerminating(instance.getTerminating()); - } + } private Boolean ready; private Boolean serving; private Boolean terminating; - public Boolean getReady() { return this.ready; } - public A withReady(Boolean ready) { - this.ready = ready; - return (A) this; + this.ready=ready; return (A) this; } - public Boolean hasReady() { return this.ready != null; } - public Boolean getServing() { return this.serving; } - public A withServing(Boolean serving) { - this.serving = serving; - return (A) this; + this.serving=serving; return (A) this; } - public Boolean hasServing() { return this.serving != null; } - public Boolean getTerminating() { return this.terminating; } - public A withTerminating(Boolean terminating) { - this.terminating = terminating; - return (A) this; + this.terminating=terminating; return (A) this; } - public Boolean hasTerminating() { return this.terminating != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EndpointConditionsFluentImpl that = (V1EndpointConditionsFluentImpl) o; - if (ready != null ? !ready.equals(that.ready) : that.ready != null) return false; - if (serving != null ? !serving.equals(that.serving) : that.serving != null) return false; - if (terminating != null ? !terminating.equals(that.terminating) : that.terminating != null) - return false; + if (ready != null ? !ready.equals(that.ready) :that.ready != null) return false; + if (serving != null ? !serving.equals(that.serving) :that.serving != null) return false; + if (terminating != null ? !terminating.equals(that.terminating) :that.terminating != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(ready, serving, terminating, super.hashCode()); + return java.util.Objects.hash(ready, serving, terminating, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ready != null) { - sb.append("ready:"); - sb.append(ready + ","); - } - if (serving != null) { - sb.append("serving:"); - sb.append(serving + ","); - } - if (terminating != null) { - sb.append("terminating:"); - sb.append(terminating); - } + if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } + if (serving != null) { sb.append("serving:"); sb.append(serving + ","); } + if (terminating != null) { sb.append("terminating:"); sb.append(terminating); } sb.append("}"); return sb.toString(); } - public A withReady() { return withReady(true); } - public A withServing() { return withServing(true); } - public A withTerminating() { return withTerminating(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java index 6866ca11ca..4f1cb2731a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java @@ -1,178 +1,112 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1EndpointFluent> extends Fluent { - public A addToAddresses(Integer index, String item); - - public A setToAddresses(Integer index, String item); + /** + * Generated + */ +public interface V1EndpointFluent> extends Fluent{ + public A addToAddresses(Integer index,String item); + public A setToAddresses(Integer index,String item); public A addToAddresses(java.lang.String... items); - public A addAllToAddresses(Collection items); - public A removeFromAddresses(java.lang.String... items); - public A removeAllFromAddresses(Collection items); - public List getAddresses(); - public String getAddress(Integer index); - public String getFirstAddress(); - public String getLastAddress(); - public String getMatchingAddress(Predicate predicate); - public Boolean hasMatchingAddress(Predicate predicate); - public A withAddresses(List addresses); - public A withAddresses(java.lang.String... addresses); - public Boolean hasAddresses(); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public V1EndpointConditions getConditions(); - public V1EndpointConditions buildConditions(); - public A withConditions(V1EndpointConditions conditions); - public Boolean hasConditions(); - public V1EndpointFluent.ConditionsNested withNewConditions(); - public V1EndpointFluent.ConditionsNested withNewConditionsLike(V1EndpointConditions item); - public V1EndpointFluent.ConditionsNested editConditions(); - public V1EndpointFluent.ConditionsNested editOrNewConditions(); - public V1EndpointFluent.ConditionsNested editOrNewConditionsLike(V1EndpointConditions item); - - public A addToDeprecatedTopology(String key, String value); - - public A addToDeprecatedTopology(Map map); - + public A addToDeprecatedTopology(String key,String value); + public A addToDeprecatedTopology(Map map); public A removeFromDeprecatedTopology(String key); - - public A removeFromDeprecatedTopology(Map map); - - public Map getDeprecatedTopology(); - - public A withDeprecatedTopology(Map deprecatedTopology); - + public A removeFromDeprecatedTopology(Map map); + public Map getDeprecatedTopology(); + public A withDeprecatedTopology(Map deprecatedTopology); public Boolean hasDeprecatedTopology(); - + /** * This method has been deprecated, please use method buildHints instead. - * * @return The buildable object. */ @Deprecated public V1EndpointHints getHints(); - public V1EndpointHints buildHints(); - public A withHints(V1EndpointHints hints); - public Boolean hasHints(); - public V1EndpointFluent.HintsNested withNewHints(); - public V1EndpointFluent.HintsNested withNewHintsLike(V1EndpointHints item); - public V1EndpointFluent.HintsNested editHints(); - public V1EndpointFluent.HintsNested editOrNewHints(); - public V1EndpointFluent.HintsNested editOrNewHintsLike(V1EndpointHints item); - public String getHostname(); - public A withHostname(String hostname); - public Boolean hasHostname(); - public String getNodeName(); - public A withNodeName(String nodeName); - public Boolean hasNodeName(); - + /** * This method has been deprecated, please use method buildTargetRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getTargetRef(); - public V1ObjectReference buildTargetRef(); - public A withTargetRef(V1ObjectReference targetRef); - public Boolean hasTargetRef(); - public V1EndpointFluent.TargetRefNested withNewTargetRef(); - public V1EndpointFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item); - public V1EndpointFluent.TargetRefNested editTargetRef(); - public V1EndpointFluent.TargetRefNested editOrNewTargetRef(); - public V1EndpointFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item); - public String getZone(); - public A withZone(String zone); - public Boolean hasZone(); - - public interface ConditionsNested - extends Nested, V1EndpointConditionsFluent> { + public interface ConditionsNested extends Nested,V1EndpointConditionsFluent>{ public N and(); - public N endConditions(); + } - - public interface HintsNested - extends Nested, V1EndpointHintsFluent> { + public interface HintsNested extends Nested,V1EndpointHintsFluent>{ public N and(); - public N endHints(); + } - - public interface TargetRefNested - extends Nested, V1ObjectReferenceFluent> { + public interface TargetRefNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endTargetRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java index 4ed916c617..3ad72e2ef3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java @@ -1,32 +1,27 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointFluentImpl> extends BaseFluent - implements V1EndpointFluent { - public V1EndpointFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointFluentImpl> extends BaseFluent implements V1EndpointFluent{ + public V1EndpointFluentImpl() { + } public V1EndpointFluentImpl(V1Endpoint instance) { this.withAddresses(instance.getAddresses()); @@ -43,519 +38,299 @@ public V1EndpointFluentImpl(V1Endpoint instance) { this.withTargetRef(instance.getTargetRef()); this.withZone(instance.getZone()); - } + } private List addresses; private V1EndpointConditionsBuilder conditions; - private Map deprecatedTopology; + private Map deprecatedTopology; private V1EndpointHintsBuilder hints; private String hostname; private String nodeName; private V1ObjectReferenceBuilder targetRef; private String zone; - - public A addToAddresses(Integer index, String item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } + public A addToAddresses(Integer index,String item) { + if (this.addresses == null) {this.addresses = new ArrayList();} this.addresses.add(index, item); - return (A) this; + return (A)this; } - - public A setToAddresses(Integer index, String item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - this.addresses.set(index, item); - return (A) this; + public A setToAddresses(Integer index,String item) { + if (this.addresses == null) {this.addresses = new ArrayList();} + this.addresses.set(index, item); return (A)this; } - public A addToAddresses(java.lang.String... items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - for (String item : items) { - this.addresses.add(item); - } - return (A) this; + if (this.addresses == null) {this.addresses = new ArrayList();} + for (String item : items) {this.addresses.add(item);} return (A)this; } - public A addAllToAddresses(Collection items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - for (String item : items) { - this.addresses.add(item); - } - return (A) this; + if (this.addresses == null) {this.addresses = new ArrayList();} + for (String item : items) {this.addresses.add(item);} return (A)this; } - public A removeFromAddresses(java.lang.String... items) { - for (String item : items) { - if (this.addresses != null) { - this.addresses.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.addresses!= null){ this.addresses.remove(item);}} return (A)this; } - public A removeAllFromAddresses(Collection items) { - for (String item : items) { - if (this.addresses != null) { - this.addresses.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.addresses!= null){ this.addresses.remove(item);}} return (A)this; } - public List getAddresses() { return this.addresses; } - public String getAddress(Integer index) { return this.addresses.get(index); } - public String getFirstAddress() { return this.addresses.get(0); } - public String getLastAddress() { return this.addresses.get(addresses.size() - 1); } - public String getMatchingAddress(Predicate predicate) { - for (String item : addresses) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: addresses) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAddress(Predicate predicate) { - for (String item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: addresses) { if(predicate.test(item)){ return true;} } return false; } - public A withAddresses(List addresses) { - if (addresses != null) { - this.addresses = new ArrayList(); - for (String item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; - } - return (A) this; + if (addresses != null) {this.addresses = new ArrayList(); for (String item : addresses){this.addToAddresses(item);}} else { this.addresses = null;} return (A) this; } - public A withAddresses(java.lang.String... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - } - if (addresses != null) { - for (String item : addresses) { - this.addToAddresses(item); - } - } - return (A) this; + if (this.addresses != null) {this.addresses.clear();} + if (addresses != null) {for (String item :addresses){ this.addToAddresses(item);}} return (A) this; } - public Boolean hasAddresses() { return addresses != null && !addresses.isEmpty(); } - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public V1EndpointConditions getConditions() { - return this.conditions != null ? this.conditions.build() : null; + return this.conditions!=null ?this.conditions.build():null; } - public V1EndpointConditions buildConditions() { - return this.conditions != null ? this.conditions.build() : null; + return this.conditions!=null ?this.conditions.build():null; } - public A withConditions(V1EndpointConditions conditions) { _visitables.get("conditions").remove(this.conditions); - if (conditions != null) { - this.conditions = new V1EndpointConditionsBuilder(conditions); - _visitables.get("conditions").add(this.conditions); - } else { - this.conditions = null; - _visitables.get("conditions").remove(this.conditions); - } - return (A) this; + if (conditions!=null){ this.conditions= new V1EndpointConditionsBuilder(conditions); _visitables.get("conditions").add(this.conditions);} else { this.conditions = null; _visitables.get("conditions").remove(this.conditions); } return (A) this; } - public Boolean hasConditions() { return this.conditions != null; } - public V1EndpointFluent.ConditionsNested withNewConditions() { return new V1EndpointFluentImpl.ConditionsNestedImpl(); } - public V1EndpointFluent.ConditionsNested withNewConditionsLike(V1EndpointConditions item) { return new V1EndpointFluentImpl.ConditionsNestedImpl(item); } - public V1EndpointFluent.ConditionsNested editConditions() { return withNewConditionsLike(getConditions()); } - public V1EndpointFluent.ConditionsNested editOrNewConditions() { - return withNewConditionsLike( - getConditions() != null ? getConditions() : new V1EndpointConditionsBuilder().build()); + return withNewConditionsLike(getConditions() != null ? getConditions(): new V1EndpointConditionsBuilder().build()); } - public V1EndpointFluent.ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { - return withNewConditionsLike(getConditions() != null ? getConditions() : item); + return withNewConditionsLike(getConditions() != null ? getConditions(): item); } - - public A addToDeprecatedTopology(String key, String value) { - if (this.deprecatedTopology == null && key != null && value != null) { - this.deprecatedTopology = new LinkedHashMap(); - } - if (key != null && value != null) { - this.deprecatedTopology.put(key, value); - } - return (A) this; + public A addToDeprecatedTopology(String key,String value) { + if(this.deprecatedTopology == null && key != null && value != null) { this.deprecatedTopology = new LinkedHashMap(); } + if(key != null && value != null) {this.deprecatedTopology.put(key, value);} return (A)this; } - - public A addToDeprecatedTopology(Map map) { - if (this.deprecatedTopology == null && map != null) { - this.deprecatedTopology = new LinkedHashMap(); - } - if (map != null) { - this.deprecatedTopology.putAll(map); - } - return (A) this; + public A addToDeprecatedTopology(Map map) { + if(this.deprecatedTopology == null && map != null) { this.deprecatedTopology = new LinkedHashMap(); } + if(map != null) { this.deprecatedTopology.putAll(map);} return (A)this; } - public A removeFromDeprecatedTopology(String key) { - if (this.deprecatedTopology == null) { - return (A) this; - } - if (key != null && this.deprecatedTopology != null) { - this.deprecatedTopology.remove(key); - } - return (A) this; + if(this.deprecatedTopology == null) { return (A) this; } + if(key != null && this.deprecatedTopology != null) {this.deprecatedTopology.remove(key);} return (A)this; } - - public A removeFromDeprecatedTopology(Map map) { - if (this.deprecatedTopology == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.deprecatedTopology != null) { - this.deprecatedTopology.remove(key); - } - } - } - return (A) this; + public A removeFromDeprecatedTopology(Map map) { + if(this.deprecatedTopology == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.deprecatedTopology != null){this.deprecatedTopology.remove(key);}}} return (A)this; } - - public Map getDeprecatedTopology() { + public Map getDeprecatedTopology() { return this.deprecatedTopology; } - - public A withDeprecatedTopology(Map deprecatedTopology) { - if (deprecatedTopology == null) { - this.deprecatedTopology = null; - } else { - this.deprecatedTopology = new LinkedHashMap(deprecatedTopology); - } - return (A) this; + public A withDeprecatedTopology(Map deprecatedTopology) { + if (deprecatedTopology == null) { this.deprecatedTopology = null;} else {this.deprecatedTopology = new LinkedHashMap(deprecatedTopology);} return (A) this; } - public Boolean hasDeprecatedTopology() { return this.deprecatedTopology != null; } - + /** * This method has been deprecated, please use method buildHints instead. - * * @return The buildable object. */ @Deprecated public V1EndpointHints getHints() { - return this.hints != null ? this.hints.build() : null; + return this.hints!=null ?this.hints.build():null; } - public V1EndpointHints buildHints() { - return this.hints != null ? this.hints.build() : null; + return this.hints!=null ?this.hints.build():null; } - public A withHints(V1EndpointHints hints) { _visitables.get("hints").remove(this.hints); - if (hints != null) { - this.hints = new V1EndpointHintsBuilder(hints); - _visitables.get("hints").add(this.hints); - } else { - this.hints = null; - _visitables.get("hints").remove(this.hints); - } - return (A) this; + if (hints!=null){ this.hints= new V1EndpointHintsBuilder(hints); _visitables.get("hints").add(this.hints);} else { this.hints = null; _visitables.get("hints").remove(this.hints); } return (A) this; } - public Boolean hasHints() { return this.hints != null; } - public V1EndpointFluent.HintsNested withNewHints() { return new V1EndpointFluentImpl.HintsNestedImpl(); } - public V1EndpointFluent.HintsNested withNewHintsLike(V1EndpointHints item) { return new V1EndpointFluentImpl.HintsNestedImpl(item); } - public V1EndpointFluent.HintsNested editHints() { return withNewHintsLike(getHints()); } - public V1EndpointFluent.HintsNested editOrNewHints() { - return withNewHintsLike(getHints() != null ? getHints() : new V1EndpointHintsBuilder().build()); + return withNewHintsLike(getHints() != null ? getHints(): new V1EndpointHintsBuilder().build()); } - public V1EndpointFluent.HintsNested editOrNewHintsLike(V1EndpointHints item) { - return withNewHintsLike(getHints() != null ? getHints() : item); + return withNewHintsLike(getHints() != null ? getHints(): item); } - public String getHostname() { return this.hostname; } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + this.hostname=hostname; return (A) this; } - public Boolean hasHostname() { return this.hostname != null; } - public String getNodeName() { return this.nodeName; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + this.nodeName=nodeName; return (A) this; } - public Boolean hasNodeName() { return this.nodeName != null; } - + /** * This method has been deprecated, please use method buildTargetRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; + return this.targetRef!=null ?this.targetRef.build():null; } - public V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; + return this.targetRef!=null ?this.targetRef.build():null; } - public A withTargetRef(V1ObjectReference targetRef) { _visitables.get("targetRef").remove(this.targetRef); - if (targetRef != null) { - this.targetRef = new V1ObjectReferenceBuilder(targetRef); - _visitables.get("targetRef").add(this.targetRef); - } else { - this.targetRef = null; - _visitables.get("targetRef").remove(this.targetRef); - } - return (A) this; + if (targetRef!=null){ this.targetRef= new V1ObjectReferenceBuilder(targetRef); _visitables.get("targetRef").add(this.targetRef);} else { this.targetRef = null; _visitables.get("targetRef").remove(this.targetRef); } return (A) this; } - public Boolean hasTargetRef() { return this.targetRef != null; } - public V1EndpointFluent.TargetRefNested withNewTargetRef() { return new V1EndpointFluentImpl.TargetRefNestedImpl(); } - public V1EndpointFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item) { return new V1EndpointFluentImpl.TargetRefNestedImpl(item); } - public V1EndpointFluent.TargetRefNested editTargetRef() { return withNewTargetRefLike(getTargetRef()); } - public V1EndpointFluent.TargetRefNested editOrNewTargetRef() { - return withNewTargetRefLike( - getTargetRef() != null ? getTargetRef() : new V1ObjectReferenceBuilder().build()); + return withNewTargetRefLike(getTargetRef() != null ? getTargetRef(): new V1ObjectReferenceBuilder().build()); } - public V1EndpointFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return withNewTargetRefLike(getTargetRef() != null ? getTargetRef() : item); + return withNewTargetRefLike(getTargetRef() != null ? getTargetRef(): item); } - public String getZone() { return this.zone; } - public A withZone(String zone) { - this.zone = zone; - return (A) this; + this.zone=zone; return (A) this; } - public Boolean hasZone() { return this.zone != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EndpointFluentImpl that = (V1EndpointFluentImpl) o; - if (addresses != null ? !addresses.equals(that.addresses) : that.addresses != null) - return false; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (deprecatedTopology != null - ? !deprecatedTopology.equals(that.deprecatedTopology) - : that.deprecatedTopology != null) return false; - if (hints != null ? !hints.equals(that.hints) : that.hints != null) return false; - if (hostname != null ? !hostname.equals(that.hostname) : that.hostname != null) return false; - if (nodeName != null ? !nodeName.equals(that.nodeName) : that.nodeName != null) return false; - if (targetRef != null ? !targetRef.equals(that.targetRef) : that.targetRef != null) - return false; - if (zone != null ? !zone.equals(that.zone) : that.zone != null) return false; + if (addresses != null ? !addresses.equals(that.addresses) :that.addresses != null) return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (deprecatedTopology != null ? !deprecatedTopology.equals(that.deprecatedTopology) :that.deprecatedTopology != null) return false; + if (hints != null ? !hints.equals(that.hints) :that.hints != null) return false; + if (hostname != null ? !hostname.equals(that.hostname) :that.hostname != null) return false; + if (nodeName != null ? !nodeName.equals(that.nodeName) :that.nodeName != null) return false; + if (targetRef != null ? !targetRef.equals(that.targetRef) :that.targetRef != null) return false; + if (zone != null ? !zone.equals(that.zone) :that.zone != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - addresses, - conditions, - deprecatedTopology, - hints, - hostname, - nodeName, - targetRef, - zone, - super.hashCode()); + return java.util.Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (addresses != null && !addresses.isEmpty()) { - sb.append("addresses:"); - sb.append(addresses + ","); - } - if (conditions != null) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (deprecatedTopology != null && !deprecatedTopology.isEmpty()) { - sb.append("deprecatedTopology:"); - sb.append(deprecatedTopology + ","); - } - if (hints != null) { - sb.append("hints:"); - sb.append(hints + ","); - } - if (hostname != null) { - sb.append("hostname:"); - sb.append(hostname + ","); - } - if (nodeName != null) { - sb.append("nodeName:"); - sb.append(nodeName + ","); - } - if (targetRef != null) { - sb.append("targetRef:"); - sb.append(targetRef + ","); - } - if (zone != null) { - sb.append("zone:"); - sb.append(zone); - } + if (addresses != null && !addresses.isEmpty()) { sb.append("addresses:"); sb.append(addresses + ","); } + if (conditions != null) { sb.append("conditions:"); sb.append(conditions + ","); } + if (deprecatedTopology != null && !deprecatedTopology.isEmpty()) { sb.append("deprecatedTopology:"); sb.append(deprecatedTopology + ","); } + if (hints != null) { sb.append("hints:"); sb.append(hints + ","); } + if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } + if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } + if (targetRef != null) { sb.append("targetRef:"); sb.append(targetRef + ","); } + if (zone != null) { sb.append("zone:"); sb.append(zone); } sb.append("}"); return sb.toString(); } - - class ConditionsNestedImpl - extends V1EndpointConditionsFluentImpl> - implements V1EndpointFluent.ConditionsNested, Nested { + class ConditionsNestedImpl extends V1EndpointConditionsFluentImpl> implements V1EndpointFluent.ConditionsNested,Nested{ ConditionsNestedImpl(V1EndpointConditions item) { this.builder = new V1EndpointConditionsBuilder(this, item); } - ConditionsNestedImpl() { this.builder = new V1EndpointConditionsBuilder(this); } - V1EndpointConditionsBuilder builder; - public N and() { return (N) V1EndpointFluentImpl.this.withConditions(builder.build()); } - public N endConditions() { return and(); } + } - - class HintsNestedImpl extends V1EndpointHintsFluentImpl> - implements V1EndpointFluent.HintsNested, Nested { + class HintsNestedImpl extends V1EndpointHintsFluentImpl> implements V1EndpointFluent.HintsNested,Nested{ HintsNestedImpl(V1EndpointHints item) { this.builder = new V1EndpointHintsBuilder(this, item); } - HintsNestedImpl() { this.builder = new V1EndpointHintsBuilder(this); } - V1EndpointHintsBuilder builder; - public N and() { return (N) V1EndpointFluentImpl.this.withHints(builder.build()); } - public N endHints() { return and(); } + } - - class TargetRefNestedImpl - extends V1ObjectReferenceFluentImpl> - implements V1EndpointFluent.TargetRefNested, Nested { + class TargetRefNestedImpl extends V1ObjectReferenceFluentImpl> implements V1EndpointFluent.TargetRefNested,Nested{ TargetRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - TargetRefNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) V1EndpointFluentImpl.this.withTargetRef(builder.build()); } - public N endTargetRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java index da58cc5cd3..d530b09141 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1EndpointHintsBuilder extends V1EndpointHintsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointHintsBuilder extends V1EndpointHintsFluentImpl implements VisitableBuilder{ public V1EndpointHintsBuilder() { this(false); } - public V1EndpointHintsBuilder(Boolean validationEnabled) { this(new V1EndpointHints(), validationEnabled); } - public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent) { this(fluent, false); } - - public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent, Boolean validationEnabled) { + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointHints(), validationEnabled); } - - public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent, V1EndpointHints instance) { + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,V1EndpointHints instance) { this(fluent, instance, false); } - - public V1EndpointHintsBuilder( - V1EndpointHintsFluent fluent, V1EndpointHints instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,V1EndpointHints instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withForZones(instance.getForZones()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointHintsBuilder(V1EndpointHints instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointHintsBuilder(V1EndpointHints instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointHintsBuilder(V1EndpointHints instance,Boolean validationEnabled) { + this.fluent = this; this.withForZones(instance.getForZones()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointHintsFluent fluent; Boolean validationEnabled; - public V1EndpointHints build() { V1EndpointHints buildable = new V1EndpointHints(); buildable.setForZones(fluent.getForZones()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java index 8b1dabd43d..0475535d3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java @@ -1,84 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1EndpointHintsFluent> extends Fluent { - public A addToForZones(Integer index, V1ForZone item); - - public A setToForZones(Integer index, V1ForZone item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1EndpointHintsFluent> extends Fluent{ + public A addToForZones(Integer index,V1ForZone item); + public A setToForZones(Integer index,V1ForZone item); public A addToForZones(io.kubernetes.client.openapi.models.V1ForZone... items); - public A addAllToForZones(Collection items); - public A removeFromForZones(io.kubernetes.client.openapi.models.V1ForZone... items); - public A removeAllFromForZones(Collection items); - public A removeMatchingFromForZones(Predicate predicate); - + /** * This method has been deprecated, please use method buildForZones instead. - * * @return The buildable object. */ @Deprecated public List getForZones(); - public List buildForZones(); - public V1ForZone buildForZone(Integer index); - public V1ForZone buildFirstForZone(); - public V1ForZone buildLastForZone(); - public V1ForZone buildMatchingForZone(Predicate predicate); - public Boolean hasMatchingForZone(Predicate predicate); - public A withForZones(List forZones); - public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones); - public Boolean hasForZones(); - public V1EndpointHintsFluent.ForZonesNested addNewForZone(); - public V1EndpointHintsFluent.ForZonesNested addNewForZoneLike(V1ForZone item); - - public V1EndpointHintsFluent.ForZonesNested setNewForZoneLike(Integer index, V1ForZone item); - + public V1EndpointHintsFluent.ForZonesNested setNewForZoneLike(Integer index,V1ForZone item); public V1EndpointHintsFluent.ForZonesNested editForZone(Integer index); - public V1EndpointHintsFluent.ForZonesNested editFirstForZone(); - public V1EndpointHintsFluent.ForZonesNested editLastForZone(); - - public V1EndpointHintsFluent.ForZonesNested editMatchingForZone( - Predicate predicate); - - public interface ForZonesNested - extends Nested, V1ForZoneFluent> { + public V1EndpointHintsFluent.ForZonesNested editMatchingForZone(Predicate predicate); + public interface ForZonesNested extends Nested,V1ForZoneFluent>{ public N and(); - public N endForZone(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java index 83b70af1d3..e9b65906de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java @@ -1,113 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointHintsFluentImpl> extends BaseFluent - implements V1EndpointHintsFluent { - public V1EndpointHintsFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointHintsFluentImpl> extends BaseFluent implements V1EndpointHintsFluent{ + public V1EndpointHintsFluentImpl() { + } public V1EndpointHintsFluentImpl(V1EndpointHints instance) { this.withForZones(instance.getForZones()); - } + } private ArrayList forZones; - - public A addToForZones(Integer index, V1ForZone item) { - if (this.forZones == null) { - this.forZones = new ArrayList(); - } - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables - .get("forZones") - .add(index >= 0 ? index : _visitables.get("forZones").size(), builder); - this.forZones.add(index >= 0 ? index : forZones.size(), builder); - return (A) this; + public A addToForZones(Integer index,V1ForZone item) { + if (this.forZones == null) {this.forZones = new ArrayList();} + V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(index >= 0 ? index : _visitables.get("forZones").size(), builder);this.forZones.add(index >= 0 ? index : forZones.size(), builder); return (A)this; } - - public A setToForZones(Integer index, V1ForZone item) { - if (this.forZones == null) { - this.forZones = new ArrayList(); - } + public A setToForZones(Integer index,V1ForZone item) { + if (this.forZones == null) {this.forZones = new ArrayList();} V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= _visitables.get("forZones").size()) { - _visitables.get("forZones").add(builder); - } else { - _visitables.get("forZones").set(index, builder); - } - if (index < 0 || index >= forZones.size()) { - forZones.add(builder); - } else { - forZones.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("forZones").size()) { _visitables.get("forZones").add(builder); } else { _visitables.get("forZones").set(index, builder);} + if (index < 0 || index >= forZones.size()) { forZones.add(builder); } else { forZones.set(index, builder);} + return (A)this; } - public A addToForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { - if (this.forZones == null) { - this.forZones = new ArrayList(); - } - for (V1ForZone item : items) { - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); - this.forZones.add(builder); - } - return (A) this; + if (this.forZones == null) {this.forZones = new ArrayList();} + for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(builder);this.forZones.add(builder);} return (A)this; } - public A addAllToForZones(Collection items) { - if (this.forZones == null) { - this.forZones = new ArrayList(); - } - for (V1ForZone item : items) { - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); - this.forZones.add(builder); - } - return (A) this; + if (this.forZones == null) {this.forZones = new ArrayList();} + for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(builder);this.forZones.add(builder);} return (A)this; } - public A removeFromForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { - for (V1ForZone item : items) { - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").remove(builder); - if (this.forZones != null) { - this.forZones.remove(builder); - } - } - return (A) this; + for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").remove(builder);if (this.forZones != null) {this.forZones.remove(builder);}} return (A)this; } - public A removeAllFromForZones(Collection items) { - for (V1ForZone item : items) { - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").remove(builder); - if (this.forZones != null) { - this.forZones.remove(builder); - } - } - return (A) this; + for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").remove(builder);if (this.forZones != null) {this.forZones.remove(builder);}} return (A)this; } - public A removeMatchingFromForZones(Predicate predicate) { if (forZones == null) return (A) this; final Iterator each = forZones.iterator(); @@ -119,171 +63,111 @@ public A removeMatchingFromForZones(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildForZones instead. - * * @return The buildable object. */ @Deprecated public List getForZones() { return forZones != null ? build(forZones) : null; } - public List buildForZones() { return forZones != null ? build(forZones) : null; } - public V1ForZone buildForZone(Integer index) { return this.forZones.get(index).build(); } - public V1ForZone buildFirstForZone() { return this.forZones.get(0).build(); } - public V1ForZone buildLastForZone() { return this.forZones.get(forZones.size() - 1).build(); } - public V1ForZone buildMatchingForZone(Predicate predicate) { - for (V1ForZoneBuilder item : forZones) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ForZoneBuilder item: forZones) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingForZone(Predicate predicate) { - for (V1ForZoneBuilder item : forZones) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ForZoneBuilder item: forZones) { if(predicate.test(item)){ return true;} } return false; } - public A withForZones(List forZones) { - if (this.forZones != null) { - _visitables.get("forZones").removeAll(this.forZones); - } - if (forZones != null) { - this.forZones = new ArrayList(); - for (V1ForZone item : forZones) { - this.addToForZones(item); - } - } else { - this.forZones = null; - } - return (A) this; + if (this.forZones != null) { _visitables.get("forZones").removeAll(this.forZones);} + if (forZones != null) {this.forZones = new ArrayList(); for (V1ForZone item : forZones){this.addToForZones(item);}} else { this.forZones = null;} return (A) this; } - public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones) { - if (this.forZones != null) { - this.forZones.clear(); - } - if (forZones != null) { - for (V1ForZone item : forZones) { - this.addToForZones(item); - } - } - return (A) this; + if (this.forZones != null) {this.forZones.clear();} + if (forZones != null) {for (V1ForZone item :forZones){ this.addToForZones(item);}} return (A) this; } - public Boolean hasForZones() { return forZones != null && !forZones.isEmpty(); } - public V1EndpointHintsFluent.ForZonesNested addNewForZone() { return new V1EndpointHintsFluentImpl.ForZonesNestedImpl(); } - public V1EndpointHintsFluent.ForZonesNested addNewForZoneLike(V1ForZone item) { return new V1EndpointHintsFluentImpl.ForZonesNestedImpl(-1, item); } - - public V1EndpointHintsFluent.ForZonesNested setNewForZoneLike(Integer index, V1ForZone item) { + public V1EndpointHintsFluent.ForZonesNested setNewForZoneLike(Integer index,V1ForZone item) { return new V1EndpointHintsFluentImpl.ForZonesNestedImpl(index, item); } - public V1EndpointHintsFluent.ForZonesNested editForZone(Integer index) { - if (forZones.size() <= index) - throw new RuntimeException("Can't edit forZones. Index exceeds size."); + if (forZones.size() <= index) throw new RuntimeException("Can't edit forZones. Index exceeds size."); return setNewForZoneLike(index, buildForZone(index)); } - public V1EndpointHintsFluent.ForZonesNested editFirstForZone() { - if (forZones.size() == 0) - throw new RuntimeException("Can't edit first forZones. The list is empty."); + if (forZones.size() == 0) throw new RuntimeException("Can't edit first forZones. The list is empty."); return setNewForZoneLike(0, buildForZone(0)); } - public V1EndpointHintsFluent.ForZonesNested editLastForZone() { int index = forZones.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last forZones. The list is empty."); return setNewForZoneLike(index, buildForZone(index)); } - - public V1EndpointHintsFluent.ForZonesNested editMatchingForZone( - Predicate predicate) { + public V1EndpointHintsFluent.ForZonesNested editMatchingForZone(Predicate predicate) { int index = -1; - for (int i = 0; i < forZones.size(); i++) { - if (predicate.test(forZones.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1ForZoneFluentImpl> - implements V1EndpointHintsFluent.ForZonesNested, Nested { - ForZonesNestedImpl(Integer index, V1ForZone item) { + class ForZonesNestedImpl extends V1ForZoneFluentImpl> implements V1EndpointHintsFluent.ForZonesNested,Nested{ + ForZonesNestedImpl(Integer index,V1ForZone item) { this.index = index; this.builder = new V1ForZoneBuilder(this, item); } - ForZonesNestedImpl() { this.index = -1; this.builder = new V1ForZoneBuilder(this); } - V1ForZoneBuilder builder; Integer index; - public N and() { - return (N) V1EndpointHintsFluentImpl.this.setToForZones(index, builder.build()); + return (N) V1EndpointHintsFluentImpl.this.setToForZones(index,builder.build()); } - public N endForZone() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java index a2e55377de..be1f85a739 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EndpointSliceBuilder extends V1EndpointSliceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointSliceBuilder extends V1EndpointSliceFluentImpl implements VisitableBuilder{ public V1EndpointSliceBuilder() { this(false); } - public V1EndpointSliceBuilder(Boolean validationEnabled) { this(new V1EndpointSlice(), validationEnabled); } - public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent) { this(fluent, false); } - - public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent, Boolean validationEnabled) { + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointSlice(), validationEnabled); } - - public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent, V1EndpointSlice instance) { + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,V1EndpointSlice instance) { this(fluent, instance, false); } - - public V1EndpointSliceBuilder( - V1EndpointSliceFluent fluent, V1EndpointSlice instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,V1EndpointSlice instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAddressType(instance.getAddressType()); fluent.withApiVersion(instance.getApiVersion()); @@ -51,15 +32,13 @@ public V1EndpointSliceBuilder( fluent.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointSliceBuilder(V1EndpointSlice instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointSliceBuilder(V1EndpointSlice instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointSliceBuilder(V1EndpointSlice instance,Boolean validationEnabled) { + this.fluent = this; this.withAddressType(instance.getAddressType()); this.withApiVersion(instance.getApiVersion()); @@ -72,12 +51,10 @@ public V1EndpointSliceBuilder(V1EndpointSlice instance, Boolean validationEnable this.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointSliceFluent fluent; Boolean validationEnabled; - public V1EndpointSlice build() { V1EndpointSlice buildable = new V1EndpointSlice(); buildable.setAddressType(fluent.getAddressType()); @@ -88,4 +65,5 @@ public V1EndpointSlice build() { buildable.setPorts(fluent.getPorts()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java index d37a4fa22b..9d617b41a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java @@ -1,198 +1,120 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1EndpointSliceFluent> extends Fluent { + /** + * Generated + */ +public interface V1EndpointSliceFluent> extends Fluent{ public String getAddressType(); - public A withAddressType(String addressType); - public Boolean hasAddressType(); - public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToEndpoints(Integer index, V1Endpoint item); - - public A setToEndpoints(Integer index, V1Endpoint item); - + public A addToEndpoints(Integer index,V1Endpoint item); + public A setToEndpoints(Integer index,V1Endpoint item); public A addToEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items); - public A addAllToEndpoints(Collection items); - public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items); - public A removeAllFromEndpoints(Collection items); - public A removeMatchingFromEndpoints(Predicate predicate); - + /** * This method has been deprecated, please use method buildEndpoints instead. - * * @return The buildable object. */ @Deprecated public List getEndpoints(); - public List buildEndpoints(); - public V1Endpoint buildEndpoint(Integer index); - public V1Endpoint buildFirstEndpoint(); - public V1Endpoint buildLastEndpoint(); - public V1Endpoint buildMatchingEndpoint(Predicate predicate); - public Boolean hasMatchingEndpoint(Predicate predicate); - public A withEndpoints(List endpoints); - public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoints); - public Boolean hasEndpoints(); - public V1EndpointSliceFluent.EndpointsNested addNewEndpoint(); - public V1EndpointSliceFluent.EndpointsNested addNewEndpointLike(V1Endpoint item); - - public V1EndpointSliceFluent.EndpointsNested setNewEndpointLike( - Integer index, V1Endpoint item); - + public V1EndpointSliceFluent.EndpointsNested setNewEndpointLike(Integer index,V1Endpoint item); public V1EndpointSliceFluent.EndpointsNested editEndpoint(Integer index); - public V1EndpointSliceFluent.EndpointsNested editFirstEndpoint(); - public V1EndpointSliceFluent.EndpointsNested editLastEndpoint(); - - public V1EndpointSliceFluent.EndpointsNested editMatchingEndpoint( - Predicate predicate); - + public V1EndpointSliceFluent.EndpointsNested editMatchingEndpoint(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1EndpointSliceFluent.MetadataNested withNewMetadata(); - public V1EndpointSliceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1EndpointSliceFluent.MetadataNested editMetadata(); - public V1EndpointSliceFluent.MetadataNested editOrNewMetadata(); - public V1EndpointSliceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToPorts(Integer index, DiscoveryV1EndpointPort item); - - public A setToPorts(Integer index, DiscoveryV1EndpointPort item); - + public A addToPorts(Integer index,DiscoveryV1EndpointPort item); + public A setToPorts(Integer index,DiscoveryV1EndpointPort item); public A addToPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public DiscoveryV1EndpointPort buildPort(Integer index); - public DiscoveryV1EndpointPort buildFirstPort(); - public DiscoveryV1EndpointPort buildLastPort(); - - public DiscoveryV1EndpointPort buildMatchingPort( - Predicate predicate); - + public DiscoveryV1EndpointPort buildMatchingPort(Predicate predicate); public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... ports); - public Boolean hasPorts(); - public V1EndpointSliceFluent.PortsNested addNewPort(); - public V1EndpointSliceFluent.PortsNested addNewPortLike(DiscoveryV1EndpointPort item); - - public V1EndpointSliceFluent.PortsNested setNewPortLike( - Integer index, DiscoveryV1EndpointPort item); - + public V1EndpointSliceFluent.PortsNested setNewPortLike(Integer index,DiscoveryV1EndpointPort item); public V1EndpointSliceFluent.PortsNested editPort(Integer index); - public V1EndpointSliceFluent.PortsNested editFirstPort(); - public V1EndpointSliceFluent.PortsNested editLastPort(); - - public V1EndpointSliceFluent.PortsNested editMatchingPort( - Predicate predicate); - - public interface EndpointsNested - extends Nested, V1EndpointFluent> { + public V1EndpointSliceFluent.PortsNested editMatchingPort(Predicate predicate); + public interface EndpointsNested extends Nested,V1EndpointFluent>{ public N and(); - public N endEndpoint(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface PortsNested - extends Nested, DiscoveryV1EndpointPortFluent> { + public interface PortsNested extends Nested,DiscoveryV1EndpointPortFluent>{ public N and(); - public N endPort(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java index 626e6e9044..47e903ec2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointSliceFluentImpl> extends BaseFluent - implements V1EndpointSliceFluent { - public V1EndpointSliceFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointSliceFluentImpl> extends BaseFluent implements V1EndpointSliceFluent{ + public V1EndpointSliceFluentImpl() { + } public V1EndpointSliceFluentImpl(V1EndpointSlice instance) { this.withAddressType(instance.getAddressType()); @@ -38,117 +34,57 @@ public V1EndpointSliceFluentImpl(V1EndpointSlice instance) { this.withMetadata(instance.getMetadata()); this.withPorts(instance.getPorts()); - } + } private String addressType; private String apiVersion; private ArrayList endpoints; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList ports; - public String getAddressType() { return this.addressType; } - public A withAddressType(String addressType) { - this.addressType = addressType; - return (A) this; + this.addressType=addressType; return (A) this; } - public Boolean hasAddressType() { return this.addressType != null; } - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToEndpoints(Integer index, V1Endpoint item) { - if (this.endpoints == null) { - this.endpoints = new ArrayList(); - } - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables - .get("endpoints") - .add(index >= 0 ? index : _visitables.get("endpoints").size(), builder); - this.endpoints.add(index >= 0 ? index : endpoints.size(), builder); - return (A) this; + public A addToEndpoints(Integer index,V1Endpoint item) { + if (this.endpoints == null) {this.endpoints = new ArrayList();} + V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(index >= 0 ? index : _visitables.get("endpoints").size(), builder);this.endpoints.add(index >= 0 ? index : endpoints.size(), builder); return (A)this; } - - public A setToEndpoints(Integer index, V1Endpoint item) { - if (this.endpoints == null) { - this.endpoints = new ArrayList(); - } + public A setToEndpoints(Integer index,V1Endpoint item) { + if (this.endpoints == null) {this.endpoints = new ArrayList();} V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= _visitables.get("endpoints").size()) { - _visitables.get("endpoints").add(builder); - } else { - _visitables.get("endpoints").set(index, builder); - } - if (index < 0 || index >= endpoints.size()) { - endpoints.add(builder); - } else { - endpoints.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("endpoints").size()) { _visitables.get("endpoints").add(builder); } else { _visitables.get("endpoints").set(index, builder);} + if (index < 0 || index >= endpoints.size()) { endpoints.add(builder); } else { endpoints.set(index, builder);} + return (A)this; } - public A addToEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { - if (this.endpoints == null) { - this.endpoints = new ArrayList(); - } - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").add(builder); - this.endpoints.add(builder); - } - return (A) this; + if (this.endpoints == null) {this.endpoints = new ArrayList();} + for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(builder);this.endpoints.add(builder);} return (A)this; } - public A addAllToEndpoints(Collection items) { - if (this.endpoints == null) { - this.endpoints = new ArrayList(); - } - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").add(builder); - this.endpoints.add(builder); - } - return (A) this; + if (this.endpoints == null) {this.endpoints = new ArrayList();} + for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(builder);this.endpoints.add(builder);} return (A)this; } - public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").remove(builder); - if (this.endpoints != null) { - this.endpoints.remove(builder); - } - } - return (A) this; + for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").remove(builder);if (this.endpoints != null) {this.endpoints.remove(builder);}} return (A)this; } - public A removeAllFromEndpoints(Collection items) { - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").remove(builder); - if (this.endpoints != null) { - this.endpoints.remove(builder); - } - } - return (A) this; + for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").remove(builder);if (this.endpoints != null) {this.endpoints.remove(builder);}} return (A)this; } - public A removeMatchingFromEndpoints(Predicate predicate) { if (endpoints == null) return (A) this; final Iterator each = endpoints.iterator(); @@ -160,266 +96,144 @@ public A removeMatchingFromEndpoints(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEndpoints instead. - * * @return The buildable object. */ @Deprecated public List getEndpoints() { return endpoints != null ? build(endpoints) : null; } - public List buildEndpoints() { return endpoints != null ? build(endpoints) : null; } - public V1Endpoint buildEndpoint(Integer index) { return this.endpoints.get(index).build(); } - public V1Endpoint buildFirstEndpoint() { return this.endpoints.get(0).build(); } - public V1Endpoint buildLastEndpoint() { return this.endpoints.get(endpoints.size() - 1).build(); } - public V1Endpoint buildMatchingEndpoint(Predicate predicate) { - for (V1EndpointBuilder item : endpoints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EndpointBuilder item: endpoints) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEndpoint(Predicate predicate) { - for (V1EndpointBuilder item : endpoints) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EndpointBuilder item: endpoints) { if(predicate.test(item)){ return true;} } return false; } - public A withEndpoints(List endpoints) { - if (this.endpoints != null) { - _visitables.get("endpoints").removeAll(this.endpoints); - } - if (endpoints != null) { - this.endpoints = new ArrayList(); - for (V1Endpoint item : endpoints) { - this.addToEndpoints(item); - } - } else { - this.endpoints = null; - } - return (A) this; + if (this.endpoints != null) { _visitables.get("endpoints").removeAll(this.endpoints);} + if (endpoints != null) {this.endpoints = new ArrayList(); for (V1Endpoint item : endpoints){this.addToEndpoints(item);}} else { this.endpoints = null;} return (A) this; } - public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoints) { - if (this.endpoints != null) { - this.endpoints.clear(); - } - if (endpoints != null) { - for (V1Endpoint item : endpoints) { - this.addToEndpoints(item); - } - } - return (A) this; + if (this.endpoints != null) {this.endpoints.clear();} + if (endpoints != null) {for (V1Endpoint item :endpoints){ this.addToEndpoints(item);}} return (A) this; } - public Boolean hasEndpoints() { return endpoints != null && !endpoints.isEmpty(); } - public V1EndpointSliceFluent.EndpointsNested addNewEndpoint() { return new V1EndpointSliceFluentImpl.EndpointsNestedImpl(); } - public V1EndpointSliceFluent.EndpointsNested addNewEndpointLike(V1Endpoint item) { return new V1EndpointSliceFluentImpl.EndpointsNestedImpl(-1, item); } - - public V1EndpointSliceFluent.EndpointsNested setNewEndpointLike( - Integer index, V1Endpoint item) { + public V1EndpointSliceFluent.EndpointsNested setNewEndpointLike(Integer index,V1Endpoint item) { return new V1EndpointSliceFluentImpl.EndpointsNestedImpl(index, item); } - public V1EndpointSliceFluent.EndpointsNested editEndpoint(Integer index) { - if (endpoints.size() <= index) - throw new RuntimeException("Can't edit endpoints. Index exceeds size."); + if (endpoints.size() <= index) throw new RuntimeException("Can't edit endpoints. Index exceeds size."); return setNewEndpointLike(index, buildEndpoint(index)); } - public V1EndpointSliceFluent.EndpointsNested editFirstEndpoint() { - if (endpoints.size() == 0) - throw new RuntimeException("Can't edit first endpoints. The list is empty."); + if (endpoints.size() == 0) throw new RuntimeException("Can't edit first endpoints. The list is empty."); return setNewEndpointLike(0, buildEndpoint(0)); } - public V1EndpointSliceFluent.EndpointsNested editLastEndpoint() { int index = endpoints.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last endpoints. The list is empty."); return setNewEndpointLike(index, buildEndpoint(index)); } - - public V1EndpointSliceFluent.EndpointsNested editMatchingEndpoint( - Predicate predicate) { + public V1EndpointSliceFluent.EndpointsNested editMatchingEndpoint(Predicate predicate) { int index = -1; - for (int i = 0; i < endpoints.size(); i++) { - if (predicate.test(endpoints.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1EndpointSliceFluentImpl.MetadataNestedImpl(); } - public V1EndpointSliceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1EndpointSliceFluentImpl.MetadataNestedImpl(item); } - public V1EndpointSliceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1EndpointSliceFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1EndpointSliceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToPorts(Integer index, DiscoveryV1EndpointPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,DiscoveryV1EndpointPort item) { + if (this.ports == null) {this.ports = new ArrayList();} + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, DiscoveryV1EndpointPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,DiscoveryV1EndpointPort item) { + if (this.ports == null) {this.ports = new ArrayList();} DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (DiscoveryV1EndpointPort item : items) { - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (DiscoveryV1EndpointPort item : items) { - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - for (DiscoveryV1EndpointPort item : items) { - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (DiscoveryV1EndpointPort item : items) { - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -431,248 +245,156 @@ public A removeMatchingFromPorts(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public DiscoveryV1EndpointPort buildPort(Integer index) { return this.ports.get(index).build(); } - public DiscoveryV1EndpointPort buildFirstPort() { return this.ports.get(0).build(); } - public DiscoveryV1EndpointPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - - public DiscoveryV1EndpointPort buildMatchingPort( - Predicate predicate) { - for (DiscoveryV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public DiscoveryV1EndpointPort buildMatchingPort(Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (DiscoveryV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (DiscoveryV1EndpointPortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (DiscoveryV1EndpointPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (DiscoveryV1EndpointPort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (DiscoveryV1EndpointPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (DiscoveryV1EndpointPort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1EndpointSliceFluent.PortsNested addNewPort() { return new V1EndpointSliceFluentImpl.PortsNestedImpl(); } - public V1EndpointSliceFluent.PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { return new V1EndpointSliceFluentImpl.PortsNestedImpl(-1, item); } - - public V1EndpointSliceFluent.PortsNested setNewPortLike( - Integer index, DiscoveryV1EndpointPort item) { + public V1EndpointSliceFluent.PortsNested setNewPortLike(Integer index,DiscoveryV1EndpointPort item) { return new V1EndpointSliceFluentImpl.PortsNestedImpl(index, item); } - public V1EndpointSliceFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1EndpointSliceFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1EndpointSliceFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1EndpointSliceFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1EndpointSliceFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1EndpointFluentImpl> - implements V1EndpointSliceFluent.EndpointsNested, Nested { - EndpointsNestedImpl(Integer index, V1Endpoint item) { + class EndpointsNestedImpl extends V1EndpointFluentImpl> implements V1EndpointSliceFluent.EndpointsNested,Nested{ + EndpointsNestedImpl(Integer index,V1Endpoint item) { this.index = index; this.builder = new V1EndpointBuilder(this, item); } - EndpointsNestedImpl() { this.index = -1; this.builder = new V1EndpointBuilder(this); } - V1EndpointBuilder builder; Integer index; - public N and() { - return (N) V1EndpointSliceFluentImpl.this.setToEndpoints(index, builder.build()); + return (N) V1EndpointSliceFluentImpl.this.setToEndpoints(index,builder.build()); } - public N endEndpoint() { return and(); } + } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1EndpointSliceFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1EndpointSliceFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1EndpointSliceFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class PortsNestedImpl - extends DiscoveryV1EndpointPortFluentImpl> - implements V1EndpointSliceFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, DiscoveryV1EndpointPort item) { + class PortsNestedImpl extends DiscoveryV1EndpointPortFluentImpl> implements V1EndpointSliceFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,DiscoveryV1EndpointPort item) { this.index = index; this.builder = new DiscoveryV1EndpointPortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new DiscoveryV1EndpointPortBuilder(this); } - DiscoveryV1EndpointPortBuilder builder; Integer index; - public N and() { - return (N) V1EndpointSliceFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1EndpointSliceFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java index 83ff76b629..acd2a1eec4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EndpointSliceListBuilder - extends V1EndpointSliceListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointSliceListBuilder extends V1EndpointSliceListFluentImpl implements VisitableBuilder{ public V1EndpointSliceListBuilder() { this(false); } - public V1EndpointSliceListBuilder(Boolean validationEnabled) { this(new V1EndpointSliceList(), validationEnabled); } - public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent) { this(fluent, false); } - - public V1EndpointSliceListBuilder( - V1EndpointSliceListFluent fluent, Boolean validationEnabled) { + public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointSliceList(), validationEnabled); } - - public V1EndpointSliceListBuilder( - V1EndpointSliceListFluent fluent, V1EndpointSliceList instance) { + public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,V1EndpointSliceList instance) { this(fluent, instance, false); } - - public V1EndpointSliceListBuilder( - V1EndpointSliceListFluent fluent, - V1EndpointSliceList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,V1EndpointSliceList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1EndpointSliceListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointSliceListBuilder(V1EndpointSliceList instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointSliceListBuilder(V1EndpointSliceList instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointSliceListBuilder(V1EndpointSliceList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1EndpointSliceListBuilder(V1EndpointSliceList instance, Boolean validati this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointSliceListFluent fluent; Boolean validationEnabled; - public V1EndpointSliceList build() { V1EndpointSliceList buildable = new V1EndpointSliceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1EndpointSliceList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java index 3b64b9e569..fea1498dc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1EndpointSliceListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1EndpointSliceListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1EndpointSlice item); - - public A setToItems(Integer index, V1EndpointSlice item); - + public A addToItems(Integer index,V1EndpointSlice item); + public A setToItems(Integer index,V1EndpointSlice item); public A addToItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1EndpointSlice buildItem(Integer index); - public V1EndpointSlice buildFirstItem(); - public V1EndpointSlice buildLastItem(); - public V1EndpointSlice buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items); - public Boolean hasItems(); - public V1EndpointSliceListFluent.ItemsNested addNewItem(); - public V1EndpointSliceListFluent.ItemsNested addNewItemLike(V1EndpointSlice item); - - public V1EndpointSliceListFluent.ItemsNested setNewItemLike( - Integer index, V1EndpointSlice item); - + public V1EndpointSliceListFluent.ItemsNested setNewItemLike(Integer index,V1EndpointSlice item); public V1EndpointSliceListFluent.ItemsNested editItem(Integer index); - public V1EndpointSliceListFluent.ItemsNested editFirstItem(); - public V1EndpointSliceListFluent.ItemsNested editLastItem(); - - public V1EndpointSliceListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1EndpointSliceListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1EndpointSliceListFluent.MetadataNested withNewMetadata(); - public V1EndpointSliceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1EndpointSliceListFluent.MetadataNested editMetadata(); - public V1EndpointSliceListFluent.MetadataNested editOrNewMetadata(); - public V1EndpointSliceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1EndpointSliceFluent> { + public interface ItemsNested extends Nested,V1EndpointSliceFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java index 40db3dc65f..760cdd4a5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointSliceListFluentImpl> - extends BaseFluent implements V1EndpointSliceListFluent { - public V1EndpointSliceListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointSliceListFluentImpl> extends BaseFluent implements V1EndpointSliceListFluent{ + public V1EndpointSliceListFluentImpl() { + } public V1EndpointSliceListFluentImpl(V1EndpointSliceList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1EndpointSliceListFluentImpl(V1EndpointSliceList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1EndpointSlice item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1EndpointSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1EndpointSlice item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1EndpointSlice item) { + if (this.items == null) {this.items = new ArrayList();} V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1EndpointSlice buildItem(Integer index) { return this.items.get(index).build(); } - public V1EndpointSlice buildFirstItem() { return this.items.get(0).build(); } - public V1EndpointSlice buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1EndpointSlice buildMatchingItem(Predicate predicate) { - for (V1EndpointSliceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EndpointSliceBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1EndpointSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EndpointSliceBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1EndpointSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1EndpointSlice item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1EndpointSlice item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1EndpointSlice item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1EndpointSliceListFluent.ItemsNested addNewItem() { return new V1EndpointSliceListFluentImpl.ItemsNestedImpl(); } - public V1EndpointSliceListFluent.ItemsNested addNewItemLike(V1EndpointSlice item) { return new V1EndpointSliceListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1EndpointSliceListFluent.ItemsNested setNewItemLike( - Integer index, V1EndpointSlice item) { + public V1EndpointSliceListFluent.ItemsNested setNewItemLike(Integer index,V1EndpointSlice item) { return new V1EndpointSliceListFluentImpl.ItemsNestedImpl(index, item); } - public V1EndpointSliceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1EndpointSliceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1EndpointSliceListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1EndpointSliceListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1EndpointSliceListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1EndpointSliceListFluentImpl.MetadataNestedImpl(); } - public V1EndpointSliceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1EndpointSliceListFluentImpl.MetadataNestedImpl(item); } - public V1EndpointSliceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1EndpointSliceListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1EndpointSliceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EndpointSliceListFluentImpl that = (V1EndpointSliceListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1EndpointSliceFluentImpl> - implements V1EndpointSliceListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1EndpointSlice item) { + class ItemsNestedImpl extends V1EndpointSliceFluentImpl> implements V1EndpointSliceListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1EndpointSlice item) { this.index = index; this.builder = new V1EndpointSliceBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1EndpointSliceBuilder(this); } - V1EndpointSliceBuilder builder; Integer index; - public N and() { - return (N) V1EndpointSliceListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1EndpointSliceListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1EndpointSliceListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1EndpointSliceListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1EndpointSliceListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java index ccd69fc834..6e2327e0cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluentImpl implements VisitableBuilder{ public V1EndpointSubsetBuilder() { this(false); } - public V1EndpointSubsetBuilder(Boolean validationEnabled) { this(new V1EndpointSubset(), validationEnabled); } - public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent) { this(fluent, false); } - - public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent, Boolean validationEnabled) { + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointSubset(), validationEnabled); } - - public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent, V1EndpointSubset instance) { + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,V1EndpointSubset instance) { this(fluent, instance, false); } - - public V1EndpointSubsetBuilder( - V1EndpointSubsetFluent fluent, V1EndpointSubset instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,V1EndpointSubset instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAddresses(instance.getAddresses()); fluent.withNotReadyAddresses(instance.getNotReadyAddresses()); fluent.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointSubsetBuilder(V1EndpointSubset instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointSubsetBuilder(V1EndpointSubset instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointSubsetBuilder(V1EndpointSubset instance,Boolean validationEnabled) { + this.fluent = this; this.withAddresses(instance.getAddresses()); this.withNotReadyAddresses(instance.getNotReadyAddresses()); this.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointSubsetFluent fluent; Boolean validationEnabled; - public V1EndpointSubset build() { V1EndpointSubset buildable = new V1EndpointSubset(); buildable.setAddresses(fluent.getAddresses()); @@ -73,4 +50,5 @@ public V1EndpointSubset build() { buildable.setPorts(fluent.getPorts()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java index 0737a2132e..5d11051c4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java @@ -1,216 +1,125 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1EndpointSubsetFluent> extends Fluent { - public A addToAddresses(Integer index, V1EndpointAddress item); - - public A setToAddresses(Integer index, V1EndpointAddress item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1EndpointSubsetFluent> extends Fluent{ + public A addToAddresses(Integer index,V1EndpointAddress item); + public A setToAddresses(Integer index,V1EndpointAddress item); public A addToAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A addAllToAddresses(Collection items); - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A removeAllFromAddresses(Collection items); - public A removeMatchingFromAddresses(Predicate predicate); - + /** * This method has been deprecated, please use method buildAddresses instead. - * * @return The buildable object. */ @Deprecated public List getAddresses(); - public List buildAddresses(); - public V1EndpointAddress buildAddress(Integer index); - public V1EndpointAddress buildFirstAddress(); - public V1EndpointAddress buildLastAddress(); - public V1EndpointAddress buildMatchingAddress(Predicate predicate); - public Boolean hasMatchingAddress(Predicate predicate); - public A withAddresses(List addresses); - public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... addresses); - public Boolean hasAddresses(); - public V1EndpointSubsetFluent.AddressesNested addNewAddress(); - public V1EndpointSubsetFluent.AddressesNested addNewAddressLike(V1EndpointAddress item); - - public V1EndpointSubsetFluent.AddressesNested setNewAddressLike( - Integer index, V1EndpointAddress item); - + public V1EndpointSubsetFluent.AddressesNested setNewAddressLike(Integer index,V1EndpointAddress item); public V1EndpointSubsetFluent.AddressesNested editAddress(Integer index); - public V1EndpointSubsetFluent.AddressesNested editFirstAddress(); - public V1EndpointSubsetFluent.AddressesNested editLastAddress(); - - public V1EndpointSubsetFluent.AddressesNested editMatchingAddress( - Predicate predicate); - - public A addToNotReadyAddresses(Integer index, V1EndpointAddress item); - - public A setToNotReadyAddresses(Integer index, V1EndpointAddress item); - + public V1EndpointSubsetFluent.AddressesNested editMatchingAddress(Predicate predicate); + public A addToNotReadyAddresses(Integer index,V1EndpointAddress item); + public A setToNotReadyAddresses(Integer index,V1EndpointAddress item); public A addToNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A addAllToNotReadyAddresses(Collection items); - - public A removeFromNotReadyAddresses( - io.kubernetes.client.openapi.models.V1EndpointAddress... items); - + public A removeFromNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); public A removeAllFromNotReadyAddresses(Collection items); - public A removeMatchingFromNotReadyAddresses(Predicate predicate); - + /** * This method has been deprecated, please use method buildNotReadyAddresses instead. - * * @return The buildable object. */ @Deprecated public List getNotReadyAddresses(); - public List buildNotReadyAddresses(); - public V1EndpointAddress buildNotReadyAddress(Integer index); - public V1EndpointAddress buildFirstNotReadyAddress(); - public V1EndpointAddress buildLastNotReadyAddress(); - - public V1EndpointAddress buildMatchingNotReadyAddress( - Predicate predicate); - + public V1EndpointAddress buildMatchingNotReadyAddress(Predicate predicate); public Boolean hasMatchingNotReadyAddress(Predicate predicate); - public A withNotReadyAddresses(List notReadyAddresses); - - public A withNotReadyAddresses( - io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses); - + public A withNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses); public Boolean hasNotReadyAddresses(); - public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddress(); - - public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddressLike( - V1EndpointAddress item); - - public V1EndpointSubsetFluent.NotReadyAddressesNested setNewNotReadyAddressLike( - Integer index, V1EndpointAddress item); - + public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item); + public V1EndpointSubsetFluent.NotReadyAddressesNested setNewNotReadyAddressLike(Integer index,V1EndpointAddress item); public V1EndpointSubsetFluent.NotReadyAddressesNested editNotReadyAddress(Integer index); - public V1EndpointSubsetFluent.NotReadyAddressesNested editFirstNotReadyAddress(); - public V1EndpointSubsetFluent.NotReadyAddressesNested editLastNotReadyAddress(); - - public V1EndpointSubsetFluent.NotReadyAddressesNested editMatchingNotReadyAddress( - Predicate predicate); - - public A addToPorts(Integer index, CoreV1EndpointPort item); - - public A setToPorts(Integer index, CoreV1EndpointPort item); - + public V1EndpointSubsetFluent.NotReadyAddressesNested editMatchingNotReadyAddress(Predicate predicate); + public A addToPorts(Integer index,CoreV1EndpointPort item); + public A setToPorts(Integer index,CoreV1EndpointPort item); public A addToPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public CoreV1EndpointPort buildPort(Integer index); - public CoreV1EndpointPort buildFirstPort(); - public CoreV1EndpointPort buildLastPort(); - public CoreV1EndpointPort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... ports); - public Boolean hasPorts(); - public V1EndpointSubsetFluent.PortsNested addNewPort(); - public V1EndpointSubsetFluent.PortsNested addNewPortLike(CoreV1EndpointPort item); - - public V1EndpointSubsetFluent.PortsNested setNewPortLike( - Integer index, CoreV1EndpointPort item); - + public V1EndpointSubsetFluent.PortsNested setNewPortLike(Integer index,CoreV1EndpointPort item); public V1EndpointSubsetFluent.PortsNested editPort(Integer index); - public V1EndpointSubsetFluent.PortsNested editFirstPort(); - public V1EndpointSubsetFluent.PortsNested editLastPort(); - - public V1EndpointSubsetFluent.PortsNested editMatchingPort( - Predicate predicate); - - public interface AddressesNested - extends Nested, V1EndpointAddressFluent> { + public V1EndpointSubsetFluent.PortsNested editMatchingPort(Predicate predicate); + public interface AddressesNested extends Nested,V1EndpointAddressFluent>{ public N and(); - public N endAddress(); + } - - public interface NotReadyAddressesNested - extends Nested, - V1EndpointAddressFluent> { + public interface NotReadyAddressesNested extends Nested,V1EndpointAddressFluent>{ public N and(); - public N endNotReadyAddress(); + } - - public interface PortsNested - extends Nested, CoreV1EndpointPortFluent> { + public interface PortsNested extends Nested,CoreV1EndpointPortFluent>{ public N and(); - public N endPort(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java index a8bcb476b1..f1bd09e7ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java @@ -1,119 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointSubsetFluentImpl> extends BaseFluent - implements V1EndpointSubsetFluent { - public V1EndpointSubsetFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointSubsetFluentImpl> extends BaseFluent implements V1EndpointSubsetFluent{ + public V1EndpointSubsetFluentImpl() { + } public V1EndpointSubsetFluentImpl(V1EndpointSubset instance) { this.withAddresses(instance.getAddresses()); this.withNotReadyAddresses(instance.getNotReadyAddresses()); this.withPorts(instance.getPorts()); - } + } private ArrayList addresses; private ArrayList notReadyAddresses; private ArrayList ports; - - public A addToAddresses(Integer index, V1EndpointAddress item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables - .get("addresses") - .add(index >= 0 ? index : _visitables.get("addresses").size(), builder); - this.addresses.add(index >= 0 ? index : addresses.size(), builder); - return (A) this; + public A addToAddresses(Integer index,V1EndpointAddress item) { + if (this.addresses == null) {this.addresses = new ArrayList();} + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(index >= 0 ? index : _visitables.get("addresses").size(), builder);this.addresses.add(index >= 0 ? index : addresses.size(), builder); return (A)this; } - - public A setToAddresses(Integer index, V1EndpointAddress item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } + public A setToAddresses(Integer index,V1EndpointAddress item) { + if (this.addresses == null) {this.addresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= _visitables.get("addresses").size()) { - _visitables.get("addresses").add(builder); - } else { - _visitables.get("addresses").set(index, builder); - } - if (index < 0 || index >= addresses.size()) { - addresses.add(builder); - } else { - addresses.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("addresses").size()) { _visitables.get("addresses").add(builder); } else { _visitables.get("addresses").set(index, builder);} + if (index < 0 || index >= addresses.size()) { addresses.add(builder); } else { addresses.set(index, builder);} + return (A)this; } - public A addToAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").add(builder); - this.addresses.add(builder); - } - return (A) this; + if (this.addresses == null) {this.addresses = new ArrayList();} + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; } - public A addAllToAddresses(Collection items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").add(builder); - this.addresses.add(builder); - } - return (A) this; + if (this.addresses == null) {this.addresses = new ArrayList();} + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; } - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").remove(builder); - if (this.addresses != null) { - this.addresses.remove(builder); - } - } - return (A) this; + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").remove(builder);if (this.addresses != null) {this.addresses.remove(builder);}} return (A)this; } - public A removeAllFromAddresses(Collection items) { - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").remove(builder); - if (this.addresses != null) { - this.addresses.remove(builder); - } - } - return (A) this; + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").remove(builder);if (this.addresses != null) {this.addresses.remove(builder);}} return (A)this; } - public A removeMatchingFromAddresses(Predicate predicate) { if (addresses == null) return (A) this; final Iterator each = addresses.iterator(); @@ -125,205 +69,101 @@ public A removeMatchingFromAddresses(Predicate predica each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildAddresses instead. - * * @return The buildable object. */ @Deprecated public List getAddresses() { return addresses != null ? build(addresses) : null; } - public List buildAddresses() { return addresses != null ? build(addresses) : null; } - public V1EndpointAddress buildAddress(Integer index) { return this.addresses.get(index).build(); } - public V1EndpointAddress buildFirstAddress() { return this.addresses.get(0).build(); } - public V1EndpointAddress buildLastAddress() { return this.addresses.get(addresses.size() - 1).build(); } - public V1EndpointAddress buildMatchingAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : addresses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EndpointAddressBuilder item: addresses) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EndpointAddressBuilder item: addresses) { if(predicate.test(item)){ return true;} } return false; } - public A withAddresses(List addresses) { - if (this.addresses != null) { - _visitables.get("addresses").removeAll(this.addresses); - } - if (addresses != null) { - this.addresses = new ArrayList(); - for (V1EndpointAddress item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; - } - return (A) this; + if (this.addresses != null) { _visitables.get("addresses").removeAll(this.addresses);} + if (addresses != null) {this.addresses = new ArrayList(); for (V1EndpointAddress item : addresses){this.addToAddresses(item);}} else { this.addresses = null;} return (A) this; } - public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - } - if (addresses != null) { - for (V1EndpointAddress item : addresses) { - this.addToAddresses(item); - } - } - return (A) this; + if (this.addresses != null) {this.addresses.clear();} + if (addresses != null) {for (V1EndpointAddress item :addresses){ this.addToAddresses(item);}} return (A) this; } - public Boolean hasAddresses() { return addresses != null && !addresses.isEmpty(); } - public V1EndpointSubsetFluent.AddressesNested addNewAddress() { return new V1EndpointSubsetFluentImpl.AddressesNestedImpl(); } - public V1EndpointSubsetFluent.AddressesNested addNewAddressLike(V1EndpointAddress item) { return new V1EndpointSubsetFluentImpl.AddressesNestedImpl(-1, item); } - - public V1EndpointSubsetFluent.AddressesNested setNewAddressLike( - Integer index, V1EndpointAddress item) { + public V1EndpointSubsetFluent.AddressesNested setNewAddressLike(Integer index,V1EndpointAddress item) { return new V1EndpointSubsetFluentImpl.AddressesNestedImpl(index, item); } - public V1EndpointSubsetFluent.AddressesNested editAddress(Integer index) { - if (addresses.size() <= index) - throw new RuntimeException("Can't edit addresses. Index exceeds size."); + if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); return setNewAddressLike(index, buildAddress(index)); } - public V1EndpointSubsetFluent.AddressesNested editFirstAddress() { - if (addresses.size() == 0) - throw new RuntimeException("Can't edit first addresses. The list is empty."); + if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); return setNewAddressLike(0, buildAddress(0)); } - public V1EndpointSubsetFluent.AddressesNested editLastAddress() { int index = addresses.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty."); return setNewAddressLike(index, buildAddress(index)); } - - public V1EndpointSubsetFluent.AddressesNested editMatchingAddress( - Predicate predicate) { + public V1EndpointSubsetFluent.AddressesNested editMatchingAddress(Predicate predicate) { int index = -1; - for (int i = 0; i < addresses.size(); i++) { - if (predicate.test(addresses.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables - .get("notReadyAddresses") - .add(index >= 0 ? index : _visitables.get("notReadyAddresses").size(), builder); - this.notReadyAddresses.add(index >= 0 ? index : notReadyAddresses.size(), builder); - return (A) this; + public A addToNotReadyAddresses(Integer index,V1EndpointAddress item) { + if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(index >= 0 ? index : _visitables.get("notReadyAddresses").size(), builder);this.notReadyAddresses.add(index >= 0 ? index : notReadyAddresses.size(), builder); return (A)this; } - - public A setToNotReadyAddresses(Integer index, V1EndpointAddress item) { - if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); - } + public A setToNotReadyAddresses(Integer index,V1EndpointAddress item) { + if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= _visitables.get("notReadyAddresses").size()) { - _visitables.get("notReadyAddresses").add(builder); - } else { - _visitables.get("notReadyAddresses").set(index, builder); - } - if (index < 0 || index >= notReadyAddresses.size()) { - notReadyAddresses.add(builder); - } else { - notReadyAddresses.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("notReadyAddresses").size()) { _visitables.get("notReadyAddresses").add(builder); } else { _visitables.get("notReadyAddresses").set(index, builder);} + if (index < 0 || index >= notReadyAddresses.size()) { notReadyAddresses.add(builder); } else { notReadyAddresses.set(index, builder);} + return (A)this; } - public A addToNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); - } - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").add(builder); - this.notReadyAddresses.add(builder); - } - return (A) this; + if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(builder);this.notReadyAddresses.add(builder);} return (A)this; } - public A addAllToNotReadyAddresses(Collection items) { - if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); - } - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").add(builder); - this.notReadyAddresses.add(builder); - } - return (A) this; + if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(builder);this.notReadyAddresses.add(builder);} return (A)this; } - - public A removeFromNotReadyAddresses( - io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").remove(builder); - if (this.notReadyAddresses != null) { - this.notReadyAddresses.remove(builder); - } - } - return (A) this; + public A removeFromNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").remove(builder);if (this.notReadyAddresses != null) {this.notReadyAddresses.remove(builder);}} return (A)this; } - public A removeAllFromNotReadyAddresses(Collection items) { - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").remove(builder); - if (this.notReadyAddresses != null) { - this.notReadyAddresses.remove(builder); - } - } - return (A) this; + for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").remove(builder);if (this.notReadyAddresses != null) {this.notReadyAddresses.remove(builder);}} return (A)this; } - public A removeMatchingFromNotReadyAddresses(Predicate predicate) { if (notReadyAddresses == null) return (A) this; final Iterator each = notReadyAddresses.iterator(); @@ -335,207 +175,101 @@ public A removeMatchingFromNotReadyAddresses(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildNotReadyAddresses instead. - * * @return The buildable object. */ @Deprecated public List getNotReadyAddresses() { return notReadyAddresses != null ? build(notReadyAddresses) : null; } - public List buildNotReadyAddresses() { return notReadyAddresses != null ? build(notReadyAddresses) : null; } - public V1EndpointAddress buildNotReadyAddress(Integer index) { return this.notReadyAddresses.get(index).build(); } - public V1EndpointAddress buildFirstNotReadyAddress() { return this.notReadyAddresses.get(0).build(); } - public V1EndpointAddress buildLastNotReadyAddress() { return this.notReadyAddresses.get(notReadyAddresses.size() - 1).build(); } - - public V1EndpointAddress buildMatchingNotReadyAddress( - Predicate predicate) { - for (V1EndpointAddressBuilder item : notReadyAddresses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1EndpointAddress buildMatchingNotReadyAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item: notReadyAddresses) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingNotReadyAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : notReadyAddresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EndpointAddressBuilder item: notReadyAddresses) { if(predicate.test(item)){ return true;} } return false; } - public A withNotReadyAddresses(List notReadyAddresses) { - if (this.notReadyAddresses != null) { - _visitables.get("notReadyAddresses").removeAll(this.notReadyAddresses); - } - if (notReadyAddresses != null) { - this.notReadyAddresses = new ArrayList(); - for (V1EndpointAddress item : notReadyAddresses) { - this.addToNotReadyAddresses(item); - } - } else { - this.notReadyAddresses = null; - } - return (A) this; + if (this.notReadyAddresses != null) { _visitables.get("notReadyAddresses").removeAll(this.notReadyAddresses);} + if (notReadyAddresses != null) {this.notReadyAddresses = new ArrayList(); for (V1EndpointAddress item : notReadyAddresses){this.addToNotReadyAddresses(item);}} else { this.notReadyAddresses = null;} return (A) this; } - - public A withNotReadyAddresses( - io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses) { - if (this.notReadyAddresses != null) { - this.notReadyAddresses.clear(); - } - if (notReadyAddresses != null) { - for (V1EndpointAddress item : notReadyAddresses) { - this.addToNotReadyAddresses(item); - } - } - return (A) this; + public A withNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses) { + if (this.notReadyAddresses != null) {this.notReadyAddresses.clear();} + if (notReadyAddresses != null) {for (V1EndpointAddress item :notReadyAddresses){ this.addToNotReadyAddresses(item);}} return (A) this; } - public Boolean hasNotReadyAddresses() { return notReadyAddresses != null && !notReadyAddresses.isEmpty(); } - public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddress() { return new V1EndpointSubsetFluentImpl.NotReadyAddressesNestedImpl(); } - - public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddressLike( - V1EndpointAddress item) { + public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item) { return new V1EndpointSubsetFluentImpl.NotReadyAddressesNestedImpl(-1, item); } - - public V1EndpointSubsetFluent.NotReadyAddressesNested setNewNotReadyAddressLike( - Integer index, V1EndpointAddress item) { + public V1EndpointSubsetFluent.NotReadyAddressesNested setNewNotReadyAddressLike(Integer index,V1EndpointAddress item) { return new V1EndpointSubsetFluentImpl.NotReadyAddressesNestedImpl(index, item); } - public V1EndpointSubsetFluent.NotReadyAddressesNested editNotReadyAddress(Integer index) { - if (notReadyAddresses.size() <= index) - throw new RuntimeException("Can't edit notReadyAddresses. Index exceeds size."); + if (notReadyAddresses.size() <= index) throw new RuntimeException("Can't edit notReadyAddresses. Index exceeds size."); return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); } - public V1EndpointSubsetFluent.NotReadyAddressesNested editFirstNotReadyAddress() { - if (notReadyAddresses.size() == 0) - throw new RuntimeException("Can't edit first notReadyAddresses. The list is empty."); + if (notReadyAddresses.size() == 0) throw new RuntimeException("Can't edit first notReadyAddresses. The list is empty."); return setNewNotReadyAddressLike(0, buildNotReadyAddress(0)); } - public V1EndpointSubsetFluent.NotReadyAddressesNested editLastNotReadyAddress() { int index = notReadyAddresses.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last notReadyAddresses. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last notReadyAddresses. The list is empty."); return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); } - - public V1EndpointSubsetFluent.NotReadyAddressesNested editMatchingNotReadyAddress( - Predicate predicate) { + public V1EndpointSubsetFluent.NotReadyAddressesNested editMatchingNotReadyAddress(Predicate predicate) { int index = -1; - for (int i = 0; i < notReadyAddresses.size(); i++) { - if (predicate.test(notReadyAddresses.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching notReadyAddresses. No match found."); + for (int i=0;i(); - } - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,CoreV1EndpointPort item) { + if (this.ports == null) {this.ports = new ArrayList();} + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, CoreV1EndpointPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,CoreV1EndpointPort item) { + if (this.ports == null) {this.ports = new ArrayList();} CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -547,234 +281,153 @@ public A removeMatchingFromPorts(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public CoreV1EndpointPort buildPort(Integer index) { return this.ports.get(index).build(); } - public CoreV1EndpointPort buildFirstPort() { return this.ports.get(0).build(); } - public CoreV1EndpointPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public CoreV1EndpointPort buildMatchingPort(Predicate predicate) { - for (CoreV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (CoreV1EndpointPortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (CoreV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (CoreV1EndpointPortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (CoreV1EndpointPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (CoreV1EndpointPort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (CoreV1EndpointPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (CoreV1EndpointPort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1EndpointSubsetFluent.PortsNested addNewPort() { return new V1EndpointSubsetFluentImpl.PortsNestedImpl(); } - public V1EndpointSubsetFluent.PortsNested addNewPortLike(CoreV1EndpointPort item) { return new V1EndpointSubsetFluentImpl.PortsNestedImpl(-1, item); } - - public V1EndpointSubsetFluent.PortsNested setNewPortLike( - Integer index, CoreV1EndpointPort item) { + public V1EndpointSubsetFluent.PortsNested setNewPortLike(Integer index,CoreV1EndpointPort item) { return new V1EndpointSubsetFluentImpl.PortsNestedImpl(index, item); } - public V1EndpointSubsetFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1EndpointSubsetFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1EndpointSubsetFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1EndpointSubsetFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1EndpointSubsetFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1EndpointAddressFluentImpl> - implements V1EndpointSubsetFluent.AddressesNested, Nested { - AddressesNestedImpl(Integer index, V1EndpointAddress item) { + class AddressesNestedImpl extends V1EndpointAddressFluentImpl> implements V1EndpointSubsetFluent.AddressesNested,Nested{ + AddressesNestedImpl(Integer index,V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } - AddressesNestedImpl() { this.index = -1; this.builder = new V1EndpointAddressBuilder(this); } - V1EndpointAddressBuilder builder; Integer index; - public N and() { - return (N) V1EndpointSubsetFluentImpl.this.setToAddresses(index, builder.build()); + return (N) V1EndpointSubsetFluentImpl.this.setToAddresses(index,builder.build()); } - public N endAddress() { return and(); } + } - - class NotReadyAddressesNestedImpl - extends V1EndpointAddressFluentImpl> - implements V1EndpointSubsetFluent.NotReadyAddressesNested, Nested { - NotReadyAddressesNestedImpl(Integer index, V1EndpointAddress item) { + class NotReadyAddressesNestedImpl extends V1EndpointAddressFluentImpl> implements V1EndpointSubsetFluent.NotReadyAddressesNested,Nested{ + NotReadyAddressesNestedImpl(Integer index,V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } - NotReadyAddressesNestedImpl() { this.index = -1; this.builder = new V1EndpointAddressBuilder(this); } - V1EndpointAddressBuilder builder; Integer index; - public N and() { - return (N) V1EndpointSubsetFluentImpl.this.setToNotReadyAddresses(index, builder.build()); + return (N) V1EndpointSubsetFluentImpl.this.setToNotReadyAddresses(index,builder.build()); } - public N endNotReadyAddress() { return and(); } + } - - class PortsNestedImpl - extends CoreV1EndpointPortFluentImpl> - implements V1EndpointSubsetFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, CoreV1EndpointPort item) { + class PortsNestedImpl extends CoreV1EndpointPortFluentImpl> implements V1EndpointSubsetFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,CoreV1EndpointPort item) { this.index = index; this.builder = new CoreV1EndpointPortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new CoreV1EndpointPortBuilder(this); } - CoreV1EndpointPortBuilder builder; Integer index; - public N and() { - return (N) V1EndpointSubsetFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1EndpointSubsetFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java index a92f57a777..b746331919 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EndpointsBuilder extends V1EndpointsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointsBuilder extends V1EndpointsFluentImpl implements VisitableBuilder{ public V1EndpointsBuilder() { this(false); } - public V1EndpointsBuilder(Boolean validationEnabled) { this(new V1Endpoints(), validationEnabled); } - public V1EndpointsBuilder(V1EndpointsFluent fluent) { this(fluent, false); } - - public V1EndpointsBuilder(V1EndpointsFluent fluent, Boolean validationEnabled) { + public V1EndpointsBuilder(V1EndpointsFluent fluent,Boolean validationEnabled) { this(fluent, new V1Endpoints(), validationEnabled); } - - public V1EndpointsBuilder(V1EndpointsFluent fluent, V1Endpoints instance) { + public V1EndpointsBuilder(V1EndpointsFluent fluent,V1Endpoints instance) { this(fluent, instance, false); } - - public V1EndpointsBuilder( - V1EndpointsFluent fluent, V1Endpoints instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointsBuilder(V1EndpointsFluent fluent,V1Endpoints instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1EndpointsBuilder( fluent.withSubsets(instance.getSubsets()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointsBuilder(V1Endpoints instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointsBuilder(V1Endpoints instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointsBuilder(V1Endpoints instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1EndpointsBuilder(V1Endpoints instance, Boolean validationEnabled) { this.withSubsets(instance.getSubsets()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointsFluent fluent; Boolean validationEnabled; - public V1Endpoints build() { V1Endpoints buildable = new V1Endpoints(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1Endpoints build() { buildable.setSubsets(fluent.getSubsets()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java index a2be843598..d4164d3909 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1EndpointsFluent> extends Fluent { + /** + * Generated + */ +public interface V1EndpointsFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1EndpointsFluent.MetadataNested withNewMetadata(); - public V1EndpointsFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1EndpointsFluent.MetadataNested editMetadata(); - public V1EndpointsFluent.MetadataNested editOrNewMetadata(); - public V1EndpointsFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToSubsets(Integer index, V1EndpointSubset item); - - public A setToSubsets(Integer index, V1EndpointSubset item); - + public A addToSubsets(Integer index,V1EndpointSubset item); + public A setToSubsets(Integer index,V1EndpointSubset item); public A addToSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items); - public A addAllToSubsets(Collection items); - public A removeFromSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items); - public A removeAllFromSubsets(Collection items); - public A removeMatchingFromSubsets(Predicate predicate); - + /** * This method has been deprecated, please use method buildSubsets instead. - * * @return The buildable object. */ @Deprecated public List getSubsets(); - public List buildSubsets(); - public V1EndpointSubset buildSubset(Integer index); - public V1EndpointSubset buildFirstSubset(); - public V1EndpointSubset buildLastSubset(); - public V1EndpointSubset buildMatchingSubset(Predicate predicate); - public Boolean hasMatchingSubset(Predicate predicate); - public A withSubsets(List subsets); - public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... subsets); - public Boolean hasSubsets(); - public V1EndpointsFluent.SubsetsNested addNewSubset(); - public V1EndpointsFluent.SubsetsNested addNewSubsetLike(V1EndpointSubset item); - - public V1EndpointsFluent.SubsetsNested setNewSubsetLike(Integer index, V1EndpointSubset item); - + public V1EndpointsFluent.SubsetsNested setNewSubsetLike(Integer index,V1EndpointSubset item); public V1EndpointsFluent.SubsetsNested editSubset(Integer index); - public V1EndpointsFluent.SubsetsNested editFirstSubset(); - public V1EndpointsFluent.SubsetsNested editLastSubset(); - - public V1EndpointsFluent.SubsetsNested editMatchingSubset( - Predicate predicate); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1EndpointsFluent.SubsetsNested editMatchingSubset(Predicate predicate); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SubsetsNested - extends Nested, V1EndpointSubsetFluent> { + public interface SubsetsNested extends Nested,V1EndpointSubsetFluent>{ public N and(); - public N endSubset(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java index c8b8ae7a07..87e89a164b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointsFluentImpl> extends BaseFluent - implements V1EndpointsFluent { - public V1EndpointsFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointsFluentImpl> extends BaseFluent implements V1EndpointsFluent{ + public V1EndpointsFluentImpl() { + } public V1EndpointsFluentImpl(V1Endpoints instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,164 +30,89 @@ public V1EndpointsFluentImpl(V1Endpoints instance) { this.withMetadata(instance.getMetadata()); this.withSubsets(instance.getSubsets()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList subsets; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1EndpointsFluent.MetadataNested withNewMetadata() { return new V1EndpointsFluentImpl.MetadataNestedImpl(); } - public V1EndpointsFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1EndpointsFluentImpl.MetadataNestedImpl(item); } - public V1EndpointsFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1EndpointsFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1EndpointsFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToSubsets(Integer index, V1EndpointSubset item) { - if (this.subsets == null) { - this.subsets = new ArrayList(); - } - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").add(index >= 0 ? index : _visitables.get("subsets").size(), builder); - this.subsets.add(index >= 0 ? index : subsets.size(), builder); - return (A) this; + public A addToSubsets(Integer index,V1EndpointSubset item) { + if (this.subsets == null) {this.subsets = new ArrayList();} + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(index >= 0 ? index : _visitables.get("subsets").size(), builder);this.subsets.add(index >= 0 ? index : subsets.size(), builder); return (A)this; } - - public A setToSubsets(Integer index, V1EndpointSubset item) { - if (this.subsets == null) { - this.subsets = new ArrayList(); - } + public A setToSubsets(Integer index,V1EndpointSubset item) { + if (this.subsets == null) {this.subsets = new ArrayList();} V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= _visitables.get("subsets").size()) { - _visitables.get("subsets").add(builder); - } else { - _visitables.get("subsets").set(index, builder); - } - if (index < 0 || index >= subsets.size()) { - subsets.add(builder); - } else { - subsets.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("subsets").size()) { _visitables.get("subsets").add(builder); } else { _visitables.get("subsets").set(index, builder);} + if (index < 0 || index >= subsets.size()) { subsets.add(builder); } else { subsets.set(index, builder);} + return (A)this; } - public A addToSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { - if (this.subsets == null) { - this.subsets = new ArrayList(); - } - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").add(builder); - this.subsets.add(builder); - } - return (A) this; + if (this.subsets == null) {this.subsets = new ArrayList();} + for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(builder);this.subsets.add(builder);} return (A)this; } - public A addAllToSubsets(Collection items) { - if (this.subsets == null) { - this.subsets = new ArrayList(); - } - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").add(builder); - this.subsets.add(builder); - } - return (A) this; + if (this.subsets == null) {this.subsets = new ArrayList();} + for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(builder);this.subsets.add(builder);} return (A)this; } - public A removeFromSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").remove(builder); - if (this.subsets != null) { - this.subsets.remove(builder); - } - } - return (A) this; + for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").remove(builder);if (this.subsets != null) {this.subsets.remove(builder);}} return (A)this; } - public A removeAllFromSubsets(Collection items) { - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").remove(builder); - if (this.subsets != null) { - this.subsets.remove(builder); - } - } - return (A) this; + for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").remove(builder);if (this.subsets != null) {this.subsets.remove(builder);}} return (A)this; } - public A removeMatchingFromSubsets(Predicate predicate) { if (subsets == null) return (A) this; final Iterator each = subsets.iterator(); @@ -203,208 +124,133 @@ public A removeMatchingFromSubsets(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSubsets instead. - * * @return The buildable object. */ @Deprecated public List getSubsets() { return subsets != null ? build(subsets) : null; } - public List buildSubsets() { return subsets != null ? build(subsets) : null; } - public V1EndpointSubset buildSubset(Integer index) { return this.subsets.get(index).build(); } - public V1EndpointSubset buildFirstSubset() { return this.subsets.get(0).build(); } - public V1EndpointSubset buildLastSubset() { return this.subsets.get(subsets.size() - 1).build(); } - public V1EndpointSubset buildMatchingSubset(Predicate predicate) { - for (V1EndpointSubsetBuilder item : subsets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EndpointSubsetBuilder item: subsets) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSubset(Predicate predicate) { - for (V1EndpointSubsetBuilder item : subsets) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EndpointSubsetBuilder item: subsets) { if(predicate.test(item)){ return true;} } return false; } - public A withSubsets(List subsets) { - if (this.subsets != null) { - _visitables.get("subsets").removeAll(this.subsets); - } - if (subsets != null) { - this.subsets = new ArrayList(); - for (V1EndpointSubset item : subsets) { - this.addToSubsets(item); - } - } else { - this.subsets = null; - } - return (A) this; + if (this.subsets != null) { _visitables.get("subsets").removeAll(this.subsets);} + if (subsets != null) {this.subsets = new ArrayList(); for (V1EndpointSubset item : subsets){this.addToSubsets(item);}} else { this.subsets = null;} return (A) this; } - public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... subsets) { - if (this.subsets != null) { - this.subsets.clear(); - } - if (subsets != null) { - for (V1EndpointSubset item : subsets) { - this.addToSubsets(item); - } - } - return (A) this; + if (this.subsets != null) {this.subsets.clear();} + if (subsets != null) {for (V1EndpointSubset item :subsets){ this.addToSubsets(item);}} return (A) this; } - public Boolean hasSubsets() { return subsets != null && !subsets.isEmpty(); } - public V1EndpointsFluent.SubsetsNested addNewSubset() { return new V1EndpointsFluentImpl.SubsetsNestedImpl(); } - public V1EndpointsFluent.SubsetsNested addNewSubsetLike(V1EndpointSubset item) { return new V1EndpointsFluentImpl.SubsetsNestedImpl(-1, item); } - - public V1EndpointsFluent.SubsetsNested setNewSubsetLike(Integer index, V1EndpointSubset item) { + public V1EndpointsFluent.SubsetsNested setNewSubsetLike(Integer index,V1EndpointSubset item) { return new V1EndpointsFluentImpl.SubsetsNestedImpl(index, item); } - public V1EndpointsFluent.SubsetsNested editSubset(Integer index) { - if (subsets.size() <= index) - throw new RuntimeException("Can't edit subsets. Index exceeds size."); + if (subsets.size() <= index) throw new RuntimeException("Can't edit subsets. Index exceeds size."); return setNewSubsetLike(index, buildSubset(index)); } - public V1EndpointsFluent.SubsetsNested editFirstSubset() { - if (subsets.size() == 0) - throw new RuntimeException("Can't edit first subsets. The list is empty."); + if (subsets.size() == 0) throw new RuntimeException("Can't edit first subsets. The list is empty."); return setNewSubsetLike(0, buildSubset(0)); } - public V1EndpointsFluent.SubsetsNested editLastSubset() { int index = subsets.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last subsets. The list is empty."); return setNewSubsetLike(index, buildSubset(index)); } - - public V1EndpointsFluent.SubsetsNested editMatchingSubset( - Predicate predicate) { + public V1EndpointsFluent.SubsetsNested editMatchingSubset(Predicate predicate) { int index = -1; - for (int i = 0; i < subsets.size(); i++) { - if (predicate.test(subsets.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1ObjectMetaFluentImpl> - implements V1EndpointsFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1EndpointsFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1EndpointsFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SubsetsNestedImpl extends V1EndpointSubsetFluentImpl> - implements V1EndpointsFluent.SubsetsNested, Nested { - SubsetsNestedImpl(Integer index, V1EndpointSubset item) { + class SubsetsNestedImpl extends V1EndpointSubsetFluentImpl> implements V1EndpointsFluent.SubsetsNested,Nested{ + SubsetsNestedImpl(Integer index,V1EndpointSubset item) { this.index = index; this.builder = new V1EndpointSubsetBuilder(this, item); } - SubsetsNestedImpl() { this.index = -1; this.builder = new V1EndpointSubsetBuilder(this); } - V1EndpointSubsetBuilder builder; Integer index; - public N and() { - return (N) V1EndpointsFluentImpl.this.setToSubsets(index, builder.build()); + return (N) V1EndpointsFluentImpl.this.setToSubsets(index,builder.build()); } - public N endSubset() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java index 62222a2d0e..d7ba234e36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EndpointsListBuilder extends V1EndpointsListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EndpointsListBuilder extends V1EndpointsListFluentImpl implements VisitableBuilder{ public V1EndpointsListBuilder() { this(false); } - public V1EndpointsListBuilder(Boolean validationEnabled) { this(new V1EndpointsList(), validationEnabled); } - public V1EndpointsListBuilder(V1EndpointsListFluent fluent) { this(fluent, false); } - - public V1EndpointsListBuilder(V1EndpointsListFluent fluent, Boolean validationEnabled) { + public V1EndpointsListBuilder(V1EndpointsListFluent fluent,Boolean validationEnabled) { this(fluent, new V1EndpointsList(), validationEnabled); } - - public V1EndpointsListBuilder(V1EndpointsListFluent fluent, V1EndpointsList instance) { + public V1EndpointsListBuilder(V1EndpointsListFluent fluent,V1EndpointsList instance) { this(fluent, instance, false); } - - public V1EndpointsListBuilder( - V1EndpointsListFluent fluent, V1EndpointsList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EndpointsListBuilder(V1EndpointsListFluent fluent,V1EndpointsList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1EndpointsListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EndpointsListBuilder(V1EndpointsList instance) { - this(instance, false); + this(instance,false); } - - public V1EndpointsListBuilder(V1EndpointsList instance, Boolean validationEnabled) { - this.fluent = this; + public V1EndpointsListBuilder(V1EndpointsList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1EndpointsListBuilder(V1EndpointsList instance, Boolean validationEnable this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EndpointsListFluent fluent; Boolean validationEnabled; - public V1EndpointsList build() { V1EndpointsList buildable = new V1EndpointsList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1EndpointsList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java index cd0e4439e5..99c8e1e7e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1EndpointsListFluent> extends Fluent { + /** + * Generated + */ +public interface V1EndpointsListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Endpoints item); - - public A setToItems(Integer index, V1Endpoints item); - + public A addToItems(Integer index,V1Endpoints item); + public A setToItems(Integer index,V1Endpoints item); public A addToItems(io.kubernetes.client.openapi.models.V1Endpoints... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Endpoints... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Endpoints buildItem(Integer index); - public V1Endpoints buildFirstItem(); - public V1Endpoints buildLastItem(); - public V1Endpoints buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items); - public Boolean hasItems(); - public V1EndpointsListFluent.ItemsNested addNewItem(); - public V1EndpointsListFluent.ItemsNested addNewItemLike(V1Endpoints item); - - public V1EndpointsListFluent.ItemsNested setNewItemLike(Integer index, V1Endpoints item); - + public V1EndpointsListFluent.ItemsNested setNewItemLike(Integer index,V1Endpoints item); public V1EndpointsListFluent.ItemsNested editItem(Integer index); - public V1EndpointsListFluent.ItemsNested editFirstItem(); - public V1EndpointsListFluent.ItemsNested editLastItem(); - - public V1EndpointsListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1EndpointsListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1EndpointsListFluent.MetadataNested withNewMetadata(); - public V1EndpointsListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1EndpointsListFluent.MetadataNested editMetadata(); - public V1EndpointsListFluent.MetadataNested editOrNewMetadata(); - public V1EndpointsListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1EndpointsFluent> { + public interface ItemsNested extends Nested,V1EndpointsFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java index 85254d5939..67c2a98ada 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EndpointsListFluentImpl> extends BaseFluent - implements V1EndpointsListFluent { - public V1EndpointsListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EndpointsListFluentImpl> extends BaseFluent implements V1EndpointsListFluent{ + public V1EndpointsListFluentImpl() { + } public V1EndpointsListFluentImpl(V1EndpointsList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1EndpointsListFluentImpl(V1EndpointsList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Endpoints item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Endpoints item) { + if (this.items == null) {this.items = new ArrayList();} + V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Endpoints item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Endpoints item) { + if (this.items == null) {this.items = new ArrayList();} V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Endpoints buildItem(Integer index) { return this.items.get(index).build(); } - public V1Endpoints buildFirstItem() { return this.items.get(0).build(); } - public V1Endpoints buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Endpoints buildMatchingItem(Predicate predicate) { - for (V1EndpointsBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EndpointsBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1EndpointsBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EndpointsBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Endpoints item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Endpoints item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Endpoints item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Endpoints item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1EndpointsListFluent.ItemsNested addNewItem() { return new V1EndpointsListFluentImpl.ItemsNestedImpl(); } - public V1EndpointsListFluent.ItemsNested addNewItemLike(V1Endpoints item) { return new V1EndpointsListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1EndpointsListFluent.ItemsNested setNewItemLike(Integer index, V1Endpoints item) { + public V1EndpointsListFluent.ItemsNested setNewItemLike(Integer index,V1Endpoints item) { return new V1EndpointsListFluentImpl.ItemsNestedImpl(index, item); } - public V1EndpointsListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1EndpointsListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1EndpointsListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1EndpointsListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1EndpointsListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1EndpointsListFluentImpl.MetadataNestedImpl(); } - public V1EndpointsListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1EndpointsListFluentImpl.MetadataNestedImpl(item); } - public V1EndpointsListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1EndpointsListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1EndpointsListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EndpointsListFluentImpl that = (V1EndpointsListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1EndpointsFluentImpl> - implements V1EndpointsListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Endpoints item) { + class ItemsNestedImpl extends V1EndpointsFluentImpl> implements V1EndpointsListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Endpoints item) { this.index = index; this.builder = new V1EndpointsBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1EndpointsBuilder(this); } - V1EndpointsBuilder builder; Integer index; - public N and() { - return (N) V1EndpointsListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1EndpointsListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1EndpointsListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1EndpointsListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1EndpointsListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java index 02513a6e38..a24c1c6bf4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluentImpl implements VisitableBuilder{ public V1EnvFromSourceBuilder() { this(false); } - public V1EnvFromSourceBuilder(Boolean validationEnabled) { this(new V1EnvFromSource(), validationEnabled); } - public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent) { this(fluent, false); } - - public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent, Boolean validationEnabled) { + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1EnvFromSource(), validationEnabled); } - - public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent, V1EnvFromSource instance) { + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance) { this(fluent, instance, false); } - - public V1EnvFromSourceBuilder( - V1EnvFromSourceFluent fluent, V1EnvFromSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConfigMapRef(instance.getConfigMapRef()); fluent.withPrefix(instance.getPrefix()); fluent.withSecretRef(instance.getSecretRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EnvFromSourceBuilder(V1EnvFromSource instance) { - this(instance, false); + this(instance,false); } - - public V1EnvFromSourceBuilder(V1EnvFromSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1EnvFromSourceBuilder(V1EnvFromSource instance,Boolean validationEnabled) { + this.fluent = this; this.withConfigMapRef(instance.getConfigMapRef()); this.withPrefix(instance.getPrefix()); this.withSecretRef(instance.getSecretRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EnvFromSourceFluent fluent; Boolean validationEnabled; - public V1EnvFromSource build() { V1EnvFromSource buildable = new V1EnvFromSource(); buildable.setConfigMapRef(fluent.getConfigMapRef()); @@ -73,4 +50,5 @@ public V1EnvFromSource build() { buildable.setSecretRef(fluent.getSecretRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java index 1ae97d22fc..135591b48d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java @@ -1,90 +1,57 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1EnvFromSourceFluent> extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1EnvFromSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildConfigMapRef instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapEnvSource getConfigMapRef(); - public V1ConfigMapEnvSource buildConfigMapRef(); - public A withConfigMapRef(V1ConfigMapEnvSource configMapRef); - public Boolean hasConfigMapRef(); - public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRef(); - - public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRefLike( - V1ConfigMapEnvSource item); - + public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item); public V1EnvFromSourceFluent.ConfigMapRefNested editConfigMapRef(); - public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRef(); - - public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRefLike( - V1ConfigMapEnvSource item); - + public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRefLike(V1ConfigMapEnvSource item); public String getPrefix(); - public A withPrefix(String prefix); - public Boolean hasPrefix(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretEnvSource getSecretRef(); - public V1SecretEnvSource buildSecretRef(); - public A withSecretRef(V1SecretEnvSource secretRef); - public Boolean hasSecretRef(); - public V1EnvFromSourceFluent.SecretRefNested withNewSecretRef(); - public V1EnvFromSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretEnvSource item); - public V1EnvFromSourceFluent.SecretRefNested editSecretRef(); - public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRef(); - public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item); - - public interface ConfigMapRefNested - extends Nested, V1ConfigMapEnvSourceFluent> { + public interface ConfigMapRefNested extends Nested,V1ConfigMapEnvSourceFluent>{ public N and(); - public N endConfigMapRef(); + } - - public interface SecretRefNested - extends Nested, V1SecretEnvSourceFluent> { + public interface SecretRefNested extends Nested,V1SecretEnvSourceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java index 210d896ecf..66882c945d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java @@ -1,231 +1,160 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EnvFromSourceFluentImpl> extends BaseFluent - implements V1EnvFromSourceFluent { - public V1EnvFromSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EnvFromSourceFluentImpl> extends BaseFluent implements V1EnvFromSourceFluent{ + public V1EnvFromSourceFluentImpl() { + } public V1EnvFromSourceFluentImpl(V1EnvFromSource instance) { this.withConfigMapRef(instance.getConfigMapRef()); this.withPrefix(instance.getPrefix()); this.withSecretRef(instance.getSecretRef()); - } + } private V1ConfigMapEnvSourceBuilder configMapRef; private String prefix; private V1SecretEnvSourceBuilder secretRef; - + /** * This method has been deprecated, please use method buildConfigMapRef instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapEnvSource getConfigMapRef() { - return this.configMapRef != null ? this.configMapRef.build() : null; + return this.configMapRef!=null ?this.configMapRef.build():null; } - public V1ConfigMapEnvSource buildConfigMapRef() { - return this.configMapRef != null ? this.configMapRef.build() : null; + return this.configMapRef!=null ?this.configMapRef.build():null; } - public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { _visitables.get("configMapRef").remove(this.configMapRef); - if (configMapRef != null) { - this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); - _visitables.get("configMapRef").add(this.configMapRef); - } else { - this.configMapRef = null; - _visitables.get("configMapRef").remove(this.configMapRef); - } - return (A) this; + if (configMapRef!=null){ this.configMapRef= new V1ConfigMapEnvSourceBuilder(configMapRef); _visitables.get("configMapRef").add(this.configMapRef);} else { this.configMapRef = null; _visitables.get("configMapRef").remove(this.configMapRef); } return (A) this; } - public Boolean hasConfigMapRef() { return this.configMapRef != null; } - public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRef() { return new V1EnvFromSourceFluentImpl.ConfigMapRefNestedImpl(); } - - public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRefLike( - V1ConfigMapEnvSource item) { + public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) { return new V1EnvFromSourceFluentImpl.ConfigMapRefNestedImpl(item); } - public V1EnvFromSourceFluent.ConfigMapRefNested editConfigMapRef() { return withNewConfigMapRefLike(getConfigMapRef()); } - public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRef() { - return withNewConfigMapRefLike( - getConfigMapRef() != null ? getConfigMapRef() : new V1ConfigMapEnvSourceBuilder().build()); + return withNewConfigMapRefLike(getConfigMapRef() != null ? getConfigMapRef(): new V1ConfigMapEnvSourceBuilder().build()); } - - public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRefLike( - V1ConfigMapEnvSource item) { - return withNewConfigMapRefLike(getConfigMapRef() != null ? getConfigMapRef() : item); + public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRefLike(V1ConfigMapEnvSource item) { + return withNewConfigMapRefLike(getConfigMapRef() != null ? getConfigMapRef(): item); } - public String getPrefix() { return this.prefix; } - public A withPrefix(String prefix) { - this.prefix = prefix; - return (A) this; + this.prefix=prefix; return (A) this; } - public Boolean hasPrefix() { return this.prefix != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretEnvSource getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretEnvSource buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretEnvSource secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretEnvSourceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretEnvSourceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1EnvFromSourceFluent.SecretRefNested withNewSecretRef() { return new V1EnvFromSourceFluentImpl.SecretRefNestedImpl(); } - public V1EnvFromSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { return new V1EnvFromSourceFluentImpl.SecretRefNestedImpl(item); } - public V1EnvFromSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretEnvSourceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretEnvSourceBuilder().build()); } - public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EnvFromSourceFluentImpl that = (V1EnvFromSourceFluentImpl) o; - if (configMapRef != null ? !configMapRef.equals(that.configMapRef) : that.configMapRef != null) - return false; - if (prefix != null ? !prefix.equals(that.prefix) : that.prefix != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; + if (configMapRef != null ? !configMapRef.equals(that.configMapRef) :that.configMapRef != null) return false; + if (prefix != null ? !prefix.equals(that.prefix) :that.prefix != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(configMapRef, prefix, secretRef, super.hashCode()); + return java.util.Objects.hash(configMapRef, prefix, secretRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMapRef != null) { - sb.append("configMapRef:"); - sb.append(configMapRef + ","); - } - if (prefix != null) { - sb.append("prefix:"); - sb.append(prefix + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef); - } + if (configMapRef != null) { sb.append("configMapRef:"); sb.append(configMapRef + ","); } + if (prefix != null) { sb.append("prefix:"); sb.append(prefix + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } sb.append("}"); return sb.toString(); } - - class ConfigMapRefNestedImpl - extends V1ConfigMapEnvSourceFluentImpl> - implements V1EnvFromSourceFluent.ConfigMapRefNested, Nested { + class ConfigMapRefNestedImpl extends V1ConfigMapEnvSourceFluentImpl> implements V1EnvFromSourceFluent.ConfigMapRefNested,Nested{ ConfigMapRefNestedImpl(V1ConfigMapEnvSource item) { this.builder = new V1ConfigMapEnvSourceBuilder(this, item); } - ConfigMapRefNestedImpl() { this.builder = new V1ConfigMapEnvSourceBuilder(this); } - V1ConfigMapEnvSourceBuilder builder; - public N and() { return (N) V1EnvFromSourceFluentImpl.this.withConfigMapRef(builder.build()); } - public N endConfigMapRef() { return and(); } + } - - class SecretRefNestedImpl - extends V1SecretEnvSourceFluentImpl> - implements V1EnvFromSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretEnvSourceFluentImpl> implements V1EnvFromSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretEnvSource item) { this.builder = new V1SecretEnvSourceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretEnvSourceBuilder(this); } - V1SecretEnvSourceBuilder builder; - public N and() { return (N) V1EnvFromSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java index 11d1d715e6..bd37cd0c85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java @@ -1,70 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1EnvVarBuilder extends V1EnvVarFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EnvVarBuilder extends V1EnvVarFluentImpl implements VisitableBuilder{ public V1EnvVarBuilder() { this(false); } - public V1EnvVarBuilder(Boolean validationEnabled) { this(new V1EnvVar(), validationEnabled); } - public V1EnvVarBuilder(V1EnvVarFluent fluent) { this(fluent, false); } - - public V1EnvVarBuilder(V1EnvVarFluent fluent, Boolean validationEnabled) { + public V1EnvVarBuilder(V1EnvVarFluent fluent,Boolean validationEnabled) { this(fluent, new V1EnvVar(), validationEnabled); } - - public V1EnvVarBuilder(V1EnvVarFluent fluent, V1EnvVar instance) { + public V1EnvVarBuilder(V1EnvVarFluent fluent,V1EnvVar instance) { this(fluent, instance, false); } - - public V1EnvVarBuilder(V1EnvVarFluent fluent, V1EnvVar instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EnvVarBuilder(V1EnvVarFluent fluent,V1EnvVar instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withValue(instance.getValue()); fluent.withValueFrom(instance.getValueFrom()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EnvVarBuilder(V1EnvVar instance) { - this(instance, false); + this(instance,false); } - - public V1EnvVarBuilder(V1EnvVar instance, Boolean validationEnabled) { - this.fluent = this; + public V1EnvVarBuilder(V1EnvVar instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withValue(instance.getValue()); this.withValueFrom(instance.getValueFrom()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EnvVarFluent fluent; Boolean validationEnabled; - public V1EnvVar build() { V1EnvVar buildable = new V1EnvVar(); buildable.setName(fluent.getName()); @@ -72,4 +50,5 @@ public V1EnvVar build() { buildable.setValueFrom(fluent.getValueFrom()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java index 0c41da0712..075a70f4d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java @@ -1,62 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1EnvVarFluent> extends Fluent { + /** + * Generated + */ +public interface V1EnvVarFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getValue(); - public A withValue(String value); - public Boolean hasValue(); - + /** * This method has been deprecated, please use method buildValueFrom instead. - * * @return The buildable object. */ @Deprecated public V1EnvVarSource getValueFrom(); - public V1EnvVarSource buildValueFrom(); - public A withValueFrom(V1EnvVarSource valueFrom); - public Boolean hasValueFrom(); - public V1EnvVarFluent.ValueFromNested withNewValueFrom(); - public V1EnvVarFluent.ValueFromNested withNewValueFromLike(V1EnvVarSource item); - public V1EnvVarFluent.ValueFromNested editValueFrom(); - public V1EnvVarFluent.ValueFromNested editOrNewValueFrom(); - public V1EnvVarFluent.ValueFromNested editOrNewValueFromLike(V1EnvVarSource item); - - public interface ValueFromNested - extends Nested, V1EnvVarSourceFluent> { + public interface ValueFromNested extends Nested,V1EnvVarSourceFluent>{ public N and(); - public N endValueFrom(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java index c43416a11c..83dbc2ca91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java @@ -1,167 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EnvVarFluentImpl> extends BaseFluent - implements V1EnvVarFluent { - public V1EnvVarFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EnvVarFluentImpl> extends BaseFluent implements V1EnvVarFluent{ + public V1EnvVarFluentImpl() { + } public V1EnvVarFluentImpl(V1EnvVar instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); this.withValueFrom(instance.getValueFrom()); - } + } private String name; private String value; private V1EnvVarSourceBuilder valueFrom; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - + /** * This method has been deprecated, please use method buildValueFrom instead. - * * @return The buildable object. */ @Deprecated public V1EnvVarSource getValueFrom() { - return this.valueFrom != null ? this.valueFrom.build() : null; + return this.valueFrom!=null ?this.valueFrom.build():null; } - public V1EnvVarSource buildValueFrom() { - return this.valueFrom != null ? this.valueFrom.build() : null; + return this.valueFrom!=null ?this.valueFrom.build():null; } - public A withValueFrom(V1EnvVarSource valueFrom) { _visitables.get("valueFrom").remove(this.valueFrom); - if (valueFrom != null) { - this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); - _visitables.get("valueFrom").add(this.valueFrom); - } else { - this.valueFrom = null; - _visitables.get("valueFrom").remove(this.valueFrom); - } - return (A) this; + if (valueFrom!=null){ this.valueFrom= new V1EnvVarSourceBuilder(valueFrom); _visitables.get("valueFrom").add(this.valueFrom);} else { this.valueFrom = null; _visitables.get("valueFrom").remove(this.valueFrom); } return (A) this; } - public Boolean hasValueFrom() { return this.valueFrom != null; } - public V1EnvVarFluent.ValueFromNested withNewValueFrom() { return new V1EnvVarFluentImpl.ValueFromNestedImpl(); } - public V1EnvVarFluent.ValueFromNested withNewValueFromLike(V1EnvVarSource item) { return new V1EnvVarFluentImpl.ValueFromNestedImpl(item); } - public V1EnvVarFluent.ValueFromNested editValueFrom() { return withNewValueFromLike(getValueFrom()); } - public V1EnvVarFluent.ValueFromNested editOrNewValueFrom() { - return withNewValueFromLike( - getValueFrom() != null ? getValueFrom() : new V1EnvVarSourceBuilder().build()); + return withNewValueFromLike(getValueFrom() != null ? getValueFrom(): new V1EnvVarSourceBuilder().build()); } - public V1EnvVarFluent.ValueFromNested editOrNewValueFromLike(V1EnvVarSource item) { - return withNewValueFromLike(getValueFrom() != null ? getValueFrom() : item); + return withNewValueFromLike(getValueFrom() != null ? getValueFrom(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EnvVarFluentImpl that = (V1EnvVarFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; - if (valueFrom != null ? !valueFrom.equals(that.valueFrom) : that.valueFrom != null) - return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; + if (valueFrom != null ? !valueFrom.equals(that.valueFrom) :that.valueFrom != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, value, valueFrom, super.hashCode()); + return java.util.Objects.hash(name, value, valueFrom, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value + ","); - } - if (valueFrom != null) { - sb.append("valueFrom:"); - sb.append(valueFrom); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (value != null) { sb.append("value:"); sb.append(value + ","); } + if (valueFrom != null) { sb.append("valueFrom:"); sb.append(valueFrom); } sb.append("}"); return sb.toString(); } - - class ValueFromNestedImpl extends V1EnvVarSourceFluentImpl> - implements V1EnvVarFluent.ValueFromNested, Nested { + class ValueFromNestedImpl extends V1EnvVarSourceFluentImpl> implements V1EnvVarFluent.ValueFromNested,Nested{ ValueFromNestedImpl(V1EnvVarSource item) { this.builder = new V1EnvVarSourceBuilder(this, item); } - ValueFromNestedImpl() { this.builder = new V1EnvVarSourceBuilder(this); } - V1EnvVarSourceBuilder builder; - public N and() { return (N) V1EnvVarFluentImpl.this.withValueFrom(builder.build()); } - public N endValueFrom() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java index 4eeec3d5eb..751db449d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluentImpl implements VisitableBuilder{ public V1EnvVarSourceBuilder() { this(false); } - public V1EnvVarSourceBuilder(Boolean validationEnabled) { this(new V1EnvVarSource(), validationEnabled); } - public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent) { this(fluent, false); } - - public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent, Boolean validationEnabled) { + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1EnvVarSource(), validationEnabled); } - - public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent, V1EnvVarSource instance) { + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,V1EnvVarSource instance) { this(fluent, instance, false); } - - public V1EnvVarSourceBuilder( - V1EnvVarSourceFluent fluent, V1EnvVarSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,V1EnvVarSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConfigMapKeyRef(instance.getConfigMapKeyRef()); fluent.withFieldRef(instance.getFieldRef()); @@ -47,15 +28,13 @@ public V1EnvVarSourceBuilder( fluent.withSecretKeyRef(instance.getSecretKeyRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EnvVarSourceBuilder(V1EnvVarSource instance) { - this(instance, false); + this(instance,false); } - - public V1EnvVarSourceBuilder(V1EnvVarSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1EnvVarSourceBuilder(V1EnvVarSource instance,Boolean validationEnabled) { + this.fluent = this; this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); this.withFieldRef(instance.getFieldRef()); @@ -64,12 +43,10 @@ public V1EnvVarSourceBuilder(V1EnvVarSource instance, Boolean validationEnabled) this.withSecretKeyRef(instance.getSecretKeyRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EnvVarSourceFluent fluent; Boolean validationEnabled; - public V1EnvVarSource build() { V1EnvVarSource buildable = new V1EnvVarSource(); buildable.setConfigMapKeyRef(fluent.getConfigMapKeyRef()); @@ -78,4 +55,5 @@ public V1EnvVarSource build() { buildable.setSecretKeyRef(fluent.getSecretKeyRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java index 88060fbd3e..24b2dd5b4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java @@ -1,152 +1,93 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1EnvVarSourceFluent> extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1EnvVarSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildConfigMapKeyRef instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapKeySelector getConfigMapKeyRef(); - public V1ConfigMapKeySelector buildConfigMapKeyRef(); - public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef); - public Boolean hasConfigMapKeyRef(); - public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRef(); - - public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRefLike( - V1ConfigMapKeySelector item); - + public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item); public V1EnvVarSourceFluent.ConfigMapKeyRefNested editConfigMapKeyRef(); - public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRef(); - - public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike( - V1ConfigMapKeySelector item); - + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike(V1ConfigMapKeySelector item); + /** * This method has been deprecated, please use method buildFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectFieldSelector getFieldRef(); - public V1ObjectFieldSelector buildFieldRef(); - public A withFieldRef(V1ObjectFieldSelector fieldRef); - public Boolean hasFieldRef(); - public V1EnvVarSourceFluent.FieldRefNested withNewFieldRef(); - public V1EnvVarSourceFluent.FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item); - public V1EnvVarSourceFluent.FieldRefNested editFieldRef(); - public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRef(); - public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item); - + /** * This method has been deprecated, please use method buildResourceFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ResourceFieldSelector getResourceFieldRef(); - public V1ResourceFieldSelector buildResourceFieldRef(); - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef); - public Boolean hasResourceFieldRef(); - public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRef(); - - public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRefLike( - V1ResourceFieldSelector item); - + public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item); public V1EnvVarSourceFluent.ResourceFieldRefNested editResourceFieldRef(); - public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRef(); - - public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( - V1ResourceFieldSelector item); - + public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item); + /** * This method has been deprecated, please use method buildSecretKeyRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretKeySelector getSecretKeyRef(); - public V1SecretKeySelector buildSecretKeyRef(); - public A withSecretKeyRef(V1SecretKeySelector secretKeyRef); - public Boolean hasSecretKeyRef(); - public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRef(); - - public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRefLike( - V1SecretKeySelector item); - + public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item); public V1EnvVarSourceFluent.SecretKeyRefNested editSecretKeyRef(); - public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRef(); - - public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRefLike( - V1SecretKeySelector item); - - public interface ConfigMapKeyRefNested - extends Nested, - V1ConfigMapKeySelectorFluent> { + public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item); + public interface ConfigMapKeyRefNested extends Nested,V1ConfigMapKeySelectorFluent>{ public N and(); - public N endConfigMapKeyRef(); + } - - public interface FieldRefNested - extends Nested, V1ObjectFieldSelectorFluent> { + public interface FieldRefNested extends Nested,V1ObjectFieldSelectorFluent>{ public N and(); - public N endFieldRef(); + } - - public interface ResourceFieldRefNested - extends Nested, - V1ResourceFieldSelectorFluent> { + public interface ResourceFieldRefNested extends Nested,V1ResourceFieldSelectorFluent>{ public N and(); - public N endResourceFieldRef(); + } - - public interface SecretKeyRefNested - extends Nested, V1SecretKeySelectorFluent> { + public interface SecretKeyRefNested extends Nested,V1SecretKeySelectorFluent>{ public N and(); - public N endSecretKeyRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java index de3d9c1124..a833c61f94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EnvVarSourceFluentImpl> extends BaseFluent - implements V1EnvVarSourceFluent { - public V1EnvVarSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EnvVarSourceFluentImpl> extends BaseFluent implements V1EnvVarSourceFluent{ + public V1EnvVarSourceFluentImpl() { + } public V1EnvVarSourceFluentImpl(V1EnvVarSource instance) { this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); @@ -29,357 +23,234 @@ public V1EnvVarSourceFluentImpl(V1EnvVarSource instance) { this.withResourceFieldRef(instance.getResourceFieldRef()); this.withSecretKeyRef(instance.getSecretKeyRef()); - } + } private V1ConfigMapKeySelectorBuilder configMapKeyRef; private V1ObjectFieldSelectorBuilder fieldRef; private V1ResourceFieldSelectorBuilder resourceFieldRef; private V1SecretKeySelectorBuilder secretKeyRef; - + /** * This method has been deprecated, please use method buildConfigMapKeyRef instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapKeySelector getConfigMapKeyRef() { - return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; + return this.configMapKeyRef!=null ?this.configMapKeyRef.build():null; } - public V1ConfigMapKeySelector buildConfigMapKeyRef() { - return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; + return this.configMapKeyRef!=null ?this.configMapKeyRef.build():null; } - public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { _visitables.get("configMapKeyRef").remove(this.configMapKeyRef); - if (configMapKeyRef != null) { - this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); - _visitables.get("configMapKeyRef").add(this.configMapKeyRef); - } else { - this.configMapKeyRef = null; - _visitables.get("configMapKeyRef").remove(this.configMapKeyRef); - } - return (A) this; + if (configMapKeyRef!=null){ this.configMapKeyRef= new V1ConfigMapKeySelectorBuilder(configMapKeyRef); _visitables.get("configMapKeyRef").add(this.configMapKeyRef);} else { this.configMapKeyRef = null; _visitables.get("configMapKeyRef").remove(this.configMapKeyRef); } return (A) this; } - public Boolean hasConfigMapKeyRef() { return this.configMapKeyRef != null; } - public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRef() { return new V1EnvVarSourceFluentImpl.ConfigMapKeyRefNestedImpl(); } - - public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRefLike( - V1ConfigMapKeySelector item) { + public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { return new V1EnvVarSourceFluentImpl.ConfigMapKeyRefNestedImpl(item); } - public V1EnvVarSourceFluent.ConfigMapKeyRefNested editConfigMapKeyRef() { return withNewConfigMapKeyRefLike(getConfigMapKeyRef()); } - public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRef() { - return withNewConfigMapKeyRefLike( - getConfigMapKeyRef() != null - ? getConfigMapKeyRef() - : new V1ConfigMapKeySelectorBuilder().build()); + return withNewConfigMapKeyRefLike(getConfigMapKeyRef() != null ? getConfigMapKeyRef(): new V1ConfigMapKeySelectorBuilder().build()); } - - public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike( - V1ConfigMapKeySelector item) { - return withNewConfigMapKeyRefLike(getConfigMapKeyRef() != null ? getConfigMapKeyRef() : item); + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { + return withNewConfigMapKeyRefLike(getConfigMapKeyRef() != null ? getConfigMapKeyRef(): item); } - + /** * This method has been deprecated, please use method buildFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectFieldSelector getFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; + return this.fieldRef!=null ?this.fieldRef.build():null; } - public V1ObjectFieldSelector buildFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; + return this.fieldRef!=null ?this.fieldRef.build():null; } - public A withFieldRef(V1ObjectFieldSelector fieldRef) { _visitables.get("fieldRef").remove(this.fieldRef); - if (fieldRef != null) { - this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); - _visitables.get("fieldRef").add(this.fieldRef); - } else { - this.fieldRef = null; - _visitables.get("fieldRef").remove(this.fieldRef); - } - return (A) this; + if (fieldRef!=null){ this.fieldRef= new V1ObjectFieldSelectorBuilder(fieldRef); _visitables.get("fieldRef").add(this.fieldRef);} else { this.fieldRef = null; _visitables.get("fieldRef").remove(this.fieldRef); } return (A) this; } - public Boolean hasFieldRef() { return this.fieldRef != null; } - public V1EnvVarSourceFluent.FieldRefNested withNewFieldRef() { return new V1EnvVarSourceFluentImpl.FieldRefNestedImpl(); } - public V1EnvVarSourceFluent.FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { return new V1EnvVarSourceFluentImpl.FieldRefNestedImpl(item); } - public V1EnvVarSourceFluent.FieldRefNested editFieldRef() { return withNewFieldRefLike(getFieldRef()); } - public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRef() { - return withNewFieldRefLike( - getFieldRef() != null ? getFieldRef() : new V1ObjectFieldSelectorBuilder().build()); + return withNewFieldRefLike(getFieldRef() != null ? getFieldRef(): new V1ObjectFieldSelectorBuilder().build()); } - public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { - return withNewFieldRefLike(getFieldRef() != null ? getFieldRef() : item); + return withNewFieldRefLike(getFieldRef() != null ? getFieldRef(): item); } - + /** * This method has been deprecated, please use method buildResourceFieldRef instead. - * * @return The buildable object. */ @Deprecated public V1ResourceFieldSelector getResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + return this.resourceFieldRef!=null ?this.resourceFieldRef.build():null; } - public V1ResourceFieldSelector buildResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + return this.resourceFieldRef!=null ?this.resourceFieldRef.build():null; } - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); - if (resourceFieldRef != null) { - this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); - _visitables.get("resourceFieldRef").add(this.resourceFieldRef); - } else { - this.resourceFieldRef = null; - _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); - } - return (A) this; + if (resourceFieldRef!=null){ this.resourceFieldRef= new V1ResourceFieldSelectorBuilder(resourceFieldRef); _visitables.get("resourceFieldRef").add(this.resourceFieldRef);} else { this.resourceFieldRef = null; _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); } return (A) this; } - public Boolean hasResourceFieldRef() { return this.resourceFieldRef != null; } - public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRef() { return new V1EnvVarSourceFluentImpl.ResourceFieldRefNestedImpl(); } - - public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRefLike( - V1ResourceFieldSelector item) { + public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { return new V1EnvVarSourceFluentImpl.ResourceFieldRefNestedImpl(item); } - public V1EnvVarSourceFluent.ResourceFieldRefNested editResourceFieldRef() { return withNewResourceFieldRefLike(getResourceFieldRef()); } - public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRef() { - return withNewResourceFieldRefLike( - getResourceFieldRef() != null - ? getResourceFieldRef() - : new V1ResourceFieldSelectorBuilder().build()); + return withNewResourceFieldRefLike(getResourceFieldRef() != null ? getResourceFieldRef(): new V1ResourceFieldSelectorBuilder().build()); } - - public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( - V1ResourceFieldSelector item) { - return withNewResourceFieldRefLike( - getResourceFieldRef() != null ? getResourceFieldRef() : item); + public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return withNewResourceFieldRefLike(getResourceFieldRef() != null ? getResourceFieldRef(): item); } - + /** * This method has been deprecated, please use method buildSecretKeyRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretKeySelector getSecretKeyRef() { - return this.secretKeyRef != null ? this.secretKeyRef.build() : null; + return this.secretKeyRef!=null ?this.secretKeyRef.build():null; } - public V1SecretKeySelector buildSecretKeyRef() { - return this.secretKeyRef != null ? this.secretKeyRef.build() : null; + return this.secretKeyRef!=null ?this.secretKeyRef.build():null; } - public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { _visitables.get("secretKeyRef").remove(this.secretKeyRef); - if (secretKeyRef != null) { - this.secretKeyRef = new V1SecretKeySelectorBuilder(secretKeyRef); - _visitables.get("secretKeyRef").add(this.secretKeyRef); - } else { - this.secretKeyRef = null; - _visitables.get("secretKeyRef").remove(this.secretKeyRef); - } - return (A) this; + if (secretKeyRef!=null){ this.secretKeyRef= new V1SecretKeySelectorBuilder(secretKeyRef); _visitables.get("secretKeyRef").add(this.secretKeyRef);} else { this.secretKeyRef = null; _visitables.get("secretKeyRef").remove(this.secretKeyRef); } return (A) this; } - public Boolean hasSecretKeyRef() { return this.secretKeyRef != null; } - public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRef() { return new V1EnvVarSourceFluentImpl.SecretKeyRefNestedImpl(); } - - public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRefLike( - V1SecretKeySelector item) { + public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { return new V1EnvVarSourceFluentImpl.SecretKeyRefNestedImpl(item); } - public V1EnvVarSourceFluent.SecretKeyRefNested editSecretKeyRef() { return withNewSecretKeyRefLike(getSecretKeyRef()); } - public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRef() { - return withNewSecretKeyRefLike( - getSecretKeyRef() != null ? getSecretKeyRef() : new V1SecretKeySelectorBuilder().build()); + return withNewSecretKeyRefLike(getSecretKeyRef() != null ? getSecretKeyRef(): new V1SecretKeySelectorBuilder().build()); } - - public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRefLike( - V1SecretKeySelector item) { - return withNewSecretKeyRefLike(getSecretKeyRef() != null ? getSecretKeyRef() : item); + public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item) { + return withNewSecretKeyRefLike(getSecretKeyRef() != null ? getSecretKeyRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EnvVarSourceFluentImpl that = (V1EnvVarSourceFluentImpl) o; - if (configMapKeyRef != null - ? !configMapKeyRef.equals(that.configMapKeyRef) - : that.configMapKeyRef != null) return false; - if (fieldRef != null ? !fieldRef.equals(that.fieldRef) : that.fieldRef != null) return false; - if (resourceFieldRef != null - ? !resourceFieldRef.equals(that.resourceFieldRef) - : that.resourceFieldRef != null) return false; - if (secretKeyRef != null ? !secretKeyRef.equals(that.secretKeyRef) : that.secretKeyRef != null) - return false; + if (configMapKeyRef != null ? !configMapKeyRef.equals(that.configMapKeyRef) :that.configMapKeyRef != null) return false; + if (fieldRef != null ? !fieldRef.equals(that.fieldRef) :that.fieldRef != null) return false; + if (resourceFieldRef != null ? !resourceFieldRef.equals(that.resourceFieldRef) :that.resourceFieldRef != null) return false; + if (secretKeyRef != null ? !secretKeyRef.equals(that.secretKeyRef) :that.secretKeyRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef, super.hashCode()); + return java.util.Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMapKeyRef != null) { - sb.append("configMapKeyRef:"); - sb.append(configMapKeyRef + ","); - } - if (fieldRef != null) { - sb.append("fieldRef:"); - sb.append(fieldRef + ","); - } - if (resourceFieldRef != null) { - sb.append("resourceFieldRef:"); - sb.append(resourceFieldRef + ","); - } - if (secretKeyRef != null) { - sb.append("secretKeyRef:"); - sb.append(secretKeyRef); - } + if (configMapKeyRef != null) { sb.append("configMapKeyRef:"); sb.append(configMapKeyRef + ","); } + if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } + if (resourceFieldRef != null) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef + ","); } + if (secretKeyRef != null) { sb.append("secretKeyRef:"); sb.append(secretKeyRef); } sb.append("}"); return sb.toString(); } - - class ConfigMapKeyRefNestedImpl - extends V1ConfigMapKeySelectorFluentImpl> - implements V1EnvVarSourceFluent.ConfigMapKeyRefNested, Nested { + class ConfigMapKeyRefNestedImpl extends V1ConfigMapKeySelectorFluentImpl> implements V1EnvVarSourceFluent.ConfigMapKeyRefNested,Nested{ ConfigMapKeyRefNestedImpl(V1ConfigMapKeySelector item) { this.builder = new V1ConfigMapKeySelectorBuilder(this, item); } - ConfigMapKeyRefNestedImpl() { this.builder = new V1ConfigMapKeySelectorBuilder(this); } - V1ConfigMapKeySelectorBuilder builder; - public N and() { return (N) V1EnvVarSourceFluentImpl.this.withConfigMapKeyRef(builder.build()); } - public N endConfigMapKeyRef() { return and(); } + } - - class FieldRefNestedImpl - extends V1ObjectFieldSelectorFluentImpl> - implements V1EnvVarSourceFluent.FieldRefNested, Nested { + class FieldRefNestedImpl extends V1ObjectFieldSelectorFluentImpl> implements V1EnvVarSourceFluent.FieldRefNested,Nested{ FieldRefNestedImpl(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } - FieldRefNestedImpl() { this.builder = new V1ObjectFieldSelectorBuilder(this); } - V1ObjectFieldSelectorBuilder builder; - public N and() { return (N) V1EnvVarSourceFluentImpl.this.withFieldRef(builder.build()); } - public N endFieldRef() { return and(); } + } - - class ResourceFieldRefNestedImpl - extends V1ResourceFieldSelectorFluentImpl> - implements V1EnvVarSourceFluent.ResourceFieldRefNested, Nested { + class ResourceFieldRefNestedImpl extends V1ResourceFieldSelectorFluentImpl> implements V1EnvVarSourceFluent.ResourceFieldRefNested,Nested{ ResourceFieldRefNestedImpl(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } - ResourceFieldRefNestedImpl() { this.builder = new V1ResourceFieldSelectorBuilder(this); } - V1ResourceFieldSelectorBuilder builder; - public N and() { return (N) V1EnvVarSourceFluentImpl.this.withResourceFieldRef(builder.build()); } - public N endResourceFieldRef() { return and(); } + } - - class SecretKeyRefNestedImpl - extends V1SecretKeySelectorFluentImpl> - implements V1EnvVarSourceFluent.SecretKeyRefNested, Nested { + class SecretKeyRefNestedImpl extends V1SecretKeySelectorFluentImpl> implements V1EnvVarSourceFluent.SecretKeyRefNested,Nested{ SecretKeyRefNestedImpl(V1SecretKeySelector item) { this.builder = new V1SecretKeySelectorBuilder(this, item); } - SecretKeyRefNestedImpl() { this.builder = new V1SecretKeySelectorBuilder(this); } - V1SecretKeySelectorBuilder builder; - public N and() { return (N) V1EnvVarSourceFluentImpl.this.withSecretKeyRef(builder.build()); } - public N endSecretKeyRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java index 40563f9a2d..c23b5847f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EphemeralContainerBuilder - extends V1EphemeralContainerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EphemeralContainerBuilder extends V1EphemeralContainerFluentImpl implements VisitableBuilder{ public V1EphemeralContainerBuilder() { this(false); } - public V1EphemeralContainerBuilder(Boolean validationEnabled) { this(new V1EphemeralContainer(), validationEnabled); } - public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent) { this(fluent, false); } - - public V1EphemeralContainerBuilder( - V1EphemeralContainerFluent fluent, Boolean validationEnabled) { + public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,Boolean validationEnabled) { this(fluent, new V1EphemeralContainer(), validationEnabled); } - - public V1EphemeralContainerBuilder( - V1EphemeralContainerFluent fluent, V1EphemeralContainer instance) { + public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,V1EphemeralContainer instance) { this(fluent, instance, false); } - - public V1EphemeralContainerBuilder( - V1EphemeralContainerFluent fluent, - V1EphemeralContainer instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,V1EphemeralContainer instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withArgs(instance.getArgs()); fluent.withCommand(instance.getCommand()); @@ -90,15 +66,13 @@ public V1EphemeralContainerBuilder( fluent.withWorkingDir(instance.getWorkingDir()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EphemeralContainerBuilder(V1EphemeralContainer instance) { - this(instance, false); + this(instance,false); } - - public V1EphemeralContainerBuilder(V1EphemeralContainer instance, Boolean validationEnabled) { - this.fluent = this; + public V1EphemeralContainerBuilder(V1EphemeralContainer instance,Boolean validationEnabled) { + this.fluent = this; this.withArgs(instance.getArgs()); this.withCommand(instance.getCommand()); @@ -145,12 +119,10 @@ public V1EphemeralContainerBuilder(V1EphemeralContainer instance, Boolean valida this.withWorkingDir(instance.getWorkingDir()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EphemeralContainerFluent fluent; Boolean validationEnabled; - public V1EphemeralContainer build() { V1EphemeralContainer buildable = new V1EphemeralContainer(); buildable.setArgs(fluent.getArgs()); @@ -178,4 +150,5 @@ public V1EphemeralContainer build() { buildable.setWorkingDir(fluent.getWorkingDir()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java index f548382cbf..2cc33c2362 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java @@ -1,657 +1,379 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; +import java.util.ArrayList; +import java.lang.String; import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Integer; +import java.util.Collection; -/** Generated */ -public interface V1EphemeralContainerFluent> - extends Fluent { - public A addToArgs(Integer index, String item); - - public A setToArgs(Integer index, String item); - + /** + * Generated + */ +public interface V1EphemeralContainerFluent> extends Fluent{ + public A addToArgs(Integer index,String item); + public A setToArgs(Integer index,String item); public A addToArgs(java.lang.String... items); - public A addAllToArgs(Collection items); - public A removeFromArgs(java.lang.String... items); - public A removeAllFromArgs(Collection items); - public List getArgs(); - public String getArg(Integer index); - public String getFirstArg(); - public String getLastArg(); - public String getMatchingArg(Predicate predicate); - public Boolean hasMatchingArg(Predicate predicate); - public A withArgs(List args); - public A withArgs(java.lang.String... args); - public Boolean hasArgs(); - - public A addToCommand(Integer index, String item); - - public A setToCommand(Integer index, String item); - + public A addToCommand(Integer index,String item); + public A setToCommand(Integer index,String item); public A addToCommand(java.lang.String... items); - public A addAllToCommand(Collection items); - public A removeFromCommand(java.lang.String... items); - public A removeAllFromCommand(Collection items); - public List getCommand(); - public String getCommand(Integer index); - public String getFirstCommand(); - public String getLastCommand(); - public String getMatchingCommand(Predicate predicate); - public Boolean hasMatchingCommand(Predicate predicate); - public A withCommand(List command); - public A withCommand(java.lang.String... command); - public Boolean hasCommand(); - - public A addToEnv(Integer index, V1EnvVar item); - - public A setToEnv(Integer index, V1EnvVar item); - + public A addToEnv(Integer index,V1EnvVar item); + public A setToEnv(Integer index,V1EnvVar item); public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A addAllToEnv(Collection items); - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A removeAllFromEnv(Collection items); - public A removeMatchingFromEnv(Predicate predicate); - + /** * This method has been deprecated, please use method buildEnv instead. - * * @return The buildable object. */ @Deprecated public List getEnv(); - public List buildEnv(); - public V1EnvVar buildEnv(Integer index); - public V1EnvVar buildFirstEnv(); - public V1EnvVar buildLastEnv(); - public V1EnvVar buildMatchingEnv(Predicate predicate); - public Boolean hasMatchingEnv(Predicate predicate); - public A withEnv(List env); - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env); - public Boolean hasEnv(); - public V1EphemeralContainerFluent.EnvNested addNewEnv(); - public V1EphemeralContainerFluent.EnvNested addNewEnvLike(V1EnvVar item); - - public V1EphemeralContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item); - + public V1EphemeralContainerFluent.EnvNested setNewEnvLike(Integer index,V1EnvVar item); public V1EphemeralContainerFluent.EnvNested editEnv(Integer index); - public V1EphemeralContainerFluent.EnvNested editFirstEnv(); - public V1EphemeralContainerFluent.EnvNested editLastEnv(); - - public V1EphemeralContainerFluent.EnvNested editMatchingEnv( - Predicate predicate); - - public A addToEnvFrom(Integer index, V1EnvFromSource item); - - public A setToEnvFrom(Integer index, V1EnvFromSource item); - + public V1EphemeralContainerFluent.EnvNested editMatchingEnv(Predicate predicate); + public A addToEnvFrom(Integer index,V1EnvFromSource item); + public A setToEnvFrom(Integer index,V1EnvFromSource item); public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A addAllToEnvFrom(Collection items); - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A removeAllFromEnvFrom(Collection items); - public A removeMatchingFromEnvFrom(Predicate predicate); - + /** * This method has been deprecated, please use method buildEnvFrom instead. - * * @return The buildable object. */ @Deprecated public List getEnvFrom(); - public List buildEnvFrom(); - public V1EnvFromSource buildEnvFrom(Integer index); - public V1EnvFromSource buildFirstEnvFrom(); - public V1EnvFromSource buildLastEnvFrom(); - public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate); - public Boolean hasMatchingEnvFrom(Predicate predicate); - public A withEnvFrom(List envFrom); - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom); - public Boolean hasEnvFrom(); - public V1EphemeralContainerFluent.EnvFromNested addNewEnvFrom(); - public V1EphemeralContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item); - - public V1EphemeralContainerFluent.EnvFromNested setNewEnvFromLike( - Integer index, V1EnvFromSource item); - + public V1EphemeralContainerFluent.EnvFromNested setNewEnvFromLike(Integer index,V1EnvFromSource item); public V1EphemeralContainerFluent.EnvFromNested editEnvFrom(Integer index); - public V1EphemeralContainerFluent.EnvFromNested editFirstEnvFrom(); - public V1EphemeralContainerFluent.EnvFromNested editLastEnvFrom(); - - public V1EphemeralContainerFluent.EnvFromNested editMatchingEnvFrom( - Predicate predicate); - + public V1EphemeralContainerFluent.EnvFromNested editMatchingEnvFrom(Predicate predicate); public String getImage(); - public A withImage(String image); - public Boolean hasImage(); - public String getImagePullPolicy(); - public A withImagePullPolicy(String imagePullPolicy); - public Boolean hasImagePullPolicy(); - + /** * This method has been deprecated, please use method buildLifecycle instead. - * * @return The buildable object. */ @Deprecated public V1Lifecycle getLifecycle(); - public V1Lifecycle buildLifecycle(); - public A withLifecycle(V1Lifecycle lifecycle); - public Boolean hasLifecycle(); - public V1EphemeralContainerFluent.LifecycleNested withNewLifecycle(); - public V1EphemeralContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item); - public V1EphemeralContainerFluent.LifecycleNested editLifecycle(); - public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycle(); - public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item); - + /** * This method has been deprecated, please use method buildLivenessProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getLivenessProbe(); - public V1Probe buildLivenessProbe(); - public A withLivenessProbe(V1Probe livenessProbe); - public Boolean hasLivenessProbe(); - public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbe(); - public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item); - public V1EphemeralContainerFluent.LivenessProbeNested editLivenessProbe(); - public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbe(); - public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item); - public String getName(); - public A withName(String name); - public Boolean hasName(); - - public A addToPorts(Integer index, V1ContainerPort item); - - public A setToPorts(Integer index, V1ContainerPort item); - + public A addToPorts(Integer index,V1ContainerPort item); + public A setToPorts(Integer index,V1ContainerPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public V1ContainerPort buildPort(Integer index); - public V1ContainerPort buildFirstPort(); - public V1ContainerPort buildLastPort(); - public V1ContainerPort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports); - public Boolean hasPorts(); - public V1EphemeralContainerFluent.PortsNested addNewPort(); - public V1EphemeralContainerFluent.PortsNested addNewPortLike(V1ContainerPort item); - - public V1EphemeralContainerFluent.PortsNested setNewPortLike( - Integer index, V1ContainerPort item); - + public V1EphemeralContainerFluent.PortsNested setNewPortLike(Integer index,V1ContainerPort item); public V1EphemeralContainerFluent.PortsNested editPort(Integer index); - public V1EphemeralContainerFluent.PortsNested editFirstPort(); - public V1EphemeralContainerFluent.PortsNested editLastPort(); - - public V1EphemeralContainerFluent.PortsNested editMatchingPort( - Predicate predicate); - + public V1EphemeralContainerFluent.PortsNested editMatchingPort(Predicate predicate); + /** * This method has been deprecated, please use method buildReadinessProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getReadinessProbe(); - public V1Probe buildReadinessProbe(); - public A withReadinessProbe(V1Probe readinessProbe); - public Boolean hasReadinessProbe(); - public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbe(); - public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item); - public V1EphemeralContainerFluent.ReadinessProbeNested editReadinessProbe(); - public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbe(); - - public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike( - V1Probe item); - + public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item); + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public V1ResourceRequirements getResources(); - public V1ResourceRequirements buildResources(); - public A withResources(V1ResourceRequirements resources); - public Boolean hasResources(); - public V1EphemeralContainerFluent.ResourcesNested withNewResources(); - - public V1EphemeralContainerFluent.ResourcesNested withNewResourcesLike( - V1ResourceRequirements item); - + public V1EphemeralContainerFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item); public V1EphemeralContainerFluent.ResourcesNested editResources(); - public V1EphemeralContainerFluent.ResourcesNested editOrNewResources(); - - public V1EphemeralContainerFluent.ResourcesNested editOrNewResourcesLike( - V1ResourceRequirements item); - + public V1EphemeralContainerFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item); + /** * This method has been deprecated, please use method buildSecurityContext instead. - * * @return The buildable object. */ @Deprecated public V1SecurityContext getSecurityContext(); - public V1SecurityContext buildSecurityContext(); - public A withSecurityContext(V1SecurityContext securityContext); - public Boolean hasSecurityContext(); - public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContext(); - - public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContextLike( - V1SecurityContext item); - + public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContextLike(V1SecurityContext item); public V1EphemeralContainerFluent.SecurityContextNested editSecurityContext(); - public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContext(); - - public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContextLike( - V1SecurityContext item); - + public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item); + /** * This method has been deprecated, please use method buildStartupProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getStartupProbe(); - public V1Probe buildStartupProbe(); - public A withStartupProbe(V1Probe startupProbe); - public Boolean hasStartupProbe(); - public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbe(); - public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item); - public V1EphemeralContainerFluent.StartupProbeNested editStartupProbe(); - public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbe(); - public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item); - public Boolean getStdin(); - public A withStdin(Boolean stdin); - public Boolean hasStdin(); - public Boolean getStdinOnce(); - public A withStdinOnce(Boolean stdinOnce); - public Boolean hasStdinOnce(); - public String getTargetContainerName(); - public A withTargetContainerName(String targetContainerName); - public Boolean hasTargetContainerName(); - public String getTerminationMessagePath(); - public A withTerminationMessagePath(String terminationMessagePath); - public Boolean hasTerminationMessagePath(); - public String getTerminationMessagePolicy(); - public A withTerminationMessagePolicy(String terminationMessagePolicy); - public Boolean hasTerminationMessagePolicy(); - public Boolean getTty(); - public A withTty(Boolean tty); - public Boolean hasTty(); - - public A addToVolumeDevices(Integer index, V1VolumeDevice item); - - public A setToVolumeDevices(Integer index, V1VolumeDevice item); - + public A addToVolumeDevices(Integer index,V1VolumeDevice item); + public A setToVolumeDevices(Integer index,V1VolumeDevice item); public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A addAllToVolumeDevices(Collection items); - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A removeAllFromVolumeDevices(Collection items); - public A removeMatchingFromVolumeDevices(Predicate predicate); - + /** * This method has been deprecated, please use method buildVolumeDevices instead. - * * @return The buildable object. */ @Deprecated public List getVolumeDevices(); - public List buildVolumeDevices(); - public V1VolumeDevice buildVolumeDevice(Integer index); - public V1VolumeDevice buildFirstVolumeDevice(); - public V1VolumeDevice buildLastVolumeDevice(); - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate); - public Boolean hasMatchingVolumeDevice(Predicate predicate); - public A withVolumeDevices(List volumeDevices); - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices); - public Boolean hasVolumeDevices(); - public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDevice(); - - public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike( - V1VolumeDevice item); - - public V1EphemeralContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( - Integer index, V1VolumeDevice item); - + public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item); + public V1EphemeralContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike(Integer index,V1VolumeDevice item); public V1EphemeralContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index); - public V1EphemeralContainerFluent.VolumeDevicesNested editFirstVolumeDevice(); - public V1EphemeralContainerFluent.VolumeDevicesNested editLastVolumeDevice(); - - public V1EphemeralContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( - Predicate predicate); - - public A addToVolumeMounts(Integer index, V1VolumeMount item); - - public A setToVolumeMounts(Integer index, V1VolumeMount item); - + public V1EphemeralContainerFluent.VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate); + public A addToVolumeMounts(Integer index,V1VolumeMount item); + public A setToVolumeMounts(Integer index,V1VolumeMount item); public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A addAllToVolumeMounts(Collection items); - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A removeAllFromVolumeMounts(Collection items); - public A removeMatchingFromVolumeMounts(Predicate predicate); - + /** * This method has been deprecated, please use method buildVolumeMounts instead. - * * @return The buildable object. */ @Deprecated public List getVolumeMounts(); - public List buildVolumeMounts(); - public V1VolumeMount buildVolumeMount(Integer index); - public V1VolumeMount buildFirstVolumeMount(); - public V1VolumeMount buildLastVolumeMount(); - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate); - public Boolean hasMatchingVolumeMount(Predicate predicate); - public A withVolumeMounts(List volumeMounts); - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts); - public Boolean hasVolumeMounts(); - public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMount(); - public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item); - - public V1EphemeralContainerFluent.VolumeMountsNested setNewVolumeMountLike( - Integer index, V1VolumeMount item); - + public V1EphemeralContainerFluent.VolumeMountsNested setNewVolumeMountLike(Integer index,V1VolumeMount item); public V1EphemeralContainerFluent.VolumeMountsNested editVolumeMount(Integer index); - public V1EphemeralContainerFluent.VolumeMountsNested editFirstVolumeMount(); - public V1EphemeralContainerFluent.VolumeMountsNested editLastVolumeMount(); - - public V1EphemeralContainerFluent.VolumeMountsNested editMatchingVolumeMount( - Predicate predicate); - + public V1EphemeralContainerFluent.VolumeMountsNested editMatchingVolumeMount(Predicate predicate); public String getWorkingDir(); - public A withWorkingDir(String workingDir); - public Boolean hasWorkingDir(); - public A withStdin(); - public A withStdinOnce(); - public A withTty(); - - public interface EnvNested - extends Nested, V1EnvVarFluent> { + public interface EnvNested extends Nested,V1EnvVarFluent>{ public N and(); - public N endEnv(); + } - - public interface EnvFromNested - extends Nested, V1EnvFromSourceFluent> { + public interface EnvFromNested extends Nested,V1EnvFromSourceFluent>{ public N and(); - public N endEnvFrom(); + } - - public interface LifecycleNested - extends Nested, V1LifecycleFluent> { + public interface LifecycleNested extends Nested,V1LifecycleFluent>{ public N and(); - public N endLifecycle(); + } - - public interface LivenessProbeNested - extends Nested, V1ProbeFluent> { + public interface LivenessProbeNested extends Nested,V1ProbeFluent>{ public N and(); - public N endLivenessProbe(); + } - - public interface PortsNested - extends Nested, V1ContainerPortFluent> { + public interface PortsNested extends Nested,V1ContainerPortFluent>{ public N and(); - public N endPort(); + } - - public interface ReadinessProbeNested - extends Nested, V1ProbeFluent> { + public interface ReadinessProbeNested extends Nested,V1ProbeFluent>{ public N and(); - public N endReadinessProbe(); + } - - public interface ResourcesNested - extends Nested, - V1ResourceRequirementsFluent> { + public interface ResourcesNested extends Nested,V1ResourceRequirementsFluent>{ public N and(); - public N endResources(); + } - - public interface SecurityContextNested - extends Nested, - V1SecurityContextFluent> { + public interface SecurityContextNested extends Nested,V1SecurityContextFluent>{ public N and(); - public N endSecurityContext(); + } - - public interface StartupProbeNested - extends Nested, V1ProbeFluent> { + public interface StartupProbeNested extends Nested,V1ProbeFluent>{ public N and(); - public N endStartupProbe(); + } - - public interface VolumeDevicesNested - extends Nested, V1VolumeDeviceFluent> { + public interface VolumeDevicesNested extends Nested,V1VolumeDeviceFluent>{ public N and(); - public N endVolumeDevice(); + } - - public interface VolumeMountsNested - extends Nested, V1VolumeMountFluent> { + public interface VolumeMountsNested extends Nested,V1VolumeMountFluent>{ public N and(); - public N endVolumeMount(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java index 0ec632bdc9..5b8f55ad30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java @@ -1,31 +1,27 @@ -/* -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 io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.List; +import java.lang.Boolean; import java.util.Collection; +import java.lang.Object; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EphemeralContainerFluentImpl> - extends BaseFluent implements V1EphemeralContainerFluent { - public V1EphemeralContainerFluentImpl() {} +import java.lang.Integer; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EphemeralContainerFluentImpl> extends BaseFluent implements V1EphemeralContainerFluent{ + public V1EphemeralContainerFluentImpl() { + } public V1EphemeralContainerFluentImpl(V1EphemeralContainer instance) { this.withArgs(instance.getArgs()); @@ -72,8 +68,8 @@ public V1EphemeralContainerFluentImpl(V1EphemeralContainer instance) { this.withVolumeMounts(instance.getVolumeMounts()); this.withWorkingDir(instance.getWorkingDir()); - } + } private List args; private List command; private ArrayList env; @@ -97,313 +93,133 @@ public V1EphemeralContainerFluentImpl(V1EphemeralContainer instance) { private ArrayList volumeDevices; private ArrayList volumeMounts; private String workingDir; - - public A addToArgs(Integer index, String item) { - if (this.args == null) { - this.args = new ArrayList(); - } + public A addToArgs(Integer index,String item) { + if (this.args == null) {this.args = new ArrayList();} this.args.add(index, item); - return (A) this; + return (A)this; } - - public A setToArgs(Integer index, String item) { - if (this.args == null) { - this.args = new ArrayList(); - } - this.args.set(index, item); - return (A) this; + public A setToArgs(Integer index,String item) { + if (this.args == null) {this.args = new ArrayList();} + this.args.set(index, item); return (A)this; } - public A addToArgs(java.lang.String... items) { - if (this.args == null) { - this.args = new ArrayList(); - } - for (String item : items) { - this.args.add(item); - } - return (A) this; + if (this.args == null) {this.args = new ArrayList();} + for (String item : items) {this.args.add(item);} return (A)this; } - public A addAllToArgs(Collection items) { - if (this.args == null) { - this.args = new ArrayList(); - } - for (String item : items) { - this.args.add(item); - } - return (A) this; + if (this.args == null) {this.args = new ArrayList();} + for (String item : items) {this.args.add(item);} return (A)this; } - public A removeFromArgs(java.lang.String... items) { - for (String item : items) { - if (this.args != null) { - this.args.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.args!= null){ this.args.remove(item);}} return (A)this; } - public A removeAllFromArgs(Collection items) { - for (String item : items) { - if (this.args != null) { - this.args.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.args!= null){ this.args.remove(item);}} return (A)this; } - public List getArgs() { return this.args; } - public String getArg(Integer index) { return this.args.get(index); } - public String getFirstArg() { return this.args.get(0); } - public String getLastArg() { return this.args.get(args.size() - 1); } - public String getMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: args) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: args) { if(predicate.test(item)){ return true;} } return false; } - public A withArgs(List args) { - if (args != null) { - this.args = new ArrayList(); - for (String item : args) { - this.addToArgs(item); - } - } else { - this.args = null; - } - return (A) this; + if (args != null) {this.args = new ArrayList(); for (String item : args){this.addToArgs(item);}} else { this.args = null;} return (A) this; } - public A withArgs(java.lang.String... args) { - if (this.args != null) { - this.args.clear(); - } - if (args != null) { - for (String item : args) { - this.addToArgs(item); - } - } - return (A) this; + if (this.args != null) {this.args.clear();} + if (args != null) {for (String item :args){ this.addToArgs(item);}} return (A) this; } - public Boolean hasArgs() { return args != null && !args.isEmpty(); } - - public A addToCommand(Integer index, String item) { - if (this.command == null) { - this.command = new ArrayList(); - } + public A addToCommand(Integer index,String item) { + if (this.command == null) {this.command = new ArrayList();} this.command.add(index, item); - return (A) this; + return (A)this; } - - public A setToCommand(Integer index, String item) { - if (this.command == null) { - this.command = new ArrayList(); - } - this.command.set(index, item); - return (A) this; + public A setToCommand(Integer index,String item) { + if (this.command == null) {this.command = new ArrayList();} + this.command.set(index, item); return (A)this; } - public A addToCommand(java.lang.String... items) { - if (this.command == null) { - this.command = new ArrayList(); - } - for (String item : items) { - this.command.add(item); - } - return (A) this; + if (this.command == null) {this.command = new ArrayList();} + for (String item : items) {this.command.add(item);} return (A)this; } - public A addAllToCommand(Collection items) { - if (this.command == null) { - this.command = new ArrayList(); - } - for (String item : items) { - this.command.add(item); - } - return (A) this; + if (this.command == null) {this.command = new ArrayList();} + for (String item : items) {this.command.add(item);} return (A)this; } - public A removeFromCommand(java.lang.String... items) { - for (String item : items) { - if (this.command != null) { - this.command.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.command!= null){ this.command.remove(item);}} return (A)this; } - public A removeAllFromCommand(Collection items) { - for (String item : items) { - if (this.command != null) { - this.command.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.command!= null){ this.command.remove(item);}} return (A)this; } - public List getCommand() { return this.command; } - public String getCommand(Integer index) { return this.command.get(index); } - public String getFirstCommand() { return this.command.get(0); } - public String getLastCommand() { return this.command.get(command.size() - 1); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: command) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: command) { if(predicate.test(item)){ return true;} } return false; } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; - } - return (A) this; + if (command != null) {this.command = new ArrayList(); for (String item : command){this.addToCommand(item);}} else { this.command = null;} return (A) this; } - public A withCommand(java.lang.String... command) { - if (this.command != null) { - this.command.clear(); - } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } - } - return (A) this; + if (this.command != null) {this.command.clear();} + if (command != null) {for (String item :command){ this.addToCommand(item);}} return (A) this; } - public Boolean hasCommand() { return command != null && !command.isEmpty(); } - - public A addToEnv(Integer index, V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); - } - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(index >= 0 ? index : _visitables.get("env").size(), builder); - this.env.add(index >= 0 ? index : env.size(), builder); - return (A) this; + public A addToEnv(Integer index,V1EnvVar item) { + if (this.env == null) {this.env = new ArrayList();} + V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(index >= 0 ? index : _visitables.get("env").size(), builder);this.env.add(index >= 0 ? index : env.size(), builder); return (A)this; } - - public A setToEnv(Integer index, V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); - } + public A setToEnv(Integer index,V1EnvVar item) { + if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= _visitables.get("env").size()) { - _visitables.get("env").add(builder); - } else { - _visitables.get("env").set(index, builder); - } - if (index < 0 || index >= env.size()) { - env.add(builder); - } else { - env.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("env").size()) { _visitables.get("env").add(builder); } else { _visitables.get("env").set(index, builder);} + if (index < 0 || index >= env.size()) { env.add(builder); } else { env.set(index, builder);} + return (A)this; } - public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) { - this.env = new ArrayList(); - } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); - this.env.add(builder); - } - return (A) this; + if (this.env == null) {this.env = new ArrayList();} + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; } - public A addAllToEnv(Collection items) { - if (this.env == null) { - this.env = new ArrayList(); - } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); - this.env.add(builder); - } - return (A) this; + if (this.env == null) {this.env = new ArrayList();} + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; } - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - if (this.env != null) { - this.env.remove(builder); - } - } - return (A) this; + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder);if (this.env != null) {this.env.remove(builder);}} return (A)this; } - public A removeAllFromEnv(Collection items) { - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - if (this.env != null) { - this.env.remove(builder); - } - } - return (A) this; + for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder);if (this.env != null) {this.env.remove(builder);}} return (A)this; } - public A removeMatchingFromEnv(Predicate predicate) { if (env == null) return (A) this; final Iterator each = env.iterator(); @@ -415,199 +231,101 @@ public A removeMatchingFromEnv(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEnv instead. - * * @return The buildable object. */ @Deprecated public List getEnv() { return env != null ? build(env) : null; } - public List buildEnv() { return env != null ? build(env) : null; } - public V1EnvVar buildEnv(Integer index) { return this.env.get(index).build(); } - public V1EnvVar buildFirstEnv() { return this.env.get(0).build(); } - public V1EnvVar buildLastEnv() { return this.env.get(env.size() - 1).build(); } - public V1EnvVar buildMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EnvVarBuilder item: env) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EnvVarBuilder item: env) { if(predicate.test(item)){ return true;} } return false; } - public A withEnv(List env) { - if (this.env != null) { - _visitables.get("env").removeAll(this.env); - } - if (env != null) { - this.env = new ArrayList(); - for (V1EnvVar item : env) { - this.addToEnv(item); - } - } else { - this.env = null; - } - return (A) this; + if (this.env != null) { _visitables.get("env").removeAll(this.env);} + if (env != null) {this.env = new ArrayList(); for (V1EnvVar item : env){this.addToEnv(item);}} else { this.env = null;} return (A) this; } - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { - if (this.env != null) { - this.env.clear(); - } - if (env != null) { - for (V1EnvVar item : env) { - this.addToEnv(item); - } - } - return (A) this; + if (this.env != null) {this.env.clear();} + if (env != null) {for (V1EnvVar item :env){ this.addToEnv(item);}} return (A) this; } - public Boolean hasEnv() { return env != null && !env.isEmpty(); } - public V1EphemeralContainerFluent.EnvNested addNewEnv() { return new V1EphemeralContainerFluentImpl.EnvNestedImpl(); } - public V1EphemeralContainerFluent.EnvNested addNewEnvLike(V1EnvVar item) { return new V1EphemeralContainerFluentImpl.EnvNestedImpl(-1, item); } - - public V1EphemeralContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item) { + public V1EphemeralContainerFluent.EnvNested setNewEnvLike(Integer index,V1EnvVar item) { return new V1EphemeralContainerFluentImpl.EnvNestedImpl(index, item); } - public V1EphemeralContainerFluent.EnvNested editEnv(Integer index) { if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); return setNewEnvLike(index, buildEnv(index)); } - public V1EphemeralContainerFluent.EnvNested editFirstEnv() { if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); return setNewEnvLike(0, buildEnv(0)); } - public V1EphemeralContainerFluent.EnvNested editLastEnv() { int index = env.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty."); return setNewEnvLike(index, buildEnv(index)); } - - public V1EphemeralContainerFluent.EnvNested editMatchingEnv( - Predicate predicate) { + public V1EphemeralContainerFluent.EnvNested editMatchingEnv(Predicate predicate) { int index = -1; - for (int i = 0; i < env.size(); i++) { - if (predicate.test(env.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(index >= 0 ? index : _visitables.get("envFrom").size(), builder); - this.envFrom.add(index >= 0 ? index : envFrom.size(), builder); - return (A) this; + public A addToEnvFrom(Integer index,V1EnvFromSource item) { + if (this.envFrom == null) {this.envFrom = new ArrayList();} + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(index >= 0 ? index : _visitables.get("envFrom").size(), builder);this.envFrom.add(index >= 0 ? index : envFrom.size(), builder); return (A)this; } - - public A setToEnvFrom(Integer index, V1EnvFromSource item) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); - } + public A setToEnvFrom(Integer index,V1EnvFromSource item) { + if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= _visitables.get("envFrom").size()) { - _visitables.get("envFrom").add(builder); - } else { - _visitables.get("envFrom").set(index, builder); - } - if (index < 0 || index >= envFrom.size()) { - envFrom.add(builder); - } else { - envFrom.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("envFrom").size()) { _visitables.get("envFrom").add(builder); } else { _visitables.get("envFrom").set(index, builder);} + if (index < 0 || index >= envFrom.size()) { envFrom.add(builder); } else { envFrom.set(index, builder);} + return (A)this; } - public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); - } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); - } - return (A) this; + if (this.envFrom == null) {this.envFrom = new ArrayList();} + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; } - public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); - } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); - } - return (A) this; + if (this.envFrom == null) {this.envFrom = new ArrayList();} + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; } - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - if (this.envFrom != null) { - this.envFrom.remove(builder); - } - } - return (A) this; + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder);if (this.envFrom != null) {this.envFrom.remove(builder);}} return (A)this; } - public A removeAllFromEnvFrom(Collection items) { - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - if (this.envFrom != null) { - this.envFrom.remove(builder); - } - } - return (A) this; + for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder);if (this.envFrom != null) {this.envFrom.remove(builder);}} return (A)this; } - public A removeMatchingFromEnvFrom(Predicate predicate) { if (envFrom == null) return (A) this; final Iterator each = envFrom.iterator(); @@ -619,344 +337,196 @@ public A removeMatchingFromEnvFrom(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEnvFrom instead. - * * @return The buildable object. */ @Deprecated public List getEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public List buildEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public V1EnvFromSource buildEnvFrom(Integer index) { return this.envFrom.get(index).build(); } - public V1EnvFromSource buildFirstEnvFrom() { return this.envFrom.get(0).build(); } - public V1EnvFromSource buildLastEnvFrom() { return this.envFrom.get(envFrom.size() - 1).build(); } - public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1EnvFromSourceBuilder item: envFrom) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EnvFromSourceBuilder item: envFrom) { if(predicate.test(item)){ return true;} } return false; } - public A withEnvFrom(List envFrom) { - if (this.envFrom != null) { - _visitables.get("envFrom").removeAll(this.envFrom); - } - if (envFrom != null) { - this.envFrom = new ArrayList(); - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } else { - this.envFrom = null; - } - return (A) this; + if (this.envFrom != null) { _visitables.get("envFrom").removeAll(this.envFrom);} + if (envFrom != null) {this.envFrom = new ArrayList(); for (V1EnvFromSource item : envFrom){this.addToEnvFrom(item);}} else { this.envFrom = null;} return (A) this; } - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) { - if (this.envFrom != null) { - this.envFrom.clear(); - } - if (envFrom != null) { - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } - return (A) this; + if (this.envFrom != null) {this.envFrom.clear();} + if (envFrom != null) {for (V1EnvFromSource item :envFrom){ this.addToEnvFrom(item);}} return (A) this; } - public Boolean hasEnvFrom() { return envFrom != null && !envFrom.isEmpty(); } - public V1EphemeralContainerFluent.EnvFromNested addNewEnvFrom() { return new V1EphemeralContainerFluentImpl.EnvFromNestedImpl(); } - public V1EphemeralContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { return new V1EphemeralContainerFluentImpl.EnvFromNestedImpl(-1, item); } - - public V1EphemeralContainerFluent.EnvFromNested setNewEnvFromLike( - Integer index, V1EnvFromSource item) { + public V1EphemeralContainerFluent.EnvFromNested setNewEnvFromLike(Integer index,V1EnvFromSource item) { return new V1EphemeralContainerFluentImpl.EnvFromNestedImpl(index, item); } - public V1EphemeralContainerFluent.EnvFromNested editEnvFrom(Integer index) { - if (envFrom.size() <= index) - throw new RuntimeException("Can't edit envFrom. Index exceeds size."); + if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); return setNewEnvFromLike(index, buildEnvFrom(index)); } - public V1EphemeralContainerFluent.EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) - throw new RuntimeException("Can't edit first envFrom. The list is empty."); + if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); return setNewEnvFromLike(0, buildEnvFrom(0)); } - public V1EphemeralContainerFluent.EnvFromNested editLastEnvFrom() { int index = envFrom.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty."); return setNewEnvFromLike(index, buildEnvFrom(index)); } - - public V1EphemeralContainerFluent.EnvFromNested editMatchingEnvFrom( - Predicate predicate) { + public V1EphemeralContainerFluent.EnvFromNested editMatchingEnvFrom(Predicate predicate) { int index = -1; - for (int i = 0; i < envFrom.size(); i++) { - if (predicate.test(envFrom.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewLifecycle() { return new V1EphemeralContainerFluentImpl.LifecycleNestedImpl(); } - public V1EphemeralContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item) { return new V1EphemeralContainerFluentImpl.LifecycleNestedImpl(item); } - public V1EphemeralContainerFluent.LifecycleNested editLifecycle() { return withNewLifecycleLike(getLifecycle()); } - public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycle() { - return withNewLifecycleLike( - getLifecycle() != null ? getLifecycle() : new V1LifecycleBuilder().build()); + return withNewLifecycleLike(getLifecycle() != null ? getLifecycle(): new V1LifecycleBuilder().build()); } - public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return withNewLifecycleLike(getLifecycle() != null ? getLifecycle() : item); + return withNewLifecycleLike(getLifecycle() != null ? getLifecycle(): item); } - + /** * This method has been deprecated, please use method buildLivenessProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + return this.livenessProbe!=null ?this.livenessProbe.build():null; } - public V1Probe buildLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + return this.livenessProbe!=null ?this.livenessProbe.build():null; } - public A withLivenessProbe(V1Probe livenessProbe) { _visitables.get("livenessProbe").remove(this.livenessProbe); - if (livenessProbe != null) { - this.livenessProbe = new V1ProbeBuilder(livenessProbe); - _visitables.get("livenessProbe").add(this.livenessProbe); - } else { - this.livenessProbe = null; - _visitables.get("livenessProbe").remove(this.livenessProbe); - } - return (A) this; + if (livenessProbe!=null){ this.livenessProbe= new V1ProbeBuilder(livenessProbe); _visitables.get("livenessProbe").add(this.livenessProbe);} else { this.livenessProbe = null; _visitables.get("livenessProbe").remove(this.livenessProbe); } return (A) this; } - public Boolean hasLivenessProbe() { return this.livenessProbe != null; } - public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbe() { return new V1EphemeralContainerFluentImpl.LivenessProbeNestedImpl(); } - public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { return new V1EphemeralContainerFluentImpl.LivenessProbeNestedImpl(item); } - public V1EphemeralContainerFluent.LivenessProbeNested editLivenessProbe() { return withNewLivenessProbeLike(getLivenessProbe()); } - public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbe() { - return withNewLivenessProbeLike( - getLivenessProbe() != null ? getLivenessProbe() : new V1ProbeBuilder().build()); + return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe(): new V1ProbeBuilder().build()); } - - public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike( - V1Probe item) { - return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe() : item); + public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { + return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - - public A addToPorts(Integer index, V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,V1ContainerPort item) { + if (this.ports == null) {this.ports = new ArrayList();} + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,V1ContainerPort item) { + if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -968,492 +538,291 @@ public A removeMatchingFromPorts(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public V1ContainerPort buildPort(Integer index) { return this.ports.get(index).build(); } - public V1ContainerPort buildFirstPort() { return this.ports.get(0).build(); } - public V1ContainerPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public V1ContainerPort buildMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ContainerPortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerPortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (V1ContainerPort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (V1ContainerPort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1EphemeralContainerFluent.PortsNested addNewPort() { return new V1EphemeralContainerFluentImpl.PortsNestedImpl(); } - public V1EphemeralContainerFluent.PortsNested addNewPortLike(V1ContainerPort item) { return new V1EphemeralContainerFluentImpl.PortsNestedImpl(-1, item); } - - public V1EphemeralContainerFluent.PortsNested setNewPortLike( - Integer index, V1ContainerPort item) { + public V1EphemeralContainerFluent.PortsNested setNewPortLike(Integer index,V1ContainerPort item) { return new V1EphemeralContainerFluentImpl.PortsNestedImpl(index, item); } - public V1EphemeralContainerFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1EphemeralContainerFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1EphemeralContainerFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1EphemeralContainerFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1EphemeralContainerFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewReadinessProbe() { return new V1EphemeralContainerFluentImpl.ReadinessProbeNestedImpl(); } - - public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbeLike( - V1Probe item) { + public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { return new V1EphemeralContainerFluentImpl.ReadinessProbeNestedImpl(item); } - public V1EphemeralContainerFluent.ReadinessProbeNested editReadinessProbe() { return withNewReadinessProbeLike(getReadinessProbe()); } - public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbe() { - return withNewReadinessProbeLike( - getReadinessProbe() != null ? getReadinessProbe() : new V1ProbeBuilder().build()); + return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe(): new V1ProbeBuilder().build()); } - - public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike( - V1Probe item) { - return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe() : item); + public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { + return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe(): item); } - + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public V1ResourceRequirements getResources() { - return this.resources != null ? this.resources.build() : null; + return this.resources!=null ?this.resources.build():null; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + return this.resources!=null ?this.resources.build():null; } - public A withResources(V1ResourceRequirements resources) { _visitables.get("resources").remove(this.resources); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - _visitables.get("resources").add(this.resources); - } else { - this.resources = null; - _visitables.get("resources").remove(this.resources); - } - return (A) this; + if (resources!=null){ this.resources= new V1ResourceRequirementsBuilder(resources); _visitables.get("resources").add(this.resources);} else { this.resources = null; _visitables.get("resources").remove(this.resources); } return (A) this; } - public Boolean hasResources() { return this.resources != null; } - public V1EphemeralContainerFluent.ResourcesNested withNewResources() { return new V1EphemeralContainerFluentImpl.ResourcesNestedImpl(); } - - public V1EphemeralContainerFluent.ResourcesNested withNewResourcesLike( - V1ResourceRequirements item) { + public V1EphemeralContainerFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { return new V1EphemeralContainerFluentImpl.ResourcesNestedImpl(item); } - public V1EphemeralContainerFluent.ResourcesNested editResources() { return withNewResourcesLike(getResources()); } - public V1EphemeralContainerFluent.ResourcesNested editOrNewResources() { - return withNewResourcesLike( - getResources() != null ? getResources() : new V1ResourceRequirementsBuilder().build()); + return withNewResourcesLike(getResources() != null ? getResources(): new V1ResourceRequirementsBuilder().build()); } - - public V1EphemeralContainerFluent.ResourcesNested editOrNewResourcesLike( - V1ResourceRequirements item) { - return withNewResourcesLike(getResources() != null ? getResources() : item); + public V1EphemeralContainerFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return withNewResourcesLike(getResources() != null ? getResources(): item); } - + /** * This method has been deprecated, please use method buildSecurityContext instead. - * * @return The buildable object. */ @Deprecated public V1SecurityContext getSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + return this.securityContext!=null ?this.securityContext.build():null; } - public V1SecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + return this.securityContext!=null ?this.securityContext.build():null; } - public A withSecurityContext(V1SecurityContext securityContext) { _visitables.get("securityContext").remove(this.securityContext); - if (securityContext != null) { - this.securityContext = new V1SecurityContextBuilder(securityContext); - _visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - _visitables.get("securityContext").remove(this.securityContext); - } - return (A) this; + if (securityContext!=null){ this.securityContext= new V1SecurityContextBuilder(securityContext); _visitables.get("securityContext").add(this.securityContext);} else { this.securityContext = null; _visitables.get("securityContext").remove(this.securityContext); } return (A) this; } - public Boolean hasSecurityContext() { return this.securityContext != null; } - public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContext() { return new V1EphemeralContainerFluentImpl.SecurityContextNestedImpl(); } - - public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContextLike( - V1SecurityContext item) { + public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { return new V1EphemeralContainerFluentImpl.SecurityContextNestedImpl(item); } - public V1EphemeralContainerFluent.SecurityContextNested editSecurityContext() { return withNewSecurityContextLike(getSecurityContext()); } - public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike( - getSecurityContext() != null - ? getSecurityContext() - : new V1SecurityContextBuilder().build()); + return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext(): new V1SecurityContextBuilder().build()); } - - public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContextLike( - V1SecurityContext item) { - return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext() : item); + public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { + return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext(): item); } - + /** * This method has been deprecated, please use method buildStartupProbe instead. - * * @return The buildable object. */ @Deprecated public V1Probe getStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + return this.startupProbe!=null ?this.startupProbe.build():null; } - public V1Probe buildStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + return this.startupProbe!=null ?this.startupProbe.build():null; } - public A withStartupProbe(V1Probe startupProbe) { _visitables.get("startupProbe").remove(this.startupProbe); - if (startupProbe != null) { - this.startupProbe = new V1ProbeBuilder(startupProbe); - _visitables.get("startupProbe").add(this.startupProbe); - } else { - this.startupProbe = null; - _visitables.get("startupProbe").remove(this.startupProbe); - } - return (A) this; + if (startupProbe!=null){ this.startupProbe= new V1ProbeBuilder(startupProbe); _visitables.get("startupProbe").add(this.startupProbe);} else { this.startupProbe = null; _visitables.get("startupProbe").remove(this.startupProbe); } return (A) this; } - public Boolean hasStartupProbe() { return this.startupProbe != null; } - public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbe() { return new V1EphemeralContainerFluentImpl.StartupProbeNestedImpl(); } - public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item) { return new V1EphemeralContainerFluentImpl.StartupProbeNestedImpl(item); } - public V1EphemeralContainerFluent.StartupProbeNested editStartupProbe() { return withNewStartupProbeLike(getStartupProbe()); } - public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbe() { - return withNewStartupProbeLike( - getStartupProbe() != null ? getStartupProbe() : new V1ProbeBuilder().build()); + return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe(): new V1ProbeBuilder().build()); } - public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe() : item); + return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe(): item); } - public Boolean getStdin() { return this.stdin; } - public A withStdin(Boolean stdin) { - this.stdin = stdin; - return (A) this; + this.stdin=stdin; return (A) this; } - public Boolean hasStdin() { return this.stdin != null; } - public Boolean getStdinOnce() { return this.stdinOnce; } - public A withStdinOnce(Boolean stdinOnce) { - this.stdinOnce = stdinOnce; - return (A) this; + this.stdinOnce=stdinOnce; return (A) this; } - public Boolean hasStdinOnce() { return this.stdinOnce != null; } - public String getTargetContainerName() { return this.targetContainerName; } - public A withTargetContainerName(String targetContainerName) { - this.targetContainerName = targetContainerName; - return (A) this; + this.targetContainerName=targetContainerName; return (A) this; } - public Boolean hasTargetContainerName() { return this.targetContainerName != null; } - public String getTerminationMessagePath() { return this.terminationMessagePath; } - public A withTerminationMessagePath(String terminationMessagePath) { - this.terminationMessagePath = terminationMessagePath; - return (A) this; + this.terminationMessagePath=terminationMessagePath; return (A) this; } - public Boolean hasTerminationMessagePath() { return this.terminationMessagePath != null; } - public String getTerminationMessagePolicy() { return this.terminationMessagePolicy; } - public A withTerminationMessagePolicy(String terminationMessagePolicy) { - this.terminationMessagePolicy = terminationMessagePolicy; - return (A) this; + this.terminationMessagePolicy=terminationMessagePolicy; return (A) this; } - public Boolean hasTerminationMessagePolicy() { return this.terminationMessagePolicy != null; } - public Boolean getTty() { return this.tty; } - public A withTty(Boolean tty) { - this.tty = tty; - return (A) this; + this.tty=tty; return (A) this; } - public Boolean hasTty() { return this.tty != null; } - - public A addToVolumeDevices(Integer index, V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables - .get("volumeDevices") - .add(index >= 0 ? index : _visitables.get("volumeDevices").size(), builder); - this.volumeDevices.add(index >= 0 ? index : volumeDevices.size(), builder); - return (A) this; + public A addToVolumeDevices(Integer index,V1VolumeDevice item) { + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(index >= 0 ? index : _visitables.get("volumeDevices").size(), builder);this.volumeDevices.add(index >= 0 ? index : volumeDevices.size(), builder); return (A)this; } - - public A setToVolumeDevices(Integer index, V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } + public A setToVolumeDevices(Integer index,V1VolumeDevice item) { + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= _visitables.get("volumeDevices").size()) { - _visitables.get("volumeDevices").add(builder); - } else { - _visitables.get("volumeDevices").set(index, builder); - } - if (index < 0 || index >= volumeDevices.size()) { - volumeDevices.add(builder); - } else { - volumeDevices.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumeDevices").size()) { _visitables.get("volumeDevices").add(builder); } else { _visitables.get("volumeDevices").set(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { volumeDevices.add(builder); } else { volumeDevices.set(index, builder);} + return (A)this; } - public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); - } - return (A) this; + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; } - public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); - } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); - } - return (A) this; + if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; } - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - if (this.volumeDevices != null) { - this.volumeDevices.remove(builder); - } - } - return (A) this; + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder);if (this.volumeDevices != null) {this.volumeDevices.remove(builder);}} return (A)this; } - public A removeAllFromVolumeDevices(Collection items) { - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - if (this.volumeDevices != null) { - this.volumeDevices.remove(builder); - } - } - return (A) this; + for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder);if (this.volumeDevices != null) {this.volumeDevices.remove(builder);}} return (A)this; } - public A removeMatchingFromVolumeDevices(Predicate predicate) { if (volumeDevices == null) return (A) this; final Iterator each = volumeDevices.iterator(); @@ -1465,205 +834,101 @@ public A removeMatchingFromVolumeDevices(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumeDevices instead. - * * @return The buildable object. */ @Deprecated public List getVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public List buildVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public V1VolumeDevice buildVolumeDevice(Integer index) { return this.volumeDevices.get(index).build(); } - public V1VolumeDevice buildFirstVolumeDevice() { return this.volumeDevices.get(0).build(); } - public V1VolumeDevice buildLastVolumeDevice() { return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeDeviceBuilder item: volumeDevices) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeDeviceBuilder item: volumeDevices) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumeDevices(List volumeDevices) { - if (this.volumeDevices != null) { - _visitables.get("volumeDevices").removeAll(this.volumeDevices); - } - if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } - } else { - this.volumeDevices = null; - } - return (A) this; + if (this.volumeDevices != null) { _visitables.get("volumeDevices").removeAll(this.volumeDevices);} + if (volumeDevices != null) {this.volumeDevices = new ArrayList(); for (V1VolumeDevice item : volumeDevices){this.addToVolumeDevices(item);}} else { this.volumeDevices = null;} return (A) this; } - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) { - if (this.volumeDevices != null) { - this.volumeDevices.clear(); - } - if (volumeDevices != null) { - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } - } - return (A) this; + if (this.volumeDevices != null) {this.volumeDevices.clear();} + if (volumeDevices != null) {for (V1VolumeDevice item :volumeDevices){ this.addToVolumeDevices(item);}} return (A) this; } - public Boolean hasVolumeDevices() { return volumeDevices != null && !volumeDevices.isEmpty(); } - public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDevice() { return new V1EphemeralContainerFluentImpl.VolumeDevicesNestedImpl(); } - - public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike( - V1VolumeDevice item) { + public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { return new V1EphemeralContainerFluentImpl.VolumeDevicesNestedImpl(-1, item); } - - public V1EphemeralContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( - Integer index, V1VolumeDevice item) { + public V1EphemeralContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike(Integer index,V1VolumeDevice item) { return new V1EphemeralContainerFluentImpl.VolumeDevicesNestedImpl(index, item); } - public V1EphemeralContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index) { - if (volumeDevices.size() <= index) - throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); + if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - public V1EphemeralContainerFluent.VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) - throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); + if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); } - public V1EphemeralContainerFluent.VolumeDevicesNested editLastVolumeDevice() { int index = volumeDevices.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty."); return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - - public V1EphemeralContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( - Predicate predicate) { + public V1EphemeralContainerFluent.VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { int index = -1; - for (int i = 0; i < volumeDevices.size(); i++) { - if (predicate.test(volumeDevices.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables - .get("volumeMounts") - .add(index >= 0 ? index : _visitables.get("volumeMounts").size(), builder); - this.volumeMounts.add(index >= 0 ? index : volumeMounts.size(), builder); - return (A) this; + public A addToVolumeMounts(Integer index,V1VolumeMount item) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(index >= 0 ? index : _visitables.get("volumeMounts").size(), builder);this.volumeMounts.add(index >= 0 ? index : volumeMounts.size(), builder); return (A)this; } - - public A setToVolumeMounts(Integer index, V1VolumeMount item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); - } + public A setToVolumeMounts(Integer index,V1VolumeMount item) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= _visitables.get("volumeMounts").size()) { - _visitables.get("volumeMounts").add(builder); - } else { - _visitables.get("volumeMounts").set(index, builder); - } - if (index < 0 || index >= volumeMounts.size()) { - volumeMounts.add(builder); - } else { - volumeMounts.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumeMounts").size()) { _visitables.get("volumeMounts").add(builder); } else { _visitables.get("volumeMounts").set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { volumeMounts.add(builder); } else { volumeMounts.set(index, builder);} + return (A)this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); - } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); - } - return (A) this; + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); - } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); - } - return (A) this; + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").remove(builder); - if (this.volumeMounts != null) { - this.volumeMounts.remove(builder); - } - } - return (A) this; + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder);if (this.volumeMounts != null) {this.volumeMounts.remove(builder);}} return (A)this; } - public A removeAllFromVolumeMounts(Collection items) { - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").remove(builder); - if (this.volumeMounts != null) { - this.volumeMounts.remove(builder); - } - } - return (A) this; + for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder);if (this.volumeMounts != null) {this.volumeMounts.remove(builder);}} return (A)this; } - public A removeMatchingFromVolumeMounts(Predicate predicate) { if (volumeMounts == null) return (A) this; final Iterator each = volumeMounts.iterator(); @@ -1675,586 +940,345 @@ public A removeMatchingFromVolumeMounts(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumeMounts instead. - * * @return The buildable object. */ @Deprecated public List getVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public List buildVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public V1VolumeMount buildVolumeMount(Integer index) { return this.volumeMounts.get(index).build(); } - public V1VolumeMount buildFirstVolumeMount() { return this.volumeMounts.get(0).build(); } - public V1VolumeMount buildLastVolumeMount() { return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeMountBuilder item: volumeMounts) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeMountBuilder item: volumeMounts) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumeMounts(List volumeMounts) { - if (this.volumeMounts != null) { - _visitables.get("volumeMounts").removeAll(this.volumeMounts); - } - if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); - } - } else { - this.volumeMounts = null; - } - return (A) this; + if (this.volumeMounts != null) { _visitables.get("volumeMounts").removeAll(this.volumeMounts);} + if (volumeMounts != null) {this.volumeMounts = new ArrayList(); for (V1VolumeMount item : volumeMounts){this.addToVolumeMounts(item);}} else { this.volumeMounts = null;} return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) { - if (this.volumeMounts != null) { - this.volumeMounts.clear(); - } - if (volumeMounts != null) { - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); - } - } - return (A) this; + if (this.volumeMounts != null) {this.volumeMounts.clear();} + if (volumeMounts != null) {for (V1VolumeMount item :volumeMounts){ this.addToVolumeMounts(item);}} return (A) this; } - public Boolean hasVolumeMounts() { return volumeMounts != null && !volumeMounts.isEmpty(); } - public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMount() { return new V1EphemeralContainerFluentImpl.VolumeMountsNestedImpl(); } - - public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMountLike( - V1VolumeMount item) { + public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { return new V1EphemeralContainerFluentImpl.VolumeMountsNestedImpl(-1, item); } - - public V1EphemeralContainerFluent.VolumeMountsNested setNewVolumeMountLike( - Integer index, V1VolumeMount item) { + public V1EphemeralContainerFluent.VolumeMountsNested setNewVolumeMountLike(Integer index,V1VolumeMount item) { return new V1EphemeralContainerFluentImpl.VolumeMountsNestedImpl(index, item); } - public V1EphemeralContainerFluent.VolumeMountsNested editVolumeMount(Integer index) { - if (volumeMounts.size() <= index) - throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); + if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); return setNewVolumeMountLike(index, buildVolumeMount(index)); } - public V1EphemeralContainerFluent.VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) - throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); + if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); return setNewVolumeMountLike(0, buildVolumeMount(0)); } - public V1EphemeralContainerFluent.VolumeMountsNested editLastVolumeMount() { int index = volumeMounts.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty."); return setNewVolumeMountLike(index, buildVolumeMount(index)); } - - public V1EphemeralContainerFluent.VolumeMountsNested editMatchingVolumeMount( - Predicate predicate) { + public V1EphemeralContainerFluent.VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { int index = -1; - for (int i = 0; i < volumeMounts.size(); i++) { - if (predicate.test(volumeMounts.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1EnvVarFluentImpl> - implements V1EphemeralContainerFluent.EnvNested, Nested { - EnvNestedImpl(Integer index, V1EnvVar item) { + class EnvNestedImpl extends V1EnvVarFluentImpl> implements V1EphemeralContainerFluent.EnvNested,Nested{ + EnvNestedImpl(Integer index,V1EnvVar item) { this.index = index; this.builder = new V1EnvVarBuilder(this, item); } - EnvNestedImpl() { this.index = -1; this.builder = new V1EnvVarBuilder(this); } - V1EnvVarBuilder builder; Integer index; - public N and() { - return (N) V1EphemeralContainerFluentImpl.this.setToEnv(index, builder.build()); + return (N) V1EphemeralContainerFluentImpl.this.setToEnv(index,builder.build()); } - public N endEnv() { return and(); } + } - - class EnvFromNestedImpl - extends V1EnvFromSourceFluentImpl> - implements V1EphemeralContainerFluent.EnvFromNested, Nested { - EnvFromNestedImpl(Integer index, V1EnvFromSource item) { + class EnvFromNestedImpl extends V1EnvFromSourceFluentImpl> implements V1EphemeralContainerFluent.EnvFromNested,Nested{ + EnvFromNestedImpl(Integer index,V1EnvFromSource item) { this.index = index; this.builder = new V1EnvFromSourceBuilder(this, item); } - EnvFromNestedImpl() { this.index = -1; this.builder = new V1EnvFromSourceBuilder(this); } - V1EnvFromSourceBuilder builder; Integer index; - public N and() { - return (N) V1EphemeralContainerFluentImpl.this.setToEnvFrom(index, builder.build()); + return (N) V1EphemeralContainerFluentImpl.this.setToEnvFrom(index,builder.build()); } - public N endEnvFrom() { return and(); } + } - - class LifecycleNestedImpl - extends V1LifecycleFluentImpl> - implements V1EphemeralContainerFluent.LifecycleNested, Nested { + class LifecycleNestedImpl extends V1LifecycleFluentImpl> implements V1EphemeralContainerFluent.LifecycleNested,Nested{ LifecycleNestedImpl(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } - LifecycleNestedImpl() { this.builder = new V1LifecycleBuilder(this); } - V1LifecycleBuilder builder; - public N and() { return (N) V1EphemeralContainerFluentImpl.this.withLifecycle(builder.build()); } - public N endLifecycle() { return and(); } + } - - class LivenessProbeNestedImpl - extends V1ProbeFluentImpl> - implements V1EphemeralContainerFluent.LivenessProbeNested, Nested { + class LivenessProbeNestedImpl extends V1ProbeFluentImpl> implements V1EphemeralContainerFluent.LivenessProbeNested,Nested{ LivenessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - LivenessProbeNestedImpl() { this.builder = new V1ProbeBuilder(this); } - V1ProbeBuilder builder; - public N and() { return (N) V1EphemeralContainerFluentImpl.this.withLivenessProbe(builder.build()); } - public N endLivenessProbe() { return and(); } + } - - class PortsNestedImpl - extends V1ContainerPortFluentImpl> - implements V1EphemeralContainerFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, V1ContainerPort item) { + class PortsNestedImpl extends V1ContainerPortFluentImpl> implements V1EphemeralContainerFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new V1ContainerPortBuilder(this); } - V1ContainerPortBuilder builder; Integer index; - public N and() { - return (N) V1EphemeralContainerFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1EphemeralContainerFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } - - class ReadinessProbeNestedImpl - extends V1ProbeFluentImpl> - implements V1EphemeralContainerFluent.ReadinessProbeNested, Nested { + class ReadinessProbeNestedImpl extends V1ProbeFluentImpl> implements V1EphemeralContainerFluent.ReadinessProbeNested,Nested{ ReadinessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - ReadinessProbeNestedImpl() { this.builder = new V1ProbeBuilder(this); } - V1ProbeBuilder builder; - public N and() { return (N) V1EphemeralContainerFluentImpl.this.withReadinessProbe(builder.build()); } - public N endReadinessProbe() { return and(); } + } - - class ResourcesNestedImpl - extends V1ResourceRequirementsFluentImpl> - implements V1EphemeralContainerFluent.ResourcesNested, Nested { + class ResourcesNestedImpl extends V1ResourceRequirementsFluentImpl> implements V1EphemeralContainerFluent.ResourcesNested,Nested{ ResourcesNestedImpl(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - ResourcesNestedImpl() { this.builder = new V1ResourceRequirementsBuilder(this); } - V1ResourceRequirementsBuilder builder; - public N and() { return (N) V1EphemeralContainerFluentImpl.this.withResources(builder.build()); } - public N endResources() { return and(); } + } - - class SecurityContextNestedImpl - extends V1SecurityContextFluentImpl> - implements V1EphemeralContainerFluent.SecurityContextNested, Nested { + class SecurityContextNestedImpl extends V1SecurityContextFluentImpl> implements V1EphemeralContainerFluent.SecurityContextNested,Nested{ SecurityContextNestedImpl(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } - SecurityContextNestedImpl() { this.builder = new V1SecurityContextBuilder(this); } - V1SecurityContextBuilder builder; - public N and() { return (N) V1EphemeralContainerFluentImpl.this.withSecurityContext(builder.build()); } - public N endSecurityContext() { return and(); } + } - - class StartupProbeNestedImpl - extends V1ProbeFluentImpl> - implements V1EphemeralContainerFluent.StartupProbeNested, Nested { + class StartupProbeNestedImpl extends V1ProbeFluentImpl> implements V1EphemeralContainerFluent.StartupProbeNested,Nested{ StartupProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - StartupProbeNestedImpl() { this.builder = new V1ProbeBuilder(this); } - V1ProbeBuilder builder; - public N and() { return (N) V1EphemeralContainerFluentImpl.this.withStartupProbe(builder.build()); } - public N endStartupProbe() { return and(); } + } - - class VolumeDevicesNestedImpl - extends V1VolumeDeviceFluentImpl> - implements V1EphemeralContainerFluent.VolumeDevicesNested, Nested { - VolumeDevicesNestedImpl(Integer index, V1VolumeDevice item) { + class VolumeDevicesNestedImpl extends V1VolumeDeviceFluentImpl> implements V1EphemeralContainerFluent.VolumeDevicesNested,Nested{ + VolumeDevicesNestedImpl(Integer index,V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } - VolumeDevicesNestedImpl() { this.index = -1; this.builder = new V1VolumeDeviceBuilder(this); } - V1VolumeDeviceBuilder builder; Integer index; - public N and() { - return (N) V1EphemeralContainerFluentImpl.this.setToVolumeDevices(index, builder.build()); + return (N) V1EphemeralContainerFluentImpl.this.setToVolumeDevices(index,builder.build()); } - public N endVolumeDevice() { return and(); } + } - - class VolumeMountsNestedImpl - extends V1VolumeMountFluentImpl> - implements V1EphemeralContainerFluent.VolumeMountsNested, Nested { - VolumeMountsNestedImpl(Integer index, V1VolumeMount item) { + class VolumeMountsNestedImpl extends V1VolumeMountFluentImpl> implements V1EphemeralContainerFluent.VolumeMountsNested,Nested{ + VolumeMountsNestedImpl(Integer index,V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } - VolumeMountsNestedImpl() { this.index = -1; this.builder = new V1VolumeMountBuilder(this); } - V1VolumeMountBuilder builder; Integer index; - public N and() { - return (N) V1EphemeralContainerFluentImpl.this.setToVolumeMounts(index, builder.build()); + return (N) V1EphemeralContainerFluentImpl.this.setToVolumeMounts(index,builder.build()); } - public N endVolumeMount() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java index 477ff7df91..e98aad0ce6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1EphemeralVolumeSourceBuilder - extends V1EphemeralVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EphemeralVolumeSourceBuilder extends V1EphemeralVolumeSourceFluentImpl implements VisitableBuilder{ public V1EphemeralVolumeSourceBuilder() { this(false); } - public V1EphemeralVolumeSourceBuilder(Boolean validationEnabled) { this(new V1EphemeralVolumeSource(), validationEnabled); } - public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent) { this(fluent, false); } - - public V1EphemeralVolumeSourceBuilder( - V1EphemeralVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1EphemeralVolumeSource(), validationEnabled); } - - public V1EphemeralVolumeSourceBuilder( - V1EphemeralVolumeSourceFluent fluent, V1EphemeralVolumeSource instance) { + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,V1EphemeralVolumeSource instance) { this(fluent, instance, false); } - - public V1EphemeralVolumeSourceBuilder( - V1EphemeralVolumeSourceFluent fluent, - V1EphemeralVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,V1EphemeralVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1EphemeralVolumeSourceBuilder( - V1EphemeralVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EphemeralVolumeSourceFluent fluent; Boolean validationEnabled; - public V1EphemeralVolumeSource build() { V1EphemeralVolumeSource buildable = new V1EphemeralVolumeSource(); buildable.setVolumeClaimTemplate(fluent.getVolumeClaimTemplate()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java index 9bd7a81196..1474ce419a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java @@ -1,56 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1EphemeralVolumeSourceFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1EphemeralVolumeSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildVolumeClaimTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimTemplate getVolumeClaimTemplate(); - public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate(); - public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate); - public Boolean hasVolumeClaimTemplate(); - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplate(); - - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplateLike( - V1PersistentVolumeClaimTemplate item); - + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item); public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editVolumeClaimTemplate(); - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editOrNewVolumeClaimTemplate(); - - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested - editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item); - - public interface VolumeClaimTemplateNested - extends Nested, - V1PersistentVolumeClaimTemplateFluent< - V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested> { + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item); + public interface VolumeClaimTemplateNested extends Nested,V1PersistentVolumeClaimTemplateFluent>{ public N and(); - public N endVolumeClaimTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java index 7705608321..896d8bc670 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java @@ -1,133 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EphemeralVolumeSourceFluentImpl> - extends BaseFluent implements V1EphemeralVolumeSourceFluent { - public V1EphemeralVolumeSourceFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EphemeralVolumeSourceFluentImpl> extends BaseFluent implements V1EphemeralVolumeSourceFluent{ + public V1EphemeralVolumeSourceFluentImpl() { + } public V1EphemeralVolumeSourceFluentImpl(V1EphemeralVolumeSource instance) { this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); - } + } private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; - + /** * This method has been deprecated, please use method buildVolumeClaimTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimTemplate getVolumeClaimTemplate() { - return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; + return this.volumeClaimTemplate!=null ?this.volumeClaimTemplate.build():null; } - public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate() { - return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; + return this.volumeClaimTemplate!=null ?this.volumeClaimTemplate.build():null; } - public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { _visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); - if (volumeClaimTemplate != null) { - this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); - _visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); - } else { - this.volumeClaimTemplate = null; - _visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); - } - return (A) this; + if (volumeClaimTemplate!=null){ this.volumeClaimTemplate= new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); _visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate);} else { this.volumeClaimTemplate = null; _visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); } return (A) this; } - public Boolean hasVolumeClaimTemplate() { return this.volumeClaimTemplate != null; } - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplate() { return new V1EphemeralVolumeSourceFluentImpl.VolumeClaimTemplateNestedImpl(); } - - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplateLike( - V1PersistentVolumeClaimTemplate item) { + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { return new V1EphemeralVolumeSourceFluentImpl.VolumeClaimTemplateNestedImpl(item); } - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editVolumeClaimTemplate() { return withNewVolumeClaimTemplateLike(getVolumeClaimTemplate()); } - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editOrNewVolumeClaimTemplate() { - return withNewVolumeClaimTemplateLike( - getVolumeClaimTemplate() != null - ? getVolumeClaimTemplate() - : new V1PersistentVolumeClaimTemplateBuilder().build()); + return withNewVolumeClaimTemplateLike(getVolumeClaimTemplate() != null ? getVolumeClaimTemplate(): new V1PersistentVolumeClaimTemplateBuilder().build()); } - - public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested - editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { - return withNewVolumeClaimTemplateLike( - getVolumeClaimTemplate() != null ? getVolumeClaimTemplate() : item); + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { + return withNewVolumeClaimTemplateLike(getVolumeClaimTemplate() != null ? getVolumeClaimTemplate(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EphemeralVolumeSourceFluentImpl that = (V1EphemeralVolumeSourceFluentImpl) o; - if (volumeClaimTemplate != null - ? !volumeClaimTemplate.equals(that.volumeClaimTemplate) - : that.volumeClaimTemplate != null) return false; + if (volumeClaimTemplate != null ? !volumeClaimTemplate.equals(that.volumeClaimTemplate) :that.volumeClaimTemplate != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(volumeClaimTemplate, super.hashCode()); + return java.util.Objects.hash(volumeClaimTemplate, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (volumeClaimTemplate != null) { - sb.append("volumeClaimTemplate:"); - sb.append(volumeClaimTemplate); - } + if (volumeClaimTemplate != null) { sb.append("volumeClaimTemplate:"); sb.append(volumeClaimTemplate); } sb.append("}"); return sb.toString(); } - - class VolumeClaimTemplateNestedImpl - extends V1PersistentVolumeClaimTemplateFluentImpl< - V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested> - implements V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested, Nested { + class VolumeClaimTemplateNestedImpl extends V1PersistentVolumeClaimTemplateFluentImpl> implements V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested,Nested{ VolumeClaimTemplateNestedImpl(V1PersistentVolumeClaimTemplate item) { this.builder = new V1PersistentVolumeClaimTemplateBuilder(this, item); } - VolumeClaimTemplateNestedImpl() { this.builder = new V1PersistentVolumeClaimTemplateBuilder(this); } - V1PersistentVolumeClaimTemplateBuilder builder; - public N and() { return (N) V1EphemeralVolumeSourceFluentImpl.this.withVolumeClaimTemplate(builder.build()); } - public N endVolumeClaimTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java index 46fe88b9dd..b2e64f5538 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1EventSourceBuilder extends V1EventSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EventSourceBuilder extends V1EventSourceFluentImpl implements VisitableBuilder{ public V1EventSourceBuilder() { this(false); } - public V1EventSourceBuilder(Boolean validationEnabled) { this(new V1EventSource(), validationEnabled); } - public V1EventSourceBuilder(V1EventSourceFluent fluent) { this(fluent, false); } - - public V1EventSourceBuilder(V1EventSourceFluent fluent, Boolean validationEnabled) { + public V1EventSourceBuilder(V1EventSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1EventSource(), validationEnabled); } - - public V1EventSourceBuilder(V1EventSourceFluent fluent, V1EventSource instance) { + public V1EventSourceBuilder(V1EventSourceFluent fluent,V1EventSource instance) { this(fluent, instance, false); } - - public V1EventSourceBuilder( - V1EventSourceFluent fluent, V1EventSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EventSourceBuilder(V1EventSourceFluent fluent,V1EventSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withComponent(instance.getComponent()); fluent.withHost(instance.getHost()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EventSourceBuilder(V1EventSource instance) { - this(instance, false); + this(instance,false); } - - public V1EventSourceBuilder(V1EventSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1EventSourceBuilder(V1EventSource instance,Boolean validationEnabled) { + this.fluent = this; this.withComponent(instance.getComponent()); this.withHost(instance.getHost()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EventSourceFluent fluent; Boolean validationEnabled; - public V1EventSource build() { V1EventSource buildable = new V1EventSource(); buildable.setComponent(fluent.getComponent()); buildable.setHost(fluent.getHost()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java index 9141e8136e..99a16b37b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1EventSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1EventSourceFluent> extends Fluent{ public String getComponent(); - public A withComponent(String component); - public Boolean hasComponent(); - public String getHost(); - public A withHost(String host); - public Boolean hasHost(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java index ff25dc641e..42ab4cd2c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EventSourceFluentImpl> extends BaseFluent - implements V1EventSourceFluent { - public V1EventSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EventSourceFluentImpl> extends BaseFluent implements V1EventSourceFluent{ + public V1EventSourceFluentImpl() { + } public V1EventSourceFluentImpl(V1EventSource instance) { this.withComponent(instance.getComponent()); this.withHost(instance.getHost()); - } + } private String component; private String host; - public String getComponent() { return this.component; } - public A withComponent(String component) { - this.component = component; - return (A) this; + this.component=component; return (A) this; } - public Boolean hasComponent() { return this.component != null; } - public String getHost() { return this.host; } - public A withHost(String host) { - this.host = host; - return (A) this; + this.host=host; return (A) this; } - public Boolean hasHost() { return this.host != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EventSourceFluentImpl that = (V1EventSourceFluentImpl) o; - if (component != null ? !component.equals(that.component) : that.component != null) - return false; - if (host != null ? !host.equals(that.host) : that.host != null) return false; + if (component != null ? !component.equals(that.component) :that.component != null) return false; + if (host != null ? !host.equals(that.host) :that.host != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(component, host, super.hashCode()); + return java.util.Objects.hash(component, host, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (component != null) { - sb.append("component:"); - sb.append(component + ","); - } - if (host != null) { - sb.append("host:"); - sb.append(host); - } + if (component != null) { sb.append("component:"); sb.append(component + ","); } + if (host != null) { sb.append("host:"); sb.append(host); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java index a2b0b19826..414e211d07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1EvictionBuilder extends V1EvictionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1EvictionBuilder extends V1EvictionFluentImpl implements VisitableBuilder{ public V1EvictionBuilder() { this(false); } - public V1EvictionBuilder(Boolean validationEnabled) { this(new V1Eviction(), validationEnabled); } - public V1EvictionBuilder(V1EvictionFluent fluent) { this(fluent, false); } - - public V1EvictionBuilder(V1EvictionFluent fluent, Boolean validationEnabled) { + public V1EvictionBuilder(V1EvictionFluent fluent,Boolean validationEnabled) { this(fluent, new V1Eviction(), validationEnabled); } - - public V1EvictionBuilder(V1EvictionFluent fluent, V1Eviction instance) { + public V1EvictionBuilder(V1EvictionFluent fluent,V1Eviction instance) { this(fluent, instance, false); } - - public V1EvictionBuilder( - V1EvictionFluent fluent, V1Eviction instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1EvictionBuilder(V1EvictionFluent fluent,V1Eviction instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withDeleteOptions(instance.getDeleteOptions()); @@ -47,15 +28,13 @@ public V1EvictionBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1EvictionBuilder(V1Eviction instance) { - this(instance, false); + this(instance,false); } - - public V1EvictionBuilder(V1Eviction instance, Boolean validationEnabled) { - this.fluent = this; + public V1EvictionBuilder(V1Eviction instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withDeleteOptions(instance.getDeleteOptions()); @@ -64,12 +43,10 @@ public V1EvictionBuilder(V1Eviction instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1EvictionFluent fluent; Boolean validationEnabled; - public V1Eviction build() { V1Eviction buildable = new V1Eviction(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1Eviction build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java index b5af9c7179..0e541c1d0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1EvictionFluent> extends Fluent { + /** + * Generated + */ +public interface V1EvictionFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - + /** * This method has been deprecated, please use method buildDeleteOptions instead. - * * @return The buildable object. */ @Deprecated public V1DeleteOptions getDeleteOptions(); - public V1DeleteOptions buildDeleteOptions(); - public A withDeleteOptions(V1DeleteOptions deleteOptions); - public Boolean hasDeleteOptions(); - public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptions(); - public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item); - public V1EvictionFluent.DeleteOptionsNested editDeleteOptions(); - public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptions(); - public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1EvictionFluent.MetadataNested withNewMetadata(); - public V1EvictionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1EvictionFluent.MetadataNested editMetadata(); - public V1EvictionFluent.MetadataNested editOrNewMetadata(); - public V1EvictionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public interface DeleteOptionsNested - extends Nested, V1DeleteOptionsFluent> { + public interface DeleteOptionsNested extends Nested,V1DeleteOptionsFluent>{ public N and(); - public N endDeleteOptions(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java index 82eff2ff31..69330b2619 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1EvictionFluentImpl> extends BaseFluent - implements V1EvictionFluent { - public V1EvictionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1EvictionFluentImpl> extends BaseFluent implements V1EvictionFluent{ + public V1EvictionFluentImpl() { + } public V1EvictionFluentImpl(V1Eviction instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,222 +23,152 @@ public V1EvictionFluentImpl(V1Eviction instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private V1DeleteOptionsBuilder deleteOptions; private String kind; private V1ObjectMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - + /** * This method has been deprecated, please use method buildDeleteOptions instead. - * * @return The buildable object. */ @Deprecated public V1DeleteOptions getDeleteOptions() { - return this.deleteOptions != null ? this.deleteOptions.build() : null; + return this.deleteOptions!=null ?this.deleteOptions.build():null; } - public V1DeleteOptions buildDeleteOptions() { - return this.deleteOptions != null ? this.deleteOptions.build() : null; + return this.deleteOptions!=null ?this.deleteOptions.build():null; } - public A withDeleteOptions(V1DeleteOptions deleteOptions) { _visitables.get("deleteOptions").remove(this.deleteOptions); - if (deleteOptions != null) { - this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); - _visitables.get("deleteOptions").add(this.deleteOptions); - } else { - this.deleteOptions = null; - _visitables.get("deleteOptions").remove(this.deleteOptions); - } - return (A) this; + if (deleteOptions!=null){ this.deleteOptions= new V1DeleteOptionsBuilder(deleteOptions); _visitables.get("deleteOptions").add(this.deleteOptions);} else { this.deleteOptions = null; _visitables.get("deleteOptions").remove(this.deleteOptions); } return (A) this; } - public Boolean hasDeleteOptions() { return this.deleteOptions != null; } - public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptions() { return new V1EvictionFluentImpl.DeleteOptionsNestedImpl(); } - public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { return new V1EvictionFluentImpl.DeleteOptionsNestedImpl(item); } - public V1EvictionFluent.DeleteOptionsNested editDeleteOptions() { return withNewDeleteOptionsLike(getDeleteOptions()); } - public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptions() { - return withNewDeleteOptionsLike( - getDeleteOptions() != null ? getDeleteOptions() : new V1DeleteOptionsBuilder().build()); + return withNewDeleteOptionsLike(getDeleteOptions() != null ? getDeleteOptions(): new V1DeleteOptionsBuilder().build()); } - public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item) { - return withNewDeleteOptionsLike(getDeleteOptions() != null ? getDeleteOptions() : item); + return withNewDeleteOptionsLike(getDeleteOptions() != null ? getDeleteOptions(): item); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1EvictionFluent.MetadataNested withNewMetadata() { return new V1EvictionFluentImpl.MetadataNestedImpl(); } - public V1EvictionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1EvictionFluentImpl.MetadataNestedImpl(item); } - public V1EvictionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1EvictionFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1EvictionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1EvictionFluentImpl that = (V1EvictionFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (deleteOptions != null - ? !deleteOptions.equals(that.deleteOptions) - : that.deleteOptions != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (deleteOptions != null ? !deleteOptions.equals(that.deleteOptions) :that.deleteOptions != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, deleteOptions, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, deleteOptions, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (deleteOptions != null) { - sb.append("deleteOptions:"); - sb.append(deleteOptions + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (deleteOptions != null) { sb.append("deleteOptions:"); sb.append(deleteOptions + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class DeleteOptionsNestedImpl - extends V1DeleteOptionsFluentImpl> - implements V1EvictionFluent.DeleteOptionsNested, Nested { + class DeleteOptionsNestedImpl extends V1DeleteOptionsFluentImpl> implements V1EvictionFluent.DeleteOptionsNested,Nested{ DeleteOptionsNestedImpl(V1DeleteOptions item) { this.builder = new V1DeleteOptionsBuilder(this, item); } - DeleteOptionsNestedImpl() { this.builder = new V1DeleteOptionsBuilder(this); } - V1DeleteOptionsBuilder builder; - public N and() { return (N) V1EvictionFluentImpl.this.withDeleteOptions(builder.build()); } - public N endDeleteOptions() { return and(); } + } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1EvictionFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1EvictionFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1EvictionFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java index d8acb60d81..3144848b11 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1ExecActionBuilder extends V1ExecActionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ExecActionBuilder extends V1ExecActionFluentImpl implements VisitableBuilder{ public V1ExecActionBuilder() { this(false); } - public V1ExecActionBuilder(Boolean validationEnabled) { this(new V1ExecAction(), validationEnabled); } - public V1ExecActionBuilder(V1ExecActionFluent fluent) { this(fluent, false); } - - public V1ExecActionBuilder(V1ExecActionFluent fluent, Boolean validationEnabled) { + public V1ExecActionBuilder(V1ExecActionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ExecAction(), validationEnabled); } - - public V1ExecActionBuilder(V1ExecActionFluent fluent, V1ExecAction instance) { + public V1ExecActionBuilder(V1ExecActionFluent fluent,V1ExecAction instance) { this(fluent, instance, false); } - - public V1ExecActionBuilder( - V1ExecActionFluent fluent, V1ExecAction instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ExecActionBuilder(V1ExecActionFluent fluent,V1ExecAction instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCommand(instance.getCommand()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ExecActionBuilder(V1ExecAction instance) { - this(instance, false); + this(instance,false); } - - public V1ExecActionBuilder(V1ExecAction instance, Boolean validationEnabled) { - this.fluent = this; + public V1ExecActionBuilder(V1ExecAction instance,Boolean validationEnabled) { + this.fluent = this; this.withCommand(instance.getCommand()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ExecActionFluent fluent; Boolean validationEnabled; - public V1ExecAction build() { V1ExecAction buildable = new V1ExecAction(); buildable.setCommand(fluent.getCommand()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java index e6b8b00dd9..0ab8052afe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java @@ -1,51 +1,32 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1ExecActionFluent> extends Fluent { - public A addToCommand(Integer index, String item); - - public A setToCommand(Integer index, String item); - + /** + * Generated + */ +public interface V1ExecActionFluent> extends Fluent{ + public A addToCommand(Integer index,String item); + public A setToCommand(Integer index,String item); public A addToCommand(java.lang.String... items); - public A addAllToCommand(Collection items); - public A removeFromCommand(java.lang.String... items); - public A removeAllFromCommand(Collection items); - public List getCommand(); - public String getCommand(Integer index); - public String getFirstCommand(); - public String getLastCommand(); - public String getMatchingCommand(Predicate predicate); - public Boolean hasMatchingCommand(Predicate predicate); - public A withCommand(List command); - public A withCommand(java.lang.String... command); - public Boolean hasCommand(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java index 7a7d45f856..c089e07469 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java @@ -1,171 +1,95 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ExecActionFluentImpl> extends BaseFluent - implements V1ExecActionFluent { - public V1ExecActionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ExecActionFluentImpl> extends BaseFluent implements V1ExecActionFluent{ + public V1ExecActionFluentImpl() { + } public V1ExecActionFluentImpl(V1ExecAction instance) { this.withCommand(instance.getCommand()); - } + } private List command; - - public A addToCommand(Integer index, String item) { - if (this.command == null) { - this.command = new ArrayList(); - } + public A addToCommand(Integer index,String item) { + if (this.command == null) {this.command = new ArrayList();} this.command.add(index, item); - return (A) this; + return (A)this; } - - public A setToCommand(Integer index, String item) { - if (this.command == null) { - this.command = new ArrayList(); - } - this.command.set(index, item); - return (A) this; + public A setToCommand(Integer index,String item) { + if (this.command == null) {this.command = new ArrayList();} + this.command.set(index, item); return (A)this; } - public A addToCommand(java.lang.String... items) { - if (this.command == null) { - this.command = new ArrayList(); - } - for (String item : items) { - this.command.add(item); - } - return (A) this; + if (this.command == null) {this.command = new ArrayList();} + for (String item : items) {this.command.add(item);} return (A)this; } - public A addAllToCommand(Collection items) { - if (this.command == null) { - this.command = new ArrayList(); - } - for (String item : items) { - this.command.add(item); - } - return (A) this; + if (this.command == null) {this.command = new ArrayList();} + for (String item : items) {this.command.add(item);} return (A)this; } - public A removeFromCommand(java.lang.String... items) { - for (String item : items) { - if (this.command != null) { - this.command.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.command!= null){ this.command.remove(item);}} return (A)this; } - public A removeAllFromCommand(Collection items) { - for (String item : items) { - if (this.command != null) { - this.command.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.command!= null){ this.command.remove(item);}} return (A)this; } - public List getCommand() { return this.command; } - public String getCommand(Integer index) { return this.command.get(index); } - public String getFirstCommand() { return this.command.get(0); } - public String getLastCommand() { return this.command.get(command.size() - 1); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: command) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: command) { if(predicate.test(item)){ return true;} } return false; } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; - } - return (A) this; + if (command != null) {this.command = new ArrayList(); for (String item : command){this.addToCommand(item);}} else { this.command = null;} return (A) this; } - public A withCommand(java.lang.String... command) { - if (this.command != null) { - this.command.clear(); - } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } - } - return (A) this; + if (this.command != null) {this.command.clear();} + if (command != null) {for (String item :command){ this.addToCommand(item);}} return (A) this; } - public Boolean hasCommand() { return command != null && !command.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ExecActionFluentImpl that = (V1ExecActionFluentImpl) o; - if (command != null ? !command.equals(that.command) : that.command != null) return false; + if (command != null ? !command.equals(that.command) :that.command != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(command, super.hashCode()); + return java.util.Objects.hash(command, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (command != null && !command.isEmpty()) { - sb.append("command:"); - sb.append(command); - } + if (command != null && !command.isEmpty()) { sb.append("command:"); sb.append(command); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java index faa20407fc..17711d1e5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ExternalDocumentationBuilder - extends V1ExternalDocumentationFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluentImpl implements VisitableBuilder{ public V1ExternalDocumentationBuilder() { this(false); } - public V1ExternalDocumentationBuilder(Boolean validationEnabled) { this(new V1ExternalDocumentation(), validationEnabled); } - public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent) { this(fluent, false); } - - public V1ExternalDocumentationBuilder( - V1ExternalDocumentationFluent fluent, Boolean validationEnabled) { + public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,Boolean validationEnabled) { this(fluent, new V1ExternalDocumentation(), validationEnabled); } - - public V1ExternalDocumentationBuilder( - V1ExternalDocumentationFluent fluent, V1ExternalDocumentation instance) { + public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,V1ExternalDocumentation instance) { this(fluent, instance, false); } - - public V1ExternalDocumentationBuilder( - V1ExternalDocumentationFluent fluent, - V1ExternalDocumentation instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,V1ExternalDocumentation instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDescription(instance.getDescription()); fluent.withUrl(instance.getUrl()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance) { - this(instance, false); + this(instance,false); } - - public V1ExternalDocumentationBuilder( - V1ExternalDocumentation instance, Boolean validationEnabled) { - this.fluent = this; + public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance,Boolean validationEnabled) { + this.fluent = this; this.withDescription(instance.getDescription()); this.withUrl(instance.getUrl()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ExternalDocumentationFluent fluent; Boolean validationEnabled; - public V1ExternalDocumentation build() { V1ExternalDocumentation buildable = new V1ExternalDocumentation(); buildable.setDescription(fluent.getDescription()); buildable.setUrl(fluent.getUrl()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java index e22935fcfd..f58f3244d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ExternalDocumentationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ExternalDocumentationFluent> extends Fluent{ public String getDescription(); - public A withDescription(String description); - public Boolean hasDescription(); - public String getUrl(); - public A withUrl(String url); - public Boolean hasUrl(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java index 5a61ad9dc2..7fa7985283 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ExternalDocumentationFluentImpl> - extends BaseFluent implements V1ExternalDocumentationFluent { - public V1ExternalDocumentationFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ExternalDocumentationFluentImpl> extends BaseFluent implements V1ExternalDocumentationFluent{ + public V1ExternalDocumentationFluentImpl() { + } public V1ExternalDocumentationFluentImpl(V1ExternalDocumentation instance) { this.withDescription(instance.getDescription()); this.withUrl(instance.getUrl()); - } + } private String description; private String url; - public String getDescription() { return this.description; } - public A withDescription(String description) { - this.description = description; - return (A) this; + this.description=description; return (A) this; } - public Boolean hasDescription() { return this.description != null; } - public String getUrl() { return this.url; } - public A withUrl(String url) { - this.url = url; - return (A) this; + this.url=url; return (A) this; } - public Boolean hasUrl() { return this.url != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ExternalDocumentationFluentImpl that = (V1ExternalDocumentationFluentImpl) o; - if (description != null ? !description.equals(that.description) : that.description != null) - return false; - if (url != null ? !url.equals(that.url) : that.url != null) return false; + if (description != null ? !description.equals(that.description) :that.description != null) return false; + if (url != null ? !url.equals(that.url) :that.url != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(description, url, super.hashCode()); + return java.util.Objects.hash(description, url, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (description != null) { - sb.append("description:"); - sb.append(description + ","); - } - if (url != null) { - sb.append("url:"); - sb.append(url); - } + if (description != null) { sb.append("description:"); sb.append(description + ","); } + if (url != null) { sb.append("url:"); sb.append(url); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java index 65109e2f80..19bdc8d2c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluentImpl implements VisitableBuilder{ public V1FCVolumeSourceBuilder() { this(false); } - public V1FCVolumeSourceBuilder(Boolean validationEnabled) { this(new V1FCVolumeSource(), validationEnabled); } - public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent) { this(fluent, false); } - - public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1FCVolumeSource(), validationEnabled); } - - public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent, V1FCVolumeSource instance) { + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,V1FCVolumeSource instance) { this(fluent, instance, false); } - - public V1FCVolumeSourceBuilder( - V1FCVolumeSourceFluent fluent, V1FCVolumeSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,V1FCVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withLun(instance.getLun()); @@ -49,15 +30,13 @@ public V1FCVolumeSourceBuilder( fluent.withWwids(instance.getWwids()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1FCVolumeSourceBuilder(V1FCVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1FCVolumeSourceBuilder(V1FCVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1FCVolumeSourceBuilder(V1FCVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withLun(instance.getLun()); @@ -68,12 +47,10 @@ public V1FCVolumeSourceBuilder(V1FCVolumeSource instance, Boolean validationEnab this.withWwids(instance.getWwids()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1FCVolumeSourceFluent fluent; Boolean validationEnabled; - public V1FCVolumeSource build() { V1FCVolumeSource buildable = new V1FCVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -83,4 +60,5 @@ public V1FCVolumeSource build() { buildable.setWwids(fluent.getWwids()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java index 15736f892e..b6994291f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java @@ -1,101 +1,57 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1FCVolumeSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1FCVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Integer getLun(); - public A withLun(Integer lun); - public Boolean hasLun(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - - public A addToTargetWWNs(Integer index, String item); - - public A setToTargetWWNs(Integer index, String item); - + public A addToTargetWWNs(Integer index,String item); + public A setToTargetWWNs(Integer index,String item); public A addToTargetWWNs(java.lang.String... items); - public A addAllToTargetWWNs(Collection items); - public A removeFromTargetWWNs(java.lang.String... items); - public A removeAllFromTargetWWNs(Collection items); - public List getTargetWWNs(); - public String getTargetWWN(Integer index); - public String getFirstTargetWWN(); - public String getLastTargetWWN(); - public String getMatchingTargetWWN(Predicate predicate); - public Boolean hasMatchingTargetWWN(Predicate predicate); - public A withTargetWWNs(List targetWWNs); - public A withTargetWWNs(java.lang.String... targetWWNs); - public Boolean hasTargetWWNs(); - - public A addToWwids(Integer index, String item); - - public A setToWwids(Integer index, String item); - + public A addToWwids(Integer index,String item); + public A setToWwids(Integer index,String item); public A addToWwids(java.lang.String... items); - public A addAllToWwids(Collection items); - public A removeFromWwids(java.lang.String... items); - public A removeAllFromWwids(Collection items); - public List getWwids(); - public String getWwid(Integer index); - public String getFirstWwid(); - public String getLastWwid(); - public String getMatchingWwid(Predicate predicate); - public Boolean hasMatchingWwid(Predicate predicate); - public A withWwids(List wwids); - public A withWwids(java.lang.String... wwids); - public Boolean hasWwids(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java index da46cb8425..9225edd4dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1FCVolumeSourceFluentImpl> extends BaseFluent - implements V1FCVolumeSourceFluent { - public V1FCVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1FCVolumeSourceFluentImpl> extends BaseFluent implements V1FCVolumeSourceFluent{ + public V1FCVolumeSourceFluentImpl() { + } public V1FCVolumeSourceFluentImpl(V1FCVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -34,330 +28,169 @@ public V1FCVolumeSourceFluentImpl(V1FCVolumeSource instance) { this.withTargetWWNs(instance.getTargetWWNs()); this.withWwids(instance.getWwids()); - } + } private String fsType; private Integer lun; private Boolean readOnly; private List targetWWNs; private List wwids; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; + this.lun=lun; return (A) this; } - public Boolean hasLun() { return this.lun != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - - public A addToTargetWWNs(Integer index, String item) { - if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); - } + public A addToTargetWWNs(Integer index,String item) { + if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} this.targetWWNs.add(index, item); - return (A) this; + return (A)this; } - - public A setToTargetWWNs(Integer index, String item) { - if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); - } - this.targetWWNs.set(index, item); - return (A) this; + public A setToTargetWWNs(Integer index,String item) { + if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} + this.targetWWNs.set(index, item); return (A)this; } - public A addToTargetWWNs(java.lang.String... items) { - if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); - } - for (String item : items) { - this.targetWWNs.add(item); - } - return (A) this; + if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} + for (String item : items) {this.targetWWNs.add(item);} return (A)this; } - public A addAllToTargetWWNs(Collection items) { - if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); - } - for (String item : items) { - this.targetWWNs.add(item); - } - return (A) this; + if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} + for (String item : items) {this.targetWWNs.add(item);} return (A)this; } - public A removeFromTargetWWNs(java.lang.String... items) { - for (String item : items) { - if (this.targetWWNs != null) { - this.targetWWNs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.targetWWNs!= null){ this.targetWWNs.remove(item);}} return (A)this; } - public A removeAllFromTargetWWNs(Collection items) { - for (String item : items) { - if (this.targetWWNs != null) { - this.targetWWNs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.targetWWNs!= null){ this.targetWWNs.remove(item);}} return (A)this; } - public List getTargetWWNs() { return this.targetWWNs; } - public String getTargetWWN(Integer index) { return this.targetWWNs.get(index); } - public String getFirstTargetWWN() { return this.targetWWNs.get(0); } - public String getLastTargetWWN() { return this.targetWWNs.get(targetWWNs.size() - 1); } - public String getMatchingTargetWWN(Predicate predicate) { - for (String item : targetWWNs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: targetWWNs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingTargetWWN(Predicate predicate) { - for (String item : targetWWNs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: targetWWNs) { if(predicate.test(item)){ return true;} } return false; } - public A withTargetWWNs(List targetWWNs) { - if (targetWWNs != null) { - this.targetWWNs = new ArrayList(); - for (String item : targetWWNs) { - this.addToTargetWWNs(item); - } - } else { - this.targetWWNs = null; - } - return (A) this; + if (targetWWNs != null) {this.targetWWNs = new ArrayList(); for (String item : targetWWNs){this.addToTargetWWNs(item);}} else { this.targetWWNs = null;} return (A) this; } - public A withTargetWWNs(java.lang.String... targetWWNs) { - if (this.targetWWNs != null) { - this.targetWWNs.clear(); - } - if (targetWWNs != null) { - for (String item : targetWWNs) { - this.addToTargetWWNs(item); - } - } - return (A) this; + if (this.targetWWNs != null) {this.targetWWNs.clear();} + if (targetWWNs != null) {for (String item :targetWWNs){ this.addToTargetWWNs(item);}} return (A) this; } - public Boolean hasTargetWWNs() { return targetWWNs != null && !targetWWNs.isEmpty(); } - - public A addToWwids(Integer index, String item) { - if (this.wwids == null) { - this.wwids = new ArrayList(); - } + public A addToWwids(Integer index,String item) { + if (this.wwids == null) {this.wwids = new ArrayList();} this.wwids.add(index, item); - return (A) this; + return (A)this; } - - public A setToWwids(Integer index, String item) { - if (this.wwids == null) { - this.wwids = new ArrayList(); - } - this.wwids.set(index, item); - return (A) this; + public A setToWwids(Integer index,String item) { + if (this.wwids == null) {this.wwids = new ArrayList();} + this.wwids.set(index, item); return (A)this; } - public A addToWwids(java.lang.String... items) { - if (this.wwids == null) { - this.wwids = new ArrayList(); - } - for (String item : items) { - this.wwids.add(item); - } - return (A) this; + if (this.wwids == null) {this.wwids = new ArrayList();} + for (String item : items) {this.wwids.add(item);} return (A)this; } - public A addAllToWwids(Collection items) { - if (this.wwids == null) { - this.wwids = new ArrayList(); - } - for (String item : items) { - this.wwids.add(item); - } - return (A) this; + if (this.wwids == null) {this.wwids = new ArrayList();} + for (String item : items) {this.wwids.add(item);} return (A)this; } - public A removeFromWwids(java.lang.String... items) { - for (String item : items) { - if (this.wwids != null) { - this.wwids.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.wwids!= null){ this.wwids.remove(item);}} return (A)this; } - public A removeAllFromWwids(Collection items) { - for (String item : items) { - if (this.wwids != null) { - this.wwids.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.wwids!= null){ this.wwids.remove(item);}} return (A)this; } - public List getWwids() { return this.wwids; } - public String getWwid(Integer index) { return this.wwids.get(index); } - public String getFirstWwid() { return this.wwids.get(0); } - public String getLastWwid() { return this.wwids.get(wwids.size() - 1); } - public String getMatchingWwid(Predicate predicate) { - for (String item : wwids) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: wwids) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingWwid(Predicate predicate) { - for (String item : wwids) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: wwids) { if(predicate.test(item)){ return true;} } return false; } - public A withWwids(List wwids) { - if (wwids != null) { - this.wwids = new ArrayList(); - for (String item : wwids) { - this.addToWwids(item); - } - } else { - this.wwids = null; - } - return (A) this; + if (wwids != null) {this.wwids = new ArrayList(); for (String item : wwids){this.addToWwids(item);}} else { this.wwids = null;} return (A) this; } - public A withWwids(java.lang.String... wwids) { - if (this.wwids != null) { - this.wwids.clear(); - } - if (wwids != null) { - for (String item : wwids) { - this.addToWwids(item); - } - } - return (A) this; + if (this.wwids != null) {this.wwids.clear();} + if (wwids != null) {for (String item :wwids){ this.addToWwids(item);}} return (A) this; } - public Boolean hasWwids() { return wwids != null && !wwids.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1FCVolumeSourceFluentImpl that = (V1FCVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (lun != null ? !lun.equals(that.lun) : that.lun != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (targetWWNs != null ? !targetWWNs.equals(that.targetWWNs) : that.targetWWNs != null) - return false; - if (wwids != null ? !wwids.equals(that.wwids) : that.wwids != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (lun != null ? !lun.equals(that.lun) :that.lun != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (targetWWNs != null ? !targetWWNs.equals(that.targetWWNs) :that.targetWWNs != null) return false; + if (wwids != null ? !wwids.equals(that.wwids) :that.wwids != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, lun, readOnly, targetWWNs, wwids, super.hashCode()); + return java.util.Objects.hash(fsType, lun, readOnly, targetWWNs, wwids, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (lun != null) { - sb.append("lun:"); - sb.append(lun + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (targetWWNs != null && !targetWWNs.isEmpty()) { - sb.append("targetWWNs:"); - sb.append(targetWWNs + ","); - } - if (wwids != null && !wwids.isEmpty()) { - sb.append("wwids:"); - sb.append(wwids); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (targetWWNs != null && !targetWWNs.isEmpty()) { sb.append("targetWWNs:"); sb.append(targetWWNs + ","); } + if (wwids != null && !wwids.isEmpty()) { sb.append("wwids:"); sb.append(wwids); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java index 7df26bb2ef..97f6d05999 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1FlexPersistentVolumeSourceBuilder - extends V1FlexPersistentVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1FlexPersistentVolumeSourceBuilder extends V1FlexPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1FlexPersistentVolumeSourceBuilder() { this(false); } - public V1FlexPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1FlexPersistentVolumeSource(), validationEnabled); } - public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1FlexPersistentVolumeSourceBuilder( - V1FlexPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1FlexPersistentVolumeSource(), validationEnabled); } - - public V1FlexPersistentVolumeSourceBuilder( - V1FlexPersistentVolumeSourceFluent fluent, V1FlexPersistentVolumeSource instance) { + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,V1FlexPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1FlexPersistentVolumeSourceBuilder( - V1FlexPersistentVolumeSourceFluent fluent, - V1FlexPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,V1FlexPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDriver(instance.getDriver()); fluent.withFsType(instance.getFsType()); @@ -54,16 +30,13 @@ public V1FlexPersistentVolumeSourceBuilder( fluent.withSecretRef(instance.getSecretRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1FlexPersistentVolumeSourceBuilder( - V1FlexPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDriver(instance.getDriver()); this.withFsType(instance.getFsType()); @@ -74,12 +47,10 @@ public V1FlexPersistentVolumeSourceBuilder( this.withSecretRef(instance.getSecretRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1FlexPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1FlexPersistentVolumeSource build() { V1FlexPersistentVolumeSource buildable = new V1FlexPersistentVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -89,4 +60,5 @@ public V1FlexPersistentVolumeSource build() { buildable.setSecretRef(fluent.getSecretRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java index 21c2a261db..14b20ea503 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java @@ -1,89 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1FlexPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1FlexPersistentVolumeSourceFluent> extends Fluent{ public String getDriver(); - public A withDriver(String driver); - public Boolean hasDriver(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - - public A addToOptions(String key, String value); - - public A addToOptions(Map map); - + public A addToOptions(String key,String value); + public A addToOptions(Map map); public A removeFromOptions(String key); - - public A removeFromOptions(Map map); - - public Map getOptions(); - - public A withOptions(Map options); - + public A removeFromOptions(Map map); + public Map getOptions(); + public A withOptions(Map options); public Boolean hasOptions(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef(); - public V1SecretReference buildSecretRef(); - public A withSecretRef(V1SecretReference secretRef); - public Boolean hasSecretRef(); - public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item); - + public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item); public V1FlexPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item); - + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item); public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface SecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java index e02c24dc13..e72b01f82c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1FlexPersistentVolumeSourceFluentImpl> - extends BaseFluent implements V1FlexPersistentVolumeSourceFluent { - public V1FlexPersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1FlexPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1FlexPersistentVolumeSourceFluent{ + public V1FlexPersistentVolumeSourceFluentImpl() { + } public V1FlexPersistentVolumeSourceFluentImpl(V1FlexPersistentVolumeSource instance) { this.withDriver(instance.getDriver()); @@ -33,234 +27,142 @@ public V1FlexPersistentVolumeSourceFluentImpl(V1FlexPersistentVolumeSource insta this.withReadOnly(instance.getReadOnly()); this.withSecretRef(instance.getSecretRef()); - } + } private String driver; private String fsType; - private Map options; + private Map options; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + this.driver=driver; return (A) this; } - public Boolean hasDriver() { return this.driver != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - - public A addToOptions(String key, String value) { - if (this.options == null && key != null && value != null) { - this.options = new LinkedHashMap(); - } - if (key != null && value != null) { - this.options.put(key, value); - } - return (A) this; + public A addToOptions(String key,String value) { + if(this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } + if(key != null && value != null) {this.options.put(key, value);} return (A)this; } - - public A addToOptions(Map map) { - if (this.options == null && map != null) { - this.options = new LinkedHashMap(); - } - if (map != null) { - this.options.putAll(map); - } - return (A) this; + public A addToOptions(Map map) { + if(this.options == null && map != null) { this.options = new LinkedHashMap(); } + if(map != null) { this.options.putAll(map);} return (A)this; } - public A removeFromOptions(String key) { - if (this.options == null) { - return (A) this; - } - if (key != null && this.options != null) { - this.options.remove(key); - } - return (A) this; + if(this.options == null) { return (A) this; } + if(key != null && this.options != null) {this.options.remove(key);} return (A)this; } - - public A removeFromOptions(Map map) { - if (this.options == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.options != null) { - this.options.remove(key); - } - } - } - return (A) this; + public A removeFromOptions(Map map) { + if(this.options == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.options != null){this.options.remove(key);}}} return (A)this; } - - public Map getOptions() { + public Map getOptions() { return this.options; } - - public A withOptions(Map options) { - if (options == null) { - this.options = null; - } else { - this.options = new LinkedHashMap(options); - } - return (A) this; + public A withOptions(Map options) { + if (options == null) { this.options = null;} else {this.options = new LinkedHashMap(options);} return (A) this; } - public Boolean hasOptions() { return this.options != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1FlexPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item) { + public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new V1FlexPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1FlexPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1FlexPersistentVolumeSourceFluentImpl that = (V1FlexPersistentVolumeSourceFluentImpl) o; - if (driver != null ? !driver.equals(that.driver) : that.driver != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (options != null ? !options.equals(that.options) : that.options != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; + if (driver != null ? !driver.equals(that.driver) :that.driver != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (options != null ? !options.equals(that.options) :that.options != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); + return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { - sb.append("driver:"); - sb.append(driver + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (options != null && !options.isEmpty()) { - sb.append("options:"); - sb.append(options + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef); - } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1SecretReferenceFluentImpl> - implements V1FlexPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1FlexPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1FlexPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java index 9d695340ff..3cf6c07749 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1FlexVolumeSourceBuilder - extends V1FlexVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1FlexVolumeSourceBuilder extends V1FlexVolumeSourceFluentImpl implements VisitableBuilder{ public V1FlexVolumeSourceBuilder() { this(false); } - public V1FlexVolumeSourceBuilder(Boolean validationEnabled) { this(new V1FlexVolumeSource(), validationEnabled); } - public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent) { this(fluent, false); } - - public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1FlexVolumeSource(), validationEnabled); } - - public V1FlexVolumeSourceBuilder( - V1FlexVolumeSourceFluent fluent, V1FlexVolumeSource instance) { + public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,V1FlexVolumeSource instance) { this(fluent, instance, false); } - - public V1FlexVolumeSourceBuilder( - V1FlexVolumeSourceFluent fluent, V1FlexVolumeSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,V1FlexVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDriver(instance.getDriver()); fluent.withFsType(instance.getFsType()); @@ -51,15 +30,13 @@ public V1FlexVolumeSourceBuilder( fluent.withSecretRef(instance.getSecretRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDriver(instance.getDriver()); this.withFsType(instance.getFsType()); @@ -70,12 +47,10 @@ public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance, Boolean validation this.withSecretRef(instance.getSecretRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1FlexVolumeSourceFluent fluent; Boolean validationEnabled; - public V1FlexVolumeSource build() { V1FlexVolumeSource buildable = new V1FlexVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -85,4 +60,5 @@ public V1FlexVolumeSource build() { buildable.setSecretRef(fluent.getSecretRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java index 64b22e71d7..e3b2ed928e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java @@ -1,87 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1FlexVolumeSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1FlexVolumeSourceFluent> extends Fluent{ public String getDriver(); - public A withDriver(String driver); - public Boolean hasDriver(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - - public A addToOptions(String key, String value); - - public A addToOptions(Map map); - + public A addToOptions(String key,String value); + public A addToOptions(Map map); public A removeFromOptions(String key); - - public A removeFromOptions(Map map); - - public Map getOptions(); - - public A withOptions(Map options); - + public A removeFromOptions(Map map); + public Map getOptions(); + public A withOptions(Map options); public Boolean hasOptions(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1FlexVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public A withReadOnly(); - - public interface SecretRefNested - extends Nested, V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java index e941188458..1193e3c928 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1FlexVolumeSourceFluentImpl> - extends BaseFluent implements V1FlexVolumeSourceFluent { - public V1FlexVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1FlexVolumeSourceFluentImpl> extends BaseFluent implements V1FlexVolumeSourceFluent{ + public V1FlexVolumeSourceFluentImpl() { + } public V1FlexVolumeSourceFluentImpl(V1FlexVolumeSource instance) { this.withDriver(instance.getDriver()); @@ -33,234 +27,142 @@ public V1FlexVolumeSourceFluentImpl(V1FlexVolumeSource instance) { this.withReadOnly(instance.getReadOnly()); this.withSecretRef(instance.getSecretRef()); - } + } private String driver; private String fsType; - private Map options; + private Map options; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + this.driver=driver; return (A) this; } - public Boolean hasDriver() { return this.driver != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - - public A addToOptions(String key, String value) { - if (this.options == null && key != null && value != null) { - this.options = new LinkedHashMap(); - } - if (key != null && value != null) { - this.options.put(key, value); - } - return (A) this; + public A addToOptions(String key,String value) { + if(this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } + if(key != null && value != null) {this.options.put(key, value);} return (A)this; } - - public A addToOptions(Map map) { - if (this.options == null && map != null) { - this.options = new LinkedHashMap(); - } - if (map != null) { - this.options.putAll(map); - } - return (A) this; + public A addToOptions(Map map) { + if(this.options == null && map != null) { this.options = new LinkedHashMap(); } + if(map != null) { this.options.putAll(map);} return (A)this; } - public A removeFromOptions(String key) { - if (this.options == null) { - return (A) this; - } - if (key != null && this.options != null) { - this.options.remove(key); - } - return (A) this; + if(this.options == null) { return (A) this; } + if(key != null && this.options != null) {this.options.remove(key);} return (A)this; } - - public A removeFromOptions(Map map) { - if (this.options == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.options != null) { - this.options.remove(key); - } - } - } - return (A) this; + public A removeFromOptions(Map map) { + if(this.options == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.options != null){this.options.remove(key);}}} return (A)this; } - - public Map getOptions() { + public Map getOptions() { return this.options; } - - public A withOptions(Map options) { - if (options == null) { - this.options = null; - } else { - this.options = new LinkedHashMap(options); - } - return (A) this; + public A withOptions(Map options) { + if (options == null) { this.options = null;} else {this.options = new LinkedHashMap(options);} return (A) this; } - public Boolean hasOptions() { return this.options != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1FlexVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1FlexVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1FlexVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1FlexVolumeSourceFluentImpl that = (V1FlexVolumeSourceFluentImpl) o; - if (driver != null ? !driver.equals(that.driver) : that.driver != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (options != null ? !options.equals(that.options) : that.options != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; + if (driver != null ? !driver.equals(that.driver) :that.driver != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (options != null ? !options.equals(that.options) :that.options != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); + return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { - sb.append("driver:"); - sb.append(driver + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (options != null && !options.isEmpty()) { - sb.append("options:"); - sb.append(options + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef); - } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1FlexVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1FlexVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1FlexVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java index 3f13164ed0..a893039b63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1FlockerVolumeSourceBuilder - extends V1FlockerVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluentImpl implements VisitableBuilder{ public V1FlockerVolumeSourceBuilder() { this(false); } - public V1FlockerVolumeSourceBuilder(Boolean validationEnabled) { this(new V1FlockerVolumeSource(), validationEnabled); } - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent) { this(fluent, false); } - - public V1FlockerVolumeSourceBuilder( - V1FlockerVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1FlockerVolumeSource(), validationEnabled); } - - public V1FlockerVolumeSourceBuilder( - V1FlockerVolumeSourceFluent fluent, V1FlockerVolumeSource instance) { + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance) { this(fluent, instance, false); } - - public V1FlockerVolumeSourceBuilder( - V1FlockerVolumeSourceFluent fluent, - V1FlockerVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDatasetName(instance.getDatasetName()); fluent.withDatasetUUID(instance.getDatasetUUID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDatasetName(instance.getDatasetName()); this.withDatasetUUID(instance.getDatasetUUID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1FlockerVolumeSourceFluent fluent; Boolean validationEnabled; - public V1FlockerVolumeSource build() { V1FlockerVolumeSource buildable = new V1FlockerVolumeSource(); buildable.setDatasetName(fluent.getDatasetName()); buildable.setDatasetUUID(fluent.getDatasetUUID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java index 00c261303a..18aeaf4b09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1FlockerVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1FlockerVolumeSourceFluent> extends Fluent{ public String getDatasetName(); - public A withDatasetName(String datasetName); - public Boolean hasDatasetName(); - public String getDatasetUUID(); - public A withDatasetUUID(String datasetUUID); - public Boolean hasDatasetUUID(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java index 158ca47fcf..118f78fdc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java @@ -1,87 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1FlockerVolumeSourceFluentImpl> - extends BaseFluent implements V1FlockerVolumeSourceFluent { - public V1FlockerVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1FlockerVolumeSourceFluentImpl> extends BaseFluent implements V1FlockerVolumeSourceFluent{ + public V1FlockerVolumeSourceFluentImpl() { + } public V1FlockerVolumeSourceFluentImpl(V1FlockerVolumeSource instance) { this.withDatasetName(instance.getDatasetName()); this.withDatasetUUID(instance.getDatasetUUID()); - } + } private String datasetName; private String datasetUUID; - public String getDatasetName() { return this.datasetName; } - public A withDatasetName(String datasetName) { - this.datasetName = datasetName; - return (A) this; + this.datasetName=datasetName; return (A) this; } - public Boolean hasDatasetName() { return this.datasetName != null; } - public String getDatasetUUID() { return this.datasetUUID; } - public A withDatasetUUID(String datasetUUID) { - this.datasetUUID = datasetUUID; - return (A) this; + this.datasetUUID=datasetUUID; return (A) this; } - public Boolean hasDatasetUUID() { return this.datasetUUID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1FlockerVolumeSourceFluentImpl that = (V1FlockerVolumeSourceFluentImpl) o; - if (datasetName != null ? !datasetName.equals(that.datasetName) : that.datasetName != null) - return false; - if (datasetUUID != null ? !datasetUUID.equals(that.datasetUUID) : that.datasetUUID != null) - return false; + if (datasetName != null ? !datasetName.equals(that.datasetName) :that.datasetName != null) return false; + if (datasetUUID != null ? !datasetUUID.equals(that.datasetUUID) :that.datasetUUID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(datasetName, datasetUUID, super.hashCode()); + return java.util.Objects.hash(datasetName, datasetUUID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (datasetName != null) { - sb.append("datasetName:"); - sb.append(datasetName + ","); - } - if (datasetUUID != null) { - sb.append("datasetUUID:"); - sb.append(datasetUUID); - } + if (datasetName != null) { sb.append("datasetName:"); sb.append(datasetName + ","); } + if (datasetUUID != null) { sb.append("datasetUUID:"); sb.append(datasetUUID); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java index 6afa7751ec..e401b957a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1ForZoneBuilder extends V1ForZoneFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ForZoneBuilder extends V1ForZoneFluentImpl implements VisitableBuilder{ public V1ForZoneBuilder() { this(false); } - public V1ForZoneBuilder(Boolean validationEnabled) { this(new V1ForZone(), validationEnabled); } - public V1ForZoneBuilder(V1ForZoneFluent fluent) { this(fluent, false); } - - public V1ForZoneBuilder(V1ForZoneFluent fluent, Boolean validationEnabled) { + public V1ForZoneBuilder(V1ForZoneFluent fluent,Boolean validationEnabled) { this(fluent, new V1ForZone(), validationEnabled); } - - public V1ForZoneBuilder(V1ForZoneFluent fluent, V1ForZone instance) { + public V1ForZoneBuilder(V1ForZoneFluent fluent,V1ForZone instance) { this(fluent, instance, false); } - - public V1ForZoneBuilder( - V1ForZoneFluent fluent, V1ForZone instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ForZoneBuilder(V1ForZoneFluent fluent,V1ForZone instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ForZoneBuilder(V1ForZone instance) { - this(instance, false); + this(instance,false); } - - public V1ForZoneBuilder(V1ForZone instance, Boolean validationEnabled) { - this.fluent = this; + public V1ForZoneBuilder(V1ForZone instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ForZoneFluent fluent; Boolean validationEnabled; - public V1ForZone build() { V1ForZone buildable = new V1ForZone(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java index 026be893e0..d069753fa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java @@ -1,24 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ForZoneFluent> extends Fluent { + /** + * Generated + */ +public interface V1ForZoneFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java index 6baf99c6ea..fa4be0eca8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ForZoneFluentImpl> extends BaseFluent - implements V1ForZoneFluent { - public V1ForZoneFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ForZoneFluentImpl> extends BaseFluent implements V1ForZoneFluent{ + public V1ForZoneFluentImpl() { + } public V1ForZoneFluentImpl(V1ForZone instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ForZoneFluentImpl that = (V1ForZoneFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java index e4fcc4352c..fb78b1e4e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1GCEPersistentDiskVolumeSourceBuilder - extends V1GCEPersistentDiskVolumeSourceFluentImpl - implements VisitableBuilder< - V1GCEPersistentDiskVolumeSource, V1GCEPersistentDiskVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1GCEPersistentDiskVolumeSourceBuilder extends V1GCEPersistentDiskVolumeSourceFluentImpl implements VisitableBuilder{ public V1GCEPersistentDiskVolumeSourceBuilder() { this(false); } - public V1GCEPersistentDiskVolumeSourceBuilder(Boolean validationEnabled) { this(new V1GCEPersistentDiskVolumeSource(), validationEnabled); } - public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent) { this(fluent, false); } - - public V1GCEPersistentDiskVolumeSourceBuilder( - V1GCEPersistentDiskVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1GCEPersistentDiskVolumeSource(), validationEnabled); } - - public V1GCEPersistentDiskVolumeSourceBuilder( - V1GCEPersistentDiskVolumeSourceFluent fluent, V1GCEPersistentDiskVolumeSource instance) { + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,V1GCEPersistentDiskVolumeSource instance) { this(fluent, instance, false); } - - public V1GCEPersistentDiskVolumeSourceBuilder( - V1GCEPersistentDiskVolumeSourceFluent fluent, - V1GCEPersistentDiskVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,V1GCEPersistentDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withPartition(instance.getPartition()); @@ -53,16 +28,13 @@ public V1GCEPersistentDiskVolumeSourceBuilder( fluent.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1GCEPersistentDiskVolumeSourceBuilder( - V1GCEPersistentDiskVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withPartition(instance.getPartition()); @@ -71,12 +43,10 @@ public V1GCEPersistentDiskVolumeSourceBuilder( this.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1GCEPersistentDiskVolumeSourceFluent fluent; Boolean validationEnabled; - public V1GCEPersistentDiskVolumeSource build() { V1GCEPersistentDiskVolumeSource buildable = new V1GCEPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -85,4 +55,5 @@ public V1GCEPersistentDiskVolumeSource build() { buildable.setReadOnly(fluent.getReadOnly()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java index 724adf88a1..6ef7253376 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java @@ -1,46 +1,26 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1GCEPersistentDiskVolumeSourceFluent< - A extends V1GCEPersistentDiskVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1GCEPersistentDiskVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Integer getPartition(); - public A withPartition(Integer partition); - public Boolean hasPartition(); - public String getPdName(); - public A withPdName(String pdName); - public Boolean hasPdName(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java index f75bd3a5e4..a958619900 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1GCEPersistentDiskVolumeSourceFluentImpl< - A extends V1GCEPersistentDiskVolumeSourceFluent> - extends BaseFluent implements V1GCEPersistentDiskVolumeSourceFluent { - public V1GCEPersistentDiskVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1GCEPersistentDiskVolumeSourceFluentImpl> extends BaseFluent implements V1GCEPersistentDiskVolumeSourceFluent{ + public V1GCEPersistentDiskVolumeSourceFluentImpl() { + } public V1GCEPersistentDiskVolumeSourceFluentImpl(V1GCEPersistentDiskVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -29,105 +22,73 @@ public V1GCEPersistentDiskVolumeSourceFluentImpl(V1GCEPersistentDiskVolumeSource this.withPdName(instance.getPdName()); this.withReadOnly(instance.getReadOnly()); - } + } private String fsType; private Integer partition; private String pdName; private Boolean readOnly; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Integer getPartition() { return this.partition; } - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; + this.partition=partition; return (A) this; } - public Boolean hasPartition() { return this.partition != null; } - public String getPdName() { return this.pdName; } - public A withPdName(String pdName) { - this.pdName = pdName; - return (A) this; + this.pdName=pdName; return (A) this; } - public Boolean hasPdName() { return this.pdName != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1GCEPersistentDiskVolumeSourceFluentImpl that = (V1GCEPersistentDiskVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (partition != null ? !partition.equals(that.partition) : that.partition != null) - return false; - if (pdName != null ? !pdName.equals(that.pdName) : that.pdName != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (partition != null ? !partition.equals(that.partition) :that.partition != null) return false; + if (pdName != null ? !pdName.equals(that.pdName) :that.pdName != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, partition, pdName, readOnly, super.hashCode()); + return java.util.Objects.hash(fsType, partition, pdName, readOnly, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (partition != null) { - sb.append("partition:"); - sb.append(partition + ","); - } - if (pdName != null) { - sb.append("pdName:"); - sb.append(pdName + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (partition != null) { sb.append("partition:"); sb.append(partition + ","); } + if (pdName != null) { sb.append("pdName:"); sb.append(pdName + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java index 7ddbe54792..6c4a911c0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1GRPCActionBuilder extends V1GRPCActionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1GRPCActionBuilder extends V1GRPCActionFluentImpl implements VisitableBuilder{ public V1GRPCActionBuilder() { this(false); } - public V1GRPCActionBuilder(Boolean validationEnabled) { this(new V1GRPCAction(), validationEnabled); } - public V1GRPCActionBuilder(V1GRPCActionFluent fluent) { this(fluent, false); } - - public V1GRPCActionBuilder(V1GRPCActionFluent fluent, Boolean validationEnabled) { + public V1GRPCActionBuilder(V1GRPCActionFluent fluent,Boolean validationEnabled) { this(fluent, new V1GRPCAction(), validationEnabled); } - - public V1GRPCActionBuilder(V1GRPCActionFluent fluent, V1GRPCAction instance) { + public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance) { this(fluent, instance, false); } - - public V1GRPCActionBuilder( - V1GRPCActionFluent fluent, V1GRPCAction instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPort(instance.getPort()); fluent.withService(instance.getService()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1GRPCActionBuilder(V1GRPCAction instance) { - this(instance, false); + this(instance,false); } - - public V1GRPCActionBuilder(V1GRPCAction instance, Boolean validationEnabled) { - this.fluent = this; + public V1GRPCActionBuilder(V1GRPCAction instance,Boolean validationEnabled) { + this.fluent = this; this.withPort(instance.getPort()); this.withService(instance.getService()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1GRPCActionFluent fluent; Boolean validationEnabled; - public V1GRPCAction build() { V1GRPCAction buildable = new V1GRPCAction(); buildable.setPort(fluent.getPort()); buildable.setService(fluent.getService()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java index 94ba4dbd2a..7f5b85d14c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java @@ -1,30 +1,19 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1GRPCActionFluent> extends Fluent { + /** + * Generated + */ +public interface V1GRPCActionFluent> extends Fluent{ public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); - public String getService(); - public A withService(String service); - public Boolean hasService(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java index bd50b901c8..19ecbd7b7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java @@ -1,85 +1,63 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1GRPCActionFluentImpl> extends BaseFluent - implements V1GRPCActionFluent { - public V1GRPCActionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1GRPCActionFluentImpl> extends BaseFluent implements V1GRPCActionFluent{ + public V1GRPCActionFluentImpl() { + } public V1GRPCActionFluentImpl(V1GRPCAction instance) { this.withPort(instance.getPort()); this.withService(instance.getService()); - } + } private Integer port; private String service; - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public String getService() { return this.service; } - public A withService(String service) { - this.service = service; - return (A) this; + this.service=service; return (A) this; } - public Boolean hasService() { return this.service != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1GRPCActionFluentImpl that = (V1GRPCActionFluentImpl) o; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (service != null ? !service.equals(that.service) : that.service != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; + if (service != null ? !service.equals(that.service) :that.service != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(port, service, super.hashCode()); + return java.util.Objects.hash(port, service, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (port != null) { - sb.append("port:"); - sb.append(port + ","); - } - if (service != null) { - sb.append("service:"); - sb.append(service); - } + if (port != null) { sb.append("port:"); sb.append(port + ","); } + if (service != null) { sb.append("service:"); sb.append(service); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java index 06e9f9a1f7..a079db652d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1GitRepoVolumeSourceBuilder - extends V1GitRepoVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1GitRepoVolumeSourceBuilder extends V1GitRepoVolumeSourceFluentImpl implements VisitableBuilder{ public V1GitRepoVolumeSourceBuilder() { this(false); } - public V1GitRepoVolumeSourceBuilder(Boolean validationEnabled) { this(new V1GitRepoVolumeSource(), validationEnabled); } - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent) { this(fluent, false); } - - public V1GitRepoVolumeSourceBuilder( - V1GitRepoVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1GitRepoVolumeSource(), validationEnabled); } - - public V1GitRepoVolumeSourceBuilder( - V1GitRepoVolumeSourceFluent fluent, V1GitRepoVolumeSource instance) { + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,V1GitRepoVolumeSource instance) { this(fluent, instance, false); } - - public V1GitRepoVolumeSourceBuilder( - V1GitRepoVolumeSourceFluent fluent, - V1GitRepoVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,V1GitRepoVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDirectory(instance.getDirectory()); fluent.withRepository(instance.getRepository()); fluent.withRevision(instance.getRevision()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDirectory(instance.getDirectory()); this.withRepository(instance.getRepository()); this.withRevision(instance.getRevision()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1GitRepoVolumeSourceFluent fluent; Boolean validationEnabled; - public V1GitRepoVolumeSource build() { V1GitRepoVolumeSource buildable = new V1GitRepoVolumeSource(); buildable.setDirectory(fluent.getDirectory()); @@ -78,4 +50,5 @@ public V1GitRepoVolumeSource build() { buildable.setRevision(fluent.getRevision()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java index e10fa0bfc7..9d057ddde4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java @@ -1,37 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1GitRepoVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1GitRepoVolumeSourceFluent> extends Fluent{ public String getDirectory(); - public A withDirectory(String directory); - public Boolean hasDirectory(); - public String getRepository(); - public A withRepository(String repository); - public Boolean hasRepository(); - public String getRevision(); - public A withRevision(String revision); - public Boolean hasRevision(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java index de63636e80..7e9b5f7731 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java @@ -1,108 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1GitRepoVolumeSourceFluentImpl> - extends BaseFluent implements V1GitRepoVolumeSourceFluent { - public V1GitRepoVolumeSourceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1GitRepoVolumeSourceFluentImpl> extends BaseFluent implements V1GitRepoVolumeSourceFluent{ + public V1GitRepoVolumeSourceFluentImpl() { + } public V1GitRepoVolumeSourceFluentImpl(V1GitRepoVolumeSource instance) { this.withDirectory(instance.getDirectory()); this.withRepository(instance.getRepository()); this.withRevision(instance.getRevision()); - } + } private String directory; private String repository; private String revision; - public String getDirectory() { return this.directory; } - public A withDirectory(String directory) { - this.directory = directory; - return (A) this; + this.directory=directory; return (A) this; } - public Boolean hasDirectory() { return this.directory != null; } - public String getRepository() { return this.repository; } - public A withRepository(String repository) { - this.repository = repository; - return (A) this; + this.repository=repository; return (A) this; } - public Boolean hasRepository() { return this.repository != null; } - public String getRevision() { return this.revision; } - public A withRevision(String revision) { - this.revision = revision; - return (A) this; + this.revision=revision; return (A) this; } - public Boolean hasRevision() { return this.revision != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1GitRepoVolumeSourceFluentImpl that = (V1GitRepoVolumeSourceFluentImpl) o; - if (directory != null ? !directory.equals(that.directory) : that.directory != null) - return false; - if (repository != null ? !repository.equals(that.repository) : that.repository != null) - return false; - if (revision != null ? !revision.equals(that.revision) : that.revision != null) return false; + if (directory != null ? !directory.equals(that.directory) :that.directory != null) return false; + if (repository != null ? !repository.equals(that.repository) :that.repository != null) return false; + if (revision != null ? !revision.equals(that.revision) :that.revision != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(directory, repository, revision, super.hashCode()); + return java.util.Objects.hash(directory, repository, revision, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (directory != null) { - sb.append("directory:"); - sb.append(directory + ","); - } - if (repository != null) { - sb.append("repository:"); - sb.append(repository + ","); - } - if (revision != null) { - sb.append("revision:"); - sb.append(revision); - } + if (directory != null) { sb.append("directory:"); sb.append(directory + ","); } + if (repository != null) { sb.append("repository:"); sb.append(repository + ","); } + if (revision != null) { sb.append("revision:"); sb.append(revision); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java index f702fe2131..943623ce8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1GlusterfsPersistentVolumeSourceBuilder - extends V1GlusterfsPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1GlusterfsPersistentVolumeSource, V1GlusterfsPersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1GlusterfsPersistentVolumeSourceBuilder extends V1GlusterfsPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1GlusterfsPersistentVolumeSourceBuilder() { this(false); } - public V1GlusterfsPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1GlusterfsPersistentVolumeSource(), validationEnabled); } - - public V1GlusterfsPersistentVolumeSourceBuilder( - V1GlusterfsPersistentVolumeSourceFluent fluent) { + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1GlusterfsPersistentVolumeSourceBuilder( - V1GlusterfsPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1GlusterfsPersistentVolumeSource(), validationEnabled); } - - public V1GlusterfsPersistentVolumeSourceBuilder( - V1GlusterfsPersistentVolumeSourceFluent fluent, - V1GlusterfsPersistentVolumeSource instance) { + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,V1GlusterfsPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1GlusterfsPersistentVolumeSourceBuilder( - V1GlusterfsPersistentVolumeSourceFluent fluent, - V1GlusterfsPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,V1GlusterfsPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEndpoints(instance.getEndpoints()); fluent.withEndpointsNamespace(instance.getEndpointsNamespace()); @@ -55,16 +28,13 @@ public V1GlusterfsPersistentVolumeSourceBuilder( fluent.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1GlusterfsPersistentVolumeSourceBuilder( - V1GlusterfsPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withEndpoints(instance.getEndpoints()); this.withEndpointsNamespace(instance.getEndpointsNamespace()); @@ -73,12 +43,10 @@ public V1GlusterfsPersistentVolumeSourceBuilder( this.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1GlusterfsPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1GlusterfsPersistentVolumeSource build() { V1GlusterfsPersistentVolumeSource buildable = new V1GlusterfsPersistentVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); @@ -87,4 +55,5 @@ public V1GlusterfsPersistentVolumeSource build() { buildable.setReadOnly(fluent.getReadOnly()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java index 0978a62963..cc3c271dbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java @@ -1,46 +1,25 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1GlusterfsPersistentVolumeSourceFluent< - A extends V1GlusterfsPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1GlusterfsPersistentVolumeSourceFluent> extends Fluent{ public String getEndpoints(); - public A withEndpoints(String endpoints); - public Boolean hasEndpoints(); - public String getEndpointsNamespace(); - public A withEndpointsNamespace(String endpointsNamespace); - public Boolean hasEndpointsNamespace(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java index 690ecc9673..c7c6c35f18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java @@ -1,26 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1GlusterfsPersistentVolumeSourceFluentImpl< - A extends V1GlusterfsPersistentVolumeSourceFluent> - extends BaseFluent implements V1GlusterfsPersistentVolumeSourceFluent { - public V1GlusterfsPersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1GlusterfsPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1GlusterfsPersistentVolumeSourceFluent{ + public V1GlusterfsPersistentVolumeSourceFluentImpl() { + } public V1GlusterfsPersistentVolumeSourceFluentImpl(V1GlusterfsPersistentVolumeSource instance) { this.withEndpoints(instance.getEndpoints()); @@ -29,108 +21,73 @@ public V1GlusterfsPersistentVolumeSourceFluentImpl(V1GlusterfsPersistentVolumeSo this.withPath(instance.getPath()); this.withReadOnly(instance.getReadOnly()); - } + } private String endpoints; private String endpointsNamespace; private String path; private Boolean readOnly; - public String getEndpoints() { return this.endpoints; } - public A withEndpoints(String endpoints) { - this.endpoints = endpoints; - return (A) this; + this.endpoints=endpoints; return (A) this; } - public Boolean hasEndpoints() { return this.endpoints != null; } - public String getEndpointsNamespace() { return this.endpointsNamespace; } - public A withEndpointsNamespace(String endpointsNamespace) { - this.endpointsNamespace = endpointsNamespace; - return (A) this; + this.endpointsNamespace=endpointsNamespace; return (A) this; } - public Boolean hasEndpointsNamespace() { return this.endpointsNamespace != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1GlusterfsPersistentVolumeSourceFluentImpl that = - (V1GlusterfsPersistentVolumeSourceFluentImpl) o; - if (endpoints != null ? !endpoints.equals(that.endpoints) : that.endpoints != null) - return false; - if (endpointsNamespace != null - ? !endpointsNamespace.equals(that.endpointsNamespace) - : that.endpointsNamespace != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; + V1GlusterfsPersistentVolumeSourceFluentImpl that = (V1GlusterfsPersistentVolumeSourceFluentImpl) o; + if (endpoints != null ? !endpoints.equals(that.endpoints) :that.endpoints != null) return false; + if (endpointsNamespace != null ? !endpointsNamespace.equals(that.endpointsNamespace) :that.endpointsNamespace != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(endpoints, endpointsNamespace, path, readOnly, super.hashCode()); + return java.util.Objects.hash(endpoints, endpointsNamespace, path, readOnly, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endpoints != null) { - sb.append("endpoints:"); - sb.append(endpoints + ","); - } - if (endpointsNamespace != null) { - sb.append("endpointsNamespace:"); - sb.append(endpointsNamespace + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly); - } + if (endpoints != null) { sb.append("endpoints:"); sb.append(endpoints + ","); } + if (endpointsNamespace != null) { sb.append("endpointsNamespace:"); sb.append(endpointsNamespace + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java index 6353d0c877..2daeccc177 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1GlusterfsVolumeSourceBuilder - extends V1GlusterfsVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1GlusterfsVolumeSourceBuilder extends V1GlusterfsVolumeSourceFluentImpl implements VisitableBuilder{ public V1GlusterfsVolumeSourceBuilder() { this(false); } - public V1GlusterfsVolumeSourceBuilder(Boolean validationEnabled) { this(new V1GlusterfsVolumeSource(), validationEnabled); } - public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent) { this(fluent, false); } - - public V1GlusterfsVolumeSourceBuilder( - V1GlusterfsVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1GlusterfsVolumeSource(), validationEnabled); } - - public V1GlusterfsVolumeSourceBuilder( - V1GlusterfsVolumeSourceFluent fluent, V1GlusterfsVolumeSource instance) { + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,V1GlusterfsVolumeSource instance) { this(fluent, instance, false); } - - public V1GlusterfsVolumeSourceBuilder( - V1GlusterfsVolumeSourceFluent fluent, - V1GlusterfsVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,V1GlusterfsVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEndpoints(instance.getEndpoints()); fluent.withPath(instance.getPath()); fluent.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1GlusterfsVolumeSourceBuilder( - V1GlusterfsVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withEndpoints(instance.getEndpoints()); this.withPath(instance.getPath()); this.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1GlusterfsVolumeSourceFluent fluent; Boolean validationEnabled; - public V1GlusterfsVolumeSource build() { V1GlusterfsVolumeSource buildable = new V1GlusterfsVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); @@ -79,4 +50,5 @@ public V1GlusterfsVolumeSource build() { buildable.setReadOnly(fluent.getReadOnly()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java index 33bdc8ab93..47868d8e60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java @@ -1,39 +1,22 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1GlusterfsVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1GlusterfsVolumeSourceFluent> extends Fluent{ public String getEndpoints(); - public A withEndpoints(String endpoints); - public Boolean hasEndpoints(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java index a6737ecd22..075ee28f46 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java @@ -1,111 +1,79 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1GlusterfsVolumeSourceFluentImpl> - extends BaseFluent implements V1GlusterfsVolumeSourceFluent { - public V1GlusterfsVolumeSourceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1GlusterfsVolumeSourceFluentImpl> extends BaseFluent implements V1GlusterfsVolumeSourceFluent{ + public V1GlusterfsVolumeSourceFluentImpl() { + } public V1GlusterfsVolumeSourceFluentImpl(V1GlusterfsVolumeSource instance) { this.withEndpoints(instance.getEndpoints()); this.withPath(instance.getPath()); this.withReadOnly(instance.getReadOnly()); - } + } private String endpoints; private String path; private Boolean readOnly; - public String getEndpoints() { return this.endpoints; } - public A withEndpoints(String endpoints) { - this.endpoints = endpoints; - return (A) this; + this.endpoints=endpoints; return (A) this; } - public Boolean hasEndpoints() { return this.endpoints != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1GlusterfsVolumeSourceFluentImpl that = (V1GlusterfsVolumeSourceFluentImpl) o; - if (endpoints != null ? !endpoints.equals(that.endpoints) : that.endpoints != null) - return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; + if (endpoints != null ? !endpoints.equals(that.endpoints) :that.endpoints != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(endpoints, path, readOnly, super.hashCode()); + return java.util.Objects.hash(endpoints, path, readOnly, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endpoints != null) { - sb.append("endpoints:"); - sb.append(endpoints + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly); - } + if (endpoints != null) { sb.append("endpoints:"); sb.append(endpoints + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java index bcd4a3d666..e7db8ed906 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1GroupVersionForDiscoveryBuilder - extends V1GroupVersionForDiscoveryFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1GroupVersionForDiscoveryBuilder extends V1GroupVersionForDiscoveryFluentImpl implements VisitableBuilder{ public V1GroupVersionForDiscoveryBuilder() { this(false); } - public V1GroupVersionForDiscoveryBuilder(Boolean validationEnabled) { this(new V1GroupVersionForDiscovery(), validationEnabled); } - public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent) { this(fluent, false); } - - public V1GroupVersionForDiscoveryBuilder( - V1GroupVersionForDiscoveryFluent fluent, Boolean validationEnabled) { + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,Boolean validationEnabled) { this(fluent, new V1GroupVersionForDiscovery(), validationEnabled); } - - public V1GroupVersionForDiscoveryBuilder( - V1GroupVersionForDiscoveryFluent fluent, V1GroupVersionForDiscovery instance) { + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,V1GroupVersionForDiscovery instance) { this(fluent, instance, false); } - - public V1GroupVersionForDiscoveryBuilder( - V1GroupVersionForDiscoveryFluent fluent, - V1GroupVersionForDiscovery instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,V1GroupVersionForDiscovery instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withGroupVersion(instance.getGroupVersion()); fluent.withVersion(instance.getVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscovery instance) { - this(instance, false); + this(instance,false); } - - public V1GroupVersionForDiscoveryBuilder( - V1GroupVersionForDiscovery instance, Boolean validationEnabled) { - this.fluent = this; + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscovery instance,Boolean validationEnabled) { + this.fluent = this; this.withGroupVersion(instance.getGroupVersion()); this.withVersion(instance.getVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1GroupVersionForDiscoveryFluent fluent; Boolean validationEnabled; - public V1GroupVersionForDiscovery build() { V1GroupVersionForDiscovery buildable = new V1GroupVersionForDiscovery(); buildable.setGroupVersion(fluent.getGroupVersion()); buildable.setVersion(fluent.getVersion()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java index 3a049a01b1..e9b76f0776 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1GroupVersionForDiscoveryFluent> - extends Fluent { + /** + * Generated + */ +public interface V1GroupVersionForDiscoveryFluent> extends Fluent{ public String getGroupVersion(); - public A withGroupVersion(String groupVersion); - public Boolean hasGroupVersion(); - public String getVersion(); - public A withVersion(String version); - public Boolean hasVersion(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java index 82b1f6e5c7..db7b60353f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1GroupVersionForDiscoveryFluentImpl> - extends BaseFluent implements V1GroupVersionForDiscoveryFluent { - public V1GroupVersionForDiscoveryFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1GroupVersionForDiscoveryFluentImpl> extends BaseFluent implements V1GroupVersionForDiscoveryFluent{ + public V1GroupVersionForDiscoveryFluentImpl() { + } public V1GroupVersionForDiscoveryFluentImpl(V1GroupVersionForDiscovery instance) { this.withGroupVersion(instance.getGroupVersion()); this.withVersion(instance.getVersion()); - } + } private String groupVersion; private String version; - public String getGroupVersion() { return this.groupVersion; } - public A withGroupVersion(String groupVersion) { - this.groupVersion = groupVersion; - return (A) this; + this.groupVersion=groupVersion; return (A) this; } - public Boolean hasGroupVersion() { return this.groupVersion != null; } - public String getVersion() { return this.version; } - public A withVersion(String version) { - this.version = version; - return (A) this; + this.version=version; return (A) this; } - public Boolean hasVersion() { return this.version != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1GroupVersionForDiscoveryFluentImpl that = (V1GroupVersionForDiscoveryFluentImpl) o; - if (groupVersion != null ? !groupVersion.equals(that.groupVersion) : that.groupVersion != null) - return false; - if (version != null ? !version.equals(that.version) : that.version != null) return false; + if (groupVersion != null ? !groupVersion.equals(that.groupVersion) :that.groupVersion != null) return false; + if (version != null ? !version.equals(that.version) :that.version != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(groupVersion, version, super.hashCode()); + return java.util.Objects.hash(groupVersion, version, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (groupVersion != null) { - sb.append("groupVersion:"); - sb.append(groupVersion + ","); - } - if (version != null) { - sb.append("version:"); - sb.append(version); - } + if (groupVersion != null) { sb.append("groupVersion:"); sb.append(groupVersion + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java index a25f31b7b5..14a479f406 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluentImpl implements VisitableBuilder{ public V1HTTPGetActionBuilder() { this(false); } - public V1HTTPGetActionBuilder(Boolean validationEnabled) { this(new V1HTTPGetAction(), validationEnabled); } - public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent) { this(fluent, false); } - - public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent, Boolean validationEnabled) { + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,Boolean validationEnabled) { this(fluent, new V1HTTPGetAction(), validationEnabled); } - - public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent, V1HTTPGetAction instance) { + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,V1HTTPGetAction instance) { this(fluent, instance, false); } - - public V1HTTPGetActionBuilder( - V1HTTPGetActionFluent fluent, V1HTTPGetAction instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,V1HTTPGetAction instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHost(instance.getHost()); fluent.withHttpHeaders(instance.getHttpHeaders()); @@ -49,15 +30,13 @@ public V1HTTPGetActionBuilder( fluent.withScheme(instance.getScheme()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HTTPGetActionBuilder(V1HTTPGetAction instance) { - this(instance, false); + this(instance,false); } - - public V1HTTPGetActionBuilder(V1HTTPGetAction instance, Boolean validationEnabled) { - this.fluent = this; + public V1HTTPGetActionBuilder(V1HTTPGetAction instance,Boolean validationEnabled) { + this.fluent = this; this.withHost(instance.getHost()); this.withHttpHeaders(instance.getHttpHeaders()); @@ -68,12 +47,10 @@ public V1HTTPGetActionBuilder(V1HTTPGetAction instance, Boolean validationEnable this.withScheme(instance.getScheme()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HTTPGetActionFluent fluent; Boolean validationEnabled; - public V1HTTPGetAction build() { V1HTTPGetAction buildable = new V1HTTPGetAction(); buildable.setHost(fluent.getHost()); @@ -83,4 +60,5 @@ public V1HTTPGetAction build() { buildable.setScheme(fluent.getScheme()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java index d5a256eddf..fd30fe7107 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java @@ -1,114 +1,71 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1HTTPGetActionFluent> extends Fluent { + /** + * Generated + */ +public interface V1HTTPGetActionFluent> extends Fluent{ public String getHost(); - public A withHost(String host); - public Boolean hasHost(); - - public A addToHttpHeaders(Integer index, V1HTTPHeader item); - - public A setToHttpHeaders(Integer index, V1HTTPHeader item); - + public A addToHttpHeaders(Integer index,V1HTTPHeader item); + public A setToHttpHeaders(Integer index,V1HTTPHeader item); public A addToHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items); - public A addAllToHttpHeaders(Collection items); - public A removeFromHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items); - public A removeAllFromHttpHeaders(Collection items); - public A removeMatchingFromHttpHeaders(Predicate predicate); - + /** * This method has been deprecated, please use method buildHttpHeaders instead. - * * @return The buildable object. */ @Deprecated public List getHttpHeaders(); - public List buildHttpHeaders(); - public V1HTTPHeader buildHttpHeader(Integer index); - public V1HTTPHeader buildFirstHttpHeader(); - public V1HTTPHeader buildLastHttpHeader(); - public V1HTTPHeader buildMatchingHttpHeader(Predicate predicate); - public Boolean hasMatchingHttpHeader(Predicate predicate); - public A withHttpHeaders(List httpHeaders); - public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... httpHeaders); - public Boolean hasHttpHeaders(); - public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeader(); - public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item); - - public V1HTTPGetActionFluent.HttpHeadersNested setNewHttpHeaderLike( - Integer index, V1HTTPHeader item); - + public V1HTTPGetActionFluent.HttpHeadersNested setNewHttpHeaderLike(Integer index,V1HTTPHeader item); public V1HTTPGetActionFluent.HttpHeadersNested editHttpHeader(Integer index); - public V1HTTPGetActionFluent.HttpHeadersNested editFirstHttpHeader(); - public V1HTTPGetActionFluent.HttpHeadersNested editLastHttpHeader(); - - public V1HTTPGetActionFluent.HttpHeadersNested editMatchingHttpHeader( - Predicate predicate); - + public V1HTTPGetActionFluent.HttpHeadersNested editMatchingHttpHeader(Predicate predicate); public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public IntOrString getPort(); - public A withPort(IntOrString port); - public Boolean hasPort(); - public A withNewPort(int value); - public A withNewPort(String value); - public String getScheme(); - public A withScheme(String scheme); - public Boolean hasScheme(); - - public interface HttpHeadersNested - extends Nested, V1HTTPHeaderFluent> { + public interface HttpHeadersNested extends Nested,V1HTTPHeaderFluent>{ public N and(); - public N endHttpHeader(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java index 1773b52148..6f15f33b6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java @@ -1,32 +1,28 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HTTPGetActionFluentImpl> extends BaseFluent - implements V1HTTPGetActionFluent { - public V1HTTPGetActionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HTTPGetActionFluentImpl> extends BaseFluent implements V1HTTPGetActionFluent{ + public V1HTTPGetActionFluentImpl() { + } public V1HTTPGetActionFluentImpl(V1HTTPGetAction instance) { this.withHost(instance.getHost()); @@ -37,103 +33,47 @@ public V1HTTPGetActionFluentImpl(V1HTTPGetAction instance) { this.withPort(instance.getPort()); this.withScheme(instance.getScheme()); - } + } private String host; private ArrayList httpHeaders; private String path; private IntOrString port; private String scheme; - public String getHost() { return this.host; } - public A withHost(String host) { - this.host = host; - return (A) this; + this.host=host; return (A) this; } - public Boolean hasHost() { return this.host != null; } - - public A addToHttpHeaders(Integer index, V1HTTPHeader item) { - if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); - } - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables - .get("httpHeaders") - .add(index >= 0 ? index : _visitables.get("httpHeaders").size(), builder); - this.httpHeaders.add(index >= 0 ? index : httpHeaders.size(), builder); - return (A) this; + public A addToHttpHeaders(Integer index,V1HTTPHeader item) { + if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(index >= 0 ? index : _visitables.get("httpHeaders").size(), builder);this.httpHeaders.add(index >= 0 ? index : httpHeaders.size(), builder); return (A)this; } - - public A setToHttpHeaders(Integer index, V1HTTPHeader item) { - if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); - } + public A setToHttpHeaders(Integer index,V1HTTPHeader item) { + if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= _visitables.get("httpHeaders").size()) { - _visitables.get("httpHeaders").add(builder); - } else { - _visitables.get("httpHeaders").set(index, builder); - } - if (index < 0 || index >= httpHeaders.size()) { - httpHeaders.add(builder); - } else { - httpHeaders.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("httpHeaders").size()) { _visitables.get("httpHeaders").add(builder); } else { _visitables.get("httpHeaders").set(index, builder);} + if (index < 0 || index >= httpHeaders.size()) { httpHeaders.add(builder); } else { httpHeaders.set(index, builder);} + return (A)this; } - public A addToHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { - if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); - } - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").add(builder); - this.httpHeaders.add(builder); - } - return (A) this; + if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} + for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(builder);this.httpHeaders.add(builder);} return (A)this; } - public A addAllToHttpHeaders(Collection items) { - if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); - } - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").add(builder); - this.httpHeaders.add(builder); - } - return (A) this; + if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} + for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(builder);this.httpHeaders.add(builder);} return (A)this; } - public A removeFromHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").remove(builder); - if (this.httpHeaders != null) { - this.httpHeaders.remove(builder); - } - } - return (A) this; + for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").remove(builder);if (this.httpHeaders != null) {this.httpHeaders.remove(builder);}} return (A)this; } - public A removeAllFromHttpHeaders(Collection items) { - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").remove(builder); - if (this.httpHeaders != null) { - this.httpHeaders.remove(builder); - } - } - return (A) this; + for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").remove(builder);if (this.httpHeaders != null) {this.httpHeaders.remove(builder);}} return (A)this; } - public A removeMatchingFromHttpHeaders(Predicate predicate) { if (httpHeaders == null) return (A) this; final Iterator each = httpHeaders.iterator(); @@ -145,241 +85,152 @@ public A removeMatchingFromHttpHeaders(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildHttpHeaders instead. - * * @return The buildable object. */ @Deprecated public List getHttpHeaders() { return httpHeaders != null ? build(httpHeaders) : null; } - public List buildHttpHeaders() { return httpHeaders != null ? build(httpHeaders) : null; } - public V1HTTPHeader buildHttpHeader(Integer index) { return this.httpHeaders.get(index).build(); } - public V1HTTPHeader buildFirstHttpHeader() { return this.httpHeaders.get(0).build(); } - public V1HTTPHeader buildLastHttpHeader() { return this.httpHeaders.get(httpHeaders.size() - 1).build(); } - public V1HTTPHeader buildMatchingHttpHeader(Predicate predicate) { - for (V1HTTPHeaderBuilder item : httpHeaders) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1HTTPHeaderBuilder item: httpHeaders) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingHttpHeader(Predicate predicate) { - for (V1HTTPHeaderBuilder item : httpHeaders) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1HTTPHeaderBuilder item: httpHeaders) { if(predicate.test(item)){ return true;} } return false; } - public A withHttpHeaders(List httpHeaders) { - if (this.httpHeaders != null) { - _visitables.get("httpHeaders").removeAll(this.httpHeaders); - } - if (httpHeaders != null) { - this.httpHeaders = new ArrayList(); - for (V1HTTPHeader item : httpHeaders) { - this.addToHttpHeaders(item); - } - } else { - this.httpHeaders = null; - } - return (A) this; + if (this.httpHeaders != null) { _visitables.get("httpHeaders").removeAll(this.httpHeaders);} + if (httpHeaders != null) {this.httpHeaders = new ArrayList(); for (V1HTTPHeader item : httpHeaders){this.addToHttpHeaders(item);}} else { this.httpHeaders = null;} return (A) this; } - public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... httpHeaders) { - if (this.httpHeaders != null) { - this.httpHeaders.clear(); - } - if (httpHeaders != null) { - for (V1HTTPHeader item : httpHeaders) { - this.addToHttpHeaders(item); - } - } - return (A) this; + if (this.httpHeaders != null) {this.httpHeaders.clear();} + if (httpHeaders != null) {for (V1HTTPHeader item :httpHeaders){ this.addToHttpHeaders(item);}} return (A) this; } - public Boolean hasHttpHeaders() { return httpHeaders != null && !httpHeaders.isEmpty(); } - public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeader() { return new V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl(); } - public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { return new V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl(-1, item); } - - public V1HTTPGetActionFluent.HttpHeadersNested setNewHttpHeaderLike( - Integer index, V1HTTPHeader item) { + public V1HTTPGetActionFluent.HttpHeadersNested setNewHttpHeaderLike(Integer index,V1HTTPHeader item) { return new V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl(index, item); } - public V1HTTPGetActionFluent.HttpHeadersNested editHttpHeader(Integer index) { - if (httpHeaders.size() <= index) - throw new RuntimeException("Can't edit httpHeaders. Index exceeds size."); + if (httpHeaders.size() <= index) throw new RuntimeException("Can't edit httpHeaders. Index exceeds size."); return setNewHttpHeaderLike(index, buildHttpHeader(index)); } - public V1HTTPGetActionFluent.HttpHeadersNested editFirstHttpHeader() { - if (httpHeaders.size() == 0) - throw new RuntimeException("Can't edit first httpHeaders. The list is empty."); + if (httpHeaders.size() == 0) throw new RuntimeException("Can't edit first httpHeaders. The list is empty."); return setNewHttpHeaderLike(0, buildHttpHeader(0)); } - public V1HTTPGetActionFluent.HttpHeadersNested editLastHttpHeader() { int index = httpHeaders.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last httpHeaders. The list is empty."); return setNewHttpHeaderLike(index, buildHttpHeader(index)); } - - public V1HTTPGetActionFluent.HttpHeadersNested editMatchingHttpHeader( - Predicate predicate) { + public V1HTTPGetActionFluent.HttpHeadersNested editMatchingHttpHeader(Predicate predicate) { int index = -1; - for (int i = 0; i < httpHeaders.size(); i++) { - if (predicate.test(httpHeaders.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1HTTPHeaderFluentImpl> - implements V1HTTPGetActionFluent.HttpHeadersNested, Nested { - HttpHeadersNestedImpl(Integer index, V1HTTPHeader item) { + class HttpHeadersNestedImpl extends V1HTTPHeaderFluentImpl> implements V1HTTPGetActionFluent.HttpHeadersNested,Nested{ + HttpHeadersNestedImpl(Integer index,V1HTTPHeader item) { this.index = index; this.builder = new V1HTTPHeaderBuilder(this, item); } - HttpHeadersNestedImpl() { this.index = -1; this.builder = new V1HTTPHeaderBuilder(this); } - V1HTTPHeaderBuilder builder; Integer index; - public N and() { - return (N) V1HTTPGetActionFluentImpl.this.setToHttpHeaders(index, builder.build()); + return (N) V1HTTPGetActionFluentImpl.this.setToHttpHeaders(index,builder.build()); } - public N endHttpHeader() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java index 468b6df0aa..a803eae04c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1HTTPHeaderBuilder extends V1HTTPHeaderFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HTTPHeaderBuilder extends V1HTTPHeaderFluentImpl implements VisitableBuilder{ public V1HTTPHeaderBuilder() { this(false); } - public V1HTTPHeaderBuilder(Boolean validationEnabled) { this(new V1HTTPHeader(), validationEnabled); } - public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent) { this(fluent, false); } - - public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent, Boolean validationEnabled) { + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,Boolean validationEnabled) { this(fluent, new V1HTTPHeader(), validationEnabled); } - - public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent, V1HTTPHeader instance) { + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,V1HTTPHeader instance) { this(fluent, instance, false); } - - public V1HTTPHeaderBuilder( - V1HTTPHeaderFluent fluent, V1HTTPHeader instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,V1HTTPHeader instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HTTPHeaderBuilder(V1HTTPHeader instance) { - this(instance, false); + this(instance,false); } - - public V1HTTPHeaderBuilder(V1HTTPHeader instance, Boolean validationEnabled) { - this.fluent = this; + public V1HTTPHeaderBuilder(V1HTTPHeader instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HTTPHeaderFluent fluent; Boolean validationEnabled; - public V1HTTPHeader build() { V1HTTPHeader buildable = new V1HTTPHeader(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java index 48b72a9b51..97b5776fa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1HTTPHeaderFluent> extends Fluent { + /** + * Generated + */ +public interface V1HTTPHeaderFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getValue(); - public A withValue(String value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java index 2096600d60..e409280050 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HTTPHeaderFluentImpl> extends BaseFluent - implements V1HTTPHeaderFluent { - public V1HTTPHeaderFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HTTPHeaderFluentImpl> extends BaseFluent implements V1HTTPHeaderFluent{ + public V1HTTPHeaderFluentImpl() { + } public V1HTTPHeaderFluentImpl(V1HTTPHeader instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); - } + } private String name; private String value; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HTTPHeaderFluentImpl that = (V1HTTPHeaderFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return java.util.Objects.hash(name, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java index de61e91bae..f3265d1f1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluentImpl implements VisitableBuilder{ public V1HTTPIngressPathBuilder() { this(false); } - public V1HTTPIngressPathBuilder(Boolean validationEnabled) { this(new V1HTTPIngressPath(), validationEnabled); } - public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent) { this(fluent, false); } - - public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent, Boolean validationEnabled) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,Boolean validationEnabled) { this(fluent, new V1HTTPIngressPath(), validationEnabled); } - - public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent, V1HTTPIngressPath instance) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,V1HTTPIngressPath instance) { this(fluent, instance, false); } - - public V1HTTPIngressPathBuilder( - V1HTTPIngressPathFluent fluent, V1HTTPIngressPath instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,V1HTTPIngressPath instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withBackend(instance.getBackend()); fluent.withPath(instance.getPath()); fluent.withPathType(instance.getPathType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance) { - this(instance, false); + this(instance,false); } - - public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance, Boolean validationEnabled) { - this.fluent = this; + public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance,Boolean validationEnabled) { + this.fluent = this; this.withBackend(instance.getBackend()); this.withPath(instance.getPath()); this.withPathType(instance.getPathType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HTTPIngressPathFluent fluent; Boolean validationEnabled; - public V1HTTPIngressPath build() { V1HTTPIngressPath buildable = new V1HTTPIngressPath(); buildable.setBackend(fluent.getBackend()); @@ -73,4 +50,5 @@ public V1HTTPIngressPath build() { buildable.setPathType(fluent.getPathType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java index fd3075f7a8..43abfa69af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java @@ -1,63 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1HTTPIngressPathFluent> extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1HTTPIngressPathFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildBackend instead. - * * @return The buildable object. */ @Deprecated public V1IngressBackend getBackend(); - public V1IngressBackend buildBackend(); - public A withBackend(V1IngressBackend backend); - public Boolean hasBackend(); - public V1HTTPIngressPathFluent.BackendNested withNewBackend(); - public V1HTTPIngressPathFluent.BackendNested withNewBackendLike(V1IngressBackend item); - public V1HTTPIngressPathFluent.BackendNested editBackend(); - public V1HTTPIngressPathFluent.BackendNested editOrNewBackend(); - public V1HTTPIngressPathFluent.BackendNested editOrNewBackendLike(V1IngressBackend item); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public String getPathType(); - public A withPathType(String pathType); - public Boolean hasPathType(); - - public interface BackendNested - extends Nested, V1IngressBackendFluent> { + public interface BackendNested extends Nested,V1IngressBackendFluent>{ public N and(); - public N endBackend(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java index a0ef07b4b5..e8f31e96ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java @@ -1,167 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HTTPIngressPathFluentImpl> extends BaseFluent - implements V1HTTPIngressPathFluent { - public V1HTTPIngressPathFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HTTPIngressPathFluentImpl> extends BaseFluent implements V1HTTPIngressPathFluent{ + public V1HTTPIngressPathFluentImpl() { + } public V1HTTPIngressPathFluentImpl(V1HTTPIngressPath instance) { this.withBackend(instance.getBackend()); this.withPath(instance.getPath()); this.withPathType(instance.getPathType()); - } + } private V1IngressBackendBuilder backend; private String path; private String pathType; - + /** * This method has been deprecated, please use method buildBackend instead. - * * @return The buildable object. */ @Deprecated public V1IngressBackend getBackend() { - return this.backend != null ? this.backend.build() : null; + return this.backend!=null ?this.backend.build():null; } - public V1IngressBackend buildBackend() { - return this.backend != null ? this.backend.build() : null; + return this.backend!=null ?this.backend.build():null; } - public A withBackend(V1IngressBackend backend) { _visitables.get("backend").remove(this.backend); - if (backend != null) { - this.backend = new V1IngressBackendBuilder(backend); - _visitables.get("backend").add(this.backend); - } else { - this.backend = null; - _visitables.get("backend").remove(this.backend); - } - return (A) this; + if (backend!=null){ this.backend= new V1IngressBackendBuilder(backend); _visitables.get("backend").add(this.backend);} else { this.backend = null; _visitables.get("backend").remove(this.backend); } return (A) this; } - public Boolean hasBackend() { return this.backend != null; } - public V1HTTPIngressPathFluent.BackendNested withNewBackend() { return new V1HTTPIngressPathFluentImpl.BackendNestedImpl(); } - public V1HTTPIngressPathFluent.BackendNested withNewBackendLike(V1IngressBackend item) { return new V1HTTPIngressPathFluentImpl.BackendNestedImpl(item); } - public V1HTTPIngressPathFluent.BackendNested editBackend() { return withNewBackendLike(getBackend()); } - public V1HTTPIngressPathFluent.BackendNested editOrNewBackend() { - return withNewBackendLike( - getBackend() != null ? getBackend() : new V1IngressBackendBuilder().build()); + return withNewBackendLike(getBackend() != null ? getBackend(): new V1IngressBackendBuilder().build()); } - public V1HTTPIngressPathFluent.BackendNested editOrNewBackendLike(V1IngressBackend item) { - return withNewBackendLike(getBackend() != null ? getBackend() : item); + return withNewBackendLike(getBackend() != null ? getBackend(): item); } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public String getPathType() { return this.pathType; } - public A withPathType(String pathType) { - this.pathType = pathType; - return (A) this; + this.pathType=pathType; return (A) this; } - public Boolean hasPathType() { return this.pathType != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HTTPIngressPathFluentImpl that = (V1HTTPIngressPathFluentImpl) o; - if (backend != null ? !backend.equals(that.backend) : that.backend != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (pathType != null ? !pathType.equals(that.pathType) : that.pathType != null) return false; + if (backend != null ? !backend.equals(that.backend) :that.backend != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (pathType != null ? !pathType.equals(that.pathType) :that.pathType != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(backend, path, pathType, super.hashCode()); + return java.util.Objects.hash(backend, path, pathType, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (backend != null) { - sb.append("backend:"); - sb.append(backend + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (pathType != null) { - sb.append("pathType:"); - sb.append(pathType); - } + if (backend != null) { sb.append("backend:"); sb.append(backend + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (pathType != null) { sb.append("pathType:"); sb.append(pathType); } sb.append("}"); return sb.toString(); } - - class BackendNestedImpl - extends V1IngressBackendFluentImpl> - implements V1HTTPIngressPathFluent.BackendNested, Nested { + class BackendNestedImpl extends V1IngressBackendFluentImpl> implements V1HTTPIngressPathFluent.BackendNested,Nested{ BackendNestedImpl(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } - BackendNestedImpl() { this.builder = new V1IngressBackendBuilder(this); } - V1IngressBackendBuilder builder; - public N and() { return (N) V1HTTPIngressPathFluentImpl.this.withBackend(builder.build()); } - public N endBackend() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java index 6d38e61d63..d41017a690 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1HTTPIngressRuleValueBuilder - extends V1HTTPIngressRuleValueFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HTTPIngressRuleValueBuilder extends V1HTTPIngressRuleValueFluentImpl implements VisitableBuilder{ public V1HTTPIngressRuleValueBuilder() { this(false); } - public V1HTTPIngressRuleValueBuilder(Boolean validationEnabled) { this(new V1HTTPIngressRuleValue(), validationEnabled); } - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent) { this(fluent, false); } - - public V1HTTPIngressRuleValueBuilder( - V1HTTPIngressRuleValueFluent fluent, Boolean validationEnabled) { + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,Boolean validationEnabled) { this(fluent, new V1HTTPIngressRuleValue(), validationEnabled); } - - public V1HTTPIngressRuleValueBuilder( - V1HTTPIngressRuleValueFluent fluent, V1HTTPIngressRuleValue instance) { + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,V1HTTPIngressRuleValue instance) { this(fluent, instance, false); } - - public V1HTTPIngressRuleValueBuilder( - V1HTTPIngressRuleValueFluent fluent, - V1HTTPIngressRuleValue instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,V1HTTPIngressRuleValue instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPaths(instance.getPaths()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance) { - this(instance, false); + this(instance,false); } - - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance, Boolean validationEnabled) { - this.fluent = this; + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance,Boolean validationEnabled) { + this.fluent = this; this.withPaths(instance.getPaths()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HTTPIngressRuleValueFluent fluent; Boolean validationEnabled; - public V1HTTPIngressRuleValue build() { V1HTTPIngressRuleValue buildable = new V1HTTPIngressRuleValue(); buildable.setPaths(fluent.getPaths()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java index 88339be1c5..dfd35c473b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java @@ -1,86 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1HTTPIngressRuleValueFluent> - extends Fluent { - public A addToPaths(Integer index, V1HTTPIngressPath item); - - public A setToPaths(Integer index, V1HTTPIngressPath item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1HTTPIngressRuleValueFluent> extends Fluent{ + public A addToPaths(Integer index,V1HTTPIngressPath item); + public A setToPaths(Integer index,V1HTTPIngressPath item); public A addToPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items); - public A addAllToPaths(Collection items); - public A removeFromPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items); - public A removeAllFromPaths(Collection items); - public A removeMatchingFromPaths(Predicate predicate); - + /** * This method has been deprecated, please use method buildPaths instead. - * * @return The buildable object. */ @Deprecated public List getPaths(); - public List buildPaths(); - public V1HTTPIngressPath buildPath(Integer index); - public V1HTTPIngressPath buildFirstPath(); - public V1HTTPIngressPath buildLastPath(); - public V1HTTPIngressPath buildMatchingPath(Predicate predicate); - public Boolean hasMatchingPath(Predicate predicate); - public A withPaths(List paths); - public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... paths); - public Boolean hasPaths(); - public V1HTTPIngressRuleValueFluent.PathsNested addNewPath(); - public V1HTTPIngressRuleValueFluent.PathsNested addNewPathLike(V1HTTPIngressPath item); - - public V1HTTPIngressRuleValueFluent.PathsNested setNewPathLike( - Integer index, V1HTTPIngressPath item); - + public V1HTTPIngressRuleValueFluent.PathsNested setNewPathLike(Integer index,V1HTTPIngressPath item); public V1HTTPIngressRuleValueFluent.PathsNested editPath(Integer index); - public V1HTTPIngressRuleValueFluent.PathsNested editFirstPath(); - public V1HTTPIngressRuleValueFluent.PathsNested editLastPath(); - - public V1HTTPIngressRuleValueFluent.PathsNested editMatchingPath( - Predicate predicate); - - public interface PathsNested - extends Nested, V1HTTPIngressPathFluent> { + public V1HTTPIngressRuleValueFluent.PathsNested editMatchingPath(Predicate predicate); + public interface PathsNested extends Nested,V1HTTPIngressPathFluent>{ public N and(); - public N endPath(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java index 9585d6ea95..ce5dce0e5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java @@ -1,111 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HTTPIngressRuleValueFluentImpl> - extends BaseFluent implements V1HTTPIngressRuleValueFluent { - public V1HTTPIngressRuleValueFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HTTPIngressRuleValueFluentImpl> extends BaseFluent implements V1HTTPIngressRuleValueFluent{ + public V1HTTPIngressRuleValueFluentImpl() { + } public V1HTTPIngressRuleValueFluentImpl(V1HTTPIngressRuleValue instance) { this.withPaths(instance.getPaths()); - } + } private ArrayList paths; - - public A addToPaths(Integer index, V1HTTPIngressPath item) { - if (this.paths == null) { - this.paths = new ArrayList(); - } - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").add(index >= 0 ? index : _visitables.get("paths").size(), builder); - this.paths.add(index >= 0 ? index : paths.size(), builder); - return (A) this; + public A addToPaths(Integer index,V1HTTPIngressPath item) { + if (this.paths == null) {this.paths = new ArrayList();} + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(index >= 0 ? index : _visitables.get("paths").size(), builder);this.paths.add(index >= 0 ? index : paths.size(), builder); return (A)this; } - - public A setToPaths(Integer index, V1HTTPIngressPath item) { - if (this.paths == null) { - this.paths = new ArrayList(); - } + public A setToPaths(Integer index,V1HTTPIngressPath item) { + if (this.paths == null) {this.paths = new ArrayList();} V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= _visitables.get("paths").size()) { - _visitables.get("paths").add(builder); - } else { - _visitables.get("paths").set(index, builder); - } - if (index < 0 || index >= paths.size()) { - paths.add(builder); - } else { - paths.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("paths").size()) { _visitables.get("paths").add(builder); } else { _visitables.get("paths").set(index, builder);} + if (index < 0 || index >= paths.size()) { paths.add(builder); } else { paths.set(index, builder);} + return (A)this; } - public A addToPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { - if (this.paths == null) { - this.paths = new ArrayList(); - } - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").add(builder); - this.paths.add(builder); - } - return (A) this; + if (this.paths == null) {this.paths = new ArrayList();} + for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(builder);this.paths.add(builder);} return (A)this; } - public A addAllToPaths(Collection items) { - if (this.paths == null) { - this.paths = new ArrayList(); - } - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").add(builder); - this.paths.add(builder); - } - return (A) this; + if (this.paths == null) {this.paths = new ArrayList();} + for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(builder);this.paths.add(builder);} return (A)this; } - public A removeFromPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").remove(builder); - if (this.paths != null) { - this.paths.remove(builder); - } - } - return (A) this; + for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").remove(builder);if (this.paths != null) {this.paths.remove(builder);}} return (A)this; } - public A removeAllFromPaths(Collection items) { - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").remove(builder); - if (this.paths != null) { - this.paths.remove(builder); - } - } - return (A) this; + for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").remove(builder);if (this.paths != null) {this.paths.remove(builder);}} return (A)this; } - public A removeMatchingFromPaths(Predicate predicate) { if (paths == null) return (A) this; final Iterator each = paths.iterator(); @@ -117,171 +63,111 @@ public A removeMatchingFromPaths(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPaths instead. - * * @return The buildable object. */ @Deprecated public List getPaths() { return paths != null ? build(paths) : null; } - public List buildPaths() { return paths != null ? build(paths) : null; } - public V1HTTPIngressPath buildPath(Integer index) { return this.paths.get(index).build(); } - public V1HTTPIngressPath buildFirstPath() { return this.paths.get(0).build(); } - public V1HTTPIngressPath buildLastPath() { return this.paths.get(paths.size() - 1).build(); } - public V1HTTPIngressPath buildMatchingPath(Predicate predicate) { - for (V1HTTPIngressPathBuilder item : paths) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1HTTPIngressPathBuilder item: paths) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPath(Predicate predicate) { - for (V1HTTPIngressPathBuilder item : paths) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1HTTPIngressPathBuilder item: paths) { if(predicate.test(item)){ return true;} } return false; } - public A withPaths(List paths) { - if (this.paths != null) { - _visitables.get("paths").removeAll(this.paths); - } - if (paths != null) { - this.paths = new ArrayList(); - for (V1HTTPIngressPath item : paths) { - this.addToPaths(item); - } - } else { - this.paths = null; - } - return (A) this; + if (this.paths != null) { _visitables.get("paths").removeAll(this.paths);} + if (paths != null) {this.paths = new ArrayList(); for (V1HTTPIngressPath item : paths){this.addToPaths(item);}} else { this.paths = null;} return (A) this; } - public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... paths) { - if (this.paths != null) { - this.paths.clear(); - } - if (paths != null) { - for (V1HTTPIngressPath item : paths) { - this.addToPaths(item); - } - } - return (A) this; + if (this.paths != null) {this.paths.clear();} + if (paths != null) {for (V1HTTPIngressPath item :paths){ this.addToPaths(item);}} return (A) this; } - public Boolean hasPaths() { return paths != null && !paths.isEmpty(); } - public V1HTTPIngressRuleValueFluent.PathsNested addNewPath() { return new V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl(); } - public V1HTTPIngressRuleValueFluent.PathsNested addNewPathLike(V1HTTPIngressPath item) { return new V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl(-1, item); } - - public V1HTTPIngressRuleValueFluent.PathsNested setNewPathLike( - Integer index, V1HTTPIngressPath item) { + public V1HTTPIngressRuleValueFluent.PathsNested setNewPathLike(Integer index,V1HTTPIngressPath item) { return new V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl(index, item); } - public V1HTTPIngressRuleValueFluent.PathsNested editPath(Integer index) { if (paths.size() <= index) throw new RuntimeException("Can't edit paths. Index exceeds size."); return setNewPathLike(index, buildPath(index)); } - public V1HTTPIngressRuleValueFluent.PathsNested editFirstPath() { if (paths.size() == 0) throw new RuntimeException("Can't edit first paths. The list is empty."); return setNewPathLike(0, buildPath(0)); } - public V1HTTPIngressRuleValueFluent.PathsNested editLastPath() { int index = paths.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last paths. The list is empty."); return setNewPathLike(index, buildPath(index)); } - - public V1HTTPIngressRuleValueFluent.PathsNested editMatchingPath( - Predicate predicate) { + public V1HTTPIngressRuleValueFluent.PathsNested editMatchingPath(Predicate predicate) { int index = -1; - for (int i = 0; i < paths.size(); i++) { - if (predicate.test(paths.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1HTTPIngressPathFluentImpl> - implements V1HTTPIngressRuleValueFluent.PathsNested, Nested { - PathsNestedImpl(Integer index, V1HTTPIngressPath item) { + class PathsNestedImpl extends V1HTTPIngressPathFluentImpl> implements V1HTTPIngressRuleValueFluent.PathsNested,Nested{ + PathsNestedImpl(Integer index,V1HTTPIngressPath item) { this.index = index; this.builder = new V1HTTPIngressPathBuilder(this, item); } - PathsNestedImpl() { this.index = -1; this.builder = new V1HTTPIngressPathBuilder(this); } - V1HTTPIngressPathBuilder builder; Integer index; - public N and() { - return (N) V1HTTPIngressRuleValueFluentImpl.this.setToPaths(index, builder.build()); + return (N) V1HTTPIngressRuleValueFluentImpl.this.setToPaths(index,builder.build()); } - public N endPath() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java index 11d3164df2..2026acd05f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1HorizontalPodAutoscalerBuilder - extends V1HorizontalPodAutoscalerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HorizontalPodAutoscalerBuilder extends V1HorizontalPodAutoscalerFluentImpl implements VisitableBuilder{ public V1HorizontalPodAutoscalerBuilder() { this(false); } - public V1HorizontalPodAutoscalerBuilder(Boolean validationEnabled) { this(new V1HorizontalPodAutoscaler(), validationEnabled); } - public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent) { this(fluent, false); } - - public V1HorizontalPodAutoscalerBuilder( - V1HorizontalPodAutoscalerFluent fluent, Boolean validationEnabled) { + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscaler(), validationEnabled); } - - public V1HorizontalPodAutoscalerBuilder( - V1HorizontalPodAutoscalerFluent fluent, V1HorizontalPodAutoscaler instance) { + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,V1HorizontalPodAutoscaler instance) { this(fluent, instance, false); } - - public V1HorizontalPodAutoscalerBuilder( - V1HorizontalPodAutoscalerFluent fluent, - V1HorizontalPodAutoscaler instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,V1HorizontalPodAutoscaler instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1HorizontalPodAutoscalerBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscaler instance) { - this(instance, false); + this(instance,false); } - - public V1HorizontalPodAutoscalerBuilder( - V1HorizontalPodAutoscaler instance, Boolean validationEnabled) { - this.fluent = this; + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscaler instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1HorizontalPodAutoscalerBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HorizontalPodAutoscalerFluent fluent; Boolean validationEnabled; - public V1HorizontalPodAutoscaler build() { V1HorizontalPodAutoscaler buildable = new V1HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1HorizontalPodAutoscaler build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java index 62f4e404ec..3fbe52c8c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java @@ -1,131 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1HorizontalPodAutoscalerFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1HorizontalPodAutoscalerFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata(); - public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1HorizontalPodAutoscalerFluent.MetadataNested editMetadata(); - public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata(); - public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1HorizontalPodAutoscalerSpec getSpec(); - public V1HorizontalPodAutoscalerSpec buildSpec(); - public A withSpec(V1HorizontalPodAutoscalerSpec spec); - public Boolean hasSpec(); - public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - - public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( - V1HorizontalPodAutoscalerSpec item); - + public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item); public V1HorizontalPodAutoscalerFluent.SpecNested editSpec(); - public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec(); - - public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( - V1HorizontalPodAutoscalerSpec item); - + public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike(V1HorizontalPodAutoscalerSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1HorizontalPodAutoscalerStatus getStatus(); - public V1HorizontalPodAutoscalerStatus buildStatus(); - public A withStatus(V1HorizontalPodAutoscalerStatus status); - public Boolean hasStatus(); - public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - - public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( - V1HorizontalPodAutoscalerStatus item); - + public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item); public V1HorizontalPodAutoscalerFluent.StatusNested editStatus(); - public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus(); - - public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( - V1HorizontalPodAutoscalerStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1HorizontalPodAutoscalerSpecFluent> { + public interface SpecNested extends Nested,V1HorizontalPodAutoscalerSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1HorizontalPodAutoscalerStatusFluent> { + public interface StatusNested extends Nested,V1HorizontalPodAutoscalerStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java index a1e99f4375..8bc01e9d67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HorizontalPodAutoscalerFluentImpl> - extends BaseFluent implements V1HorizontalPodAutoscalerFluent { - public V1HorizontalPodAutoscalerFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HorizontalPodAutoscalerFluentImpl> extends BaseFluent implements V1HorizontalPodAutoscalerFluent{ + public V1HorizontalPodAutoscalerFluentImpl() { + } public V1HorizontalPodAutoscalerFluentImpl(V1HorizontalPodAutoscaler instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,306 +25,205 @@ public V1HorizontalPodAutoscalerFluentImpl(V1HorizontalPodAutoscaler instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1HorizontalPodAutoscalerSpecBuilder spec; private V1HorizontalPodAutoscalerStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { return new V1HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); } - public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); } - public V1HorizontalPodAutoscalerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1HorizontalPodAutoscalerSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1HorizontalPodAutoscalerSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1HorizontalPodAutoscalerSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1HorizontalPodAutoscalerSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { return new V1HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); } - - public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( - V1HorizontalPodAutoscalerSpec item) { + public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item) { return new V1HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(item); } - public V1HorizontalPodAutoscalerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1HorizontalPodAutoscalerSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1HorizontalPodAutoscalerSpecBuilder().build()); } - - public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( - V1HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike(V1HorizontalPodAutoscalerSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1HorizontalPodAutoscalerStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1HorizontalPodAutoscalerStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1HorizontalPodAutoscalerStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1HorizontalPodAutoscalerStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { return new V1HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); } - - public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( - V1HorizontalPodAutoscalerStatus item) { + public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item) { return new V1HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(item); } - public V1HorizontalPodAutoscalerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1HorizontalPodAutoscalerStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1HorizontalPodAutoscalerStatusBuilder().build()); } - - public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( - V1HorizontalPodAutoscalerStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HorizontalPodAutoscalerFluentImpl that = (V1HorizontalPodAutoscalerFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1HorizontalPodAutoscalerFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1HorizontalPodAutoscalerFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1HorizontalPodAutoscalerSpecFluentImpl> - implements V1HorizontalPodAutoscalerFluent.SpecNested, Nested { + class SpecNestedImpl extends V1HorizontalPodAutoscalerSpecFluentImpl> implements V1HorizontalPodAutoscalerFluent.SpecNested,Nested{ SpecNestedImpl(V1HorizontalPodAutoscalerSpec item) { this.builder = new V1HorizontalPodAutoscalerSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1HorizontalPodAutoscalerSpecBuilder(this); } - V1HorizontalPodAutoscalerSpecBuilder builder; - public N and() { return (N) V1HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1HorizontalPodAutoscalerStatusFluentImpl< - V1HorizontalPodAutoscalerFluent.StatusNested> - implements V1HorizontalPodAutoscalerFluent.StatusNested, Nested { + class StatusNestedImpl extends V1HorizontalPodAutoscalerStatusFluentImpl> implements V1HorizontalPodAutoscalerFluent.StatusNested,Nested{ StatusNestedImpl(V1HorizontalPodAutoscalerStatus item) { this.builder = new V1HorizontalPodAutoscalerStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1HorizontalPodAutoscalerStatusBuilder(this); } - V1HorizontalPodAutoscalerStatusBuilder builder; - public N and() { return (N) V1HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java index 46cc56b283..01fa893935 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1HorizontalPodAutoscalerListBuilder - extends V1HorizontalPodAutoscalerListFluentImpl - implements VisitableBuilder< - V1HorizontalPodAutoscalerList, V1HorizontalPodAutoscalerListBuilder> { +import java.lang.Boolean; +public class V1HorizontalPodAutoscalerListBuilder extends V1HorizontalPodAutoscalerListFluentImpl implements VisitableBuilder{ public V1HorizontalPodAutoscalerListBuilder() { this(false); } - public V1HorizontalPodAutoscalerListBuilder(Boolean validationEnabled) { this(new V1HorizontalPodAutoscalerList(), validationEnabled); } - public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent) { this(fluent, false); } - - public V1HorizontalPodAutoscalerListBuilder( - V1HorizontalPodAutoscalerListFluent fluent, Boolean validationEnabled) { + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscalerList(), validationEnabled); } - - public V1HorizontalPodAutoscalerListBuilder( - V1HorizontalPodAutoscalerListFluent fluent, V1HorizontalPodAutoscalerList instance) { + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,V1HorizontalPodAutoscalerList instance) { this(fluent, instance, false); } - - public V1HorizontalPodAutoscalerListBuilder( - V1HorizontalPodAutoscalerListFluent fluent, - V1HorizontalPodAutoscalerList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,V1HorizontalPodAutoscalerList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -53,16 +28,13 @@ public V1HorizontalPodAutoscalerListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerList instance) { - this(instance, false); + this(instance,false); } - - public V1HorizontalPodAutoscalerListBuilder( - V1HorizontalPodAutoscalerList instance, Boolean validationEnabled) { - this.fluent = this; + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -71,12 +43,10 @@ public V1HorizontalPodAutoscalerListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HorizontalPodAutoscalerListFluent fluent; Boolean validationEnabled; - public V1HorizontalPodAutoscalerList build() { V1HorizontalPodAutoscalerList buildable = new V1HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V1HorizontalPodAutoscalerList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java index c787ea524c..3246027bed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java @@ -1,134 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1HorizontalPodAutoscalerListFluent< - A extends V1HorizontalPodAutoscalerListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1HorizontalPodAutoscalerListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1HorizontalPodAutoscaler item); - - public A setToItems(Integer index, V1HorizontalPodAutoscaler item); - + public A addToItems(Integer index,V1HorizontalPodAutoscaler item); + public A setToItems(Integer index,V1HorizontalPodAutoscaler item); public A addToItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1HorizontalPodAutoscaler buildItem(Integer index); - public V1HorizontalPodAutoscaler buildFirstItem(); - public V1HorizontalPodAutoscaler buildLastItem(); - - public V1HorizontalPodAutoscaler buildMatchingItem( - Predicate predicate); - + public V1HorizontalPodAutoscaler buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items); - public Boolean hasItems(); - public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); - - public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - V1HorizontalPodAutoscaler item); - - public V1HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( - Integer index, V1HorizontalPodAutoscaler item); - + public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item); + public V1HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike(Integer index,V1HorizontalPodAutoscaler item); public V1HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index); - public V1HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem(); - public V1HorizontalPodAutoscalerListFluent.ItemsNested editLastItem(); - - public V1HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1HorizontalPodAutoscalerListFluent.MetadataNested editMetadata(); - public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata(); - - public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1HorizontalPodAutoscalerFluent> { + public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1HorizontalPodAutoscalerFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java index d10859ef2d..e40a293d77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HorizontalPodAutoscalerListFluentImpl< - A extends V1HorizontalPodAutoscalerListFluent> - extends BaseFluent implements V1HorizontalPodAutoscalerListFluent { - public V1HorizontalPodAutoscalerListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HorizontalPodAutoscalerListFluentImpl> extends BaseFluent implements V1HorizontalPodAutoscalerListFluent{ + public V1HorizontalPodAutoscalerListFluentImpl() { + } public V1HorizontalPodAutoscalerListFluentImpl(V1HorizontalPodAutoscalerList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,100 +30,46 @@ public V1HorizontalPodAutoscalerListFluentImpl(V1HorizontalPodAutoscalerList ins this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1HorizontalPodAutoscaler item) { + if (this.items == null) {this.items = new ArrayList();} + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1HorizontalPodAutoscaler item) { + if (this.items == null) {this.items = new ArrayList();} V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -140,278 +81,176 @@ public A removeMatchingFromItems(Predicate pre each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1HorizontalPodAutoscaler buildItem(Integer index) { return this.items.get(index).build(); } - public V1HorizontalPodAutoscaler buildFirstItem() { return this.items.get(0).build(); } - public V1HorizontalPodAutoscaler buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1HorizontalPodAutoscaler buildMatchingItem( - Predicate predicate) { - for (V1HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { + for (V1HorizontalPodAutoscalerBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1HorizontalPodAutoscalerBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1HorizontalPodAutoscaler item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1HorizontalPodAutoscaler item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return new V1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(); } - - public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - V1HorizontalPodAutoscaler item) { + public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item) { return new V1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( - Integer index, V1HorizontalPodAutoscaler item) { + public V1HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike(Integer index,V1HorizontalPodAutoscaler item) { return new V1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(index, item); } - public V1HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1HorizontalPodAutoscalerListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); } - - public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(item); } - public V1HorizontalPodAutoscalerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HorizontalPodAutoscalerListFluentImpl that = (V1HorizontalPodAutoscalerListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1HorizontalPodAutoscalerFluentImpl< - V1HorizontalPodAutoscalerListFluent.ItemsNested> - implements V1HorizontalPodAutoscalerListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1HorizontalPodAutoscaler item) { + class ItemsNestedImpl extends V1HorizontalPodAutoscalerFluentImpl> implements V1HorizontalPodAutoscalerListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1HorizontalPodAutoscaler item) { this.index = index; this.builder = new V1HorizontalPodAutoscalerBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1HorizontalPodAutoscalerBuilder(this); } - V1HorizontalPodAutoscalerBuilder builder; Integer index; - public N and() { - return (N) V1HorizontalPodAutoscalerListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1HorizontalPodAutoscalerListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1HorizontalPodAutoscalerListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1HorizontalPodAutoscalerListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java index 31539de993..eebfb212a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1HorizontalPodAutoscalerSpecBuilder - extends V1HorizontalPodAutoscalerSpecFluentImpl - implements VisitableBuilder< - V1HorizontalPodAutoscalerSpec, V1HorizontalPodAutoscalerSpecBuilder> { +import java.lang.Boolean; +public class V1HorizontalPodAutoscalerSpecBuilder extends V1HorizontalPodAutoscalerSpecFluentImpl implements VisitableBuilder{ public V1HorizontalPodAutoscalerSpecBuilder() { this(false); } - public V1HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { this(new V1HorizontalPodAutoscalerSpec(), validationEnabled); } - public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent) { this(fluent, false); } - - public V1HorizontalPodAutoscalerSpecBuilder( - V1HorizontalPodAutoscalerSpecFluent fluent, Boolean validationEnabled) { + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscalerSpec(), validationEnabled); } - - public V1HorizontalPodAutoscalerSpecBuilder( - V1HorizontalPodAutoscalerSpecFluent fluent, V1HorizontalPodAutoscalerSpec instance) { + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,V1HorizontalPodAutoscalerSpec instance) { this(fluent, instance, false); } - - public V1HorizontalPodAutoscalerSpecBuilder( - V1HorizontalPodAutoscalerSpecFluent fluent, - V1HorizontalPodAutoscalerSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,V1HorizontalPodAutoscalerSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMaxReplicas(instance.getMaxReplicas()); fluent.withMinReplicas(instance.getMinReplicas()); @@ -53,16 +28,13 @@ public V1HorizontalPodAutoscalerSpecBuilder( fluent.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpec instance) { - this(instance, false); + this(instance,false); } - - public V1HorizontalPodAutoscalerSpecBuilder( - V1HorizontalPodAutoscalerSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMaxReplicas(instance.getMaxReplicas()); this.withMinReplicas(instance.getMinReplicas()); @@ -71,12 +43,10 @@ public V1HorizontalPodAutoscalerSpecBuilder( this.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HorizontalPodAutoscalerSpecFluent fluent; Boolean validationEnabled; - public V1HorizontalPodAutoscalerSpec build() { V1HorizontalPodAutoscalerSpec buildable = new V1HorizontalPodAutoscalerSpec(); buildable.setMaxReplicas(fluent.getMaxReplicas()); @@ -85,4 +55,5 @@ public V1HorizontalPodAutoscalerSpec build() { buildable.setTargetCPUUtilizationPercentage(fluent.getTargetCPUUtilizationPercentage()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java index 22cda0efbf..60e9c222a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java @@ -1,74 +1,43 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1HorizontalPodAutoscalerSpecFluent< - A extends V1HorizontalPodAutoscalerSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1HorizontalPodAutoscalerSpecFluent> extends Fluent{ public Integer getMaxReplicas(); - public A withMaxReplicas(Integer maxReplicas); - public Boolean hasMaxReplicas(); - public Integer getMinReplicas(); - public A withMinReplicas(Integer minReplicas); - public Boolean hasMinReplicas(); - + /** * This method has been deprecated, please use method buildScaleTargetRef instead. - * * @return The buildable object. */ @Deprecated public V1CrossVersionObjectReference getScaleTargetRef(); - public V1CrossVersionObjectReference buildScaleTargetRef(); - public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef); - public Boolean hasScaleTargetRef(); - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( - V1CrossVersionObjectReference item); - + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item); public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef(); - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef(); - - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( - V1CrossVersionObjectReference item); - + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike(V1CrossVersionObjectReference item); public Integer getTargetCPUUtilizationPercentage(); - public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage); - public Boolean hasTargetCPUUtilizationPercentage(); - - public interface ScaleTargetRefNested - extends Nested, - V1CrossVersionObjectReferenceFluent< - V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> { + public interface ScaleTargetRefNested extends Nested,V1CrossVersionObjectReferenceFluent>{ public N and(); - public N endScaleTargetRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java index d0217edd78..a5db8524ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java @@ -1,27 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HorizontalPodAutoscalerSpecFluentImpl< - A extends V1HorizontalPodAutoscalerSpecFluent> - extends BaseFluent implements V1HorizontalPodAutoscalerSpecFluent { - public V1HorizontalPodAutoscalerSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HorizontalPodAutoscalerSpecFluentImpl> extends BaseFluent implements V1HorizontalPodAutoscalerSpecFluent{ + public V1HorizontalPodAutoscalerSpecFluentImpl() { + } public V1HorizontalPodAutoscalerSpecFluentImpl(V1HorizontalPodAutoscalerSpec instance) { this.withMaxReplicas(instance.getMaxReplicas()); @@ -30,172 +24,111 @@ public V1HorizontalPodAutoscalerSpecFluentImpl(V1HorizontalPodAutoscalerSpec ins this.withScaleTargetRef(instance.getScaleTargetRef()); this.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); - } + } private Integer maxReplicas; private Integer minReplicas; private V1CrossVersionObjectReferenceBuilder scaleTargetRef; private Integer targetCPUUtilizationPercentage; - public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; + this.maxReplicas=maxReplicas; return (A) this; } - public Boolean hasMaxReplicas() { return this.maxReplicas != null; } - public Integer getMinReplicas() { return this.minReplicas; } - public A withMinReplicas(Integer minReplicas) { - this.minReplicas = minReplicas; - return (A) this; + this.minReplicas=minReplicas; return (A) this; } - public Boolean hasMinReplicas() { return this.minReplicas != null; } - + /** * This method has been deprecated, please use method buildScaleTargetRef instead. - * * @return The buildable object. */ @Deprecated public V1CrossVersionObjectReference getScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + return this.scaleTargetRef!=null ?this.scaleTargetRef.build():null; } - public V1CrossVersionObjectReference buildScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + return this.scaleTargetRef!=null ?this.scaleTargetRef.build():null; } - public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); - if (scaleTargetRef != null) { - this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); - _visitables.get("scaleTargetRef").add(this.scaleTargetRef); - } else { - this.scaleTargetRef = null; - _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); - } - return (A) this; + if (scaleTargetRef!=null){ this.scaleTargetRef= new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); _visitables.get("scaleTargetRef").add(this.scaleTargetRef);} else { this.scaleTargetRef = null; _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); } return (A) this; } - public Boolean hasScaleTargetRef() { return this.scaleTargetRef != null; } - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef() { return new V1HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); } - - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( - V1CrossVersionObjectReference item) { + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item) { return new V1HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(item); } - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef() { return withNewScaleTargetRefLike(getScaleTargetRef()); } - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike( - getScaleTargetRef() != null - ? getScaleTargetRef() - : new V1CrossVersionObjectReferenceBuilder().build()); + return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef(): new V1CrossVersionObjectReferenceBuilder().build()); } - - public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( - V1CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike(V1CrossVersionObjectReference item) { + return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef(): item); } - public Integer getTargetCPUUtilizationPercentage() { return this.targetCPUUtilizationPercentage; } - public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { - this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; - return (A) this; + this.targetCPUUtilizationPercentage=targetCPUUtilizationPercentage; return (A) this; } - public Boolean hasTargetCPUUtilizationPercentage() { return this.targetCPUUtilizationPercentage != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HorizontalPodAutoscalerSpecFluentImpl that = (V1HorizontalPodAutoscalerSpecFluentImpl) o; - if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) : that.maxReplicas != null) - return false; - if (minReplicas != null ? !minReplicas.equals(that.minReplicas) : that.minReplicas != null) - return false; - if (scaleTargetRef != null - ? !scaleTargetRef.equals(that.scaleTargetRef) - : that.scaleTargetRef != null) return false; - if (targetCPUUtilizationPercentage != null - ? !targetCPUUtilizationPercentage.equals(that.targetCPUUtilizationPercentage) - : that.targetCPUUtilizationPercentage != null) return false; + if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) :that.maxReplicas != null) return false; + if (minReplicas != null ? !minReplicas.equals(that.minReplicas) :that.minReplicas != null) return false; + if (scaleTargetRef != null ? !scaleTargetRef.equals(that.scaleTargetRef) :that.scaleTargetRef != null) return false; + if (targetCPUUtilizationPercentage != null ? !targetCPUUtilizationPercentage.equals(that.targetCPUUtilizationPercentage) :that.targetCPUUtilizationPercentage != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage, super.hashCode()); + return java.util.Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxReplicas != null) { - sb.append("maxReplicas:"); - sb.append(maxReplicas + ","); - } - if (minReplicas != null) { - sb.append("minReplicas:"); - sb.append(minReplicas + ","); - } - if (scaleTargetRef != null) { - sb.append("scaleTargetRef:"); - sb.append(scaleTargetRef + ","); - } - if (targetCPUUtilizationPercentage != null) { - sb.append("targetCPUUtilizationPercentage:"); - sb.append(targetCPUUtilizationPercentage); - } + if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } + if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } + if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef + ","); } + if (targetCPUUtilizationPercentage != null) { sb.append("targetCPUUtilizationPercentage:"); sb.append(targetCPUUtilizationPercentage); } sb.append("}"); return sb.toString(); } - - class ScaleTargetRefNestedImpl - extends V1CrossVersionObjectReferenceFluentImpl< - V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested, Nested { + class ScaleTargetRefNestedImpl extends V1CrossVersionObjectReferenceFluentImpl> implements V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested,Nested{ ScaleTargetRefNestedImpl(V1CrossVersionObjectReference item) { this.builder = new V1CrossVersionObjectReferenceBuilder(this, item); } - ScaleTargetRefNestedImpl() { this.builder = new V1CrossVersionObjectReferenceBuilder(this); } - V1CrossVersionObjectReferenceBuilder builder; - public N and() { return (N) V1HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); } - public N endScaleTargetRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java index b34212c960..ffbb823203 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1HorizontalPodAutoscalerStatusBuilder - extends V1HorizontalPodAutoscalerStatusFluentImpl - implements VisitableBuilder< - V1HorizontalPodAutoscalerStatus, V1HorizontalPodAutoscalerStatusBuilder> { +import java.lang.Boolean; +public class V1HorizontalPodAutoscalerStatusBuilder extends V1HorizontalPodAutoscalerStatusFluentImpl implements VisitableBuilder{ public V1HorizontalPodAutoscalerStatusBuilder() { this(false); } - public V1HorizontalPodAutoscalerStatusBuilder(Boolean validationEnabled) { this(new V1HorizontalPodAutoscalerStatus(), validationEnabled); } - public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent) { this(fluent, false); } - - public V1HorizontalPodAutoscalerStatusBuilder( - V1HorizontalPodAutoscalerStatusFluent fluent, Boolean validationEnabled) { + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscalerStatus(), validationEnabled); } - - public V1HorizontalPodAutoscalerStatusBuilder( - V1HorizontalPodAutoscalerStatusFluent fluent, V1HorizontalPodAutoscalerStatus instance) { + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,V1HorizontalPodAutoscalerStatus instance) { this(fluent, instance, false); } - - public V1HorizontalPodAutoscalerStatusBuilder( - V1HorizontalPodAutoscalerStatusFluent fluent, - V1HorizontalPodAutoscalerStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,V1HorizontalPodAutoscalerStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); fluent.withCurrentReplicas(instance.getCurrentReplicas()); @@ -55,16 +30,13 @@ public V1HorizontalPodAutoscalerStatusBuilder( fluent.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatus instance) { - this(instance, false); + this(instance,false); } - - public V1HorizontalPodAutoscalerStatusBuilder( - V1HorizontalPodAutoscalerStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); this.withCurrentReplicas(instance.getCurrentReplicas()); @@ -75,12 +47,10 @@ public V1HorizontalPodAutoscalerStatusBuilder( this.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HorizontalPodAutoscalerStatusFluent fluent; Boolean validationEnabled; - public V1HorizontalPodAutoscalerStatus build() { V1HorizontalPodAutoscalerStatus buildable = new V1HorizontalPodAutoscalerStatus(); buildable.setCurrentCPUUtilizationPercentage(fluent.getCurrentCPUUtilizationPercentage()); @@ -90,4 +60,5 @@ public V1HorizontalPodAutoscalerStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java index 3eee9d22b6..b876c173ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java @@ -1,51 +1,29 @@ -/* -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.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Long; +import java.lang.Boolean; -/** Generated */ -public interface V1HorizontalPodAutoscalerStatusFluent< - A extends V1HorizontalPodAutoscalerStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1HorizontalPodAutoscalerStatusFluent> extends Fluent{ public Integer getCurrentCPUUtilizationPercentage(); - public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage); - public Boolean hasCurrentCPUUtilizationPercentage(); - public Integer getCurrentReplicas(); - public A withCurrentReplicas(Integer currentReplicas); - public Boolean hasCurrentReplicas(); - public Integer getDesiredReplicas(); - public A withDesiredReplicas(Integer desiredReplicas); - public Boolean hasDesiredReplicas(); - public OffsetDateTime getLastScaleTime(); - public A withLastScaleTime(OffsetDateTime lastScaleTime); - public Boolean hasLastScaleTime(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java index 3431d03a2c..8296988072 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java @@ -1,27 +1,21 @@ -/* -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 java.lang.Integer; import java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HorizontalPodAutoscalerStatusFluentImpl< - A extends V1HorizontalPodAutoscalerStatusFluent> - extends BaseFluent implements V1HorizontalPodAutoscalerStatusFluent { - public V1HorizontalPodAutoscalerStatusFluentImpl() {} - +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HorizontalPodAutoscalerStatusFluentImpl> extends BaseFluent implements V1HorizontalPodAutoscalerStatusFluent{ + public V1HorizontalPodAutoscalerStatusFluentImpl() { + } public V1HorizontalPodAutoscalerStatusFluentImpl(V1HorizontalPodAutoscalerStatus instance) { this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); @@ -32,135 +26,82 @@ public V1HorizontalPodAutoscalerStatusFluentImpl(V1HorizontalPodAutoscalerStatus this.withLastScaleTime(instance.getLastScaleTime()); this.withObservedGeneration(instance.getObservedGeneration()); - } + } private Integer currentCPUUtilizationPercentage; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - public Integer getCurrentCPUUtilizationPercentage() { return this.currentCPUUtilizationPercentage; } - public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { - this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - return (A) this; + this.currentCPUUtilizationPercentage=currentCPUUtilizationPercentage; return (A) this; } - public Boolean hasCurrentCPUUtilizationPercentage() { return this.currentCPUUtilizationPercentage != null; } - public Integer getCurrentReplicas() { return this.currentReplicas; } - public A withCurrentReplicas(Integer currentReplicas) { - this.currentReplicas = currentReplicas; - return (A) this; + this.currentReplicas=currentReplicas; return (A) this; } - public Boolean hasCurrentReplicas() { return this.currentReplicas != null; } - public Integer getDesiredReplicas() { return this.desiredReplicas; } - public A withDesiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = desiredReplicas; - return (A) this; + this.desiredReplicas=desiredReplicas; return (A) this; } - public Boolean hasDesiredReplicas() { return this.desiredReplicas != null; } - public OffsetDateTime getLastScaleTime() { return this.lastScaleTime; } - public A withLastScaleTime(OffsetDateTime lastScaleTime) { - this.lastScaleTime = lastScaleTime; - return (A) this; + this.lastScaleTime=lastScaleTime; return (A) this; } - public Boolean hasLastScaleTime() { return this.lastScaleTime != null; } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + this.observedGeneration=observedGeneration; return (A) this; } - public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HorizontalPodAutoscalerStatusFluentImpl that = (V1HorizontalPodAutoscalerStatusFluentImpl) o; - if (currentCPUUtilizationPercentage != null - ? !currentCPUUtilizationPercentage.equals(that.currentCPUUtilizationPercentage) - : that.currentCPUUtilizationPercentage != null) return false; - if (currentReplicas != null - ? !currentReplicas.equals(that.currentReplicas) - : that.currentReplicas != null) return false; - if (desiredReplicas != null - ? !desiredReplicas.equals(that.desiredReplicas) - : that.desiredReplicas != null) return false; - if (lastScaleTime != null - ? !lastScaleTime.equals(that.lastScaleTime) - : that.lastScaleTime != null) return false; - if (observedGeneration != null - ? !observedGeneration.equals(that.observedGeneration) - : that.observedGeneration != null) return false; + if (currentCPUUtilizationPercentage != null ? !currentCPUUtilizationPercentage.equals(that.currentCPUUtilizationPercentage) :that.currentCPUUtilizationPercentage != null) return false; + if (currentReplicas != null ? !currentReplicas.equals(that.currentReplicas) :that.currentReplicas != null) return false; + if (desiredReplicas != null ? !desiredReplicas.equals(that.desiredReplicas) :that.desiredReplicas != null) return false; + if (lastScaleTime != null ? !lastScaleTime.equals(that.lastScaleTime) :that.lastScaleTime != null) return false; + if (observedGeneration != null ? !observedGeneration.equals(that.observedGeneration) :that.observedGeneration != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - currentCPUUtilizationPercentage, - currentReplicas, - desiredReplicas, - lastScaleTime, - observedGeneration, - super.hashCode()); + return java.util.Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (currentCPUUtilizationPercentage != null) { - sb.append("currentCPUUtilizationPercentage:"); - sb.append(currentCPUUtilizationPercentage + ","); - } - if (currentReplicas != null) { - sb.append("currentReplicas:"); - sb.append(currentReplicas + ","); - } - if (desiredReplicas != null) { - sb.append("desiredReplicas:"); - sb.append(desiredReplicas + ","); - } - if (lastScaleTime != null) { - sb.append("lastScaleTime:"); - sb.append(lastScaleTime + ","); - } - if (observedGeneration != null) { - sb.append("observedGeneration:"); - sb.append(observedGeneration); - } + if (currentCPUUtilizationPercentage != null) { sb.append("currentCPUUtilizationPercentage:"); sb.append(currentCPUUtilizationPercentage + ","); } + if (currentReplicas != null) { sb.append("currentReplicas:"); sb.append(currentReplicas + ","); } + if (desiredReplicas != null) { sb.append("desiredReplicas:"); sb.append(desiredReplicas + ","); } + if (lastScaleTime != null) { sb.append("lastScaleTime:"); sb.append(lastScaleTime + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java index b5a4049e77..02f11b9da0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1HostAliasBuilder extends V1HostAliasFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HostAliasBuilder extends V1HostAliasFluentImpl implements VisitableBuilder{ public V1HostAliasBuilder() { this(false); } - public V1HostAliasBuilder(Boolean validationEnabled) { this(new V1HostAlias(), validationEnabled); } - public V1HostAliasBuilder(V1HostAliasFluent fluent) { this(fluent, false); } - - public V1HostAliasBuilder(V1HostAliasFluent fluent, Boolean validationEnabled) { + public V1HostAliasBuilder(V1HostAliasFluent fluent,Boolean validationEnabled) { this(fluent, new V1HostAlias(), validationEnabled); } - - public V1HostAliasBuilder(V1HostAliasFluent fluent, V1HostAlias instance) { + public V1HostAliasBuilder(V1HostAliasFluent fluent,V1HostAlias instance) { this(fluent, instance, false); } - - public V1HostAliasBuilder( - V1HostAliasFluent fluent, V1HostAlias instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1HostAliasBuilder(V1HostAliasFluent fluent,V1HostAlias instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHostnames(instance.getHostnames()); fluent.withIp(instance.getIp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HostAliasBuilder(V1HostAlias instance) { - this(instance, false); + this(instance,false); } - - public V1HostAliasBuilder(V1HostAlias instance, Boolean validationEnabled) { - this.fluent = this; + public V1HostAliasBuilder(V1HostAlias instance,Boolean validationEnabled) { + this.fluent = this; this.withHostnames(instance.getHostnames()); this.withIp(instance.getIp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HostAliasFluent fluent; Boolean validationEnabled; - public V1HostAlias build() { V1HostAlias buildable = new V1HostAlias(); buildable.setHostnames(fluent.getHostnames()); buildable.setIp(fluent.getIp()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java index 4f575da1f3..fc4cb140e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java @@ -1,57 +1,35 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1HostAliasFluent> extends Fluent { - public A addToHostnames(Integer index, String item); - - public A setToHostnames(Integer index, String item); - + /** + * Generated + */ +public interface V1HostAliasFluent> extends Fluent{ + public A addToHostnames(Integer index,String item); + public A setToHostnames(Integer index,String item); public A addToHostnames(java.lang.String... items); - public A addAllToHostnames(Collection items); - public A removeFromHostnames(java.lang.String... items); - public A removeAllFromHostnames(Collection items); - public List getHostnames(); - public String getHostname(Integer index); - public String getFirstHostname(); - public String getLastHostname(); - public String getMatchingHostname(Predicate predicate); - public Boolean hasMatchingHostname(Predicate predicate); - public A withHostnames(List hostnames); - public A withHostnames(java.lang.String... hostnames); - public Boolean hasHostnames(); - public String getIp(); - public A withIp(String ip); - public Boolean hasIp(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java index 84c2535058..3f48012536 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java @@ -1,193 +1,109 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HostAliasFluentImpl> extends BaseFluent - implements V1HostAliasFluent { - public V1HostAliasFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HostAliasFluentImpl> extends BaseFluent implements V1HostAliasFluent{ + public V1HostAliasFluentImpl() { + } public V1HostAliasFluentImpl(V1HostAlias instance) { this.withHostnames(instance.getHostnames()); this.withIp(instance.getIp()); - } + } private List hostnames; private String ip; - - public A addToHostnames(Integer index, String item) { - if (this.hostnames == null) { - this.hostnames = new ArrayList(); - } + public A addToHostnames(Integer index,String item) { + if (this.hostnames == null) {this.hostnames = new ArrayList();} this.hostnames.add(index, item); - return (A) this; + return (A)this; } - - public A setToHostnames(Integer index, String item) { - if (this.hostnames == null) { - this.hostnames = new ArrayList(); - } - this.hostnames.set(index, item); - return (A) this; + public A setToHostnames(Integer index,String item) { + if (this.hostnames == null) {this.hostnames = new ArrayList();} + this.hostnames.set(index, item); return (A)this; } - public A addToHostnames(java.lang.String... items) { - if (this.hostnames == null) { - this.hostnames = new ArrayList(); - } - for (String item : items) { - this.hostnames.add(item); - } - return (A) this; + if (this.hostnames == null) {this.hostnames = new ArrayList();} + for (String item : items) {this.hostnames.add(item);} return (A)this; } - public A addAllToHostnames(Collection items) { - if (this.hostnames == null) { - this.hostnames = new ArrayList(); - } - for (String item : items) { - this.hostnames.add(item); - } - return (A) this; + if (this.hostnames == null) {this.hostnames = new ArrayList();} + for (String item : items) {this.hostnames.add(item);} return (A)this; } - public A removeFromHostnames(java.lang.String... items) { - for (String item : items) { - if (this.hostnames != null) { - this.hostnames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.hostnames!= null){ this.hostnames.remove(item);}} return (A)this; } - public A removeAllFromHostnames(Collection items) { - for (String item : items) { - if (this.hostnames != null) { - this.hostnames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.hostnames!= null){ this.hostnames.remove(item);}} return (A)this; } - public List getHostnames() { return this.hostnames; } - public String getHostname(Integer index) { return this.hostnames.get(index); } - public String getFirstHostname() { return this.hostnames.get(0); } - public String getLastHostname() { return this.hostnames.get(hostnames.size() - 1); } - public String getMatchingHostname(Predicate predicate) { - for (String item : hostnames) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: hostnames) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingHostname(Predicate predicate) { - for (String item : hostnames) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: hostnames) { if(predicate.test(item)){ return true;} } return false; } - public A withHostnames(List hostnames) { - if (hostnames != null) { - this.hostnames = new ArrayList(); - for (String item : hostnames) { - this.addToHostnames(item); - } - } else { - this.hostnames = null; - } - return (A) this; + if (hostnames != null) {this.hostnames = new ArrayList(); for (String item : hostnames){this.addToHostnames(item);}} else { this.hostnames = null;} return (A) this; } - public A withHostnames(java.lang.String... hostnames) { - if (this.hostnames != null) { - this.hostnames.clear(); - } - if (hostnames != null) { - for (String item : hostnames) { - this.addToHostnames(item); - } - } - return (A) this; + if (this.hostnames != null) {this.hostnames.clear();} + if (hostnames != null) {for (String item :hostnames){ this.addToHostnames(item);}} return (A) this; } - public Boolean hasHostnames() { return hostnames != null && !hostnames.isEmpty(); } - public String getIp() { return this.ip; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + this.ip=ip; return (A) this; } - public Boolean hasIp() { return this.ip != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HostAliasFluentImpl that = (V1HostAliasFluentImpl) o; - if (hostnames != null ? !hostnames.equals(that.hostnames) : that.hostnames != null) - return false; - if (ip != null ? !ip.equals(that.ip) : that.ip != null) return false; + if (hostnames != null ? !hostnames.equals(that.hostnames) :that.hostnames != null) return false; + if (ip != null ? !ip.equals(that.ip) :that.ip != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(hostnames, ip, super.hashCode()); + return java.util.Objects.hash(hostnames, ip, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hostnames != null && !hostnames.isEmpty()) { - sb.append("hostnames:"); - sb.append(hostnames + ","); - } - if (ip != null) { - sb.append("ip:"); - sb.append(ip); - } + if (hostnames != null && !hostnames.isEmpty()) { sb.append("hostnames:"); sb.append(hostnames + ","); } + if (ip != null) { sb.append("ip:"); sb.append(ip); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java index 4b02fbd826..6f4ce52b04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1HostPathVolumeSourceBuilder - extends V1HostPathVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1HostPathVolumeSourceBuilder extends V1HostPathVolumeSourceFluentImpl implements VisitableBuilder{ public V1HostPathVolumeSourceBuilder() { this(false); } - public V1HostPathVolumeSourceBuilder(Boolean validationEnabled) { this(new V1HostPathVolumeSource(), validationEnabled); } - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent) { this(fluent, false); } - - public V1HostPathVolumeSourceBuilder( - V1HostPathVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1HostPathVolumeSource(), validationEnabled); } - - public V1HostPathVolumeSourceBuilder( - V1HostPathVolumeSourceFluent fluent, V1HostPathVolumeSource instance) { + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,V1HostPathVolumeSource instance) { this(fluent, instance, false); } - - public V1HostPathVolumeSourceBuilder( - V1HostPathVolumeSourceFluent fluent, - V1HostPathVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,V1HostPathVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPath(instance.getPath()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withPath(instance.getPath()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1HostPathVolumeSourceFluent fluent; Boolean validationEnabled; - public V1HostPathVolumeSource build() { V1HostPathVolumeSource buildable = new V1HostPathVolumeSource(); buildable.setPath(fluent.getPath()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java index cb2be4e376..b6909ef54b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1HostPathVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1HostPathVolumeSourceFluent> extends Fluent{ public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java index 66da35cf34..75db86a503 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1HostPathVolumeSourceFluentImpl> - extends BaseFluent implements V1HostPathVolumeSourceFluent { - public V1HostPathVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1HostPathVolumeSourceFluentImpl> extends BaseFluent implements V1HostPathVolumeSourceFluent{ + public V1HostPathVolumeSourceFluentImpl() { + } public V1HostPathVolumeSourceFluentImpl(V1HostPathVolumeSource instance) { this.withPath(instance.getPath()); this.withType(instance.getType()); - } + } private String path; private String type; - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1HostPathVolumeSourceFluentImpl that = (V1HostPathVolumeSourceFluentImpl) o; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(path, type, super.hashCode()); + return java.util.Objects.hash(path, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java index 2197a672a2..4997edc727 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1IPBlockBuilder extends V1IPBlockFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IPBlockBuilder extends V1IPBlockFluentImpl implements VisitableBuilder{ public V1IPBlockBuilder() { this(false); } - public V1IPBlockBuilder(Boolean validationEnabled) { this(new V1IPBlock(), validationEnabled); } - public V1IPBlockBuilder(V1IPBlockFluent fluent) { this(fluent, false); } - - public V1IPBlockBuilder(V1IPBlockFluent fluent, Boolean validationEnabled) { + public V1IPBlockBuilder(V1IPBlockFluent fluent,Boolean validationEnabled) { this(fluent, new V1IPBlock(), validationEnabled); } - - public V1IPBlockBuilder(V1IPBlockFluent fluent, V1IPBlock instance) { + public V1IPBlockBuilder(V1IPBlockFluent fluent,V1IPBlock instance) { this(fluent, instance, false); } - - public V1IPBlockBuilder( - V1IPBlockFluent fluent, V1IPBlock instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IPBlockBuilder(V1IPBlockFluent fluent,V1IPBlock instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCidr(instance.getCidr()); fluent.withExcept(instance.getExcept()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IPBlockBuilder(V1IPBlock instance) { - this(instance, false); + this(instance,false); } - - public V1IPBlockBuilder(V1IPBlock instance, Boolean validationEnabled) { - this.fluent = this; + public V1IPBlockBuilder(V1IPBlock instance,Boolean validationEnabled) { + this.fluent = this; this.withCidr(instance.getCidr()); this.withExcept(instance.getExcept()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IPBlockFluent fluent; Boolean validationEnabled; - public V1IPBlock build() { V1IPBlock buildable = new V1IPBlock(); buildable.setCidr(fluent.getCidr()); buildable.setExcept(fluent.getExcept()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java index a635dddf69..7a47e00c55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java @@ -1,57 +1,35 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1IPBlockFluent> extends Fluent { + /** + * Generated + */ +public interface V1IPBlockFluent> extends Fluent{ public String getCidr(); - public A withCidr(String cidr); - public Boolean hasCidr(); - - public A addToExcept(Integer index, String item); - - public A setToExcept(Integer index, String item); - + public A addToExcept(Integer index,String item); + public A setToExcept(Integer index,String item); public A addToExcept(java.lang.String... items); - public A addAllToExcept(Collection items); - public A removeFromExcept(java.lang.String... items); - public A removeAllFromExcept(Collection items); - public List getExcept(); - public String getExcept(Integer index); - public String getFirstExcept(); - public String getLastExcept(); - public String getMatchingExcept(Predicate predicate); - public Boolean hasMatchingExcept(Predicate predicate); - public A withExcept(List except); - public A withExcept(java.lang.String... except); - public Boolean hasExcept(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java index 81aa9208e4..741bbafa23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java @@ -1,192 +1,109 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IPBlockFluentImpl> extends BaseFluent - implements V1IPBlockFluent { - public V1IPBlockFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IPBlockFluentImpl> extends BaseFluent implements V1IPBlockFluent{ + public V1IPBlockFluentImpl() { + } public V1IPBlockFluentImpl(V1IPBlock instance) { this.withCidr(instance.getCidr()); this.withExcept(instance.getExcept()); - } + } private String cidr; private List except; - public String getCidr() { return this.cidr; } - public A withCidr(String cidr) { - this.cidr = cidr; - return (A) this; + this.cidr=cidr; return (A) this; } - public Boolean hasCidr() { return this.cidr != null; } - - public A addToExcept(Integer index, String item) { - if (this.except == null) { - this.except = new ArrayList(); - } + public A addToExcept(Integer index,String item) { + if (this.except == null) {this.except = new ArrayList();} this.except.add(index, item); - return (A) this; + return (A)this; } - - public A setToExcept(Integer index, String item) { - if (this.except == null) { - this.except = new ArrayList(); - } - this.except.set(index, item); - return (A) this; + public A setToExcept(Integer index,String item) { + if (this.except == null) {this.except = new ArrayList();} + this.except.set(index, item); return (A)this; } - public A addToExcept(java.lang.String... items) { - if (this.except == null) { - this.except = new ArrayList(); - } - for (String item : items) { - this.except.add(item); - } - return (A) this; + if (this.except == null) {this.except = new ArrayList();} + for (String item : items) {this.except.add(item);} return (A)this; } - public A addAllToExcept(Collection items) { - if (this.except == null) { - this.except = new ArrayList(); - } - for (String item : items) { - this.except.add(item); - } - return (A) this; + if (this.except == null) {this.except = new ArrayList();} + for (String item : items) {this.except.add(item);} return (A)this; } - public A removeFromExcept(java.lang.String... items) { - for (String item : items) { - if (this.except != null) { - this.except.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.except!= null){ this.except.remove(item);}} return (A)this; } - public A removeAllFromExcept(Collection items) { - for (String item : items) { - if (this.except != null) { - this.except.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.except!= null){ this.except.remove(item);}} return (A)this; } - public List getExcept() { return this.except; } - public String getExcept(Integer index) { return this.except.get(index); } - public String getFirstExcept() { return this.except.get(0); } - public String getLastExcept() { return this.except.get(except.size() - 1); } - public String getMatchingExcept(Predicate predicate) { - for (String item : except) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: except) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingExcept(Predicate predicate) { - for (String item : except) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: except) { if(predicate.test(item)){ return true;} } return false; } - public A withExcept(List except) { - if (except != null) { - this.except = new ArrayList(); - for (String item : except) { - this.addToExcept(item); - } - } else { - this.except = null; - } - return (A) this; + if (except != null) {this.except = new ArrayList(); for (String item : except){this.addToExcept(item);}} else { this.except = null;} return (A) this; } - public A withExcept(java.lang.String... except) { - if (this.except != null) { - this.except.clear(); - } - if (except != null) { - for (String item : except) { - this.addToExcept(item); - } - } - return (A) this; + if (this.except != null) {this.except.clear();} + if (except != null) {for (String item :except){ this.addToExcept(item);}} return (A) this; } - public Boolean hasExcept() { return except != null && !except.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IPBlockFluentImpl that = (V1IPBlockFluentImpl) o; - if (cidr != null ? !cidr.equals(that.cidr) : that.cidr != null) return false; - if (except != null ? !except.equals(that.except) : that.except != null) return false; + if (cidr != null ? !cidr.equals(that.cidr) :that.cidr != null) return false; + if (except != null ? !except.equals(that.except) :that.except != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(cidr, except, super.hashCode()); + return java.util.Objects.hash(cidr, except, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cidr != null) { - sb.append("cidr:"); - sb.append(cidr + ","); - } - if (except != null && !except.isEmpty()) { - sb.append("except:"); - sb.append(except); - } + if (cidr != null) { sb.append("cidr:"); sb.append(cidr + ","); } + if (except != null && !except.isEmpty()) { sb.append("except:"); sb.append(except); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java index e801fcd38e..3e1a14ec00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ISCSIPersistentVolumeSourceBuilder - extends V1ISCSIPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1ISCSIPersistentVolumeSource, V1ISCSIPersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1ISCSIPersistentVolumeSourceBuilder extends V1ISCSIPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1ISCSIPersistentVolumeSourceBuilder() { this(false); } - public V1ISCSIPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ISCSIPersistentVolumeSource(), validationEnabled); } - public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1ISCSIPersistentVolumeSourceBuilder( - V1ISCSIPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ISCSIPersistentVolumeSource(), validationEnabled); } - - public V1ISCSIPersistentVolumeSourceBuilder( - V1ISCSIPersistentVolumeSourceFluent fluent, V1ISCSIPersistentVolumeSource instance) { + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,V1ISCSIPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1ISCSIPersistentVolumeSourceBuilder( - V1ISCSIPersistentVolumeSourceFluent fluent, - V1ISCSIPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,V1ISCSIPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withChapAuthDiscovery(instance.getChapAuthDiscovery()); fluent.withChapAuthSession(instance.getChapAuthSession()); @@ -67,16 +42,13 @@ public V1ISCSIPersistentVolumeSourceBuilder( fluent.withTargetPortal(instance.getTargetPortal()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1ISCSIPersistentVolumeSourceBuilder( - V1ISCSIPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); this.withChapAuthSession(instance.getChapAuthSession()); @@ -99,12 +71,10 @@ public V1ISCSIPersistentVolumeSourceBuilder( this.withTargetPortal(instance.getTargetPortal()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ISCSIPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1ISCSIPersistentVolumeSource build() { V1ISCSIPersistentVolumeSource buildable = new V1ISCSIPersistentVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); @@ -120,4 +90,5 @@ public V1ISCSIPersistentVolumeSource build() { buildable.setTargetPortal(fluent.getTargetPortal()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java index 6d3cd2a2ea..9c8dabc6be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java @@ -1,148 +1,84 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ISCSIPersistentVolumeSourceFluent< - A extends V1ISCSIPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ISCSIPersistentVolumeSourceFluent> extends Fluent{ public Boolean getChapAuthDiscovery(); - public A withChapAuthDiscovery(Boolean chapAuthDiscovery); - public Boolean hasChapAuthDiscovery(); - public Boolean getChapAuthSession(); - public A withChapAuthSession(Boolean chapAuthSession); - public Boolean hasChapAuthSession(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getInitiatorName(); - public A withInitiatorName(String initiatorName); - public Boolean hasInitiatorName(); - public String getIqn(); - public A withIqn(String iqn); - public Boolean hasIqn(); - public String getIscsiInterface(); - public A withIscsiInterface(String iscsiInterface); - public Boolean hasIscsiInterface(); - public Integer getLun(); - public A withLun(Integer lun); - public Boolean hasLun(); - - public A addToPortals(Integer index, String item); - - public A setToPortals(Integer index, String item); - + public A addToPortals(Integer index,String item); + public A setToPortals(Integer index,String item); public A addToPortals(java.lang.String... items); - public A addAllToPortals(Collection items); - public A removeFromPortals(java.lang.String... items); - public A removeAllFromPortals(Collection items); - public List getPortals(); - public String getPortal(Integer index); - public String getFirstPortal(); - public String getLastPortal(); - public String getMatchingPortal(Predicate predicate); - public Boolean hasMatchingPortal(Predicate predicate); - public A withPortals(List portals); - public A withPortals(java.lang.String... portals); - public Boolean hasPortals(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef(); - public V1SecretReference buildSecretRef(); - public A withSecretRef(V1SecretReference secretRef); - public Boolean hasSecretRef(); - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item); - + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item); public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item); - + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item); public String getTargetPortal(); - public A withTargetPortal(String targetPortal); - public Boolean hasTargetPortal(); - public A withChapAuthDiscovery(); - public A withChapAuthSession(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface SecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java index 042110141b..1ac99176a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java @@ -1,31 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ISCSIPersistentVolumeSourceFluentImpl< - A extends V1ISCSIPersistentVolumeSourceFluent> - extends BaseFluent implements V1ISCSIPersistentVolumeSourceFluent { - public V1ISCSIPersistentVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ISCSIPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1ISCSIPersistentVolumeSourceFluent{ + public V1ISCSIPersistentVolumeSourceFluentImpl() { + } public V1ISCSIPersistentVolumeSourceFluentImpl(V1ISCSIPersistentVolumeSource instance) { this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); @@ -48,8 +42,8 @@ public V1ISCSIPersistentVolumeSourceFluentImpl(V1ISCSIPersistentVolumeSource ins this.withSecretRef(instance.getSecretRef()); this.withTargetPortal(instance.getTargetPortal()); - } + } private Boolean chapAuthDiscovery; private Boolean chapAuthSession; private String fsType; @@ -61,419 +55,233 @@ public V1ISCSIPersistentVolumeSourceFluentImpl(V1ISCSIPersistentVolumeSource ins private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String targetPortal; - public Boolean getChapAuthDiscovery() { return this.chapAuthDiscovery; } - public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { - this.chapAuthDiscovery = chapAuthDiscovery; - return (A) this; + this.chapAuthDiscovery=chapAuthDiscovery; return (A) this; } - public Boolean hasChapAuthDiscovery() { return this.chapAuthDiscovery != null; } - public Boolean getChapAuthSession() { return this.chapAuthSession; } - public A withChapAuthSession(Boolean chapAuthSession) { - this.chapAuthSession = chapAuthSession; - return (A) this; + this.chapAuthSession=chapAuthSession; return (A) this; } - public Boolean hasChapAuthSession() { return this.chapAuthSession != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getInitiatorName() { return this.initiatorName; } - public A withInitiatorName(String initiatorName) { - this.initiatorName = initiatorName; - return (A) this; + this.initiatorName=initiatorName; return (A) this; } - public Boolean hasInitiatorName() { return this.initiatorName != null; } - public String getIqn() { return this.iqn; } - public A withIqn(String iqn) { - this.iqn = iqn; - return (A) this; + this.iqn=iqn; return (A) this; } - public Boolean hasIqn() { return this.iqn != null; } - public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(String iscsiInterface) { - this.iscsiInterface = iscsiInterface; - return (A) this; + this.iscsiInterface=iscsiInterface; return (A) this; } - public Boolean hasIscsiInterface() { return this.iscsiInterface != null; } - public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; + this.lun=lun; return (A) this; } - public Boolean hasLun() { return this.lun != null; } - - public A addToPortals(Integer index, String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } + public A addToPortals(Integer index,String item) { + if (this.portals == null) {this.portals = new ArrayList();} this.portals.add(index, item); - return (A) this; + return (A)this; } - - public A setToPortals(Integer index, String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - this.portals.set(index, item); - return (A) this; + public A setToPortals(Integer index,String item) { + if (this.portals == null) {this.portals = new ArrayList();} + this.portals.set(index, item); return (A)this; } - public A addToPortals(java.lang.String... items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + if (this.portals == null) {this.portals = new ArrayList();} + for (String item : items) {this.portals.add(item);} return (A)this; } - public A addAllToPortals(Collection items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + if (this.portals == null) {this.portals = new ArrayList();} + for (String item : items) {this.portals.add(item);} return (A)this; } - public A removeFromPortals(java.lang.String... items) { - for (String item : items) { - if (this.portals != null) { - this.portals.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.portals!= null){ this.portals.remove(item);}} return (A)this; } - public A removeAllFromPortals(Collection items) { - for (String item : items) { - if (this.portals != null) { - this.portals.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.portals!= null){ this.portals.remove(item);}} return (A)this; } - public List getPortals() { return this.portals; } - public String getPortal(Integer index) { return this.portals.get(index); } - public String getFirstPortal() { return this.portals.get(0); } - public String getLastPortal() { return this.portals.get(portals.size() - 1); } - public String getMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: portals) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: portals) { if(predicate.test(item)){ return true;} } return false; } - public A withPortals(List portals) { - if (portals != null) { - this.portals = new ArrayList(); - for (String item : portals) { - this.addToPortals(item); - } - } else { - this.portals = null; - } - return (A) this; + if (portals != null) {this.portals = new ArrayList(); for (String item : portals){this.addToPortals(item);}} else { this.portals = null;} return (A) this; } - public A withPortals(java.lang.String... portals) { - if (this.portals != null) { - this.portals.clear(); - } - if (portals != null) { - for (String item : portals) { - this.addToPortals(item); - } - } - return (A) this; + if (this.portals != null) {this.portals.clear();} + if (portals != null) {for (String item :portals){ this.addToPortals(item);}} return (A) this; } - public Boolean hasPortals() { return portals != null && !portals.isEmpty(); } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1ISCSIPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item) { + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new V1ISCSIPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getTargetPortal() { return this.targetPortal; } - public A withTargetPortal(String targetPortal) { - this.targetPortal = targetPortal; - return (A) this; + this.targetPortal=targetPortal; return (A) this; } - public Boolean hasTargetPortal() { return this.targetPortal != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ISCSIPersistentVolumeSourceFluentImpl that = (V1ISCSIPersistentVolumeSourceFluentImpl) o; - if (chapAuthDiscovery != null - ? !chapAuthDiscovery.equals(that.chapAuthDiscovery) - : that.chapAuthDiscovery != null) return false; - if (chapAuthSession != null - ? !chapAuthSession.equals(that.chapAuthSession) - : that.chapAuthSession != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (initiatorName != null - ? !initiatorName.equals(that.initiatorName) - : that.initiatorName != null) return false; - if (iqn != null ? !iqn.equals(that.iqn) : that.iqn != null) return false; - if (iscsiInterface != null - ? !iscsiInterface.equals(that.iscsiInterface) - : that.iscsiInterface != null) return false; - if (lun != null ? !lun.equals(that.lun) : that.lun != null) return false; - if (portals != null ? !portals.equals(that.portals) : that.portals != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (targetPortal != null ? !targetPortal.equals(that.targetPortal) : that.targetPortal != null) - return false; + if (chapAuthDiscovery != null ? !chapAuthDiscovery.equals(that.chapAuthDiscovery) :that.chapAuthDiscovery != null) return false; + if (chapAuthSession != null ? !chapAuthSession.equals(that.chapAuthSession) :that.chapAuthSession != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (initiatorName != null ? !initiatorName.equals(that.initiatorName) :that.initiatorName != null) return false; + if (iqn != null ? !iqn.equals(that.iqn) :that.iqn != null) return false; + if (iscsiInterface != null ? !iscsiInterface.equals(that.iscsiInterface) :that.iscsiInterface != null) return false; + if (lun != null ? !lun.equals(that.lun) :that.lun != null) return false; + if (portals != null ? !portals.equals(that.portals) :that.portals != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (targetPortal != null ? !targetPortal.equals(that.targetPortal) :that.targetPortal != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - chapAuthDiscovery, - chapAuthSession, - fsType, - initiatorName, - iqn, - iscsiInterface, - lun, - portals, - readOnly, - secretRef, - targetPortal, - super.hashCode()); + return java.util.Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (chapAuthDiscovery != null) { - sb.append("chapAuthDiscovery:"); - sb.append(chapAuthDiscovery + ","); - } - if (chapAuthSession != null) { - sb.append("chapAuthSession:"); - sb.append(chapAuthSession + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (initiatorName != null) { - sb.append("initiatorName:"); - sb.append(initiatorName + ","); - } - if (iqn != null) { - sb.append("iqn:"); - sb.append(iqn + ","); - } - if (iscsiInterface != null) { - sb.append("iscsiInterface:"); - sb.append(iscsiInterface + ","); - } - if (lun != null) { - sb.append("lun:"); - sb.append(lun + ","); - } - if (portals != null && !portals.isEmpty()) { - sb.append("portals:"); - sb.append(portals + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (targetPortal != null) { - sb.append("targetPortal:"); - sb.append(targetPortal); - } + if (chapAuthDiscovery != null) { sb.append("chapAuthDiscovery:"); sb.append(chapAuthDiscovery + ","); } + if (chapAuthSession != null) { sb.append("chapAuthSession:"); sb.append(chapAuthSession + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (initiatorName != null) { sb.append("initiatorName:"); sb.append(initiatorName + ","); } + if (iqn != null) { sb.append("iqn:"); sb.append(iqn + ","); } + if (iscsiInterface != null) { sb.append("iscsiInterface:"); sb.append(iscsiInterface + ","); } + if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } + if (portals != null && !portals.isEmpty()) { sb.append("portals:"); sb.append(portals + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (targetPortal != null) { sb.append("targetPortal:"); sb.append(targetPortal); } sb.append("}"); return sb.toString(); } - public A withChapAuthDiscovery() { return withChapAuthDiscovery(true); } - public A withChapAuthSession() { return withChapAuthSession(true); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1SecretReferenceFluentImpl> - implements V1ISCSIPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1ISCSIPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1ISCSIPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java index c09461a6af..ab45062401 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ISCSIVolumeSourceBuilder - extends V1ISCSIVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ISCSIVolumeSourceBuilder extends V1ISCSIVolumeSourceFluentImpl implements VisitableBuilder{ public V1ISCSIVolumeSourceBuilder() { this(false); } - public V1ISCSIVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ISCSIVolumeSource(), validationEnabled); } - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent) { this(fluent, false); } - - public V1ISCSIVolumeSourceBuilder( - V1ISCSIVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ISCSIVolumeSource(), validationEnabled); } - - public V1ISCSIVolumeSourceBuilder( - V1ISCSIVolumeSourceFluent fluent, V1ISCSIVolumeSource instance) { + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,V1ISCSIVolumeSource instance) { this(fluent, instance, false); } - - public V1ISCSIVolumeSourceBuilder( - V1ISCSIVolumeSourceFluent fluent, - V1ISCSIVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,V1ISCSIVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withChapAuthDiscovery(instance.getChapAuthDiscovery()); fluent.withChapAuthSession(instance.getChapAuthSession()); @@ -66,15 +42,13 @@ public V1ISCSIVolumeSourceBuilder( fluent.withTargetPortal(instance.getTargetPortal()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); this.withChapAuthSession(instance.getChapAuthSession()); @@ -97,12 +71,10 @@ public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance, Boolean validati this.withTargetPortal(instance.getTargetPortal()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ISCSIVolumeSourceFluent fluent; Boolean validationEnabled; - public V1ISCSIVolumeSource build() { V1ISCSIVolumeSource buildable = new V1ISCSIVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); @@ -118,4 +90,5 @@ public V1ISCSIVolumeSource build() { buildable.setTargetPortal(fluent.getTargetPortal()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java index 86fbd4d9a0..9e6089cb3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java @@ -1,147 +1,84 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ISCSIVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ISCSIVolumeSourceFluent> extends Fluent{ public Boolean getChapAuthDiscovery(); - public A withChapAuthDiscovery(Boolean chapAuthDiscovery); - public Boolean hasChapAuthDiscovery(); - public Boolean getChapAuthSession(); - public A withChapAuthSession(Boolean chapAuthSession); - public Boolean hasChapAuthSession(); - public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getInitiatorName(); - public A withInitiatorName(String initiatorName); - public Boolean hasInitiatorName(); - public String getIqn(); - public A withIqn(String iqn); - public Boolean hasIqn(); - public String getIscsiInterface(); - public A withIscsiInterface(String iscsiInterface); - public Boolean hasIscsiInterface(); - public Integer getLun(); - public A withLun(Integer lun); - public Boolean hasLun(); - - public A addToPortals(Integer index, String item); - - public A setToPortals(Integer index, String item); - + public A addToPortals(Integer index,String item); + public A setToPortals(Integer index,String item); public A addToPortals(java.lang.String... items); - public A addAllToPortals(Collection items); - public A removeFromPortals(java.lang.String... items); - public A removeAllFromPortals(Collection items); - public List getPortals(); - public String getPortal(Integer index); - public String getFirstPortal(); - public String getLastPortal(); - public String getMatchingPortal(Predicate predicate); - public Boolean hasMatchingPortal(Predicate predicate); - public A withPortals(List portals); - public A withPortals(java.lang.String... portals); - public Boolean hasPortals(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1ISCSIVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public String getTargetPortal(); - public A withTargetPortal(String targetPortal); - public Boolean hasTargetPortal(); - public A withChapAuthDiscovery(); - public A withChapAuthSession(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java index 41fa80be5d..47508fe761 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ISCSIVolumeSourceFluentImpl> - extends BaseFluent implements V1ISCSIVolumeSourceFluent { - public V1ISCSIVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ISCSIVolumeSourceFluentImpl> extends BaseFluent implements V1ISCSIVolumeSourceFluent{ + public V1ISCSIVolumeSourceFluentImpl() { + } public V1ISCSIVolumeSourceFluentImpl(V1ISCSIVolumeSource instance) { this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); @@ -47,8 +42,8 @@ public V1ISCSIVolumeSourceFluentImpl(V1ISCSIVolumeSource instance) { this.withSecretRef(instance.getSecretRef()); this.withTargetPortal(instance.getTargetPortal()); - } + } private Boolean chapAuthDiscovery; private Boolean chapAuthSession; private String fsType; @@ -60,419 +55,233 @@ public V1ISCSIVolumeSourceFluentImpl(V1ISCSIVolumeSource instance) { private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String targetPortal; - public Boolean getChapAuthDiscovery() { return this.chapAuthDiscovery; } - public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { - this.chapAuthDiscovery = chapAuthDiscovery; - return (A) this; + this.chapAuthDiscovery=chapAuthDiscovery; return (A) this; } - public Boolean hasChapAuthDiscovery() { return this.chapAuthDiscovery != null; } - public Boolean getChapAuthSession() { return this.chapAuthSession; } - public A withChapAuthSession(Boolean chapAuthSession) { - this.chapAuthSession = chapAuthSession; - return (A) this; + this.chapAuthSession=chapAuthSession; return (A) this; } - public Boolean hasChapAuthSession() { return this.chapAuthSession != null; } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getInitiatorName() { return this.initiatorName; } - public A withInitiatorName(String initiatorName) { - this.initiatorName = initiatorName; - return (A) this; + this.initiatorName=initiatorName; return (A) this; } - public Boolean hasInitiatorName() { return this.initiatorName != null; } - public String getIqn() { return this.iqn; } - public A withIqn(String iqn) { - this.iqn = iqn; - return (A) this; + this.iqn=iqn; return (A) this; } - public Boolean hasIqn() { return this.iqn != null; } - public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(String iscsiInterface) { - this.iscsiInterface = iscsiInterface; - return (A) this; + this.iscsiInterface=iscsiInterface; return (A) this; } - public Boolean hasIscsiInterface() { return this.iscsiInterface != null; } - public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; + this.lun=lun; return (A) this; } - public Boolean hasLun() { return this.lun != null; } - - public A addToPortals(Integer index, String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } + public A addToPortals(Integer index,String item) { + if (this.portals == null) {this.portals = new ArrayList();} this.portals.add(index, item); - return (A) this; + return (A)this; } - - public A setToPortals(Integer index, String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - this.portals.set(index, item); - return (A) this; + public A setToPortals(Integer index,String item) { + if (this.portals == null) {this.portals = new ArrayList();} + this.portals.set(index, item); return (A)this; } - public A addToPortals(java.lang.String... items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + if (this.portals == null) {this.portals = new ArrayList();} + for (String item : items) {this.portals.add(item);} return (A)this; } - public A addAllToPortals(Collection items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + if (this.portals == null) {this.portals = new ArrayList();} + for (String item : items) {this.portals.add(item);} return (A)this; } - public A removeFromPortals(java.lang.String... items) { - for (String item : items) { - if (this.portals != null) { - this.portals.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.portals!= null){ this.portals.remove(item);}} return (A)this; } - public A removeAllFromPortals(Collection items) { - for (String item : items) { - if (this.portals != null) { - this.portals.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.portals!= null){ this.portals.remove(item);}} return (A)this; } - public List getPortals() { return this.portals; } - public String getPortal(Integer index) { return this.portals.get(index); } - public String getFirstPortal() { return this.portals.get(0); } - public String getLastPortal() { return this.portals.get(portals.size() - 1); } - public String getMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: portals) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: portals) { if(predicate.test(item)){ return true;} } return false; } - public A withPortals(List portals) { - if (portals != null) { - this.portals = new ArrayList(); - for (String item : portals) { - this.addToPortals(item); - } - } else { - this.portals = null; - } - return (A) this; + if (portals != null) {this.portals = new ArrayList(); for (String item : portals){this.addToPortals(item);}} else { this.portals = null;} return (A) this; } - public A withPortals(java.lang.String... portals) { - if (this.portals != null) { - this.portals.clear(); - } - if (portals != null) { - for (String item : portals) { - this.addToPortals(item); - } - } - return (A) this; + if (this.portals != null) {this.portals.clear();} + if (portals != null) {for (String item :portals){ this.addToPortals(item);}} return (A) this; } - public Boolean hasPortals() { return portals != null && !portals.isEmpty(); } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1ISCSIVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1ISCSIVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1ISCSIVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getTargetPortal() { return this.targetPortal; } - public A withTargetPortal(String targetPortal) { - this.targetPortal = targetPortal; - return (A) this; + this.targetPortal=targetPortal; return (A) this; } - public Boolean hasTargetPortal() { return this.targetPortal != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ISCSIVolumeSourceFluentImpl that = (V1ISCSIVolumeSourceFluentImpl) o; - if (chapAuthDiscovery != null - ? !chapAuthDiscovery.equals(that.chapAuthDiscovery) - : that.chapAuthDiscovery != null) return false; - if (chapAuthSession != null - ? !chapAuthSession.equals(that.chapAuthSession) - : that.chapAuthSession != null) return false; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (initiatorName != null - ? !initiatorName.equals(that.initiatorName) - : that.initiatorName != null) return false; - if (iqn != null ? !iqn.equals(that.iqn) : that.iqn != null) return false; - if (iscsiInterface != null - ? !iscsiInterface.equals(that.iscsiInterface) - : that.iscsiInterface != null) return false; - if (lun != null ? !lun.equals(that.lun) : that.lun != null) return false; - if (portals != null ? !portals.equals(that.portals) : that.portals != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (targetPortal != null ? !targetPortal.equals(that.targetPortal) : that.targetPortal != null) - return false; + if (chapAuthDiscovery != null ? !chapAuthDiscovery.equals(that.chapAuthDiscovery) :that.chapAuthDiscovery != null) return false; + if (chapAuthSession != null ? !chapAuthSession.equals(that.chapAuthSession) :that.chapAuthSession != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (initiatorName != null ? !initiatorName.equals(that.initiatorName) :that.initiatorName != null) return false; + if (iqn != null ? !iqn.equals(that.iqn) :that.iqn != null) return false; + if (iscsiInterface != null ? !iscsiInterface.equals(that.iscsiInterface) :that.iscsiInterface != null) return false; + if (lun != null ? !lun.equals(that.lun) :that.lun != null) return false; + if (portals != null ? !portals.equals(that.portals) :that.portals != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (targetPortal != null ? !targetPortal.equals(that.targetPortal) :that.targetPortal != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - chapAuthDiscovery, - chapAuthSession, - fsType, - initiatorName, - iqn, - iscsiInterface, - lun, - portals, - readOnly, - secretRef, - targetPortal, - super.hashCode()); + return java.util.Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (chapAuthDiscovery != null) { - sb.append("chapAuthDiscovery:"); - sb.append(chapAuthDiscovery + ","); - } - if (chapAuthSession != null) { - sb.append("chapAuthSession:"); - sb.append(chapAuthSession + ","); - } - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (initiatorName != null) { - sb.append("initiatorName:"); - sb.append(initiatorName + ","); - } - if (iqn != null) { - sb.append("iqn:"); - sb.append(iqn + ","); - } - if (iscsiInterface != null) { - sb.append("iscsiInterface:"); - sb.append(iscsiInterface + ","); - } - if (lun != null) { - sb.append("lun:"); - sb.append(lun + ","); - } - if (portals != null && !portals.isEmpty()) { - sb.append("portals:"); - sb.append(portals + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (targetPortal != null) { - sb.append("targetPortal:"); - sb.append(targetPortal); - } + if (chapAuthDiscovery != null) { sb.append("chapAuthDiscovery:"); sb.append(chapAuthDiscovery + ","); } + if (chapAuthSession != null) { sb.append("chapAuthSession:"); sb.append(chapAuthSession + ","); } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (initiatorName != null) { sb.append("initiatorName:"); sb.append(initiatorName + ","); } + if (iqn != null) { sb.append("iqn:"); sb.append(iqn + ","); } + if (iscsiInterface != null) { sb.append("iscsiInterface:"); sb.append(iscsiInterface + ","); } + if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } + if (portals != null && !portals.isEmpty()) { sb.append("portals:"); sb.append(portals + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (targetPortal != null) { sb.append("targetPortal:"); sb.append(targetPortal); } sb.append("}"); return sb.toString(); } - public A withChapAuthDiscovery() { return withChapAuthDiscovery(true); } - public A withChapAuthSession() { return withChapAuthSession(true); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1ISCSIVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1ISCSIVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1ISCSIVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java index 7244b42ae0..18cb0818dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1IngressBackendBuilder extends V1IngressBackendFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressBackendBuilder extends V1IngressBackendFluentImpl implements VisitableBuilder{ public V1IngressBackendBuilder() { this(false); } - public V1IngressBackendBuilder(Boolean validationEnabled) { this(new V1IngressBackend(), validationEnabled); } - public V1IngressBackendBuilder(V1IngressBackendFluent fluent) { this(fluent, false); } - - public V1IngressBackendBuilder(V1IngressBackendFluent fluent, Boolean validationEnabled) { + public V1IngressBackendBuilder(V1IngressBackendFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressBackend(), validationEnabled); } - - public V1IngressBackendBuilder(V1IngressBackendFluent fluent, V1IngressBackend instance) { + public V1IngressBackendBuilder(V1IngressBackendFluent fluent,V1IngressBackend instance) { this(fluent, instance, false); } - - public V1IngressBackendBuilder( - V1IngressBackendFluent fluent, V1IngressBackend instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressBackendBuilder(V1IngressBackendFluent fluent,V1IngressBackend instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withResource(instance.getResource()); fluent.withService(instance.getService()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressBackendBuilder(V1IngressBackend instance) { - this(instance, false); + this(instance,false); } - - public V1IngressBackendBuilder(V1IngressBackend instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressBackendBuilder(V1IngressBackend instance,Boolean validationEnabled) { + this.fluent = this; this.withResource(instance.getResource()); this.withService(instance.getService()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressBackendFluent fluent; Boolean validationEnabled; - public V1IngressBackend build() { V1IngressBackend buildable = new V1IngressBackend(); buildable.setResource(fluent.getResource()); buildable.setService(fluent.getService()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java index 0861e9bb7f..a2bfd82a92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java @@ -1,85 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressBackendFluent> extends Fluent { - + /** + * Generated + */ +public interface V1IngressBackendFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V1TypedLocalObjectReference getResource(); - public V1TypedLocalObjectReference buildResource(); - public A withResource(V1TypedLocalObjectReference resource); - public Boolean hasResource(); - public V1IngressBackendFluent.ResourceNested withNewResource(); - - public V1IngressBackendFluent.ResourceNested withNewResourceLike( - V1TypedLocalObjectReference item); - + public V1IngressBackendFluent.ResourceNested withNewResourceLike(V1TypedLocalObjectReference item); public V1IngressBackendFluent.ResourceNested editResource(); - public V1IngressBackendFluent.ResourceNested editOrNewResource(); - - public V1IngressBackendFluent.ResourceNested editOrNewResourceLike( - V1TypedLocalObjectReference item); - + public V1IngressBackendFluent.ResourceNested editOrNewResourceLike(V1TypedLocalObjectReference item); + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public V1IngressServiceBackend getService(); - public V1IngressServiceBackend buildService(); - public A withService(V1IngressServiceBackend service); - public Boolean hasService(); - public V1IngressBackendFluent.ServiceNested withNewService(); - public V1IngressBackendFluent.ServiceNested withNewServiceLike(V1IngressServiceBackend item); - public V1IngressBackendFluent.ServiceNested editService(); - public V1IngressBackendFluent.ServiceNested editOrNewService(); - public V1IngressBackendFluent.ServiceNested editOrNewServiceLike(V1IngressServiceBackend item); - - public interface ResourceNested - extends Nested, - V1TypedLocalObjectReferenceFluent> { + public interface ResourceNested extends Nested,V1TypedLocalObjectReferenceFluent>{ public N and(); - public N endResource(); + } - - public interface ServiceNested - extends Nested, V1IngressServiceBackendFluent> { + public interface ServiceNested extends Nested,V1IngressServiceBackendFluent>{ public N and(); - public N endService(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java index 17465bf490..06874ae93e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java @@ -1,209 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressBackendFluentImpl> extends BaseFluent - implements V1IngressBackendFluent { - public V1IngressBackendFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressBackendFluentImpl> extends BaseFluent implements V1IngressBackendFluent{ + public V1IngressBackendFluentImpl() { + } public V1IngressBackendFluentImpl(V1IngressBackend instance) { this.withResource(instance.getResource()); this.withService(instance.getService()); - } + } private V1TypedLocalObjectReferenceBuilder resource; private V1IngressServiceBackendBuilder service; - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V1TypedLocalObjectReference getResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public V1TypedLocalObjectReference buildResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public A withResource(V1TypedLocalObjectReference resource) { _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = new V1TypedLocalObjectReferenceBuilder(resource); - _visitables.get("resource").add(this.resource); - } else { - this.resource = null; - _visitables.get("resource").remove(this.resource); - } - return (A) this; + if (resource!=null){ this.resource= new V1TypedLocalObjectReferenceBuilder(resource); _visitables.get("resource").add(this.resource);} else { this.resource = null; _visitables.get("resource").remove(this.resource); } return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public V1IngressBackendFluent.ResourceNested withNewResource() { return new V1IngressBackendFluentImpl.ResourceNestedImpl(); } - - public V1IngressBackendFluent.ResourceNested withNewResourceLike( - V1TypedLocalObjectReference item) { + public V1IngressBackendFluent.ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { return new V1IngressBackendFluentImpl.ResourceNestedImpl(item); } - public V1IngressBackendFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public V1IngressBackendFluent.ResourceNested editOrNewResource() { - return withNewResourceLike( - getResource() != null ? getResource() : new V1TypedLocalObjectReferenceBuilder().build()); + return withNewResourceLike(getResource() != null ? getResource(): new V1TypedLocalObjectReferenceBuilder().build()); } - - public V1IngressBackendFluent.ResourceNested editOrNewResourceLike( - V1TypedLocalObjectReference item) { - return withNewResourceLike(getResource() != null ? getResource() : item); + public V1IngressBackendFluent.ResourceNested editOrNewResourceLike(V1TypedLocalObjectReference item) { + return withNewResourceLike(getResource() != null ? getResource(): item); } - + /** * This method has been deprecated, please use method buildService instead. - * * @return The buildable object. */ @Deprecated public V1IngressServiceBackend getService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public V1IngressServiceBackend buildService() { - return this.service != null ? this.service.build() : null; + return this.service!=null ?this.service.build():null; } - public A withService(V1IngressServiceBackend service) { _visitables.get("service").remove(this.service); - if (service != null) { - this.service = new V1IngressServiceBackendBuilder(service); - _visitables.get("service").add(this.service); - } else { - this.service = null; - _visitables.get("service").remove(this.service); - } - return (A) this; + if (service!=null){ this.service= new V1IngressServiceBackendBuilder(service); _visitables.get("service").add(this.service);} else { this.service = null; _visitables.get("service").remove(this.service); } return (A) this; } - public Boolean hasService() { return this.service != null; } - public V1IngressBackendFluent.ServiceNested withNewService() { return new V1IngressBackendFluentImpl.ServiceNestedImpl(); } - public V1IngressBackendFluent.ServiceNested withNewServiceLike(V1IngressServiceBackend item) { return new V1IngressBackendFluentImpl.ServiceNestedImpl(item); } - public V1IngressBackendFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public V1IngressBackendFluent.ServiceNested editOrNewService() { - return withNewServiceLike( - getService() != null ? getService() : new V1IngressServiceBackendBuilder().build()); + return withNewServiceLike(getService() != null ? getService(): new V1IngressServiceBackendBuilder().build()); } - - public V1IngressBackendFluent.ServiceNested editOrNewServiceLike( - V1IngressServiceBackend item) { - return withNewServiceLike(getService() != null ? getService() : item); + public V1IngressBackendFluent.ServiceNested editOrNewServiceLike(V1IngressServiceBackend item) { + return withNewServiceLike(getService() != null ? getService(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressBackendFluentImpl that = (V1IngressBackendFluentImpl) o; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (service != null ? !service.equals(that.service) : that.service != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; + if (service != null ? !service.equals(that.service) :that.service != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(resource, service, super.hashCode()); + return java.util.Objects.hash(resource, service, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resource != null) { - sb.append("resource:"); - sb.append(resource + ","); - } - if (service != null) { - sb.append("service:"); - sb.append(service); - } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (service != null) { sb.append("service:"); sb.append(service); } sb.append("}"); return sb.toString(); } - - class ResourceNestedImpl - extends V1TypedLocalObjectReferenceFluentImpl> - implements V1IngressBackendFluent.ResourceNested, Nested { + class ResourceNestedImpl extends V1TypedLocalObjectReferenceFluentImpl> implements V1IngressBackendFluent.ResourceNested,Nested{ ResourceNestedImpl(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - ResourceNestedImpl() { this.builder = new V1TypedLocalObjectReferenceBuilder(this); } - V1TypedLocalObjectReferenceBuilder builder; - public N and() { return (N) V1IngressBackendFluentImpl.this.withResource(builder.build()); } - public N endResource() { return and(); } + } - - class ServiceNestedImpl - extends V1IngressServiceBackendFluentImpl> - implements V1IngressBackendFluent.ServiceNested, Nested { + class ServiceNestedImpl extends V1IngressServiceBackendFluentImpl> implements V1IngressBackendFluent.ServiceNested,Nested{ ServiceNestedImpl(V1IngressServiceBackend item) { this.builder = new V1IngressServiceBackendBuilder(this, item); } - ServiceNestedImpl() { this.builder = new V1IngressServiceBackendBuilder(this); } - V1IngressServiceBackendBuilder builder; - public N and() { return (N) V1IngressBackendFluentImpl.this.withService(builder.build()); } - public N endService() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java index 5ca5584981..26a64fe2f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1IngressBuilder extends V1IngressFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressBuilder extends V1IngressFluentImpl implements VisitableBuilder{ public V1IngressBuilder() { this(false); } - public V1IngressBuilder(Boolean validationEnabled) { this(new V1Ingress(), validationEnabled); } - public V1IngressBuilder(V1IngressFluent fluent) { this(fluent, false); } - - public V1IngressBuilder(V1IngressFluent fluent, Boolean validationEnabled) { + public V1IngressBuilder(V1IngressFluent fluent,Boolean validationEnabled) { this(fluent, new V1Ingress(), validationEnabled); } - - public V1IngressBuilder(V1IngressFluent fluent, V1Ingress instance) { + public V1IngressBuilder(V1IngressFluent fluent,V1Ingress instance) { this(fluent, instance, false); } - - public V1IngressBuilder( - V1IngressFluent fluent, V1Ingress instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressBuilder(V1IngressFluent fluent,V1Ingress instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1IngressBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressBuilder(V1Ingress instance) { - this(instance, false); + this(instance,false); } - - public V1IngressBuilder(V1Ingress instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressBuilder(V1Ingress instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1IngressBuilder(V1Ingress instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressFluent fluent; Boolean validationEnabled; - public V1Ingress build() { V1Ingress buildable = new V1Ingress(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1Ingress build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java index 10fd55aadb..244a6210df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1IngressClassBuilder extends V1IngressClassFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressClassBuilder extends V1IngressClassFluentImpl implements VisitableBuilder{ public V1IngressClassBuilder() { this(false); } - public V1IngressClassBuilder(Boolean validationEnabled) { this(new V1IngressClass(), validationEnabled); } - public V1IngressClassBuilder(V1IngressClassFluent fluent) { this(fluent, false); } - - public V1IngressClassBuilder(V1IngressClassFluent fluent, Boolean validationEnabled) { + public V1IngressClassBuilder(V1IngressClassFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressClass(), validationEnabled); } - - public V1IngressClassBuilder(V1IngressClassFluent fluent, V1IngressClass instance) { + public V1IngressClassBuilder(V1IngressClassFluent fluent,V1IngressClass instance) { this(fluent, instance, false); } - - public V1IngressClassBuilder( - V1IngressClassFluent fluent, V1IngressClass instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressClassBuilder(V1IngressClassFluent fluent,V1IngressClass instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1IngressClassBuilder( fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressClassBuilder(V1IngressClass instance) { - this(instance, false); + this(instance,false); } - - public V1IngressClassBuilder(V1IngressClass instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressClassBuilder(V1IngressClass instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1IngressClassBuilder(V1IngressClass instance, Boolean validationEnabled) this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressClassFluent fluent; Boolean validationEnabled; - public V1IngressClass build() { V1IngressClass buildable = new V1IngressClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1IngressClass build() { buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java index d04d37ae13..502a3729df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressClassFluent> extends Fluent { + /** + * Generated + */ +public interface V1IngressClassFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1IngressClassFluent.MetadataNested withNewMetadata(); - public V1IngressClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1IngressClassFluent.MetadataNested editMetadata(); - public V1IngressClassFluent.MetadataNested editOrNewMetadata(); - public V1IngressClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1IngressClassSpec getSpec(); - public V1IngressClassSpec buildSpec(); - public A withSpec(V1IngressClassSpec spec); - public Boolean hasSpec(); - public V1IngressClassFluent.SpecNested withNewSpec(); - public V1IngressClassFluent.SpecNested withNewSpecLike(V1IngressClassSpec item); - public V1IngressClassFluent.SpecNested editSpec(); - public V1IngressClassFluent.SpecNested editOrNewSpec(); - public V1IngressClassFluent.SpecNested editOrNewSpecLike(V1IngressClassSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1IngressClassSpecFluent> { + public interface SpecNested extends Nested,V1IngressClassSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java index 77e67e25d5..a516ac1e8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressClassFluentImpl> extends BaseFluent - implements V1IngressClassFluent { - public V1IngressClassFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressClassFluentImpl> extends BaseFluent implements V1IngressClassFluent{ + public V1IngressClassFluentImpl() { + } public V1IngressClassFluentImpl(V1IngressClass instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,218 +23,152 @@ public V1IngressClassFluentImpl(V1IngressClass instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1IngressClassSpecBuilder spec; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1IngressClassFluent.MetadataNested withNewMetadata() { return new V1IngressClassFluentImpl.MetadataNestedImpl(); } - public V1IngressClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1IngressClassFluentImpl.MetadataNestedImpl(item); } - public V1IngressClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1IngressClassFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1IngressClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1IngressClassSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1IngressClassSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1IngressClassSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1IngressClassSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1IngressClassSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1IngressClassFluent.SpecNested withNewSpec() { return new V1IngressClassFluentImpl.SpecNestedImpl(); } - public V1IngressClassFluent.SpecNested withNewSpecLike(V1IngressClassSpec item) { return new V1IngressClassFluentImpl.SpecNestedImpl(item); } - public V1IngressClassFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1IngressClassFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1IngressClassSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1IngressClassSpecBuilder().build()); } - public V1IngressClassFluent.SpecNested editOrNewSpecLike(V1IngressClassSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressClassFluentImpl that = (V1IngressClassFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1IngressClassFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1IngressClassFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1IngressClassFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1IngressClassSpecFluentImpl> - implements V1IngressClassFluent.SpecNested, Nested { + class SpecNestedImpl extends V1IngressClassSpecFluentImpl> implements V1IngressClassFluent.SpecNested,Nested{ SpecNestedImpl(V1IngressClassSpec item) { this.builder = new V1IngressClassSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1IngressClassSpecBuilder(this); } - V1IngressClassSpecBuilder builder; - public N and() { return (N) V1IngressClassFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java index 80b692acba..a6ba7c668e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1IngressClassListBuilder - extends V1IngressClassListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressClassListBuilder extends V1IngressClassListFluentImpl implements VisitableBuilder{ public V1IngressClassListBuilder() { this(false); } - public V1IngressClassListBuilder(Boolean validationEnabled) { this(new V1IngressClassList(), validationEnabled); } - public V1IngressClassListBuilder(V1IngressClassListFluent fluent) { this(fluent, false); } - - public V1IngressClassListBuilder(V1IngressClassListFluent fluent, Boolean validationEnabled) { + public V1IngressClassListBuilder(V1IngressClassListFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressClassList(), validationEnabled); } - - public V1IngressClassListBuilder( - V1IngressClassListFluent fluent, V1IngressClassList instance) { + public V1IngressClassListBuilder(V1IngressClassListFluent fluent,V1IngressClassList instance) { this(fluent, instance, false); } - - public V1IngressClassListBuilder( - V1IngressClassListFluent fluent, V1IngressClassList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressClassListBuilder(V1IngressClassListFluent fluent,V1IngressClassList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -49,15 +28,13 @@ public V1IngressClassListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressClassListBuilder(V1IngressClassList instance) { - this(instance, false); + this(instance,false); } - - public V1IngressClassListBuilder(V1IngressClassList instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressClassListBuilder(V1IngressClassList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -66,12 +43,10 @@ public V1IngressClassListBuilder(V1IngressClassList instance, Boolean validation this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressClassListFluent fluent; Boolean validationEnabled; - public V1IngressClassList build() { V1IngressClassList buildable = new V1IngressClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -80,4 +55,5 @@ public V1IngressClassList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java index e3e5ffdbb5..bbae7131e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressClassListFluent> extends Fluent { + /** + * Generated + */ +public interface V1IngressClassListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1IngressClass item); - - public A setToItems(Integer index, V1IngressClass item); - + public A addToItems(Integer index,V1IngressClass item); + public A setToItems(Integer index,V1IngressClass item); public A addToItems(io.kubernetes.client.openapi.models.V1IngressClass... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1IngressClass... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1IngressClass buildItem(Integer index); - public V1IngressClass buildFirstItem(); - public V1IngressClass buildLastItem(); - public V1IngressClass buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items); - public Boolean hasItems(); - public V1IngressClassListFluent.ItemsNested addNewItem(); - public V1IngressClassListFluent.ItemsNested addNewItemLike(V1IngressClass item); - - public V1IngressClassListFluent.ItemsNested setNewItemLike(Integer index, V1IngressClass item); - + public V1IngressClassListFluent.ItemsNested setNewItemLike(Integer index,V1IngressClass item); public V1IngressClassListFluent.ItemsNested editItem(Integer index); - public V1IngressClassListFluent.ItemsNested editFirstItem(); - public V1IngressClassListFluent.ItemsNested editLastItem(); - - public V1IngressClassListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1IngressClassListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1IngressClassListFluent.MetadataNested withNewMetadata(); - public V1IngressClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1IngressClassListFluent.MetadataNested editMetadata(); - public V1IngressClassListFluent.MetadataNested editOrNewMetadata(); - public V1IngressClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1IngressClassFluent> { + public interface ItemsNested extends Nested,V1IngressClassFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java index 01a3d9c8f7..5b7b29b601 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressClassListFluentImpl> - extends BaseFluent implements V1IngressClassListFluent { - public V1IngressClassListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressClassListFluentImpl> extends BaseFluent implements V1IngressClassListFluent{ + public V1IngressClassListFluentImpl() { + } public V1IngressClassListFluentImpl(V1IngressClassList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1IngressClassListFluentImpl(V1IngressClassList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1IngressClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1IngressClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1IngressClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1IngressClass item) { + if (this.items == null) {this.items = new ArrayList();} V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,272 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1IngressClass buildItem(Integer index) { return this.items.get(index).build(); } - public V1IngressClass buildFirstItem() { return this.items.get(0).build(); } - public V1IngressClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1IngressClass buildMatchingItem(Predicate predicate) { - for (V1IngressClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1IngressClassBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1IngressClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1IngressClassBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1IngressClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1IngressClass item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1IngressClass item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1IngressClass item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1IngressClassListFluent.ItemsNested addNewItem() { return new V1IngressClassListFluentImpl.ItemsNestedImpl(); } - public V1IngressClassListFluent.ItemsNested addNewItemLike(V1IngressClass item) { return new V1IngressClassListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1IngressClassListFluent.ItemsNested setNewItemLike( - Integer index, V1IngressClass item) { + public V1IngressClassListFluent.ItemsNested setNewItemLike(Integer index,V1IngressClass item) { return new V1IngressClassListFluentImpl.ItemsNestedImpl(index, item); } - public V1IngressClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1IngressClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1IngressClassListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1IngressClassListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1IngressClassListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1IngressClassListFluentImpl.MetadataNestedImpl(); } - public V1IngressClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1IngressClassListFluentImpl.MetadataNestedImpl(item); } - public V1IngressClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1IngressClassListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1IngressClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressClassListFluentImpl that = (V1IngressClassListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1IngressClassFluentImpl> - implements V1IngressClassListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1IngressClass item) { + class ItemsNestedImpl extends V1IngressClassFluentImpl> implements V1IngressClassListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1IngressClass item) { this.index = index; this.builder = new V1IngressClassBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1IngressClassBuilder(this); } - V1IngressClassBuilder builder; Integer index; - public N and() { - return (N) V1IngressClassListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1IngressClassListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1IngressClassListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1IngressClassListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1IngressClassListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java index 90acd2a88f..efa9104310 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1IngressClassParametersReferenceBuilder - extends V1IngressClassParametersReferenceFluentImpl - implements VisitableBuilder< - V1IngressClassParametersReference, V1IngressClassParametersReferenceBuilder> { +import java.lang.Boolean; +public class V1IngressClassParametersReferenceBuilder extends V1IngressClassParametersReferenceFluentImpl implements VisitableBuilder{ public V1IngressClassParametersReferenceBuilder() { this(false); } - public V1IngressClassParametersReferenceBuilder(Boolean validationEnabled) { this(new V1IngressClassParametersReference(), validationEnabled); } - - public V1IngressClassParametersReferenceBuilder( - V1IngressClassParametersReferenceFluent fluent) { + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent) { this(fluent, false); } - - public V1IngressClassParametersReferenceBuilder( - V1IngressClassParametersReferenceFluent fluent, Boolean validationEnabled) { + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressClassParametersReference(), validationEnabled); } - - public V1IngressClassParametersReferenceBuilder( - V1IngressClassParametersReferenceFluent fluent, - V1IngressClassParametersReference instance) { + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,V1IngressClassParametersReference instance) { this(fluent, instance, false); } - - public V1IngressClassParametersReferenceBuilder( - V1IngressClassParametersReferenceFluent fluent, - V1IngressClassParametersReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,V1IngressClassParametersReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); fluent.withKind(instance.getKind()); @@ -57,16 +30,13 @@ public V1IngressClassParametersReferenceBuilder( fluent.withScope(instance.getScope()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReference instance) { - this(instance, false); + this(instance,false); } - - public V1IngressClassParametersReferenceBuilder( - V1IngressClassParametersReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -77,12 +47,10 @@ public V1IngressClassParametersReferenceBuilder( this.withScope(instance.getScope()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressClassParametersReferenceFluent fluent; Boolean validationEnabled; - public V1IngressClassParametersReference build() { V1IngressClassParametersReference buildable = new V1IngressClassParametersReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -92,4 +60,5 @@ public V1IngressClassParametersReference build() { buildable.setScope(fluent.getScope()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java index 2eb8f59fbb..57dc974345 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java @@ -1,50 +1,27 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressClassParametersReferenceFluent< - A extends V1IngressClassParametersReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1IngressClassParametersReferenceFluent> extends Fluent{ public String getApiGroup(); - public A withApiGroup(String apiGroup); - public Boolean hasApiGroup(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public String getScope(); - public A withScope(String scope); - public Boolean hasScope(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java index 5a8691e65e..aacd68a37c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java @@ -1,26 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressClassParametersReferenceFluentImpl< - A extends V1IngressClassParametersReferenceFluent> - extends BaseFluent implements V1IngressClassParametersReferenceFluent { - public V1IngressClassParametersReferenceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressClassParametersReferenceFluentImpl> extends BaseFluent implements V1IngressClassParametersReferenceFluent{ + public V1IngressClassParametersReferenceFluentImpl() { + } public V1IngressClassParametersReferenceFluentImpl(V1IngressClassParametersReference instance) { this.withApiGroup(instance.getApiGroup()); @@ -31,121 +23,82 @@ public V1IngressClassParametersReferenceFluentImpl(V1IngressClassParametersRefer this.withNamespace(instance.getNamespace()); this.withScope(instance.getScope()); - } + } private String apiGroup; private String kind; private String name; private String namespace; private String scope; - public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + this.apiGroup=apiGroup; return (A) this; } - public Boolean hasApiGroup() { return this.apiGroup != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public String getScope() { return this.scope; } - public A withScope(String scope) { - this.scope = scope; - return (A) this; + this.scope=scope; return (A) this; } - public Boolean hasScope() { return this.scope != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1IngressClassParametersReferenceFluentImpl that = - (V1IngressClassParametersReferenceFluentImpl) o; - if (apiGroup != null ? !apiGroup.equals(that.apiGroup) : that.apiGroup != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (scope != null ? !scope.equals(that.scope) : that.scope != null) return false; + V1IngressClassParametersReferenceFluentImpl that = (V1IngressClassParametersReferenceFluentImpl) o; + if (apiGroup != null ? !apiGroup.equals(that.apiGroup) :that.apiGroup != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (scope != null ? !scope.equals(that.scope) :that.scope != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, scope, super.hashCode()); + return java.util.Objects.hash(apiGroup, kind, name, namespace, scope, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { - sb.append("apiGroup:"); - sb.append(apiGroup + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (scope != null) { - sb.append("scope:"); - sb.append(scope); - } + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (scope != null) { sb.append("scope:"); sb.append(scope); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java index 7027fda4a7..c225215726 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java @@ -1,73 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1IngressClassSpecBuilder - extends V1IngressClassSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressClassSpecBuilder extends V1IngressClassSpecFluentImpl implements VisitableBuilder{ public V1IngressClassSpecBuilder() { this(false); } - public V1IngressClassSpecBuilder(Boolean validationEnabled) { this(new V1IngressClassSpec(), validationEnabled); } - public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent) { this(fluent, false); } - - public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent, Boolean validationEnabled) { + public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressClassSpec(), validationEnabled); } - - public V1IngressClassSpecBuilder( - V1IngressClassSpecFluent fluent, V1IngressClassSpec instance) { + public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,V1IngressClassSpec instance) { this(fluent, instance, false); } - - public V1IngressClassSpecBuilder( - V1IngressClassSpecFluent fluent, V1IngressClassSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,V1IngressClassSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withController(instance.getController()); fluent.withParameters(instance.getParameters()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressClassSpecBuilder(V1IngressClassSpec instance) { - this(instance, false); + this(instance,false); } - - public V1IngressClassSpecBuilder(V1IngressClassSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressClassSpecBuilder(V1IngressClassSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withController(instance.getController()); this.withParameters(instance.getParameters()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressClassSpecFluent fluent; Boolean validationEnabled; - public V1IngressClassSpec build() { V1IngressClassSpec buildable = new V1IngressClassSpec(); buildable.setController(fluent.getController()); buildable.setParameters(fluent.getParameters()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java index 4a2b1f1180..dddd76db72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java @@ -1,59 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressClassSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1IngressClassSpecFluent> extends Fluent{ public String getController(); - public A withController(String controller); - public Boolean hasController(); - + /** * This method has been deprecated, please use method buildParameters instead. - * * @return The buildable object. */ @Deprecated public V1IngressClassParametersReference getParameters(); - public V1IngressClassParametersReference buildParameters(); - public A withParameters(V1IngressClassParametersReference parameters); - public Boolean hasParameters(); - public V1IngressClassSpecFluent.ParametersNested withNewParameters(); - - public V1IngressClassSpecFluent.ParametersNested withNewParametersLike( - V1IngressClassParametersReference item); - + public V1IngressClassSpecFluent.ParametersNested withNewParametersLike(V1IngressClassParametersReference item); public V1IngressClassSpecFluent.ParametersNested editParameters(); - public V1IngressClassSpecFluent.ParametersNested editOrNewParameters(); - - public V1IngressClassSpecFluent.ParametersNested editOrNewParametersLike( - V1IngressClassParametersReference item); - - public interface ParametersNested - extends Nested, - V1IngressClassParametersReferenceFluent> { + public V1IngressClassSpecFluent.ParametersNested editOrNewParametersLike(V1IngressClassParametersReference item); + public interface ParametersNested extends Nested,V1IngressClassParametersReferenceFluent>{ public N and(); - public N endParameters(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java index 8914e1ddd4..ee44932908 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java @@ -1,153 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressClassSpecFluentImpl> - extends BaseFluent implements V1IngressClassSpecFluent { - public V1IngressClassSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressClassSpecFluentImpl> extends BaseFluent implements V1IngressClassSpecFluent{ + public V1IngressClassSpecFluentImpl() { + } public V1IngressClassSpecFluentImpl(V1IngressClassSpec instance) { this.withController(instance.getController()); this.withParameters(instance.getParameters()); - } + } private String controller; private V1IngressClassParametersReferenceBuilder parameters; - public String getController() { return this.controller; } - public A withController(String controller) { - this.controller = controller; - return (A) this; + this.controller=controller; return (A) this; } - public Boolean hasController() { return this.controller != null; } - + /** * This method has been deprecated, please use method buildParameters instead. - * * @return The buildable object. */ @Deprecated public V1IngressClassParametersReference getParameters() { - return this.parameters != null ? this.parameters.build() : null; + return this.parameters!=null ?this.parameters.build():null; } - public V1IngressClassParametersReference buildParameters() { - return this.parameters != null ? this.parameters.build() : null; + return this.parameters!=null ?this.parameters.build():null; } - public A withParameters(V1IngressClassParametersReference parameters) { _visitables.get("parameters").remove(this.parameters); - if (parameters != null) { - this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); - _visitables.get("parameters").add(this.parameters); - } else { - this.parameters = null; - _visitables.get("parameters").remove(this.parameters); - } - return (A) this; + if (parameters!=null){ this.parameters= new V1IngressClassParametersReferenceBuilder(parameters); _visitables.get("parameters").add(this.parameters);} else { this.parameters = null; _visitables.get("parameters").remove(this.parameters); } return (A) this; } - public Boolean hasParameters() { return this.parameters != null; } - public V1IngressClassSpecFluent.ParametersNested withNewParameters() { return new V1IngressClassSpecFluentImpl.ParametersNestedImpl(); } - - public V1IngressClassSpecFluent.ParametersNested withNewParametersLike( - V1IngressClassParametersReference item) { + public V1IngressClassSpecFluent.ParametersNested withNewParametersLike(V1IngressClassParametersReference item) { return new V1IngressClassSpecFluentImpl.ParametersNestedImpl(item); } - public V1IngressClassSpecFluent.ParametersNested editParameters() { return withNewParametersLike(getParameters()); } - public V1IngressClassSpecFluent.ParametersNested editOrNewParameters() { - return withNewParametersLike( - getParameters() != null - ? getParameters() - : new V1IngressClassParametersReferenceBuilder().build()); + return withNewParametersLike(getParameters() != null ? getParameters(): new V1IngressClassParametersReferenceBuilder().build()); } - - public V1IngressClassSpecFluent.ParametersNested editOrNewParametersLike( - V1IngressClassParametersReference item) { - return withNewParametersLike(getParameters() != null ? getParameters() : item); + public V1IngressClassSpecFluent.ParametersNested editOrNewParametersLike(V1IngressClassParametersReference item) { + return withNewParametersLike(getParameters() != null ? getParameters(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressClassSpecFluentImpl that = (V1IngressClassSpecFluentImpl) o; - if (controller != null ? !controller.equals(that.controller) : that.controller != null) - return false; - if (parameters != null ? !parameters.equals(that.parameters) : that.parameters != null) - return false; + if (controller != null ? !controller.equals(that.controller) :that.controller != null) return false; + if (parameters != null ? !parameters.equals(that.parameters) :that.parameters != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(controller, parameters, super.hashCode()); + return java.util.Objects.hash(controller, parameters, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (controller != null) { - sb.append("controller:"); - sb.append(controller + ","); - } - if (parameters != null) { - sb.append("parameters:"); - sb.append(parameters); - } + if (controller != null) { sb.append("controller:"); sb.append(controller + ","); } + if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } sb.append("}"); return sb.toString(); } - - class ParametersNestedImpl - extends V1IngressClassParametersReferenceFluentImpl< - V1IngressClassSpecFluent.ParametersNested> - implements V1IngressClassSpecFluent.ParametersNested, Nested { + class ParametersNestedImpl extends V1IngressClassParametersReferenceFluentImpl> implements V1IngressClassSpecFluent.ParametersNested,Nested{ ParametersNestedImpl(V1IngressClassParametersReference item) { this.builder = new V1IngressClassParametersReferenceBuilder(this, item); } - ParametersNestedImpl() { this.builder = new V1IngressClassParametersReferenceBuilder(this); } - V1IngressClassParametersReferenceBuilder builder; - public N and() { return (N) V1IngressClassSpecFluentImpl.this.withParameters(builder.build()); } - public N endParameters() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java index 50bb9d6d91..ff4803007e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1IngressFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1IngressFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1IngressFluent.MetadataNested withNewMetadata(); - public V1IngressFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1IngressFluent.MetadataNested editMetadata(); - public V1IngressFluent.MetadataNested editOrNewMetadata(); - public V1IngressFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1IngressSpec getSpec(); - public V1IngressSpec buildSpec(); - public A withSpec(V1IngressSpec spec); - public Boolean hasSpec(); - public V1IngressFluent.SpecNested withNewSpec(); - public V1IngressFluent.SpecNested withNewSpecLike(V1IngressSpec item); - public V1IngressFluent.SpecNested editSpec(); - public V1IngressFluent.SpecNested editOrNewSpec(); - public V1IngressFluent.SpecNested editOrNewSpecLike(V1IngressSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1IngressStatus getStatus(); - public V1IngressStatus buildStatus(); - public A withStatus(V1IngressStatus status); - public Boolean hasStatus(); - public V1IngressFluent.StatusNested withNewStatus(); - public V1IngressFluent.StatusNested withNewStatusLike(V1IngressStatus item); - public V1IngressFluent.StatusNested editStatus(); - public V1IngressFluent.StatusNested editOrNewStatus(); - public V1IngressFluent.StatusNested editOrNewStatusLike(V1IngressStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1IngressSpecFluent> { + public interface SpecNested extends Nested,V1IngressSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1IngressStatusFluent> { + public interface StatusNested extends Nested,V1IngressStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java index b931c9f061..4f3d5d670c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressFluentImpl> extends BaseFluent - implements V1IngressFluent { - public V1IngressFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressFluentImpl> extends BaseFluent implements V1IngressFluent{ + public V1IngressFluentImpl() { + } public V1IngressFluentImpl(V1Ingress instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1IngressFluentImpl(V1Ingress instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1IngressSpecBuilder spec; private V1IngressStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1IngressFluent.MetadataNested withNewMetadata() { return new V1IngressFluentImpl.MetadataNestedImpl(); } - public V1IngressFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1IngressFluentImpl.MetadataNestedImpl(item); } - public V1IngressFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1IngressFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1IngressFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1IngressSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1IngressSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1IngressSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1IngressSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1IngressSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1IngressFluent.SpecNested withNewSpec() { return new V1IngressFluentImpl.SpecNestedImpl(); } - public V1IngressFluent.SpecNested withNewSpecLike(V1IngressSpec item) { return new V1IngressFluentImpl.SpecNestedImpl(item); } - public V1IngressFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1IngressFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1IngressSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1IngressSpecBuilder().build()); } - public V1IngressFluent.SpecNested editOrNewSpecLike(V1IngressSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1IngressStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1IngressStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1IngressStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1IngressStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1IngressStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1IngressFluent.StatusNested withNewStatus() { return new V1IngressFluentImpl.StatusNestedImpl(); } - public V1IngressFluent.StatusNested withNewStatusLike(V1IngressStatus item) { return new V1IngressFluentImpl.StatusNestedImpl(item); } - public V1IngressFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1IngressFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1IngressStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1IngressStatusBuilder().build()); } - public V1IngressFluent.StatusNested editOrNewStatusLike(V1IngressStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressFluentImpl that = (V1IngressFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1IngressFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1IngressFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1IngressFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1IngressSpecFluentImpl> - implements V1IngressFluent.SpecNested, Nested { + class SpecNestedImpl extends V1IngressSpecFluentImpl> implements V1IngressFluent.SpecNested,Nested{ SpecNestedImpl(V1IngressSpec item) { this.builder = new V1IngressSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1IngressSpecBuilder(this); } - V1IngressSpecBuilder builder; - public N and() { return (N) V1IngressFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1IngressStatusFluentImpl> - implements V1IngressFluent.StatusNested, Nested { + class StatusNestedImpl extends V1IngressStatusFluentImpl> implements V1IngressFluent.StatusNested,Nested{ StatusNestedImpl(V1IngressStatus item) { this.builder = new V1IngressStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1IngressStatusBuilder(this); } - V1IngressStatusBuilder builder; - public N and() { return (N) V1IngressFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java index c8c203de65..cd05f0694b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1IngressListBuilder extends V1IngressListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressListBuilder extends V1IngressListFluentImpl implements VisitableBuilder{ public V1IngressListBuilder() { this(false); } - public V1IngressListBuilder(Boolean validationEnabled) { this(new V1IngressList(), validationEnabled); } - public V1IngressListBuilder(V1IngressListFluent fluent) { this(fluent, false); } - - public V1IngressListBuilder(V1IngressListFluent fluent, Boolean validationEnabled) { + public V1IngressListBuilder(V1IngressListFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressList(), validationEnabled); } - - public V1IngressListBuilder(V1IngressListFluent fluent, V1IngressList instance) { + public V1IngressListBuilder(V1IngressListFluent fluent,V1IngressList instance) { this(fluent, instance, false); } - - public V1IngressListBuilder( - V1IngressListFluent fluent, V1IngressList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressListBuilder(V1IngressListFluent fluent,V1IngressList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1IngressListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressListBuilder(V1IngressList instance) { - this(instance, false); + this(instance,false); } - - public V1IngressListBuilder(V1IngressList instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressListBuilder(V1IngressList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1IngressListBuilder(V1IngressList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressListFluent fluent; Boolean validationEnabled; - public V1IngressList build() { V1IngressList buildable = new V1IngressList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1IngressList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java index 34a579024b..e42afee037 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressListFluent> extends Fluent { + /** + * Generated + */ +public interface V1IngressListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Ingress item); - - public A setToItems(Integer index, V1Ingress item); - + public A addToItems(Integer index,V1Ingress item); + public A setToItems(Integer index,V1Ingress item); public A addToItems(io.kubernetes.client.openapi.models.V1Ingress... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Ingress buildItem(Integer index); - public V1Ingress buildFirstItem(); - public V1Ingress buildLastItem(); - public V1Ingress buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items); - public Boolean hasItems(); - public V1IngressListFluent.ItemsNested addNewItem(); - public V1IngressListFluent.ItemsNested addNewItemLike(V1Ingress item); - - public V1IngressListFluent.ItemsNested setNewItemLike(Integer index, V1Ingress item); - + public V1IngressListFluent.ItemsNested setNewItemLike(Integer index,V1Ingress item); public V1IngressListFluent.ItemsNested editItem(Integer index); - public V1IngressListFluent.ItemsNested editFirstItem(); - public V1IngressListFluent.ItemsNested editLastItem(); - public V1IngressListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1IngressListFluent.MetadataNested withNewMetadata(); - public V1IngressListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1IngressListFluent.MetadataNested editMetadata(); - public V1IngressListFluent.MetadataNested editOrNewMetadata(); - public V1IngressListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1IngressFluent> { + public interface ItemsNested extends Nested,V1IngressFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java index d0d5aa736b..d650b30b59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressListFluentImpl> extends BaseFluent - implements V1IngressListFluent { - public V1IngressListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressListFluentImpl> extends BaseFluent implements V1IngressListFluent{ + public V1IngressListFluentImpl() { + } public V1IngressListFluentImpl(V1IngressList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1IngressListFluentImpl(V1IngressList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Ingress item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Ingress item) { + if (this.items == null) {this.items = new ArrayList();} + V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Ingress item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Ingress item) { + if (this.items == null) {this.items = new ArrayList();} V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Ingress buildItem(Integer index) { return this.items.get(index).build(); } - public V1Ingress buildFirstItem() { return this.items.get(0).build(); } - public V1Ingress buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Ingress buildMatchingItem(Predicate predicate) { - for (V1IngressBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1IngressBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1IngressBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1IngressBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Ingress item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Ingress item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Ingress item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Ingress item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1IngressListFluent.ItemsNested addNewItem() { return new V1IngressListFluentImpl.ItemsNestedImpl(); } - public V1IngressListFluent.ItemsNested addNewItemLike(V1Ingress item) { return new V1IngressListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1IngressListFluent.ItemsNested setNewItemLike(Integer index, V1Ingress item) { + public V1IngressListFluent.ItemsNested setNewItemLike(Integer index,V1Ingress item) { return new V1IngressListFluentImpl.ItemsNestedImpl(index, item); } - public V1IngressListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1IngressListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1IngressListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1IngressListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1IngressListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1IngressListFluentImpl.MetadataNestedImpl(); } - public V1IngressListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1IngressListFluentImpl.MetadataNestedImpl(item); } - public V1IngressListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1IngressListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1IngressListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressListFluentImpl that = (V1IngressListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1IngressFluentImpl> - implements V1IngressListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Ingress item) { + class ItemsNestedImpl extends V1IngressFluentImpl> implements V1IngressListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Ingress item) { this.index = index; this.builder = new V1IngressBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1IngressBuilder(this); } - V1IngressBuilder builder; Integer index; - public N and() { - return (N) V1IngressListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1IngressListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1IngressListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1IngressListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1IngressListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java index c54b0665fe..dd706bc35b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1IngressRuleBuilder extends V1IngressRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressRuleBuilder extends V1IngressRuleFluentImpl implements VisitableBuilder{ public V1IngressRuleBuilder() { this(false); } - public V1IngressRuleBuilder(Boolean validationEnabled) { this(new V1IngressRule(), validationEnabled); } - public V1IngressRuleBuilder(V1IngressRuleFluent fluent) { this(fluent, false); } - - public V1IngressRuleBuilder(V1IngressRuleFluent fluent, Boolean validationEnabled) { + public V1IngressRuleBuilder(V1IngressRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressRule(), validationEnabled); } - - public V1IngressRuleBuilder(V1IngressRuleFluent fluent, V1IngressRule instance) { + public V1IngressRuleBuilder(V1IngressRuleFluent fluent,V1IngressRule instance) { this(fluent, instance, false); } - - public V1IngressRuleBuilder( - V1IngressRuleFluent fluent, V1IngressRule instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressRuleBuilder(V1IngressRuleFluent fluent,V1IngressRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHost(instance.getHost()); fluent.withHttp(instance.getHttp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressRuleBuilder(V1IngressRule instance) { - this(instance, false); + this(instance,false); } - - public V1IngressRuleBuilder(V1IngressRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressRuleBuilder(V1IngressRule instance,Boolean validationEnabled) { + this.fluent = this; this.withHost(instance.getHost()); this.withHttp(instance.getHttp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressRuleFluent fluent; Boolean validationEnabled; - public V1IngressRule build() { V1IngressRule buildable = new V1IngressRule(); buildable.setHost(fluent.getHost()); buildable.setHttp(fluent.getHttp()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java index 16bb7bb661..2e1a95b64e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java @@ -1,56 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressRuleFluent> extends Fluent { + /** + * Generated + */ +public interface V1IngressRuleFluent> extends Fluent{ public String getHost(); - public A withHost(String host); - public Boolean hasHost(); - + /** * This method has been deprecated, please use method buildHttp instead. - * * @return The buildable object. */ @Deprecated public V1HTTPIngressRuleValue getHttp(); - public V1HTTPIngressRuleValue buildHttp(); - public A withHttp(V1HTTPIngressRuleValue http); - public Boolean hasHttp(); - public V1IngressRuleFluent.HttpNested withNewHttp(); - public V1IngressRuleFluent.HttpNested withNewHttpLike(V1HTTPIngressRuleValue item); - public V1IngressRuleFluent.HttpNested editHttp(); - public V1IngressRuleFluent.HttpNested editOrNewHttp(); - public V1IngressRuleFluent.HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item); - - public interface HttpNested - extends Nested, V1HTTPIngressRuleValueFluent> { + public interface HttpNested extends Nested,V1HTTPIngressRuleValueFluent>{ public N and(); - public N endHttp(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java index 4c12ca7727..b666f39d8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java @@ -1,146 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressRuleFluentImpl> extends BaseFluent - implements V1IngressRuleFluent { - public V1IngressRuleFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressRuleFluentImpl> extends BaseFluent implements V1IngressRuleFluent{ + public V1IngressRuleFluentImpl() { + } public V1IngressRuleFluentImpl(V1IngressRule instance) { this.withHost(instance.getHost()); this.withHttp(instance.getHttp()); - } + } private String host; private V1HTTPIngressRuleValueBuilder http; - public String getHost() { return this.host; } - public A withHost(String host) { - this.host = host; - return (A) this; + this.host=host; return (A) this; } - public Boolean hasHost() { return this.host != null; } - + /** * This method has been deprecated, please use method buildHttp instead. - * * @return The buildable object. */ @Deprecated public V1HTTPIngressRuleValue getHttp() { - return this.http != null ? this.http.build() : null; + return this.http!=null ?this.http.build():null; } - public V1HTTPIngressRuleValue buildHttp() { - return this.http != null ? this.http.build() : null; + return this.http!=null ?this.http.build():null; } - public A withHttp(V1HTTPIngressRuleValue http) { _visitables.get("http").remove(this.http); - if (http != null) { - this.http = new V1HTTPIngressRuleValueBuilder(http); - _visitables.get("http").add(this.http); - } else { - this.http = null; - _visitables.get("http").remove(this.http); - } - return (A) this; + if (http!=null){ this.http= new V1HTTPIngressRuleValueBuilder(http); _visitables.get("http").add(this.http);} else { this.http = null; _visitables.get("http").remove(this.http); } return (A) this; } - public Boolean hasHttp() { return this.http != null; } - public V1IngressRuleFluent.HttpNested withNewHttp() { return new V1IngressRuleFluentImpl.HttpNestedImpl(); } - public V1IngressRuleFluent.HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { return new V1IngressRuleFluentImpl.HttpNestedImpl(item); } - public V1IngressRuleFluent.HttpNested editHttp() { return withNewHttpLike(getHttp()); } - public V1IngressRuleFluent.HttpNested editOrNewHttp() { - return withNewHttpLike( - getHttp() != null ? getHttp() : new V1HTTPIngressRuleValueBuilder().build()); + return withNewHttpLike(getHttp() != null ? getHttp(): new V1HTTPIngressRuleValueBuilder().build()); } - public V1IngressRuleFluent.HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item) { - return withNewHttpLike(getHttp() != null ? getHttp() : item); + return withNewHttpLike(getHttp() != null ? getHttp(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressRuleFluentImpl that = (V1IngressRuleFluentImpl) o; - if (host != null ? !host.equals(that.host) : that.host != null) return false; - if (http != null ? !http.equals(that.http) : that.http != null) return false; + if (host != null ? !host.equals(that.host) :that.host != null) return false; + if (http != null ? !http.equals(that.http) :that.http != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(host, http, super.hashCode()); + return java.util.Objects.hash(host, http, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (host != null) { - sb.append("host:"); - sb.append(host + ","); - } - if (http != null) { - sb.append("http:"); - sb.append(http); - } + if (host != null) { sb.append("host:"); sb.append(host + ","); } + if (http != null) { sb.append("http:"); sb.append(http); } sb.append("}"); return sb.toString(); } - - class HttpNestedImpl - extends V1HTTPIngressRuleValueFluentImpl> - implements V1IngressRuleFluent.HttpNested, Nested { + class HttpNestedImpl extends V1HTTPIngressRuleValueFluentImpl> implements V1IngressRuleFluent.HttpNested,Nested{ HttpNestedImpl(V1HTTPIngressRuleValue item) { this.builder = new V1HTTPIngressRuleValueBuilder(this, item); } - HttpNestedImpl() { this.builder = new V1HTTPIngressRuleValueBuilder(this); } - V1HTTPIngressRuleValueBuilder builder; - public N and() { return (N) V1IngressRuleFluentImpl.this.withHttp(builder.build()); } - public N endHttp() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java index ea81fe28ed..9671654c5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1IngressServiceBackendBuilder - extends V1IngressServiceBackendFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressServiceBackendBuilder extends V1IngressServiceBackendFluentImpl implements VisitableBuilder{ public V1IngressServiceBackendBuilder() { this(false); } - public V1IngressServiceBackendBuilder(Boolean validationEnabled) { this(new V1IngressServiceBackend(), validationEnabled); } - public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent) { this(fluent, false); } - - public V1IngressServiceBackendBuilder( - V1IngressServiceBackendFluent fluent, Boolean validationEnabled) { + public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressServiceBackend(), validationEnabled); } - - public V1IngressServiceBackendBuilder( - V1IngressServiceBackendFluent fluent, V1IngressServiceBackend instance) { + public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,V1IngressServiceBackend instance) { this(fluent, instance, false); } - - public V1IngressServiceBackendBuilder( - V1IngressServiceBackendFluent fluent, - V1IngressServiceBackend instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,V1IngressServiceBackend instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressServiceBackendBuilder(V1IngressServiceBackend instance) { - this(instance, false); + this(instance,false); } - - public V1IngressServiceBackendBuilder( - V1IngressServiceBackend instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressServiceBackendBuilder(V1IngressServiceBackend instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressServiceBackendFluent fluent; Boolean validationEnabled; - public V1IngressServiceBackend build() { V1IngressServiceBackend buildable = new V1IngressServiceBackend(); buildable.setName(fluent.getName()); buildable.setPort(fluent.getPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java index 32a8cb9735..2e6228b7a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java @@ -1,57 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressServiceBackendFluent> - extends Fluent { + /** + * Generated + */ +public interface V1IngressServiceBackendFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildPort instead. - * * @return The buildable object. */ @Deprecated public V1ServiceBackendPort getPort(); - public V1ServiceBackendPort buildPort(); - public A withPort(V1ServiceBackendPort port); - public Boolean hasPort(); - public V1IngressServiceBackendFluent.PortNested withNewPort(); - public V1IngressServiceBackendFluent.PortNested withNewPortLike(V1ServiceBackendPort item); - public V1IngressServiceBackendFluent.PortNested editPort(); - public V1IngressServiceBackendFluent.PortNested editOrNewPort(); - public V1IngressServiceBackendFluent.PortNested editOrNewPortLike(V1ServiceBackendPort item); - - public interface PortNested - extends Nested, V1ServiceBackendPortFluent> { + public interface PortNested extends Nested,V1ServiceBackendPortFluent>{ public N and(); - public N endPort(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java index 82b7d110cd..101b1e918a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java @@ -1,146 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressServiceBackendFluentImpl> - extends BaseFluent implements V1IngressServiceBackendFluent { - public V1IngressServiceBackendFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressServiceBackendFluentImpl> extends BaseFluent implements V1IngressServiceBackendFluent{ + public V1IngressServiceBackendFluentImpl() { + } public V1IngressServiceBackendFluentImpl(V1IngressServiceBackend instance) { this.withName(instance.getName()); this.withPort(instance.getPort()); - } + } private String name; private V1ServiceBackendPortBuilder port; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildPort instead. - * * @return The buildable object. */ @Deprecated public V1ServiceBackendPort getPort() { - return this.port != null ? this.port.build() : null; + return this.port!=null ?this.port.build():null; } - public V1ServiceBackendPort buildPort() { - return this.port != null ? this.port.build() : null; + return this.port!=null ?this.port.build():null; } - public A withPort(V1ServiceBackendPort port) { _visitables.get("port").remove(this.port); - if (port != null) { - this.port = new V1ServiceBackendPortBuilder(port); - _visitables.get("port").add(this.port); - } else { - this.port = null; - _visitables.get("port").remove(this.port); - } - return (A) this; + if (port!=null){ this.port= new V1ServiceBackendPortBuilder(port); _visitables.get("port").add(this.port);} else { this.port = null; _visitables.get("port").remove(this.port); } return (A) this; } - public Boolean hasPort() { return this.port != null; } - public V1IngressServiceBackendFluent.PortNested withNewPort() { return new V1IngressServiceBackendFluentImpl.PortNestedImpl(); } - public V1IngressServiceBackendFluent.PortNested withNewPortLike(V1ServiceBackendPort item) { return new V1IngressServiceBackendFluentImpl.PortNestedImpl(item); } - public V1IngressServiceBackendFluent.PortNested editPort() { return withNewPortLike(getPort()); } - public V1IngressServiceBackendFluent.PortNested editOrNewPort() { - return withNewPortLike( - getPort() != null ? getPort() : new V1ServiceBackendPortBuilder().build()); + return withNewPortLike(getPort() != null ? getPort(): new V1ServiceBackendPortBuilder().build()); } - public V1IngressServiceBackendFluent.PortNested editOrNewPortLike(V1ServiceBackendPort item) { - return withNewPortLike(getPort() != null ? getPort() : item); + return withNewPortLike(getPort() != null ? getPort(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressServiceBackendFluentImpl that = (V1IngressServiceBackendFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, port, super.hashCode()); + return java.util.Objects.hash(name, port, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (port != null) { sb.append("port:"); sb.append(port); } sb.append("}"); return sb.toString(); } - - class PortNestedImpl - extends V1ServiceBackendPortFluentImpl> - implements V1IngressServiceBackendFluent.PortNested, Nested { + class PortNestedImpl extends V1ServiceBackendPortFluentImpl> implements V1IngressServiceBackendFluent.PortNested,Nested{ PortNestedImpl(V1ServiceBackendPort item) { this.builder = new V1ServiceBackendPortBuilder(this, item); } - PortNestedImpl() { this.builder = new V1ServiceBackendPortBuilder(this); } - V1ServiceBackendPortBuilder builder; - public N and() { return (N) V1IngressServiceBackendFluentImpl.this.withPort(builder.build()); } - public N endPort() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java index b01c96916f..01341f5839 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1IngressSpecBuilder extends V1IngressSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressSpecBuilder extends V1IngressSpecFluentImpl implements VisitableBuilder{ public V1IngressSpecBuilder() { this(false); } - public V1IngressSpecBuilder(Boolean validationEnabled) { this(new V1IngressSpec(), validationEnabled); } - public V1IngressSpecBuilder(V1IngressSpecFluent fluent) { this(fluent, false); } - - public V1IngressSpecBuilder(V1IngressSpecFluent fluent, Boolean validationEnabled) { + public V1IngressSpecBuilder(V1IngressSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressSpec(), validationEnabled); } - - public V1IngressSpecBuilder(V1IngressSpecFluent fluent, V1IngressSpec instance) { + public V1IngressSpecBuilder(V1IngressSpecFluent fluent,V1IngressSpec instance) { this(fluent, instance, false); } - - public V1IngressSpecBuilder( - V1IngressSpecFluent fluent, V1IngressSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressSpecBuilder(V1IngressSpecFluent fluent,V1IngressSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDefaultBackend(instance.getDefaultBackend()); fluent.withIngressClassName(instance.getIngressClassName()); @@ -47,15 +28,13 @@ public V1IngressSpecBuilder( fluent.withTls(instance.getTls()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressSpecBuilder(V1IngressSpec instance) { - this(instance, false); + this(instance,false); } - - public V1IngressSpecBuilder(V1IngressSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressSpecBuilder(V1IngressSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withDefaultBackend(instance.getDefaultBackend()); this.withIngressClassName(instance.getIngressClassName()); @@ -64,12 +43,10 @@ public V1IngressSpecBuilder(V1IngressSpec instance, Boolean validationEnabled) { this.withTls(instance.getTls()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressSpecFluent fluent; Boolean validationEnabled; - public V1IngressSpec build() { V1IngressSpec buildable = new V1IngressSpec(); buildable.setDefaultBackend(fluent.getDefaultBackend()); @@ -78,4 +55,5 @@ public V1IngressSpec build() { buildable.setTls(fluent.getTls()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java index c0598be1e2..83aa6de266 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java @@ -1,185 +1,114 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1IngressSpecFluent> extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1IngressSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildDefaultBackend instead. - * * @return The buildable object. */ @Deprecated public V1IngressBackend getDefaultBackend(); - public V1IngressBackend buildDefaultBackend(); - public A withDefaultBackend(V1IngressBackend defaultBackend); - public Boolean hasDefaultBackend(); - public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackend(); - - public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackendLike( - V1IngressBackend item); - + public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item); public V1IngressSpecFluent.DefaultBackendNested editDefaultBackend(); - public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackend(); - - public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackendLike( - V1IngressBackend item); - + public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item); public String getIngressClassName(); - public A withIngressClassName(String ingressClassName); - public Boolean hasIngressClassName(); - - public A addToRules(Integer index, V1IngressRule item); - - public A setToRules(Integer index, V1IngressRule item); - + public A addToRules(Integer index,V1IngressRule item); + public A setToRules(Integer index,V1IngressRule item); public A addToRules(io.kubernetes.client.openapi.models.V1IngressRule... items); - public A addAllToRules(Collection items); - public A removeFromRules(io.kubernetes.client.openapi.models.V1IngressRule... items); - public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1IngressRule buildRule(Integer index); - public V1IngressRule buildFirstRule(); - public V1IngressRule buildLastRule(); - public V1IngressRule buildMatchingRule(Predicate predicate); - public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules); - public Boolean hasRules(); - public V1IngressSpecFluent.RulesNested addNewRule(); - public V1IngressSpecFluent.RulesNested addNewRuleLike(V1IngressRule item); - - public V1IngressSpecFluent.RulesNested setNewRuleLike(Integer index, V1IngressRule item); - + public V1IngressSpecFluent.RulesNested setNewRuleLike(Integer index,V1IngressRule item); public V1IngressSpecFluent.RulesNested editRule(Integer index); - public V1IngressSpecFluent.RulesNested editFirstRule(); - public V1IngressSpecFluent.RulesNested editLastRule(); - - public V1IngressSpecFluent.RulesNested editMatchingRule( - Predicate predicate); - - public A addToTls(Integer index, V1IngressTLS item); - - public A setToTls(Integer index, V1IngressTLS item); - + public V1IngressSpecFluent.RulesNested editMatchingRule(Predicate predicate); + public A addToTls(Integer index,V1IngressTLS item); + public A setToTls(Integer index,V1IngressTLS item); public A addToTls(io.kubernetes.client.openapi.models.V1IngressTLS... items); - public A addAllToTls(Collection items); - public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items); - public A removeAllFromTls(Collection items); - public A removeMatchingFromTls(Predicate predicate); - + /** * This method has been deprecated, please use method buildTls instead. - * * @return The buildable object. */ @Deprecated public List getTls(); - public List buildTls(); - public V1IngressTLS buildTl(Integer index); - public V1IngressTLS buildFirstTl(); - public V1IngressTLS buildLastTl(); - public V1IngressTLS buildMatchingTl(Predicate predicate); - public Boolean hasMatchingTl(Predicate predicate); - public A withTls(List tls); - public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls); - public Boolean hasTls(); - public V1IngressSpecFluent.TlsNested addNewTl(); - public V1IngressSpecFluent.TlsNested addNewTlLike(V1IngressTLS item); - - public V1IngressSpecFluent.TlsNested setNewTlLike(Integer index, V1IngressTLS item); - + public V1IngressSpecFluent.TlsNested setNewTlLike(Integer index,V1IngressTLS item); public V1IngressSpecFluent.TlsNested editTl(Integer index); - public V1IngressSpecFluent.TlsNested editFirstTl(); - public V1IngressSpecFluent.TlsNested editLastTl(); - public V1IngressSpecFluent.TlsNested editMatchingTl(Predicate predicate); - - public interface DefaultBackendNested - extends Nested, V1IngressBackendFluent> { + public interface DefaultBackendNested extends Nested,V1IngressBackendFluent>{ public N and(); - public N endDefaultBackend(); + } - - public interface RulesNested - extends Nested, V1IngressRuleFluent> { + public interface RulesNested extends Nested,V1IngressRuleFluent>{ public N and(); - public N endRule(); + } - - public interface TlsNested - extends Nested, V1IngressTLSFluent> { + public interface TlsNested extends Nested,V1IngressTLSFluent>{ public N and(); - public N endTl(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java index 799c40d05d..7f33943302 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressSpecFluentImpl> extends BaseFluent - implements V1IngressSpecFluent { - public V1IngressSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressSpecFluentImpl> extends BaseFluent implements V1IngressSpecFluent{ + public V1IngressSpecFluentImpl() { + } public V1IngressSpecFluentImpl(V1IngressSpec instance) { this.withDefaultBackend(instance.getDefaultBackend()); @@ -34,153 +30,80 @@ public V1IngressSpecFluentImpl(V1IngressSpec instance) { this.withRules(instance.getRules()); this.withTls(instance.getTls()); - } + } private V1IngressBackendBuilder defaultBackend; private String ingressClassName; private ArrayList rules; private ArrayList tls; - + /** * This method has been deprecated, please use method buildDefaultBackend instead. - * * @return The buildable object. */ @Deprecated public V1IngressBackend getDefaultBackend() { - return this.defaultBackend != null ? this.defaultBackend.build() : null; + return this.defaultBackend!=null ?this.defaultBackend.build():null; } - public V1IngressBackend buildDefaultBackend() { - return this.defaultBackend != null ? this.defaultBackend.build() : null; + return this.defaultBackend!=null ?this.defaultBackend.build():null; } - public A withDefaultBackend(V1IngressBackend defaultBackend) { _visitables.get("defaultBackend").remove(this.defaultBackend); - if (defaultBackend != null) { - this.defaultBackend = new V1IngressBackendBuilder(defaultBackend); - _visitables.get("defaultBackend").add(this.defaultBackend); - } else { - this.defaultBackend = null; - _visitables.get("defaultBackend").remove(this.defaultBackend); - } - return (A) this; + if (defaultBackend!=null){ this.defaultBackend= new V1IngressBackendBuilder(defaultBackend); _visitables.get("defaultBackend").add(this.defaultBackend);} else { this.defaultBackend = null; _visitables.get("defaultBackend").remove(this.defaultBackend); } return (A) this; } - public Boolean hasDefaultBackend() { return this.defaultBackend != null; } - public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackend() { return new V1IngressSpecFluentImpl.DefaultBackendNestedImpl(); } - - public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackendLike( - V1IngressBackend item) { + public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) { return new V1IngressSpecFluentImpl.DefaultBackendNestedImpl(item); } - public V1IngressSpecFluent.DefaultBackendNested editDefaultBackend() { return withNewDefaultBackendLike(getDefaultBackend()); } - public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackend() { - return withNewDefaultBackendLike( - getDefaultBackend() != null ? getDefaultBackend() : new V1IngressBackendBuilder().build()); + return withNewDefaultBackendLike(getDefaultBackend() != null ? getDefaultBackend(): new V1IngressBackendBuilder().build()); } - - public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackendLike( - V1IngressBackend item) { - return withNewDefaultBackendLike(getDefaultBackend() != null ? getDefaultBackend() : item); + public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item) { + return withNewDefaultBackendLike(getDefaultBackend() != null ? getDefaultBackend(): item); } - public String getIngressClassName() { return this.ingressClassName; } - public A withIngressClassName(String ingressClassName) { - this.ingressClassName = ingressClassName; - return (A) this; + this.ingressClassName=ingressClassName; return (A) this; } - public Boolean hasIngressClassName() { return this.ingressClassName != null; } - - public A addToRules(Integer index, V1IngressRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1IngressRule item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1IngressRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1IngressRule item) { + if (this.rules == null) {this.rules = new ArrayList();} V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -192,199 +115,101 @@ public A removeMatchingFromRules(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1IngressRule buildRule(Integer index) { return this.rules.get(index).build(); } - public V1IngressRule buildFirstRule() { return this.rules.get(0).build(); } - public V1IngressRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public V1IngressRule buildMatchingRule(Predicate predicate) { - for (V1IngressRuleBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1IngressRuleBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1IngressRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1IngressRuleBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1IngressRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1IngressRule item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1IngressRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1IngressRule item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1IngressSpecFluent.RulesNested addNewRule() { return new V1IngressSpecFluentImpl.RulesNestedImpl(); } - public V1IngressSpecFluent.RulesNested addNewRuleLike(V1IngressRule item) { return new V1IngressSpecFluentImpl.RulesNestedImpl(-1, item); } - - public V1IngressSpecFluent.RulesNested setNewRuleLike(Integer index, V1IngressRule item) { + public V1IngressSpecFluent.RulesNested setNewRuleLike(Integer index,V1IngressRule item) { return new V1IngressSpecFluentImpl.RulesNestedImpl(index, item); } - public V1IngressSpecFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1IngressSpecFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1IngressSpecFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1IngressSpecFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1IngressSpecFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(index >= 0 ? index : _visitables.get("tls").size(), builder); - this.tls.add(index >= 0 ? index : tls.size(), builder); - return (A) this; + public A addToTls(Integer index,V1IngressTLS item) { + if (this.tls == null) {this.tls = new ArrayList();} + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(index >= 0 ? index : _visitables.get("tls").size(), builder);this.tls.add(index >= 0 ? index : tls.size(), builder); return (A)this; } - - public A setToTls(Integer index, V1IngressTLS item) { - if (this.tls == null) { - this.tls = new ArrayList(); - } + public A setToTls(Integer index,V1IngressTLS item) { + if (this.tls == null) {this.tls = new ArrayList();} V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= _visitables.get("tls").size()) { - _visitables.get("tls").add(builder); - } else { - _visitables.get("tls").set(index, builder); - } - if (index < 0 || index >= tls.size()) { - tls.add(builder); - } else { - tls.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("tls").size()) { _visitables.get("tls").add(builder); } else { _visitables.get("tls").set(index, builder);} + if (index < 0 || index >= tls.size()) { tls.add(builder); } else { tls.set(index, builder);} + return (A)this; } - public A addToTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - if (this.tls == null) { - this.tls = new ArrayList(); - } - for (V1IngressTLS item : items) { - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(builder); - this.tls.add(builder); - } - return (A) this; + if (this.tls == null) {this.tls = new ArrayList();} + for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(builder);this.tls.add(builder);} return (A)this; } - public A addAllToTls(Collection items) { - if (this.tls == null) { - this.tls = new ArrayList(); - } - for (V1IngressTLS item : items) { - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(builder); - this.tls.add(builder); - } - return (A) this; + if (this.tls == null) {this.tls = new ArrayList();} + for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(builder);this.tls.add(builder);} return (A)this; } - public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - for (V1IngressTLS item : items) { - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").remove(builder); - if (this.tls != null) { - this.tls.remove(builder); - } - } - return (A) this; + for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").remove(builder);if (this.tls != null) {this.tls.remove(builder);}} return (A)this; } - public A removeAllFromTls(Collection items) { - for (V1IngressTLS item : items) { - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").remove(builder); - if (this.tls != null) { - this.tls.remove(builder); - } - } - return (A) this; + for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").remove(builder);if (this.tls != null) {this.tls.remove(builder);}} return (A)this; } - public A removeMatchingFromTls(Predicate predicate) { if (tls == null) return (A) this; final Iterator each = tls.iterator(); @@ -396,233 +221,152 @@ public A removeMatchingFromTls(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTls instead. - * * @return The buildable object. */ @Deprecated public List getTls() { return tls != null ? build(tls) : null; } - public List buildTls() { return tls != null ? build(tls) : null; } - public V1IngressTLS buildTl(Integer index) { return this.tls.get(index).build(); } - public V1IngressTLS buildFirstTl() { return this.tls.get(0).build(); } - public V1IngressTLS buildLastTl() { return this.tls.get(tls.size() - 1).build(); } - public V1IngressTLS buildMatchingTl(Predicate predicate) { - for (V1IngressTLSBuilder item : tls) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1IngressTLSBuilder item: tls) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingTl(Predicate predicate) { - for (V1IngressTLSBuilder item : tls) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1IngressTLSBuilder item: tls) { if(predicate.test(item)){ return true;} } return false; } - public A withTls(List tls) { - if (this.tls != null) { - _visitables.get("tls").removeAll(this.tls); - } - if (tls != null) { - this.tls = new ArrayList(); - for (V1IngressTLS item : tls) { - this.addToTls(item); - } - } else { - this.tls = null; - } - return (A) this; + if (this.tls != null) { _visitables.get("tls").removeAll(this.tls);} + if (tls != null) {this.tls = new ArrayList(); for (V1IngressTLS item : tls){this.addToTls(item);}} else { this.tls = null;} return (A) this; } - public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls) { - if (this.tls != null) { - this.tls.clear(); - } - if (tls != null) { - for (V1IngressTLS item : tls) { - this.addToTls(item); - } - } - return (A) this; + if (this.tls != null) {this.tls.clear();} + if (tls != null) {for (V1IngressTLS item :tls){ this.addToTls(item);}} return (A) this; } - public Boolean hasTls() { return tls != null && !tls.isEmpty(); } - public V1IngressSpecFluent.TlsNested addNewTl() { return new V1IngressSpecFluentImpl.TlsNestedImpl(); } - public V1IngressSpecFluent.TlsNested addNewTlLike(V1IngressTLS item) { return new V1IngressSpecFluentImpl.TlsNestedImpl(-1, item); } - - public V1IngressSpecFluent.TlsNested setNewTlLike(Integer index, V1IngressTLS item) { + public V1IngressSpecFluent.TlsNested setNewTlLike(Integer index,V1IngressTLS item) { return new V1IngressSpecFluentImpl.TlsNestedImpl(index, item); } - public V1IngressSpecFluent.TlsNested editTl(Integer index) { if (tls.size() <= index) throw new RuntimeException("Can't edit tls. Index exceeds size."); return setNewTlLike(index, buildTl(index)); } - public V1IngressSpecFluent.TlsNested editFirstTl() { if (tls.size() == 0) throw new RuntimeException("Can't edit first tls. The list is empty."); return setNewTlLike(0, buildTl(0)); } - public V1IngressSpecFluent.TlsNested editLastTl() { int index = tls.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last tls. The list is empty."); return setNewTlLike(index, buildTl(index)); } - public V1IngressSpecFluent.TlsNested editMatchingTl(Predicate predicate) { int index = -1; - for (int i = 0; i < tls.size(); i++) { - if (predicate.test(tls.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1IngressBackendFluentImpl> - implements V1IngressSpecFluent.DefaultBackendNested, Nested { + class DefaultBackendNestedImpl extends V1IngressBackendFluentImpl> implements V1IngressSpecFluent.DefaultBackendNested,Nested{ DefaultBackendNestedImpl(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } - DefaultBackendNestedImpl() { this.builder = new V1IngressBackendBuilder(this); } - V1IngressBackendBuilder builder; - public N and() { return (N) V1IngressSpecFluentImpl.this.withDefaultBackend(builder.build()); } - public N endDefaultBackend() { return and(); } + } - - class RulesNestedImpl extends V1IngressRuleFluentImpl> - implements V1IngressSpecFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1IngressRule item) { + class RulesNestedImpl extends V1IngressRuleFluentImpl> implements V1IngressSpecFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1IngressRule item) { this.index = index; this.builder = new V1IngressRuleBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1IngressRuleBuilder(this); } - V1IngressRuleBuilder builder; Integer index; - public N and() { - return (N) V1IngressSpecFluentImpl.this.setToRules(index, builder.build()); + return (N) V1IngressSpecFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } - - class TlsNestedImpl extends V1IngressTLSFluentImpl> - implements V1IngressSpecFluent.TlsNested, Nested { - TlsNestedImpl(Integer index, V1IngressTLS item) { + class TlsNestedImpl extends V1IngressTLSFluentImpl> implements V1IngressSpecFluent.TlsNested,Nested{ + TlsNestedImpl(Integer index,V1IngressTLS item) { this.index = index; this.builder = new V1IngressTLSBuilder(this, item); } - TlsNestedImpl() { this.index = -1; this.builder = new V1IngressTLSBuilder(this); } - V1IngressTLSBuilder builder; Integer index; - public N and() { - return (N) V1IngressSpecFluentImpl.this.setToTls(index, builder.build()); + return (N) V1IngressSpecFluentImpl.this.setToTls(index,builder.build()); } - public N endTl() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java index da99d6f26f..0f8da2abdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1IngressStatusBuilder extends V1IngressStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressStatusBuilder extends V1IngressStatusFluentImpl implements VisitableBuilder{ public V1IngressStatusBuilder() { this(false); } - public V1IngressStatusBuilder(Boolean validationEnabled) { this(new V1IngressStatus(), validationEnabled); } - public V1IngressStatusBuilder(V1IngressStatusFluent fluent) { this(fluent, false); } - - public V1IngressStatusBuilder(V1IngressStatusFluent fluent, Boolean validationEnabled) { + public V1IngressStatusBuilder(V1IngressStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressStatus(), validationEnabled); } - - public V1IngressStatusBuilder(V1IngressStatusFluent fluent, V1IngressStatus instance) { + public V1IngressStatusBuilder(V1IngressStatusFluent fluent,V1IngressStatus instance) { this(fluent, instance, false); } - - public V1IngressStatusBuilder( - V1IngressStatusFluent fluent, V1IngressStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressStatusBuilder(V1IngressStatusFluent fluent,V1IngressStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLoadBalancer(instance.getLoadBalancer()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressStatusBuilder(V1IngressStatus instance) { - this(instance, false); + this(instance,false); } - - public V1IngressStatusBuilder(V1IngressStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressStatusBuilder(V1IngressStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withLoadBalancer(instance.getLoadBalancer()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressStatusFluent fluent; Boolean validationEnabled; - public V1IngressStatus build() { V1IngressStatus buildable = new V1IngressStatus(); buildable.setLoadBalancer(fluent.getLoadBalancer()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java index aecb257ad8..92d53c03ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java @@ -1,53 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1IngressStatusFluent> extends Fluent { - + /** + * Generated + */ +public interface V1IngressStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildLoadBalancer instead. - * * @return The buildable object. */ @Deprecated public V1LoadBalancerStatus getLoadBalancer(); - public V1LoadBalancerStatus buildLoadBalancer(); - public A withLoadBalancer(V1LoadBalancerStatus loadBalancer); - public Boolean hasLoadBalancer(); - public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancer(); - - public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike( - V1LoadBalancerStatus item); - + public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item); public V1IngressStatusFluent.LoadBalancerNested editLoadBalancer(); - public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancer(); - - public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( - V1LoadBalancerStatus item); - - public interface LoadBalancerNested - extends Nested, V1LoadBalancerStatusFluent> { + public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item); + public interface LoadBalancerNested extends Nested,V1LoadBalancerStatusFluent>{ public N and(); - public N endLoadBalancer(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java index 981f7ccb8a..52cfc127e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java @@ -1,128 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressStatusFluentImpl> extends BaseFluent - implements V1IngressStatusFluent { - public V1IngressStatusFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressStatusFluentImpl> extends BaseFluent implements V1IngressStatusFluent{ + public V1IngressStatusFluentImpl() { + } public V1IngressStatusFluentImpl(V1IngressStatus instance) { this.withLoadBalancer(instance.getLoadBalancer()); - } + } private V1LoadBalancerStatusBuilder loadBalancer; - + /** * This method has been deprecated, please use method buildLoadBalancer instead. - * * @return The buildable object. */ @Deprecated public V1LoadBalancerStatus getLoadBalancer() { - return this.loadBalancer != null ? this.loadBalancer.build() : null; + return this.loadBalancer!=null ?this.loadBalancer.build():null; } - public V1LoadBalancerStatus buildLoadBalancer() { - return this.loadBalancer != null ? this.loadBalancer.build() : null; + return this.loadBalancer!=null ?this.loadBalancer.build():null; } - public A withLoadBalancer(V1LoadBalancerStatus loadBalancer) { _visitables.get("loadBalancer").remove(this.loadBalancer); - if (loadBalancer != null) { - this.loadBalancer = new V1LoadBalancerStatusBuilder(loadBalancer); - _visitables.get("loadBalancer").add(this.loadBalancer); - } else { - this.loadBalancer = null; - _visitables.get("loadBalancer").remove(this.loadBalancer); - } - return (A) this; + if (loadBalancer!=null){ this.loadBalancer= new V1LoadBalancerStatusBuilder(loadBalancer); _visitables.get("loadBalancer").add(this.loadBalancer);} else { this.loadBalancer = null; _visitables.get("loadBalancer").remove(this.loadBalancer); } return (A) this; } - public Boolean hasLoadBalancer() { return this.loadBalancer != null; } - public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancer() { return new V1IngressStatusFluentImpl.LoadBalancerNestedImpl(); } - - public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike( - V1LoadBalancerStatus item) { + public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item) { return new V1IngressStatusFluentImpl.LoadBalancerNestedImpl(item); } - public V1IngressStatusFluent.LoadBalancerNested editLoadBalancer() { return withNewLoadBalancerLike(getLoadBalancer()); } - public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancer() { - return withNewLoadBalancerLike( - getLoadBalancer() != null ? getLoadBalancer() : new V1LoadBalancerStatusBuilder().build()); + return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer(): new V1LoadBalancerStatusBuilder().build()); } - - public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( - V1LoadBalancerStatus item) { - return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer() : item); + public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item) { + return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressStatusFluentImpl that = (V1IngressStatusFluentImpl) o; - if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) : that.loadBalancer != null) - return false; + if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) :that.loadBalancer != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(loadBalancer, super.hashCode()); + return java.util.Objects.hash(loadBalancer, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (loadBalancer != null) { - sb.append("loadBalancer:"); - sb.append(loadBalancer); - } + if (loadBalancer != null) { sb.append("loadBalancer:"); sb.append(loadBalancer); } sb.append("}"); return sb.toString(); } - - class LoadBalancerNestedImpl - extends V1LoadBalancerStatusFluentImpl> - implements V1IngressStatusFluent.LoadBalancerNested, Nested { + class LoadBalancerNestedImpl extends V1LoadBalancerStatusFluentImpl> implements V1IngressStatusFluent.LoadBalancerNested,Nested{ LoadBalancerNestedImpl(V1LoadBalancerStatus item) { this.builder = new V1LoadBalancerStatusBuilder(this, item); } - LoadBalancerNestedImpl() { this.builder = new V1LoadBalancerStatusBuilder(this); } - V1LoadBalancerStatusBuilder builder; - public N and() { return (N) V1IngressStatusFluentImpl.this.withLoadBalancer(builder.build()); } - public N endLoadBalancer() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java index e5eaaa1c07..6e4032269d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1IngressTLSBuilder extends V1IngressTLSFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1IngressTLSBuilder extends V1IngressTLSFluentImpl implements VisitableBuilder{ public V1IngressTLSBuilder() { this(false); } - public V1IngressTLSBuilder(Boolean validationEnabled) { this(new V1IngressTLS(), validationEnabled); } - public V1IngressTLSBuilder(V1IngressTLSFluent fluent) { this(fluent, false); } - - public V1IngressTLSBuilder(V1IngressTLSFluent fluent, Boolean validationEnabled) { + public V1IngressTLSBuilder(V1IngressTLSFluent fluent,Boolean validationEnabled) { this(fluent, new V1IngressTLS(), validationEnabled); } - - public V1IngressTLSBuilder(V1IngressTLSFluent fluent, V1IngressTLS instance) { + public V1IngressTLSBuilder(V1IngressTLSFluent fluent,V1IngressTLS instance) { this(fluent, instance, false); } - - public V1IngressTLSBuilder( - V1IngressTLSFluent fluent, V1IngressTLS instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1IngressTLSBuilder(V1IngressTLSFluent fluent,V1IngressTLS instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHosts(instance.getHosts()); fluent.withSecretName(instance.getSecretName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1IngressTLSBuilder(V1IngressTLS instance) { - this(instance, false); + this(instance,false); } - - public V1IngressTLSBuilder(V1IngressTLS instance, Boolean validationEnabled) { - this.fluent = this; + public V1IngressTLSBuilder(V1IngressTLS instance,Boolean validationEnabled) { + this.fluent = this; this.withHosts(instance.getHosts()); this.withSecretName(instance.getSecretName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1IngressTLSFluent fluent; Boolean validationEnabled; - public V1IngressTLS build() { V1IngressTLS buildable = new V1IngressTLS(); buildable.setHosts(fluent.getHosts()); buildable.setSecretName(fluent.getSecretName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java index 0f5e7f6969..d002d684b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java @@ -1,57 +1,35 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1IngressTLSFluent> extends Fluent { - public A addToHosts(Integer index, String item); - - public A setToHosts(Integer index, String item); - + /** + * Generated + */ +public interface V1IngressTLSFluent> extends Fluent{ + public A addToHosts(Integer index,String item); + public A setToHosts(Integer index,String item); public A addToHosts(java.lang.String... items); - public A addAllToHosts(Collection items); - public A removeFromHosts(java.lang.String... items); - public A removeAllFromHosts(Collection items); - public List getHosts(); - public String getHost(Integer index); - public String getFirstHost(); - public String getLastHost(); - public String getMatchingHost(Predicate predicate); - public Boolean hasMatchingHost(Predicate predicate); - public A withHosts(List hosts); - public A withHosts(java.lang.String... hosts); - public Boolean hasHosts(); - public String getSecretName(); - public A withSecretName(String secretName); - public Boolean hasSecretName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java index fa6c90735a..370961a73f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java @@ -1,193 +1,109 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1IngressTLSFluentImpl> extends BaseFluent - implements V1IngressTLSFluent { - public V1IngressTLSFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1IngressTLSFluentImpl> extends BaseFluent implements V1IngressTLSFluent{ + public V1IngressTLSFluentImpl() { + } public V1IngressTLSFluentImpl(V1IngressTLS instance) { this.withHosts(instance.getHosts()); this.withSecretName(instance.getSecretName()); - } + } private List hosts; private String secretName; - - public A addToHosts(Integer index, String item) { - if (this.hosts == null) { - this.hosts = new ArrayList(); - } + public A addToHosts(Integer index,String item) { + if (this.hosts == null) {this.hosts = new ArrayList();} this.hosts.add(index, item); - return (A) this; + return (A)this; } - - public A setToHosts(Integer index, String item) { - if (this.hosts == null) { - this.hosts = new ArrayList(); - } - this.hosts.set(index, item); - return (A) this; + public A setToHosts(Integer index,String item) { + if (this.hosts == null) {this.hosts = new ArrayList();} + this.hosts.set(index, item); return (A)this; } - public A addToHosts(java.lang.String... items) { - if (this.hosts == null) { - this.hosts = new ArrayList(); - } - for (String item : items) { - this.hosts.add(item); - } - return (A) this; + if (this.hosts == null) {this.hosts = new ArrayList();} + for (String item : items) {this.hosts.add(item);} return (A)this; } - public A addAllToHosts(Collection items) { - if (this.hosts == null) { - this.hosts = new ArrayList(); - } - for (String item : items) { - this.hosts.add(item); - } - return (A) this; + if (this.hosts == null) {this.hosts = new ArrayList();} + for (String item : items) {this.hosts.add(item);} return (A)this; } - public A removeFromHosts(java.lang.String... items) { - for (String item : items) { - if (this.hosts != null) { - this.hosts.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.hosts!= null){ this.hosts.remove(item);}} return (A)this; } - public A removeAllFromHosts(Collection items) { - for (String item : items) { - if (this.hosts != null) { - this.hosts.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.hosts!= null){ this.hosts.remove(item);}} return (A)this; } - public List getHosts() { return this.hosts; } - public String getHost(Integer index) { return this.hosts.get(index); } - public String getFirstHost() { return this.hosts.get(0); } - public String getLastHost() { return this.hosts.get(hosts.size() - 1); } - public String getMatchingHost(Predicate predicate) { - for (String item : hosts) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: hosts) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingHost(Predicate predicate) { - for (String item : hosts) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: hosts) { if(predicate.test(item)){ return true;} } return false; } - public A withHosts(List hosts) { - if (hosts != null) { - this.hosts = new ArrayList(); - for (String item : hosts) { - this.addToHosts(item); - } - } else { - this.hosts = null; - } - return (A) this; + if (hosts != null) {this.hosts = new ArrayList(); for (String item : hosts){this.addToHosts(item);}} else { this.hosts = null;} return (A) this; } - public A withHosts(java.lang.String... hosts) { - if (this.hosts != null) { - this.hosts.clear(); - } - if (hosts != null) { - for (String item : hosts) { - this.addToHosts(item); - } - } - return (A) this; + if (this.hosts != null) {this.hosts.clear();} + if (hosts != null) {for (String item :hosts){ this.addToHosts(item);}} return (A) this; } - public Boolean hasHosts() { return hosts != null && !hosts.isEmpty(); } - public String getSecretName() { return this.secretName; } - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; + this.secretName=secretName; return (A) this; } - public Boolean hasSecretName() { return this.secretName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1IngressTLSFluentImpl that = (V1IngressTLSFluentImpl) o; - if (hosts != null ? !hosts.equals(that.hosts) : that.hosts != null) return false; - if (secretName != null ? !secretName.equals(that.secretName) : that.secretName != null) - return false; + if (hosts != null ? !hosts.equals(that.hosts) :that.hosts != null) return false; + if (secretName != null ? !secretName.equals(that.secretName) :that.secretName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(hosts, secretName, super.hashCode()); + return java.util.Objects.hash(hosts, secretName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hosts != null && !hosts.isEmpty()) { - sb.append("hosts:"); - sb.append(hosts + ","); - } - if (secretName != null) { - sb.append("secretName:"); - sb.append(secretName); - } + if (hosts != null && !hosts.isEmpty()) { sb.append("hosts:"); sb.append(hosts + ","); } + if (secretName != null) { sb.append("secretName:"); sb.append(secretName); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java index 14cf33491b..204b4d5db9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluentImpl implements VisitableBuilder{ public V1JSONSchemaPropsBuilder() { this(false); } - public V1JSONSchemaPropsBuilder(Boolean validationEnabled) { this(new V1JSONSchemaProps(), validationEnabled); } - public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent) { this(fluent, false); } - - public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent, Boolean validationEnabled) { + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,Boolean validationEnabled) { this(fluent, new V1JSONSchemaProps(), validationEnabled); } - - public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent, V1JSONSchemaProps instance) { + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,V1JSONSchemaProps instance) { this(fluent, instance, false); } - - public V1JSONSchemaPropsBuilder( - V1JSONSchemaPropsFluent fluent, V1JSONSchemaProps instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,V1JSONSchemaProps instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRef(instance.get$Ref()); fluent.withSchema(instance.get$Schema()); @@ -113,15 +94,13 @@ public V1JSONSchemaPropsBuilder( fluent.withUniqueItems(instance.getUniqueItems()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance) { - this(instance, false); + this(instance,false); } - - public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance, Boolean validationEnabled) { - this.fluent = this; + public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance,Boolean validationEnabled) { + this.fluent = this; this.withRef(instance.get$Ref()); this.withSchema(instance.get$Schema()); @@ -196,12 +175,10 @@ public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance, Boolean validationEn this.withUniqueItems(instance.getUniqueItems()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JSONSchemaPropsFluent fluent; Boolean validationEnabled; - public V1JSONSchemaProps build() { V1JSONSchemaProps buildable = new V1JSONSchemaProps(); buildable.set$Ref(fluent.getRef()); @@ -243,4 +220,5 @@ public V1JSONSchemaProps build() { buildable.setUniqueItems(fluent.getUniqueItems()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java index a80d72dde3..f940d0fd27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java @@ -1,557 +1,311 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; -import java.util.Collection; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; -/** Generated */ -public interface V1JSONSchemaPropsFluent> extends Fluent { + /** + * Generated + */ +public interface V1JSONSchemaPropsFluent> extends Fluent{ public String getRef(); - public A withRef(String $ref); - public Boolean hasRef(); - public String getSchema(); - public A withSchema(String $schema); - public Boolean hasSchema(); - public Object getAdditionalItems(); - public A withAdditionalItems(Object additionalItems); - public Boolean hasAdditionalItems(); - public Object getAdditionalProperties(); - public A withAdditionalProperties(Object additionalProperties); - public Boolean hasAdditionalProperties(); - - public A addToAllOf(Integer index, V1JSONSchemaProps item); - - public A setToAllOf(Integer index, V1JSONSchemaProps item); - + public A addToAllOf(Integer index,V1JSONSchemaProps item); + public A setToAllOf(Integer index,V1JSONSchemaProps item); public A addToAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A addAllToAllOf(Collection items); - public A removeFromAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A removeAllFromAllOf(Collection items); - public A removeMatchingFromAllOf(Predicate predicate); - + /** * This method has been deprecated, please use method buildAllOf instead. - * * @return The buildable object. */ @Deprecated public List getAllOf(); - public List buildAllOf(); - public V1JSONSchemaProps buildAllOf(Integer index); - public V1JSONSchemaProps buildFirstAllOf(); - public V1JSONSchemaProps buildLastAllOf(); - public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate); - public Boolean hasMatchingAllOf(Predicate predicate); - public A withAllOf(List allOf); - public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allOf); - public Boolean hasAllOf(); - public V1JSONSchemaPropsFluent.AllOfNested addNewAllOf(); - public V1JSONSchemaPropsFluent.AllOfNested addNewAllOfLike(V1JSONSchemaProps item); - - public V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike( - Integer index, V1JSONSchemaProps item); - + public V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike(Integer index,V1JSONSchemaProps item); public V1JSONSchemaPropsFluent.AllOfNested editAllOf(Integer index); - public V1JSONSchemaPropsFluent.AllOfNested editFirstAllOf(); - public V1JSONSchemaPropsFluent.AllOfNested editLastAllOf(); - - public V1JSONSchemaPropsFluent.AllOfNested editMatchingAllOf( - Predicate predicate); - - public A addToAnyOf(Integer index, V1JSONSchemaProps item); - - public A setToAnyOf(Integer index, V1JSONSchemaProps item); - + public V1JSONSchemaPropsFluent.AllOfNested editMatchingAllOf(Predicate predicate); + public A addToAnyOf(Integer index,V1JSONSchemaProps item); + public A setToAnyOf(Integer index,V1JSONSchemaProps item); public A addToAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A addAllToAnyOf(Collection items); - public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A removeAllFromAnyOf(Collection items); - public A removeMatchingFromAnyOf(Predicate predicate); - + /** * This method has been deprecated, please use method buildAnyOf instead. - * * @return The buildable object. */ @Deprecated public List getAnyOf(); - public List buildAnyOf(); - public V1JSONSchemaProps buildAnyOf(Integer index); - public V1JSONSchemaProps buildFirstAnyOf(); - public V1JSONSchemaProps buildLastAnyOf(); - public V1JSONSchemaProps buildMatchingAnyOf(Predicate predicate); - public Boolean hasMatchingAnyOf(Predicate predicate); - public A withAnyOf(List anyOf); - public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyOf); - public Boolean hasAnyOf(); - public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOf(); - public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item); - - public V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike( - Integer index, V1JSONSchemaProps item); - + public V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike(Integer index,V1JSONSchemaProps item); public V1JSONSchemaPropsFluent.AnyOfNested editAnyOf(Integer index); - public V1JSONSchemaPropsFluent.AnyOfNested editFirstAnyOf(); - public V1JSONSchemaPropsFluent.AnyOfNested editLastAnyOf(); - - public V1JSONSchemaPropsFluent.AnyOfNested editMatchingAnyOf( - Predicate predicate); - + public V1JSONSchemaPropsFluent.AnyOfNested editMatchingAnyOf(Predicate predicate); public Object getDefault(); - public A withDefault(Object _default); - public Boolean hasDefault(); - - public A addToDefinitions(String key, V1JSONSchemaProps value); - - public A addToDefinitions(Map map); - + public A addToDefinitions(String key,V1JSONSchemaProps value); + public A addToDefinitions(Map map); public A removeFromDefinitions(String key); - - public A removeFromDefinitions(Map map); - - public Map getDefinitions(); - - public A withDefinitions(Map definitions); - + public A removeFromDefinitions(Map map); + public Map getDefinitions(); + public A withDefinitions(Map definitions); public Boolean hasDefinitions(); - - public A addToDependencies(String key, Object value); - - public A addToDependencies(Map map); - + public A addToDependencies(String key,Object value); + public A addToDependencies(Map map); public A removeFromDependencies(String key); - - public A removeFromDependencies(Map map); - - public Map getDependencies(); - - public A withDependencies(Map dependencies); - + public A removeFromDependencies(Map map); + public Map getDependencies(); + public A withDependencies(Map dependencies); public Boolean hasDependencies(); - public String getDescription(); - public A withDescription(String description); - public Boolean hasDescription(); - - public A addToEnum(Integer index, Object item); - - public A setToEnum(Integer index, Object item); - + public A addToEnum(Integer index,Object item); + public A setToEnum(Integer index,Object item); public A addToEnum(java.lang.Object... items); - public A addAllToEnum(Collection items); - public A removeFromEnum(java.lang.Object... items); - public A removeAllFromEnum(Collection items); - public List getEnum(); - public Object getEnum(Integer index); - public Object getFirstEnum(); - public Object getLastEnum(); - public Object getMatchingEnum(Predicate predicate); - public Boolean hasMatchingEnum(Predicate predicate); - public A withEnum(List _enum); - public A withEnum(java.lang.Object... _enum); - public Boolean hasEnum(); - public Object getExample(); - public A withExample(Object example); - public Boolean hasExample(); - public Boolean getExclusiveMaximum(); - public A withExclusiveMaximum(Boolean exclusiveMaximum); - public Boolean hasExclusiveMaximum(); - public Boolean getExclusiveMinimum(); - public A withExclusiveMinimum(Boolean exclusiveMinimum); - public Boolean hasExclusiveMinimum(); - + /** * This method has been deprecated, please use method buildExternalDocs instead. - * * @return The buildable object. */ @Deprecated public V1ExternalDocumentation getExternalDocs(); - public V1ExternalDocumentation buildExternalDocs(); - public A withExternalDocs(V1ExternalDocumentation externalDocs); - public Boolean hasExternalDocs(); - public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocs(); - - public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocsLike( - V1ExternalDocumentation item); - + public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item); public V1JSONSchemaPropsFluent.ExternalDocsNested editExternalDocs(); - public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocs(); - - public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocsLike( - V1ExternalDocumentation item); - + public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item); public String getFormat(); - public A withFormat(String format); - public Boolean hasFormat(); - public String getId(); - public A withId(String id); - public Boolean hasId(); - public Object getItems(); - public A withItems(Object items); - public Boolean hasItems(); - public Long getMaxItems(); - public A withMaxItems(Long maxItems); - public Boolean hasMaxItems(); - public Long getMaxLength(); - public A withMaxLength(Long maxLength); - public Boolean hasMaxLength(); - public Long getMaxProperties(); - public A withMaxProperties(Long maxProperties); - public Boolean hasMaxProperties(); - public Double getMaximum(); - public A withMaximum(Double maximum); - public Boolean hasMaximum(); - public Long getMinItems(); - public A withMinItems(Long minItems); - public Boolean hasMinItems(); - public Long getMinLength(); - public A withMinLength(Long minLength); - public Boolean hasMinLength(); - public Long getMinProperties(); - public A withMinProperties(Long minProperties); - public Boolean hasMinProperties(); - public Double getMinimum(); - public A withMinimum(Double minimum); - public Boolean hasMinimum(); - public Double getMultipleOf(); - public A withMultipleOf(Double multipleOf); - public Boolean hasMultipleOf(); - + /** * This method has been deprecated, please use method buildNot instead. - * * @return The buildable object. */ @Deprecated public V1JSONSchemaProps getNot(); - public V1JSONSchemaProps buildNot(); - public A withNot(V1JSONSchemaProps not); - public Boolean hasNot(); - public V1JSONSchemaPropsFluent.NotNested withNewNot(); - public V1JSONSchemaPropsFluent.NotNested withNewNotLike(V1JSONSchemaProps item); - public V1JSONSchemaPropsFluent.NotNested editNot(); - public V1JSONSchemaPropsFluent.NotNested editOrNewNot(); - public V1JSONSchemaPropsFluent.NotNested editOrNewNotLike(V1JSONSchemaProps item); - public Boolean getNullable(); - public A withNullable(Boolean nullable); - public Boolean hasNullable(); - - public A addToOneOf(Integer index, V1JSONSchemaProps item); - - public A setToOneOf(Integer index, V1JSONSchemaProps item); - + public A addToOneOf(Integer index,V1JSONSchemaProps item); + public A setToOneOf(Integer index,V1JSONSchemaProps item); public A addToOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A addAllToOneOf(Collection items); - public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A removeAllFromOneOf(Collection items); - public A removeMatchingFromOneOf(Predicate predicate); - + /** * This method has been deprecated, please use method buildOneOf instead. - * * @return The buildable object. */ @Deprecated public List getOneOf(); - public List buildOneOf(); - public V1JSONSchemaProps buildOneOf(Integer index); - public V1JSONSchemaProps buildFirstOneOf(); - public V1JSONSchemaProps buildLastOneOf(); - public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate); - public Boolean hasMatchingOneOf(Predicate predicate); - public A withOneOf(List oneOf); - public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneOf); - public Boolean hasOneOf(); - public V1JSONSchemaPropsFluent.OneOfNested addNewOneOf(); - public V1JSONSchemaPropsFluent.OneOfNested addNewOneOfLike(V1JSONSchemaProps item); - - public V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike( - Integer index, V1JSONSchemaProps item); - + public V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike(Integer index,V1JSONSchemaProps item); public V1JSONSchemaPropsFluent.OneOfNested editOneOf(Integer index); - public V1JSONSchemaPropsFluent.OneOfNested editFirstOneOf(); - public V1JSONSchemaPropsFluent.OneOfNested editLastOneOf(); - - public V1JSONSchemaPropsFluent.OneOfNested editMatchingOneOf( - Predicate predicate); - + public V1JSONSchemaPropsFluent.OneOfNested editMatchingOneOf(Predicate predicate); public String getPattern(); - public A withPattern(String pattern); - public Boolean hasPattern(); - - public A addToPatternProperties(String key, V1JSONSchemaProps value); - - public A addToPatternProperties(Map map); - + public A addToPatternProperties(String key,V1JSONSchemaProps value); + public A addToPatternProperties(Map map); public A removeFromPatternProperties(String key); - - public A removeFromPatternProperties(Map map); - - public Map getPatternProperties(); - - public A withPatternProperties(Map patternProperties); - + public A removeFromPatternProperties(Map map); + public Map getPatternProperties(); + public A withPatternProperties(Map patternProperties); public Boolean hasPatternProperties(); - - public A addToProperties(String key, V1JSONSchemaProps value); - - public A addToProperties(Map map); - + public A addToProperties(String key,V1JSONSchemaProps value); + public A addToProperties(Map map); public A removeFromProperties(String key); - - public A removeFromProperties(Map map); - - public Map getProperties(); - - public A withProperties(Map properties); - + public A removeFromProperties(Map map); + public Map getProperties(); + public A withProperties(Map properties); public Boolean hasProperties(); - - public A addToRequired(Integer index, String item); - - public A setToRequired(Integer index, String item); - + public A addToRequired(Integer index,String item); + public A setToRequired(Integer index,String item); public A addToRequired(java.lang.String... items); - public A addAllToRequired(Collection items); - public A removeFromRequired(java.lang.String... items); - public A removeAllFromRequired(Collection items); - public List getRequired(); - public String getRequired(Integer index); - public String getFirstRequired(); - public String getLastRequired(); - public String getMatchingRequired(Predicate predicate); - public Boolean hasMatchingRequired(Predicate predicate); - public A withRequired(List required); - public A withRequired(java.lang.String... required); - public Boolean hasRequired(); - public String getTitle(); - public A withTitle(String title); - public Boolean hasTitle(); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public Boolean getUniqueItems(); - public A withUniqueItems(Boolean uniqueItems); - public Boolean hasUniqueItems(); - public A withExclusiveMaximum(); - public A withExclusiveMinimum(); - public A withNullable(); - public A withUniqueItems(); - - public interface AllOfNested - extends Nested, V1JSONSchemaPropsFluent> { + public interface AllOfNested extends Nested,V1JSONSchemaPropsFluent>{ public N and(); - public N endAllOf(); + } - - public interface AnyOfNested - extends Nested, V1JSONSchemaPropsFluent> { + public interface AnyOfNested extends Nested,V1JSONSchemaPropsFluent>{ public N and(); - public N endAnyOf(); + } - - public interface ExternalDocsNested - extends Nested, - V1ExternalDocumentationFluent> { + public interface ExternalDocsNested extends Nested,V1ExternalDocumentationFluent>{ public N and(); - public N endExternalDocs(); + } - - public interface NotNested - extends Nested, V1JSONSchemaPropsFluent> { + public interface NotNested extends Nested,V1JSONSchemaPropsFluent>{ public N and(); - public N endNot(); + } - - public interface OneOfNested - extends Nested, V1JSONSchemaPropsFluent> { + public interface OneOfNested extends Nested,V1JSONSchemaPropsFluent>{ public N and(); - public N endOneOf(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java index 22b2d25cb1..119ae198c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java @@ -1,33 +1,31 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JSONSchemaPropsFluentImpl> extends BaseFluent - implements V1JSONSchemaPropsFluent { - public V1JSONSchemaPropsFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JSONSchemaPropsFluentImpl> extends BaseFluent implements V1JSONSchemaPropsFluent{ + public V1JSONSchemaPropsFluentImpl() { + } public V1JSONSchemaPropsFluentImpl(V1JSONSchemaProps instance) { this.withRef(instance.get$Ref()); @@ -102,8 +100,8 @@ public V1JSONSchemaPropsFluentImpl(V1JSONSchemaProps instance) { this.withType(instance.getType()); this.withUniqueItems(instance.getUniqueItems()); - } + } private String $ref; private String $schema; private Object additionalItems; @@ -111,8 +109,8 @@ public V1JSONSchemaPropsFluentImpl(V1JSONSchemaProps instance) { private ArrayList allOf; private ArrayList anyOf; private Object _default; - private Map definitions; - private Map dependencies; + private Map definitions; + private Map dependencies; private String description; private List _enum; private Object example; @@ -135,139 +133,73 @@ public V1JSONSchemaPropsFluentImpl(V1JSONSchemaProps instance) { private Boolean nullable; private ArrayList oneOf; private String pattern; - private Map patternProperties; - private Map properties; + private Map patternProperties; + private Map properties; private List required; private String title; private String type; private Boolean uniqueItems; - public String getRef() { return this.$ref; } - public A withRef(String $ref) { - this.$ref = $ref; - return (A) this; + this.$ref=$ref; return (A) this; } - public Boolean hasRef() { return this.$ref != null; } - public String getSchema() { return this.$schema; } - public A withSchema(String $schema) { - this.$schema = $schema; - return (A) this; + this.$schema=$schema; return (A) this; } - public Boolean hasSchema() { return this.$schema != null; } - public Object getAdditionalItems() { return this.additionalItems; } - public A withAdditionalItems(Object additionalItems) { - this.additionalItems = additionalItems; - return (A) this; + this.additionalItems=additionalItems; return (A) this; } - public Boolean hasAdditionalItems() { return this.additionalItems != null; } - public Object getAdditionalProperties() { return this.additionalProperties; } - public A withAdditionalProperties(Object additionalProperties) { - this.additionalProperties = additionalProperties; - return (A) this; + this.additionalProperties=additionalProperties; return (A) this; } - public Boolean hasAdditionalProperties() { return this.additionalProperties != null; } - - public A addToAllOf(Integer index, V1JSONSchemaProps item) { - if (this.allOf == null) { - this.allOf = new ArrayList(); - } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(index >= 0 ? index : _visitables.get("allOf").size(), builder); - this.allOf.add(index >= 0 ? index : allOf.size(), builder); - return (A) this; + public A addToAllOf(Integer index,V1JSONSchemaProps item) { + if (this.allOf == null) {this.allOf = new ArrayList();} + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(index >= 0 ? index : _visitables.get("allOf").size(), builder);this.allOf.add(index >= 0 ? index : allOf.size(), builder); return (A)this; } - - public A setToAllOf(Integer index, V1JSONSchemaProps item) { - if (this.allOf == null) { - this.allOf = new ArrayList(); - } + public A setToAllOf(Integer index,V1JSONSchemaProps item) { + if (this.allOf == null) {this.allOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= _visitables.get("allOf").size()) { - _visitables.get("allOf").add(builder); - } else { - _visitables.get("allOf").set(index, builder); - } - if (index < 0 || index >= allOf.size()) { - allOf.add(builder); - } else { - allOf.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("allOf").size()) { _visitables.get("allOf").add(builder); } else { _visitables.get("allOf").set(index, builder);} + if (index < 0 || index >= allOf.size()) { allOf.add(builder); } else { allOf.set(index, builder);} + return (A)this; } - public A addToAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.allOf == null) { - this.allOf = new ArrayList(); - } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(builder); - this.allOf.add(builder); - } - return (A) this; + if (this.allOf == null) {this.allOf = new ArrayList();} + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(builder);this.allOf.add(builder);} return (A)this; } - public A addAllToAllOf(Collection items) { - if (this.allOf == null) { - this.allOf = new ArrayList(); - } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(builder); - this.allOf.add(builder); - } - return (A) this; + if (this.allOf == null) {this.allOf = new ArrayList();} + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(builder);this.allOf.add(builder);} return (A)this; } - public A removeFromAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").remove(builder); - if (this.allOf != null) { - this.allOf.remove(builder); - } - } - return (A) this; + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").remove(builder);if (this.allOf != null) {this.allOf.remove(builder);}} return (A)this; } - public A removeAllFromAllOf(Collection items) { - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").remove(builder); - if (this.allOf != null) { - this.allOf.remove(builder); - } - } - return (A) this; + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").remove(builder);if (this.allOf != null) {this.allOf.remove(builder);}} return (A)this; } - public A removeMatchingFromAllOf(Predicate predicate) { if (allOf == null) return (A) this; final Iterator each = allOf.iterator(); @@ -279,200 +211,101 @@ public A removeMatchingFromAllOf(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildAllOf instead. - * * @return The buildable object. */ @Deprecated public List getAllOf() { return allOf != null ? build(allOf) : null; } - public List buildAllOf() { return allOf != null ? build(allOf) : null; } - public V1JSONSchemaProps buildAllOf(Integer index) { return this.allOf.get(index).build(); } - public V1JSONSchemaProps buildFirstAllOf() { return this.allOf.get(0).build(); } - public V1JSONSchemaProps buildLastAllOf() { return this.allOf.get(allOf.size() - 1).build(); } - public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : allOf) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1JSONSchemaPropsBuilder item: allOf) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingAllOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : allOf) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1JSONSchemaPropsBuilder item: allOf) { if(predicate.test(item)){ return true;} } return false; } - public A withAllOf(List allOf) { - if (this.allOf != null) { - _visitables.get("allOf").removeAll(this.allOf); - } - if (allOf != null) { - this.allOf = new ArrayList(); - for (V1JSONSchemaProps item : allOf) { - this.addToAllOf(item); - } - } else { - this.allOf = null; - } - return (A) this; + if (this.allOf != null) { _visitables.get("allOf").removeAll(this.allOf);} + if (allOf != null) {this.allOf = new ArrayList(); for (V1JSONSchemaProps item : allOf){this.addToAllOf(item);}} else { this.allOf = null;} return (A) this; } - public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allOf) { - if (this.allOf != null) { - this.allOf.clear(); - } - if (allOf != null) { - for (V1JSONSchemaProps item : allOf) { - this.addToAllOf(item); - } - } - return (A) this; + if (this.allOf != null) {this.allOf.clear();} + if (allOf != null) {for (V1JSONSchemaProps item :allOf){ this.addToAllOf(item);}} return (A) this; } - public Boolean hasAllOf() { return allOf != null && !allOf.isEmpty(); } - public V1JSONSchemaPropsFluent.AllOfNested addNewAllOf() { return new V1JSONSchemaPropsFluentImpl.AllOfNestedImpl(); } - public V1JSONSchemaPropsFluent.AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.AllOfNestedImpl(-1, item); } - - public V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike( - Integer index, V1JSONSchemaProps item) { + public V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike(Integer index,V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.AllOfNestedImpl(index, item); } - public V1JSONSchemaPropsFluent.AllOfNested editAllOf(Integer index) { if (allOf.size() <= index) throw new RuntimeException("Can't edit allOf. Index exceeds size."); return setNewAllOfLike(index, buildAllOf(index)); } - public V1JSONSchemaPropsFluent.AllOfNested editFirstAllOf() { if (allOf.size() == 0) throw new RuntimeException("Can't edit first allOf. The list is empty."); return setNewAllOfLike(0, buildAllOf(0)); } - public V1JSONSchemaPropsFluent.AllOfNested editLastAllOf() { int index = allOf.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last allOf. The list is empty."); return setNewAllOfLike(index, buildAllOf(index)); } - - public V1JSONSchemaPropsFluent.AllOfNested editMatchingAllOf( - Predicate predicate) { + public V1JSONSchemaPropsFluent.AllOfNested editMatchingAllOf(Predicate predicate) { int index = -1; - for (int i = 0; i < allOf.size(); i++) { - if (predicate.test(allOf.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(index >= 0 ? index : _visitables.get("anyOf").size(), builder); - this.anyOf.add(index >= 0 ? index : anyOf.size(), builder); - return (A) this; + public A addToAnyOf(Integer index,V1JSONSchemaProps item) { + if (this.anyOf == null) {this.anyOf = new ArrayList();} + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(index >= 0 ? index : _visitables.get("anyOf").size(), builder);this.anyOf.add(index >= 0 ? index : anyOf.size(), builder); return (A)this; } - - public A setToAnyOf(Integer index, V1JSONSchemaProps item) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); - } + public A setToAnyOf(Integer index,V1JSONSchemaProps item) { + if (this.anyOf == null) {this.anyOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= _visitables.get("anyOf").size()) { - _visitables.get("anyOf").add(builder); - } else { - _visitables.get("anyOf").set(index, builder); - } - if (index < 0 || index >= anyOf.size()) { - anyOf.add(builder); - } else { - anyOf.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("anyOf").size()) { _visitables.get("anyOf").add(builder); } else { _visitables.get("anyOf").set(index, builder);} + if (index < 0 || index >= anyOf.size()) { anyOf.add(builder); } else { anyOf.set(index, builder);} + return (A)this; } - public A addToAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); - } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(builder); - this.anyOf.add(builder); - } - return (A) this; + if (this.anyOf == null) {this.anyOf = new ArrayList();} + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(builder);this.anyOf.add(builder);} return (A)this; } - public A addAllToAnyOf(Collection items) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); - } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(builder); - this.anyOf.add(builder); - } - return (A) this; + if (this.anyOf == null) {this.anyOf = new ArrayList();} + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(builder);this.anyOf.add(builder);} return (A)this; } - public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").remove(builder); - if (this.anyOf != null) { - this.anyOf.remove(builder); - } - } - return (A) this; + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").remove(builder);if (this.anyOf != null) {this.anyOf.remove(builder);}} return (A)this; } - public A removeAllFromAnyOf(Collection items) { - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").remove(builder); - if (this.anyOf != null) { - this.anyOf.remove(builder); - } - } - return (A) this; + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").remove(builder);if (this.anyOf != null) {this.anyOf.remove(builder);}} return (A)this; } - public A removeMatchingFromAnyOf(Predicate predicate) { if (anyOf == null) return (A) this; final Iterator each = anyOf.iterator(); @@ -484,777 +317,432 @@ public A removeMatchingFromAnyOf(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildAnyOf instead. - * * @return The buildable object. */ @Deprecated public List getAnyOf() { return anyOf != null ? build(anyOf) : null; } - public List buildAnyOf() { return anyOf != null ? build(anyOf) : null; } - public V1JSONSchemaProps buildAnyOf(Integer index) { return this.anyOf.get(index).build(); } - public V1JSONSchemaProps buildFirstAnyOf() { return this.anyOf.get(0).build(); } - public V1JSONSchemaProps buildLastAnyOf() { return this.anyOf.get(anyOf.size() - 1).build(); } - public V1JSONSchemaProps buildMatchingAnyOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : anyOf) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1JSONSchemaPropsBuilder item: anyOf) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingAnyOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : anyOf) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1JSONSchemaPropsBuilder item: anyOf) { if(predicate.test(item)){ return true;} } return false; } - public A withAnyOf(List anyOf) { - if (this.anyOf != null) { - _visitables.get("anyOf").removeAll(this.anyOf); - } - if (anyOf != null) { - this.anyOf = new ArrayList(); - for (V1JSONSchemaProps item : anyOf) { - this.addToAnyOf(item); - } - } else { - this.anyOf = null; - } - return (A) this; + if (this.anyOf != null) { _visitables.get("anyOf").removeAll(this.anyOf);} + if (anyOf != null) {this.anyOf = new ArrayList(); for (V1JSONSchemaProps item : anyOf){this.addToAnyOf(item);}} else { this.anyOf = null;} return (A) this; } - public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyOf) { - if (this.anyOf != null) { - this.anyOf.clear(); - } - if (anyOf != null) { - for (V1JSONSchemaProps item : anyOf) { - this.addToAnyOf(item); - } - } - return (A) this; + if (this.anyOf != null) {this.anyOf.clear();} + if (anyOf != null) {for (V1JSONSchemaProps item :anyOf){ this.addToAnyOf(item);}} return (A) this; } - public Boolean hasAnyOf() { return anyOf != null && !anyOf.isEmpty(); } - public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOf() { return new V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl(); } - public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl(-1, item); } - - public V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike( - Integer index, V1JSONSchemaProps item) { + public V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike(Integer index,V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl(index, item); } - public V1JSONSchemaPropsFluent.AnyOfNested editAnyOf(Integer index) { if (anyOf.size() <= index) throw new RuntimeException("Can't edit anyOf. Index exceeds size."); return setNewAnyOfLike(index, buildAnyOf(index)); } - public V1JSONSchemaPropsFluent.AnyOfNested editFirstAnyOf() { if (anyOf.size() == 0) throw new RuntimeException("Can't edit first anyOf. The list is empty."); return setNewAnyOfLike(0, buildAnyOf(0)); } - public V1JSONSchemaPropsFluent.AnyOfNested editLastAnyOf() { int index = anyOf.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last anyOf. The list is empty."); return setNewAnyOfLike(index, buildAnyOf(index)); } - - public V1JSONSchemaPropsFluent.AnyOfNested editMatchingAnyOf( - Predicate predicate) { + public V1JSONSchemaPropsFluent.AnyOfNested editMatchingAnyOf(Predicate predicate) { int index = -1; - for (int i = 0; i < anyOf.size(); i++) { - if (predicate.test(anyOf.get(i))) { - index = i; - break; - } - } + for (int i=0;i map) { - if (this.definitions == null && map != null) { - this.definitions = new LinkedHashMap(); - } - if (map != null) { - this.definitions.putAll(map); - } - return (A) this; + public A addToDefinitions(Map map) { + if(this.definitions == null && map != null) { this.definitions = new LinkedHashMap(); } + if(map != null) { this.definitions.putAll(map);} return (A)this; } - public A removeFromDefinitions(String key) { - if (this.definitions == null) { - return (A) this; - } - if (key != null && this.definitions != null) { - this.definitions.remove(key); - } - return (A) this; + if(this.definitions == null) { return (A) this; } + if(key != null && this.definitions != null) {this.definitions.remove(key);} return (A)this; } - - public A removeFromDefinitions(Map map) { - if (this.definitions == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.definitions != null) { - this.definitions.remove(key); - } - } - } - return (A) this; + public A removeFromDefinitions(Map map) { + if(this.definitions == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.definitions != null){this.definitions.remove(key);}}} return (A)this; } - - public Map getDefinitions() { + public Map getDefinitions() { return this.definitions; } - - public A withDefinitions(Map definitions) { - if (definitions == null) { - this.definitions = null; - } else { - this.definitions = new LinkedHashMap(definitions); - } - return (A) this; + public A withDefinitions(Map definitions) { + if (definitions == null) { this.definitions = null;} else {this.definitions = new LinkedHashMap(definitions);} return (A) this; } - public Boolean hasDefinitions() { return this.definitions != null; } - - public A addToDependencies(String key, Object value) { - if (this.dependencies == null && key != null && value != null) { - this.dependencies = new LinkedHashMap(); - } - if (key != null && value != null) { - this.dependencies.put(key, value); - } - return (A) this; + public A addToDependencies(String key,Object value) { + if(this.dependencies == null && key != null && value != null) { this.dependencies = new LinkedHashMap(); } + if(key != null && value != null) {this.dependencies.put(key, value);} return (A)this; } - - public A addToDependencies(Map map) { - if (this.dependencies == null && map != null) { - this.dependencies = new LinkedHashMap(); - } - if (map != null) { - this.dependencies.putAll(map); - } - return (A) this; + public A addToDependencies(Map map) { + if(this.dependencies == null && map != null) { this.dependencies = new LinkedHashMap(); } + if(map != null) { this.dependencies.putAll(map);} return (A)this; } - public A removeFromDependencies(String key) { - if (this.dependencies == null) { - return (A) this; - } - if (key != null && this.dependencies != null) { - this.dependencies.remove(key); - } - return (A) this; + if(this.dependencies == null) { return (A) this; } + if(key != null && this.dependencies != null) {this.dependencies.remove(key);} return (A)this; } - - public A removeFromDependencies(Map map) { - if (this.dependencies == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.dependencies != null) { - this.dependencies.remove(key); - } - } - } - return (A) this; + public A removeFromDependencies(Map map) { + if(this.dependencies == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.dependencies != null){this.dependencies.remove(key);}}} return (A)this; } - - public Map getDependencies() { + public Map getDependencies() { return this.dependencies; } - - public A withDependencies(Map dependencies) { - if (dependencies == null) { - this.dependencies = null; - } else { - this.dependencies = new LinkedHashMap(dependencies); - } - return (A) this; + public A withDependencies(Map dependencies) { + if (dependencies == null) { this.dependencies = null;} else {this.dependencies = new LinkedHashMap(dependencies);} return (A) this; } - public Boolean hasDependencies() { return this.dependencies != null; } - public String getDescription() { return this.description; } - public A withDescription(String description) { - this.description = description; - return (A) this; + this.description=description; return (A) this; } - public Boolean hasDescription() { return this.description != null; } - - public A addToEnum(Integer index, Object item) { - if (this._enum == null) { - this._enum = new ArrayList(); - } + public A addToEnum(Integer index,Object item) { + if (this._enum == null) {this._enum = new ArrayList();} this._enum.add(index, item); - return (A) this; + return (A)this; } - - public A setToEnum(Integer index, Object item) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - this._enum.set(index, item); - return (A) this; + public A setToEnum(Integer index,Object item) { + if (this._enum == null) {this._enum = new ArrayList();} + this._enum.set(index, item); return (A)this; } - public A addToEnum(java.lang.Object... items) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - for (Object item : items) { - this._enum.add(item); - } - return (A) this; + if (this._enum == null) {this._enum = new ArrayList();} + for (Object item : items) {this._enum.add(item);} return (A)this; } - public A addAllToEnum(Collection items) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - for (Object item : items) { - this._enum.add(item); - } - return (A) this; + if (this._enum == null) {this._enum = new ArrayList();} + for (Object item : items) {this._enum.add(item);} return (A)this; } - public A removeFromEnum(java.lang.Object... items) { - for (Object item : items) { - if (this._enum != null) { - this._enum.remove(item); - } - } - return (A) this; + for (Object item : items) {if (this._enum!= null){ this._enum.remove(item);}} return (A)this; } - public A removeAllFromEnum(Collection items) { - for (Object item : items) { - if (this._enum != null) { - this._enum.remove(item); - } - } - return (A) this; + for (Object item : items) {if (this._enum!= null){ this._enum.remove(item);}} return (A)this; } - public List getEnum() { return this._enum; } - public Object getEnum(Integer index) { return this._enum.get(index); } - public Object getFirstEnum() { return this._enum.get(0); } - public Object getLastEnum() { return this._enum.get(_enum.size() - 1); } - public Object getMatchingEnum(Predicate predicate) { - for (Object item : _enum) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (Object item: _enum) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingEnum(Predicate predicate) { - for (Object item : _enum) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (Object item: _enum) { if(predicate.test(item)){ return true;} } return false; } - public A withEnum(List _enum) { - if (_enum != null) { - this._enum = new ArrayList(); - for (Object item : _enum) { - this.addToEnum(item); - } - } else { - this._enum = null; - } - return (A) this; + if (_enum != null) {this._enum = new ArrayList(); for (Object item : _enum){this.addToEnum(item);}} else { this._enum = null;} return (A) this; } - public A withEnum(java.lang.Object... _enum) { - if (this._enum != null) { - this._enum.clear(); - } - if (_enum != null) { - for (Object item : _enum) { - this.addToEnum(item); - } - } - return (A) this; + if (this._enum != null) {this._enum.clear();} + if (_enum != null) {for (Object item :_enum){ this.addToEnum(item);}} return (A) this; } - public Boolean hasEnum() { return _enum != null && !_enum.isEmpty(); } - public Object getExample() { return this.example; } - public A withExample(Object example) { - this.example = example; - return (A) this; + this.example=example; return (A) this; } - public Boolean hasExample() { return this.example != null; } - public Boolean getExclusiveMaximum() { return this.exclusiveMaximum; } - public A withExclusiveMaximum(Boolean exclusiveMaximum) { - this.exclusiveMaximum = exclusiveMaximum; - return (A) this; + this.exclusiveMaximum=exclusiveMaximum; return (A) this; } - public Boolean hasExclusiveMaximum() { return this.exclusiveMaximum != null; } - public Boolean getExclusiveMinimum() { return this.exclusiveMinimum; } - public A withExclusiveMinimum(Boolean exclusiveMinimum) { - this.exclusiveMinimum = exclusiveMinimum; - return (A) this; + this.exclusiveMinimum=exclusiveMinimum; return (A) this; } - public Boolean hasExclusiveMinimum() { return this.exclusiveMinimum != null; } - + /** * This method has been deprecated, please use method buildExternalDocs instead. - * * @return The buildable object. */ @Deprecated public V1ExternalDocumentation getExternalDocs() { - return this.externalDocs != null ? this.externalDocs.build() : null; + return this.externalDocs!=null ?this.externalDocs.build():null; } - public V1ExternalDocumentation buildExternalDocs() { - return this.externalDocs != null ? this.externalDocs.build() : null; + return this.externalDocs!=null ?this.externalDocs.build():null; } - public A withExternalDocs(V1ExternalDocumentation externalDocs) { _visitables.get("externalDocs").remove(this.externalDocs); - if (externalDocs != null) { - this.externalDocs = new V1ExternalDocumentationBuilder(externalDocs); - _visitables.get("externalDocs").add(this.externalDocs); - } else { - this.externalDocs = null; - _visitables.get("externalDocs").remove(this.externalDocs); - } - return (A) this; + if (externalDocs!=null){ this.externalDocs= new V1ExternalDocumentationBuilder(externalDocs); _visitables.get("externalDocs").add(this.externalDocs);} else { this.externalDocs = null; _visitables.get("externalDocs").remove(this.externalDocs); } return (A) this; } - public Boolean hasExternalDocs() { return this.externalDocs != null; } - public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocs() { return new V1JSONSchemaPropsFluentImpl.ExternalDocsNestedImpl(); } - - public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocsLike( - V1ExternalDocumentation item) { + public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item) { return new V1JSONSchemaPropsFluentImpl.ExternalDocsNestedImpl(item); } - public V1JSONSchemaPropsFluent.ExternalDocsNested editExternalDocs() { return withNewExternalDocsLike(getExternalDocs()); } - public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocs() { - return withNewExternalDocsLike( - getExternalDocs() != null - ? getExternalDocs() - : new V1ExternalDocumentationBuilder().build()); + return withNewExternalDocsLike(getExternalDocs() != null ? getExternalDocs(): new V1ExternalDocumentationBuilder().build()); } - - public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocsLike( - V1ExternalDocumentation item) { - return withNewExternalDocsLike(getExternalDocs() != null ? getExternalDocs() : item); + public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item) { + return withNewExternalDocsLike(getExternalDocs() != null ? getExternalDocs(): item); } - public String getFormat() { return this.format; } - public A withFormat(String format) { - this.format = format; - return (A) this; + this.format=format; return (A) this; } - public Boolean hasFormat() { return this.format != null; } - public String getId() { return this.id; } - public A withId(String id) { - this.id = id; - return (A) this; + this.id=id; return (A) this; } - public Boolean hasId() { return this.id != null; } - public Object getItems() { return this.items; } - public A withItems(Object items) { - this.items = items; - return (A) this; + this.items=items; return (A) this; } - public Boolean hasItems() { return this.items != null; } - public Long getMaxItems() { return this.maxItems; } - public A withMaxItems(Long maxItems) { - this.maxItems = maxItems; - return (A) this; + this.maxItems=maxItems; return (A) this; } - public Boolean hasMaxItems() { return this.maxItems != null; } - public Long getMaxLength() { return this.maxLength; } - public A withMaxLength(Long maxLength) { - this.maxLength = maxLength; - return (A) this; + this.maxLength=maxLength; return (A) this; } - public Boolean hasMaxLength() { return this.maxLength != null; } - public Long getMaxProperties() { return this.maxProperties; } - public A withMaxProperties(Long maxProperties) { - this.maxProperties = maxProperties; - return (A) this; + this.maxProperties=maxProperties; return (A) this; } - public Boolean hasMaxProperties() { return this.maxProperties != null; } - public Double getMaximum() { return this.maximum; } - public A withMaximum(Double maximum) { - this.maximum = maximum; - return (A) this; + this.maximum=maximum; return (A) this; } - public Boolean hasMaximum() { return this.maximum != null; } - public Long getMinItems() { return this.minItems; } - public A withMinItems(Long minItems) { - this.minItems = minItems; - return (A) this; + this.minItems=minItems; return (A) this; } - public Boolean hasMinItems() { return this.minItems != null; } - public Long getMinLength() { return this.minLength; } - public A withMinLength(Long minLength) { - this.minLength = minLength; - return (A) this; + this.minLength=minLength; return (A) this; } - public Boolean hasMinLength() { return this.minLength != null; } - public Long getMinProperties() { return this.minProperties; } - public A withMinProperties(Long minProperties) { - this.minProperties = minProperties; - return (A) this; + this.minProperties=minProperties; return (A) this; } - public Boolean hasMinProperties() { return this.minProperties != null; } - public Double getMinimum() { return this.minimum; } - public A withMinimum(Double minimum) { - this.minimum = minimum; - return (A) this; + this.minimum=minimum; return (A) this; } - public Boolean hasMinimum() { return this.minimum != null; } - public Double getMultipleOf() { return this.multipleOf; } - public A withMultipleOf(Double multipleOf) { - this.multipleOf = multipleOf; - return (A) this; + this.multipleOf=multipleOf; return (A) this; } - public Boolean hasMultipleOf() { return this.multipleOf != null; } - + /** * This method has been deprecated, please use method buildNot instead. - * * @return The buildable object. */ @Deprecated public V1JSONSchemaProps getNot() { - return this.not != null ? this.not.build() : null; + return this.not!=null ?this.not.build():null; } - public V1JSONSchemaProps buildNot() { - return this.not != null ? this.not.build() : null; + return this.not!=null ?this.not.build():null; } - public A withNot(V1JSONSchemaProps not) { _visitables.get("not").remove(this.not); - if (not != null) { - this.not = new V1JSONSchemaPropsBuilder(not); - _visitables.get("not").add(this.not); - } else { - this.not = null; - _visitables.get("not").remove(this.not); - } - return (A) this; + if (not!=null){ this.not= new V1JSONSchemaPropsBuilder(not); _visitables.get("not").add(this.not);} else { this.not = null; _visitables.get("not").remove(this.not); } return (A) this; } - public Boolean hasNot() { return this.not != null; } - public V1JSONSchemaPropsFluent.NotNested withNewNot() { return new V1JSONSchemaPropsFluentImpl.NotNestedImpl(); } - public V1JSONSchemaPropsFluent.NotNested withNewNotLike(V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.NotNestedImpl(item); } - public V1JSONSchemaPropsFluent.NotNested editNot() { return withNewNotLike(getNot()); } - public V1JSONSchemaPropsFluent.NotNested editOrNewNot() { - return withNewNotLike(getNot() != null ? getNot() : new V1JSONSchemaPropsBuilder().build()); + return withNewNotLike(getNot() != null ? getNot(): new V1JSONSchemaPropsBuilder().build()); } - public V1JSONSchemaPropsFluent.NotNested editOrNewNotLike(V1JSONSchemaProps item) { - return withNewNotLike(getNot() != null ? getNot() : item); + return withNewNotLike(getNot() != null ? getNot(): item); } - public Boolean getNullable() { return this.nullable; } - public A withNullable(Boolean nullable) { - this.nullable = nullable; - return (A) this; + this.nullable=nullable; return (A) this; } - public Boolean hasNullable() { return this.nullable != null; } - - public A addToOneOf(Integer index, V1JSONSchemaProps item) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); - } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(index >= 0 ? index : _visitables.get("oneOf").size(), builder); - this.oneOf.add(index >= 0 ? index : oneOf.size(), builder); - return (A) this; + public A addToOneOf(Integer index,V1JSONSchemaProps item) { + if (this.oneOf == null) {this.oneOf = new ArrayList();} + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(index >= 0 ? index : _visitables.get("oneOf").size(), builder);this.oneOf.add(index >= 0 ? index : oneOf.size(), builder); return (A)this; } - - public A setToOneOf(Integer index, V1JSONSchemaProps item) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); - } + public A setToOneOf(Integer index,V1JSONSchemaProps item) { + if (this.oneOf == null) {this.oneOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= _visitables.get("oneOf").size()) { - _visitables.get("oneOf").add(builder); - } else { - _visitables.get("oneOf").set(index, builder); - } - if (index < 0 || index >= oneOf.size()) { - oneOf.add(builder); - } else { - oneOf.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("oneOf").size()) { _visitables.get("oneOf").add(builder); } else { _visitables.get("oneOf").set(index, builder);} + if (index < 0 || index >= oneOf.size()) { oneOf.add(builder); } else { oneOf.set(index, builder);} + return (A)this; } - public A addToOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); - } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(builder); - this.oneOf.add(builder); - } - return (A) this; + if (this.oneOf == null) {this.oneOf = new ArrayList();} + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(builder);this.oneOf.add(builder);} return (A)this; } - public A addAllToOneOf(Collection items) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); - } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(builder); - this.oneOf.add(builder); - } - return (A) this; + if (this.oneOf == null) {this.oneOf = new ArrayList();} + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(builder);this.oneOf.add(builder);} return (A)this; } - public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").remove(builder); - if (this.oneOf != null) { - this.oneOf.remove(builder); - } - } - return (A) this; + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").remove(builder);if (this.oneOf != null) {this.oneOf.remove(builder);}} return (A)this; } - public A removeAllFromOneOf(Collection items) { - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").remove(builder); - if (this.oneOf != null) { - this.oneOf.remove(builder); - } - } - return (A) this; + for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").remove(builder);if (this.oneOf != null) {this.oneOf.remove(builder);}} return (A)this; } - public A removeMatchingFromOneOf(Predicate predicate) { if (oneOf == null) return (A) this; final Iterator each = oneOf.iterator(); @@ -1266,811 +754,402 @@ public A removeMatchingFromOneOf(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildOneOf instead. - * * @return The buildable object. */ @Deprecated public List getOneOf() { return oneOf != null ? build(oneOf) : null; } - public List buildOneOf() { return oneOf != null ? build(oneOf) : null; } - public V1JSONSchemaProps buildOneOf(Integer index) { return this.oneOf.get(index).build(); } - public V1JSONSchemaProps buildFirstOneOf() { return this.oneOf.get(0).build(); } - public V1JSONSchemaProps buildLastOneOf() { return this.oneOf.get(oneOf.size() - 1).build(); } - public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : oneOf) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1JSONSchemaPropsBuilder item: oneOf) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingOneOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : oneOf) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1JSONSchemaPropsBuilder item: oneOf) { if(predicate.test(item)){ return true;} } return false; } - public A withOneOf(List oneOf) { - if (this.oneOf != null) { - _visitables.get("oneOf").removeAll(this.oneOf); - } - if (oneOf != null) { - this.oneOf = new ArrayList(); - for (V1JSONSchemaProps item : oneOf) { - this.addToOneOf(item); - } - } else { - this.oneOf = null; - } - return (A) this; + if (this.oneOf != null) { _visitables.get("oneOf").removeAll(this.oneOf);} + if (oneOf != null) {this.oneOf = new ArrayList(); for (V1JSONSchemaProps item : oneOf){this.addToOneOf(item);}} else { this.oneOf = null;} return (A) this; } - public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneOf) { - if (this.oneOf != null) { - this.oneOf.clear(); - } - if (oneOf != null) { - for (V1JSONSchemaProps item : oneOf) { - this.addToOneOf(item); - } - } - return (A) this; + if (this.oneOf != null) {this.oneOf.clear();} + if (oneOf != null) {for (V1JSONSchemaProps item :oneOf){ this.addToOneOf(item);}} return (A) this; } - public Boolean hasOneOf() { return oneOf != null && !oneOf.isEmpty(); } - public V1JSONSchemaPropsFluent.OneOfNested addNewOneOf() { return new V1JSONSchemaPropsFluentImpl.OneOfNestedImpl(); } - public V1JSONSchemaPropsFluent.OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.OneOfNestedImpl(-1, item); } - - public V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike( - Integer index, V1JSONSchemaProps item) { + public V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike(Integer index,V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.OneOfNestedImpl(index, item); } - public V1JSONSchemaPropsFluent.OneOfNested editOneOf(Integer index) { if (oneOf.size() <= index) throw new RuntimeException("Can't edit oneOf. Index exceeds size."); return setNewOneOfLike(index, buildOneOf(index)); } - public V1JSONSchemaPropsFluent.OneOfNested editFirstOneOf() { if (oneOf.size() == 0) throw new RuntimeException("Can't edit first oneOf. The list is empty."); return setNewOneOfLike(0, buildOneOf(0)); } - public V1JSONSchemaPropsFluent.OneOfNested editLastOneOf() { int index = oneOf.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last oneOf. The list is empty."); return setNewOneOfLike(index, buildOneOf(index)); } - - public V1JSONSchemaPropsFluent.OneOfNested editMatchingOneOf( - Predicate predicate) { + public V1JSONSchemaPropsFluent.OneOfNested editMatchingOneOf(Predicate predicate) { int index = -1; - for (int i = 0; i < oneOf.size(); i++) { - if (predicate.test(oneOf.get(i))) { - index = i; - break; - } - } + for (int i=0;i map) { - if (this.patternProperties == null && map != null) { - this.patternProperties = new LinkedHashMap(); - } - if (map != null) { - this.patternProperties.putAll(map); - } - return (A) this; + public A addToPatternProperties(Map map) { + if(this.patternProperties == null && map != null) { this.patternProperties = new LinkedHashMap(); } + if(map != null) { this.patternProperties.putAll(map);} return (A)this; } - public A removeFromPatternProperties(String key) { - if (this.patternProperties == null) { - return (A) this; - } - if (key != null && this.patternProperties != null) { - this.patternProperties.remove(key); - } - return (A) this; + if(this.patternProperties == null) { return (A) this; } + if(key != null && this.patternProperties != null) {this.patternProperties.remove(key);} return (A)this; } - - public A removeFromPatternProperties(Map map) { - if (this.patternProperties == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.patternProperties != null) { - this.patternProperties.remove(key); - } - } - } - return (A) this; + public A removeFromPatternProperties(Map map) { + if(this.patternProperties == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.patternProperties != null){this.patternProperties.remove(key);}}} return (A)this; } - - public Map getPatternProperties() { + public Map getPatternProperties() { return this.patternProperties; } - - public A withPatternProperties(Map patternProperties) { - if (patternProperties == null) { - this.patternProperties = null; - } else { - this.patternProperties = new LinkedHashMap(patternProperties); - } - return (A) this; + public A withPatternProperties(Map patternProperties) { + if (patternProperties == null) { this.patternProperties = null;} else {this.patternProperties = new LinkedHashMap(patternProperties);} return (A) this; } - public Boolean hasPatternProperties() { return this.patternProperties != null; } - - public A addToProperties(String key, V1JSONSchemaProps value) { - if (this.properties == null && key != null && value != null) { - this.properties = new LinkedHashMap(); - } - if (key != null && value != null) { - this.properties.put(key, value); - } - return (A) this; + public A addToProperties(String key,V1JSONSchemaProps value) { + if(this.properties == null && key != null && value != null) { this.properties = new LinkedHashMap(); } + if(key != null && value != null) {this.properties.put(key, value);} return (A)this; } - - public A addToProperties(Map map) { - if (this.properties == null && map != null) { - this.properties = new LinkedHashMap(); - } - if (map != null) { - this.properties.putAll(map); - } - return (A) this; + public A addToProperties(Map map) { + if(this.properties == null && map != null) { this.properties = new LinkedHashMap(); } + if(map != null) { this.properties.putAll(map);} return (A)this; } - public A removeFromProperties(String key) { - if (this.properties == null) { - return (A) this; - } - if (key != null && this.properties != null) { - this.properties.remove(key); - } - return (A) this; + if(this.properties == null) { return (A) this; } + if(key != null && this.properties != null) {this.properties.remove(key);} return (A)this; } - - public A removeFromProperties(Map map) { - if (this.properties == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.properties != null) { - this.properties.remove(key); - } - } - } - return (A) this; + public A removeFromProperties(Map map) { + if(this.properties == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.properties != null){this.properties.remove(key);}}} return (A)this; } - - public Map getProperties() { + public Map getProperties() { return this.properties; } - - public A withProperties(Map properties) { - if (properties == null) { - this.properties = null; - } else { - this.properties = new LinkedHashMap(properties); - } - return (A) this; + public A withProperties(Map properties) { + if (properties == null) { this.properties = null;} else {this.properties = new LinkedHashMap(properties);} return (A) this; } - public Boolean hasProperties() { return this.properties != null; } - - public A addToRequired(Integer index, String item) { - if (this.required == null) { - this.required = new ArrayList(); - } + public A addToRequired(Integer index,String item) { + if (this.required == null) {this.required = new ArrayList();} this.required.add(index, item); - return (A) this; + return (A)this; } - - public A setToRequired(Integer index, String item) { - if (this.required == null) { - this.required = new ArrayList(); - } - this.required.set(index, item); - return (A) this; + public A setToRequired(Integer index,String item) { + if (this.required == null) {this.required = new ArrayList();} + this.required.set(index, item); return (A)this; } - public A addToRequired(java.lang.String... items) { - if (this.required == null) { - this.required = new ArrayList(); - } - for (String item : items) { - this.required.add(item); - } - return (A) this; + if (this.required == null) {this.required = new ArrayList();} + for (String item : items) {this.required.add(item);} return (A)this; } - public A addAllToRequired(Collection items) { - if (this.required == null) { - this.required = new ArrayList(); - } - for (String item : items) { - this.required.add(item); - } - return (A) this; + if (this.required == null) {this.required = new ArrayList();} + for (String item : items) {this.required.add(item);} return (A)this; } - public A removeFromRequired(java.lang.String... items) { - for (String item : items) { - if (this.required != null) { - this.required.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.required!= null){ this.required.remove(item);}} return (A)this; } - public A removeAllFromRequired(Collection items) { - for (String item : items) { - if (this.required != null) { - this.required.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.required!= null){ this.required.remove(item);}} return (A)this; } - public List getRequired() { return this.required; } - public String getRequired(Integer index) { return this.required.get(index); } - public String getFirstRequired() { return this.required.get(0); } - public String getLastRequired() { return this.required.get(required.size() - 1); } - public String getMatchingRequired(Predicate predicate) { - for (String item : required) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: required) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingRequired(Predicate predicate) { - for (String item : required) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: required) { if(predicate.test(item)){ return true;} } return false; } - public A withRequired(List required) { - if (required != null) { - this.required = new ArrayList(); - for (String item : required) { - this.addToRequired(item); - } - } else { - this.required = null; - } - return (A) this; + if (required != null) {this.required = new ArrayList(); for (String item : required){this.addToRequired(item);}} else { this.required = null;} return (A) this; } - public A withRequired(java.lang.String... required) { - if (this.required != null) { - this.required.clear(); - } - if (required != null) { - for (String item : required) { - this.addToRequired(item); - } - } - return (A) this; + if (this.required != null) {this.required.clear();} + if (required != null) {for (String item :required){ this.addToRequired(item);}} return (A) this; } - public Boolean hasRequired() { return required != null && !required.isEmpty(); } - public String getTitle() { return this.title; } - public A withTitle(String title) { - this.title = title; - return (A) this; + this.title=title; return (A) this; } - public Boolean hasTitle() { return this.title != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public Boolean getUniqueItems() { return this.uniqueItems; } - public A withUniqueItems(Boolean uniqueItems) { - this.uniqueItems = uniqueItems; - return (A) this; + this.uniqueItems=uniqueItems; return (A) this; } - public Boolean hasUniqueItems() { return this.uniqueItems != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JSONSchemaPropsFluentImpl that = (V1JSONSchemaPropsFluentImpl) o; - if ($ref != null ? !$ref.equals(that.$ref) : that.$ref != null) return false; - if ($schema != null ? !$schema.equals(that.$schema) : that.$schema != null) return false; - if (additionalItems != null - ? !additionalItems.equals(that.additionalItems) - : that.additionalItems != null) return false; - if (additionalProperties != null - ? !additionalProperties.equals(that.additionalProperties) - : that.additionalProperties != null) return false; - if (allOf != null ? !allOf.equals(that.allOf) : that.allOf != null) return false; - if (anyOf != null ? !anyOf.equals(that.anyOf) : that.anyOf != null) return false; - if (_default != null ? !_default.equals(that._default) : that._default != null) return false; - if (definitions != null ? !definitions.equals(that.definitions) : that.definitions != null) - return false; - if (dependencies != null ? !dependencies.equals(that.dependencies) : that.dependencies != null) - return false; - if (description != null ? !description.equals(that.description) : that.description != null) - return false; - if (_enum != null ? !_enum.equals(that._enum) : that._enum != null) return false; - if (example != null ? !example.equals(that.example) : that.example != null) return false; - if (exclusiveMaximum != null - ? !exclusiveMaximum.equals(that.exclusiveMaximum) - : that.exclusiveMaximum != null) return false; - if (exclusiveMinimum != null - ? !exclusiveMinimum.equals(that.exclusiveMinimum) - : that.exclusiveMinimum != null) return false; - if (externalDocs != null ? !externalDocs.equals(that.externalDocs) : that.externalDocs != null) - return false; - if (format != null ? !format.equals(that.format) : that.format != null) return false; - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (maxItems != null ? !maxItems.equals(that.maxItems) : that.maxItems != null) return false; - if (maxLength != null ? !maxLength.equals(that.maxLength) : that.maxLength != null) - return false; - if (maxProperties != null - ? !maxProperties.equals(that.maxProperties) - : that.maxProperties != null) return false; - if (maximum != null ? !maximum.equals(that.maximum) : that.maximum != null) return false; - if (minItems != null ? !minItems.equals(that.minItems) : that.minItems != null) return false; - if (minLength != null ? !minLength.equals(that.minLength) : that.minLength != null) - return false; - if (minProperties != null - ? !minProperties.equals(that.minProperties) - : that.minProperties != null) return false; - if (minimum != null ? !minimum.equals(that.minimum) : that.minimum != null) return false; - if (multipleOf != null ? !multipleOf.equals(that.multipleOf) : that.multipleOf != null) - return false; - if (not != null ? !not.equals(that.not) : that.not != null) return false; - if (nullable != null ? !nullable.equals(that.nullable) : that.nullable != null) return false; - if (oneOf != null ? !oneOf.equals(that.oneOf) : that.oneOf != null) return false; - if (pattern != null ? !pattern.equals(that.pattern) : that.pattern != null) return false; - if (patternProperties != null - ? !patternProperties.equals(that.patternProperties) - : that.patternProperties != null) return false; - if (properties != null ? !properties.equals(that.properties) : that.properties != null) - return false; - if (required != null ? !required.equals(that.required) : that.required != null) return false; - if (title != null ? !title.equals(that.title) : that.title != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (uniqueItems != null ? !uniqueItems.equals(that.uniqueItems) : that.uniqueItems != null) - return false; + if ($ref != null ? !$ref.equals(that.$ref) :that.$ref != null) return false; + if ($schema != null ? !$schema.equals(that.$schema) :that.$schema != null) return false; + if (additionalItems != null ? !additionalItems.equals(that.additionalItems) :that.additionalItems != null) return false; + if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false; + if (allOf != null ? !allOf.equals(that.allOf) :that.allOf != null) return false; + if (anyOf != null ? !anyOf.equals(that.anyOf) :that.anyOf != null) return false; + if (_default != null ? !_default.equals(that._default) :that._default != null) return false; + if (definitions != null ? !definitions.equals(that.definitions) :that.definitions != null) return false; + if (dependencies != null ? !dependencies.equals(that.dependencies) :that.dependencies != null) return false; + if (description != null ? !description.equals(that.description) :that.description != null) return false; + if (_enum != null ? !_enum.equals(that._enum) :that._enum != null) return false; + if (example != null ? !example.equals(that.example) :that.example != null) return false; + if (exclusiveMaximum != null ? !exclusiveMaximum.equals(that.exclusiveMaximum) :that.exclusiveMaximum != null) return false; + if (exclusiveMinimum != null ? !exclusiveMinimum.equals(that.exclusiveMinimum) :that.exclusiveMinimum != null) return false; + if (externalDocs != null ? !externalDocs.equals(that.externalDocs) :that.externalDocs != null) return false; + if (format != null ? !format.equals(that.format) :that.format != null) return false; + if (id != null ? !id.equals(that.id) :that.id != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (maxItems != null ? !maxItems.equals(that.maxItems) :that.maxItems != null) return false; + if (maxLength != null ? !maxLength.equals(that.maxLength) :that.maxLength != null) return false; + if (maxProperties != null ? !maxProperties.equals(that.maxProperties) :that.maxProperties != null) return false; + if (maximum != null ? !maximum.equals(that.maximum) :that.maximum != null) return false; + if (minItems != null ? !minItems.equals(that.minItems) :that.minItems != null) return false; + if (minLength != null ? !minLength.equals(that.minLength) :that.minLength != null) return false; + if (minProperties != null ? !minProperties.equals(that.minProperties) :that.minProperties != null) return false; + if (minimum != null ? !minimum.equals(that.minimum) :that.minimum != null) return false; + if (multipleOf != null ? !multipleOf.equals(that.multipleOf) :that.multipleOf != null) return false; + if (not != null ? !not.equals(that.not) :that.not != null) return false; + if (nullable != null ? !nullable.equals(that.nullable) :that.nullable != null) return false; + if (oneOf != null ? !oneOf.equals(that.oneOf) :that.oneOf != null) return false; + if (pattern != null ? !pattern.equals(that.pattern) :that.pattern != null) return false; + if (patternProperties != null ? !patternProperties.equals(that.patternProperties) :that.patternProperties != null) return false; + if (properties != null ? !properties.equals(that.properties) :that.properties != null) return false; + if (required != null ? !required.equals(that.required) :that.required != null) return false; + if (title != null ? !title.equals(that.title) :that.title != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; + if (uniqueItems != null ? !uniqueItems.equals(that.uniqueItems) :that.uniqueItems != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - $ref, - $schema, - additionalItems, - additionalProperties, - allOf, - anyOf, - _default, - definitions, - dependencies, - description, - _enum, - example, - exclusiveMaximum, - exclusiveMinimum, - externalDocs, - format, - id, - items, - maxItems, - maxLength, - maxProperties, - maximum, - minItems, - minLength, - minProperties, - minimum, - multipleOf, - not, - nullable, - oneOf, - pattern, - patternProperties, - properties, - required, - title, - type, - uniqueItems, - super.hashCode()); + return java.util.Objects.hash($ref, $schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if ($ref != null) { - sb.append("$ref:"); - sb.append($ref + ","); - } - if ($schema != null) { - sb.append("$schema:"); - sb.append($schema + ","); - } - if (additionalItems != null) { - sb.append("additionalItems:"); - sb.append(additionalItems + ","); - } - if (additionalProperties != null) { - sb.append("additionalProperties:"); - sb.append(additionalProperties + ","); - } - if (allOf != null && !allOf.isEmpty()) { - sb.append("allOf:"); - sb.append(allOf + ","); - } - if (anyOf != null && !anyOf.isEmpty()) { - sb.append("anyOf:"); - sb.append(anyOf + ","); - } - if (_default != null) { - sb.append("_default:"); - sb.append(_default + ","); - } - if (definitions != null && !definitions.isEmpty()) { - sb.append("definitions:"); - sb.append(definitions + ","); - } - if (dependencies != null && !dependencies.isEmpty()) { - sb.append("dependencies:"); - sb.append(dependencies + ","); - } - if (description != null) { - sb.append("description:"); - sb.append(description + ","); - } - if (_enum != null && !_enum.isEmpty()) { - sb.append("_enum:"); - sb.append(_enum + ","); - } - if (example != null) { - sb.append("example:"); - sb.append(example + ","); - } - if (exclusiveMaximum != null) { - sb.append("exclusiveMaximum:"); - sb.append(exclusiveMaximum + ","); - } - if (exclusiveMinimum != null) { - sb.append("exclusiveMinimum:"); - sb.append(exclusiveMinimum + ","); - } - if (externalDocs != null) { - sb.append("externalDocs:"); - sb.append(externalDocs + ","); - } - if (format != null) { - sb.append("format:"); - sb.append(format + ","); - } - if (id != null) { - sb.append("id:"); - sb.append(id + ","); - } - if (items != null) { - sb.append("items:"); - sb.append(items + ","); - } - if (maxItems != null) { - sb.append("maxItems:"); - sb.append(maxItems + ","); - } - if (maxLength != null) { - sb.append("maxLength:"); - sb.append(maxLength + ","); - } - if (maxProperties != null) { - sb.append("maxProperties:"); - sb.append(maxProperties + ","); - } - if (maximum != null) { - sb.append("maximum:"); - sb.append(maximum + ","); - } - if (minItems != null) { - sb.append("minItems:"); - sb.append(minItems + ","); - } - if (minLength != null) { - sb.append("minLength:"); - sb.append(minLength + ","); - } - if (minProperties != null) { - sb.append("minProperties:"); - sb.append(minProperties + ","); - } - if (minimum != null) { - sb.append("minimum:"); - sb.append(minimum + ","); - } - if (multipleOf != null) { - sb.append("multipleOf:"); - sb.append(multipleOf + ","); - } - if (not != null) { - sb.append("not:"); - sb.append(not + ","); - } - if (nullable != null) { - sb.append("nullable:"); - sb.append(nullable + ","); - } - if (oneOf != null && !oneOf.isEmpty()) { - sb.append("oneOf:"); - sb.append(oneOf + ","); - } - if (pattern != null) { - sb.append("pattern:"); - sb.append(pattern + ","); - } - if (patternProperties != null && !patternProperties.isEmpty()) { - sb.append("patternProperties:"); - sb.append(patternProperties + ","); - } - if (properties != null && !properties.isEmpty()) { - sb.append("properties:"); - sb.append(properties + ","); - } - if (required != null && !required.isEmpty()) { - sb.append("required:"); - sb.append(required + ","); - } - if (title != null) { - sb.append("title:"); - sb.append(title + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type + ","); - } - if (uniqueItems != null) { - sb.append("uniqueItems:"); - sb.append(uniqueItems); - } + if ($ref != null) { sb.append("$ref:"); sb.append($ref + ","); } + if ($schema != null) { sb.append("$schema:"); sb.append($schema + ","); } + if (additionalItems != null) { sb.append("additionalItems:"); sb.append(additionalItems + ","); } + if (additionalProperties != null) { sb.append("additionalProperties:"); sb.append(additionalProperties + ","); } + if (allOf != null && !allOf.isEmpty()) { sb.append("allOf:"); sb.append(allOf + ","); } + if (anyOf != null && !anyOf.isEmpty()) { sb.append("anyOf:"); sb.append(anyOf + ","); } + if (_default != null) { sb.append("_default:"); sb.append(_default + ","); } + if (definitions != null && !definitions.isEmpty()) { sb.append("definitions:"); sb.append(definitions + ","); } + if (dependencies != null && !dependencies.isEmpty()) { sb.append("dependencies:"); sb.append(dependencies + ","); } + if (description != null) { sb.append("description:"); sb.append(description + ","); } + if (_enum != null && !_enum.isEmpty()) { sb.append("_enum:"); sb.append(_enum + ","); } + if (example != null) { sb.append("example:"); sb.append(example + ","); } + if (exclusiveMaximum != null) { sb.append("exclusiveMaximum:"); sb.append(exclusiveMaximum + ","); } + if (exclusiveMinimum != null) { sb.append("exclusiveMinimum:"); sb.append(exclusiveMinimum + ","); } + if (externalDocs != null) { sb.append("externalDocs:"); sb.append(externalDocs + ","); } + if (format != null) { sb.append("format:"); sb.append(format + ","); } + if (id != null) { sb.append("id:"); sb.append(id + ","); } + if (items != null) { sb.append("items:"); sb.append(items + ","); } + if (maxItems != null) { sb.append("maxItems:"); sb.append(maxItems + ","); } + if (maxLength != null) { sb.append("maxLength:"); sb.append(maxLength + ","); } + if (maxProperties != null) { sb.append("maxProperties:"); sb.append(maxProperties + ","); } + if (maximum != null) { sb.append("maximum:"); sb.append(maximum + ","); } + if (minItems != null) { sb.append("minItems:"); sb.append(minItems + ","); } + if (minLength != null) { sb.append("minLength:"); sb.append(minLength + ","); } + if (minProperties != null) { sb.append("minProperties:"); sb.append(minProperties + ","); } + if (minimum != null) { sb.append("minimum:"); sb.append(minimum + ","); } + if (multipleOf != null) { sb.append("multipleOf:"); sb.append(multipleOf + ","); } + if (not != null) { sb.append("not:"); sb.append(not + ","); } + if (nullable != null) { sb.append("nullable:"); sb.append(nullable + ","); } + if (oneOf != null && !oneOf.isEmpty()) { sb.append("oneOf:"); sb.append(oneOf + ","); } + if (pattern != null) { sb.append("pattern:"); sb.append(pattern + ","); } + if (patternProperties != null && !patternProperties.isEmpty()) { sb.append("patternProperties:"); sb.append(patternProperties + ","); } + if (properties != null && !properties.isEmpty()) { sb.append("properties:"); sb.append(properties + ","); } + if (required != null && !required.isEmpty()) { sb.append("required:"); sb.append(required + ","); } + if (title != null) { sb.append("title:"); sb.append(title + ","); } + if (type != null) { sb.append("type:"); sb.append(type + ","); } + if (uniqueItems != null) { sb.append("uniqueItems:"); sb.append(uniqueItems); } sb.append("}"); return sb.toString(); } - public A withExclusiveMaximum() { return withExclusiveMaximum(true); } - public A withExclusiveMinimum() { return withExclusiveMinimum(true); } - public A withNullable() { return withNullable(true); } - public A withUniqueItems() { return withUniqueItems(true); } - - class AllOfNestedImpl - extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.AllOfNested, Nested { - AllOfNestedImpl(Integer index, V1JSONSchemaProps item) { + class AllOfNestedImpl extends V1JSONSchemaPropsFluentImpl> implements V1JSONSchemaPropsFluent.AllOfNested,Nested{ + AllOfNestedImpl(Integer index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - AllOfNestedImpl() { this.index = -1; this.builder = new V1JSONSchemaPropsBuilder(this); } - V1JSONSchemaPropsBuilder builder; Integer index; - public N and() { - return (N) V1JSONSchemaPropsFluentImpl.this.setToAllOf(index, builder.build()); + return (N) V1JSONSchemaPropsFluentImpl.this.setToAllOf(index,builder.build()); } - public N endAllOf() { return and(); } + } - - class AnyOfNestedImpl - extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.AnyOfNested, Nested { - AnyOfNestedImpl(Integer index, V1JSONSchemaProps item) { + class AnyOfNestedImpl extends V1JSONSchemaPropsFluentImpl> implements V1JSONSchemaPropsFluent.AnyOfNested,Nested{ + AnyOfNestedImpl(Integer index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - AnyOfNestedImpl() { this.index = -1; this.builder = new V1JSONSchemaPropsBuilder(this); } - V1JSONSchemaPropsBuilder builder; Integer index; - public N and() { - return (N) V1JSONSchemaPropsFluentImpl.this.setToAnyOf(index, builder.build()); + return (N) V1JSONSchemaPropsFluentImpl.this.setToAnyOf(index,builder.build()); } - public N endAnyOf() { return and(); } + } - - class ExternalDocsNestedImpl - extends V1ExternalDocumentationFluentImpl> - implements V1JSONSchemaPropsFluent.ExternalDocsNested, Nested { + class ExternalDocsNestedImpl extends V1ExternalDocumentationFluentImpl> implements V1JSONSchemaPropsFluent.ExternalDocsNested,Nested{ ExternalDocsNestedImpl(V1ExternalDocumentation item) { this.builder = new V1ExternalDocumentationBuilder(this, item); } - ExternalDocsNestedImpl() { this.builder = new V1ExternalDocumentationBuilder(this); } - V1ExternalDocumentationBuilder builder; - public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.withExternalDocs(builder.build()); } - public N endExternalDocs() { return and(); } + } - - class NotNestedImpl extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.NotNested, Nested { + class NotNestedImpl extends V1JSONSchemaPropsFluentImpl> implements V1JSONSchemaPropsFluent.NotNested,Nested{ NotNestedImpl(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } - NotNestedImpl() { this.builder = new V1JSONSchemaPropsBuilder(this); } - V1JSONSchemaPropsBuilder builder; - public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.withNot(builder.build()); } - public N endNot() { return and(); } + } - - class OneOfNestedImpl - extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.OneOfNested, Nested { - OneOfNestedImpl(Integer index, V1JSONSchemaProps item) { + class OneOfNestedImpl extends V1JSONSchemaPropsFluentImpl> implements V1JSONSchemaPropsFluent.OneOfNested,Nested{ + OneOfNestedImpl(Integer index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - OneOfNestedImpl() { this.index = -1; this.builder = new V1JSONSchemaPropsBuilder(this); } - V1JSONSchemaPropsBuilder builder; Integer index; - public N and() { - return (N) V1JSONSchemaPropsFluentImpl.this.setToOneOf(index, builder.build()); + return (N) V1JSONSchemaPropsFluentImpl.this.setToOneOf(index,builder.build()); } - public N endOneOf() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java index 71643ad176..a124ebc8e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1JobBuilder extends V1JobFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JobBuilder extends V1JobFluentImpl implements VisitableBuilder{ public V1JobBuilder() { this(false); } - public V1JobBuilder(Boolean validationEnabled) { this(new V1Job(), validationEnabled); } - public V1JobBuilder(V1JobFluent fluent) { this(fluent, false); } - - public V1JobBuilder(V1JobFluent fluent, Boolean validationEnabled) { + public V1JobBuilder(V1JobFluent fluent,Boolean validationEnabled) { this(fluent, new V1Job(), validationEnabled); } - - public V1JobBuilder(V1JobFluent fluent, V1Job instance) { + public V1JobBuilder(V1JobFluent fluent,V1Job instance) { this(fluent, instance, false); } - - public V1JobBuilder(V1JobFluent fluent, V1Job instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JobBuilder(V1JobFluent fluent,V1Job instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -48,15 +30,13 @@ public V1JobBuilder(V1JobFluent fluent, V1Job instance, Boolean validationEna fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JobBuilder(V1Job instance) { - this(instance, false); + this(instance,false); } - - public V1JobBuilder(V1Job instance, Boolean validationEnabled) { - this.fluent = this; + public V1JobBuilder(V1Job instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -67,12 +47,10 @@ public V1JobBuilder(V1Job instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JobFluent fluent; Boolean validationEnabled; - public V1Job build() { V1Job buildable = new V1Job(); buildable.setApiVersion(fluent.getApiVersion()); @@ -82,4 +60,5 @@ public V1Job build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java index c90f9f4562..ff0b8d86ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1JobConditionBuilder extends V1JobConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JobConditionBuilder extends V1JobConditionFluentImpl implements VisitableBuilder{ public V1JobConditionBuilder() { this(false); } - public V1JobConditionBuilder(Boolean validationEnabled) { this(new V1JobCondition(), validationEnabled); } - public V1JobConditionBuilder(V1JobConditionFluent fluent) { this(fluent, false); } - - public V1JobConditionBuilder(V1JobConditionFluent fluent, Boolean validationEnabled) { + public V1JobConditionBuilder(V1JobConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1JobCondition(), validationEnabled); } - - public V1JobConditionBuilder(V1JobConditionFluent fluent, V1JobCondition instance) { + public V1JobConditionBuilder(V1JobConditionFluent fluent,V1JobCondition instance) { this(fluent, instance, false); } - - public V1JobConditionBuilder( - V1JobConditionFluent fluent, V1JobCondition instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JobConditionBuilder(V1JobConditionFluent fluent,V1JobCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastProbeTime(instance.getLastProbeTime()); fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -51,15 +32,13 @@ public V1JobConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JobConditionBuilder(V1JobCondition instance) { - this(instance, false); + this(instance,false); } - - public V1JobConditionBuilder(V1JobCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1JobConditionBuilder(V1JobCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -72,12 +51,10 @@ public V1JobConditionBuilder(V1JobCondition instance, Boolean validationEnabled) this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JobConditionFluent fluent; Boolean validationEnabled; - public V1JobCondition build() { V1JobCondition buildable = new V1JobCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -88,4 +65,5 @@ public V1JobCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java index 732bc2ce78..8cffce0029 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java @@ -1,55 +1,31 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1JobConditionFluent> extends Fluent { + /** + * Generated + */ +public interface V1JobConditionFluent> extends Fluent{ public OffsetDateTime getLastProbeTime(); - public A withLastProbeTime(OffsetDateTime lastProbeTime); - public Boolean hasLastProbeTime(); - public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java index d8e8eb67db..85b0335c90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JobConditionFluentImpl> extends BaseFluent - implements V1JobConditionFluent { - public V1JobConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JobConditionFluentImpl> extends BaseFluent implements V1JobConditionFluent{ + public V1JobConditionFluentImpl() { + } public V1JobConditionFluentImpl(V1JobCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); @@ -33,143 +26,94 @@ public V1JobConditionFluentImpl(V1JobCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + this.lastProbeTime=lastProbeTime; return (A) this; } - public Boolean hasLastProbeTime() { return this.lastProbeTime != null; } - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JobConditionFluentImpl that = (V1JobConditionFluentImpl) o; - if (lastProbeTime != null - ? !lastProbeTime.equals(that.lastProbeTime) - : that.lastProbeTime != null) return false; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastProbeTime != null ? !lastProbeTime.equals(that.lastProbeTime) :that.lastProbeTime != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastProbeTime != null) { - sb.append("lastProbeTime:"); - sb.append(lastProbeTime + ","); - } - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java index 74cc4611c4..5863887051 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java @@ -1,123 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1JobFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1JobFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1JobFluent.MetadataNested withNewMetadata(); - public V1JobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1JobFluent.MetadataNested editMetadata(); - public V1JobFluent.MetadataNested editOrNewMetadata(); - public V1JobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1JobSpec getSpec(); - public V1JobSpec buildSpec(); - public A withSpec(V1JobSpec spec); - public Boolean hasSpec(); - public V1JobFluent.SpecNested withNewSpec(); - public V1JobFluent.SpecNested withNewSpecLike(V1JobSpec item); - public V1JobFluent.SpecNested editSpec(); - public V1JobFluent.SpecNested editOrNewSpec(); - public V1JobFluent.SpecNested editOrNewSpecLike(V1JobSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1JobStatus getStatus(); - public V1JobStatus buildStatus(); - public A withStatus(V1JobStatus status); - public Boolean hasStatus(); - public V1JobFluent.StatusNested withNewStatus(); - public V1JobFluent.StatusNested withNewStatusLike(V1JobStatus item); - public V1JobFluent.StatusNested editStatus(); - public V1JobFluent.StatusNested editOrNewStatus(); - public V1JobFluent.StatusNested editOrNewStatusLike(V1JobStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested extends Nested, V1JobSpecFluent> { + public interface SpecNested extends Nested,V1JobSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1JobStatusFluent> { + public interface StatusNested extends Nested,V1JobStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java index 9171062df1..8f62953b61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JobFluentImpl> extends BaseFluent - implements V1JobFluent { - public V1JobFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JobFluentImpl> extends BaseFluent implements V1JobFluent{ + public V1JobFluentImpl() { + } public V1JobFluentImpl(V1Job instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,295 +25,205 @@ public V1JobFluentImpl(V1Job instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1JobSpecBuilder spec; private V1JobStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1JobFluent.MetadataNested withNewMetadata() { return new V1JobFluentImpl.MetadataNestedImpl(); } - public V1JobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1JobFluentImpl.MetadataNestedImpl(item); } - public V1JobFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1JobFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1JobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1JobSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1JobSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1JobSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1JobSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1JobFluent.SpecNested withNewSpec() { return new V1JobFluentImpl.SpecNestedImpl(); } - public V1JobFluent.SpecNested withNewSpecLike(V1JobSpec item) { return new V1JobFluentImpl.SpecNestedImpl(item); } - public V1JobFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1JobFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1JobSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1JobSpecBuilder().build()); } - public V1JobFluent.SpecNested editOrNewSpecLike(V1JobSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1JobStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1JobStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1JobStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1JobStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1JobStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1JobFluent.StatusNested withNewStatus() { return new V1JobFluentImpl.StatusNestedImpl(); } - public V1JobFluent.StatusNested withNewStatusLike(V1JobStatus item) { return new V1JobFluentImpl.StatusNestedImpl(item); } - public V1JobFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1JobFluent.StatusNested editOrNewStatus() { - return withNewStatusLike(getStatus() != null ? getStatus() : new V1JobStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1JobStatusBuilder().build()); } - public V1JobFluent.StatusNested editOrNewStatusLike(V1JobStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JobFluentImpl that = (V1JobFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1JobFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1JobFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1JobFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1JobSpecFluentImpl> - implements V1JobFluent.SpecNested, Nested { + class SpecNestedImpl extends V1JobSpecFluentImpl> implements V1JobFluent.SpecNested,Nested{ SpecNestedImpl(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1JobSpecBuilder(this); } - V1JobSpecBuilder builder; - public N and() { return (N) V1JobFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1JobStatusFluentImpl> - implements V1JobFluent.StatusNested, Nested { + class StatusNestedImpl extends V1JobStatusFluentImpl> implements V1JobFluent.StatusNested,Nested{ StatusNestedImpl(V1JobStatus item) { this.builder = new V1JobStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1JobStatusBuilder(this); } - V1JobStatusBuilder builder; - public N and() { return (N) V1JobFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java index f0faee22df..39d90e16e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1JobListBuilder extends V1JobListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JobListBuilder extends V1JobListFluentImpl implements VisitableBuilder{ public V1JobListBuilder() { this(false); } - public V1JobListBuilder(Boolean validationEnabled) { this(new V1JobList(), validationEnabled); } - public V1JobListBuilder(V1JobListFluent fluent) { this(fluent, false); } - - public V1JobListBuilder(V1JobListFluent fluent, Boolean validationEnabled) { + public V1JobListBuilder(V1JobListFluent fluent,Boolean validationEnabled) { this(fluent, new V1JobList(), validationEnabled); } - - public V1JobListBuilder(V1JobListFluent fluent, V1JobList instance) { + public V1JobListBuilder(V1JobListFluent fluent,V1JobList instance) { this(fluent, instance, false); } - - public V1JobListBuilder( - V1JobListFluent fluent, V1JobList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JobListBuilder(V1JobListFluent fluent,V1JobList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1JobListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JobListBuilder(V1JobList instance) { - this(instance, false); + this(instance,false); } - - public V1JobListBuilder(V1JobList instance, Boolean validationEnabled) { - this.fluent = this; + public V1JobListBuilder(V1JobList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1JobListBuilder(V1JobList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JobListFluent fluent; Boolean validationEnabled; - public V1JobList build() { V1JobList buildable = new V1JobList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1JobList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java index 7f33ec2bfe..a417ee9292 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java @@ -1,125 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1JobListFluent> extends Fluent { + /** + * Generated + */ +public interface V1JobListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Job item); - - public A setToItems(Integer index, V1Job item); - + public A addToItems(Integer index,V1Job item); + public A setToItems(Integer index,V1Job item); public A addToItems(io.kubernetes.client.openapi.models.V1Job... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Job buildItem(Integer index); - public V1Job buildFirstItem(); - public V1Job buildLastItem(); - public V1Job buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Job... items); - public Boolean hasItems(); - public V1JobListFluent.ItemsNested addNewItem(); - public V1JobListFluent.ItemsNested addNewItemLike(V1Job item); - - public V1JobListFluent.ItemsNested setNewItemLike(Integer index, V1Job item); - + public V1JobListFluent.ItemsNested setNewItemLike(Integer index,V1Job item); public V1JobListFluent.ItemsNested editItem(Integer index); - public V1JobListFluent.ItemsNested editFirstItem(); - public V1JobListFluent.ItemsNested editLastItem(); - public V1JobListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1JobListFluent.MetadataNested withNewMetadata(); - public V1JobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1JobListFluent.MetadataNested editMetadata(); - public V1JobListFluent.MetadataNested editOrNewMetadata(); - public V1JobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested extends Nested, V1JobFluent> { + public interface ItemsNested extends Nested,V1JobFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java index d04f64b77a..8b0c3bd4ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JobListFluentImpl> extends BaseFluent - implements V1JobListFluent { - public V1JobListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JobListFluentImpl> extends BaseFluent implements V1JobListFluent{ + public V1JobListFluentImpl() { + } public V1JobListFluentImpl(V1JobList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1JobListFluentImpl(V1JobList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Job item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Job item) { + if (this.items == null) {this.items = new ArrayList();} + V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Job item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Job item) { + if (this.items == null) {this.items = new ArrayList();} V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Job... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items) { - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,269 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Job buildItem(Integer index) { return this.items.get(index).build(); } - public V1Job buildFirstItem() { return this.items.get(0).build(); } - public V1Job buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Job buildMatchingItem(Predicate predicate) { - for (V1JobBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1JobBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1JobBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1JobBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Job item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Job item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Job... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Job item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Job item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1JobListFluent.ItemsNested addNewItem() { return new V1JobListFluentImpl.ItemsNestedImpl(); } - public V1JobListFluent.ItemsNested addNewItemLike(V1Job item) { return new V1JobListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1JobListFluent.ItemsNested setNewItemLike(Integer index, V1Job item) { + public V1JobListFluent.ItemsNested setNewItemLike(Integer index,V1Job item) { return new V1JobListFluentImpl.ItemsNestedImpl(index, item); } - public V1JobListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1JobListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1JobListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - public V1JobListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1JobListFluentImpl.MetadataNestedImpl(); } - public V1JobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1JobListFluentImpl.MetadataNestedImpl(item); } - public V1JobListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1JobListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1JobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JobListFluentImpl that = (V1JobListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1JobFluentImpl> - implements V1JobListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Job item) { + class ItemsNestedImpl extends V1JobFluentImpl> implements V1JobListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Job item) { this.index = index; this.builder = new V1JobBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1JobBuilder(this); } - V1JobBuilder builder; Integer index; - public N and() { - return (N) V1JobListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1JobListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1JobListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1JobListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1JobListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java index 9bc564fc6a..2cf90070f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1JobSpecBuilder extends V1JobSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JobSpecBuilder extends V1JobSpecFluentImpl implements VisitableBuilder{ public V1JobSpecBuilder() { this(false); } - public V1JobSpecBuilder(Boolean validationEnabled) { this(new V1JobSpec(), validationEnabled); } - public V1JobSpecBuilder(V1JobSpecFluent fluent) { this(fluent, false); } - - public V1JobSpecBuilder(V1JobSpecFluent fluent, Boolean validationEnabled) { + public V1JobSpecBuilder(V1JobSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1JobSpec(), validationEnabled); } - - public V1JobSpecBuilder(V1JobSpecFluent fluent, V1JobSpec instance) { + public V1JobSpecBuilder(V1JobSpecFluent fluent,V1JobSpec instance) { this(fluent, instance, false); } - - public V1JobSpecBuilder( - V1JobSpecFluent fluent, V1JobSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JobSpecBuilder(V1JobSpecFluent fluent,V1JobSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); fluent.withBackoffLimit(instance.getBackoffLimit()); @@ -61,15 +42,13 @@ public V1JobSpecBuilder( fluent.withTtlSecondsAfterFinished(instance.getTtlSecondsAfterFinished()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JobSpecBuilder(V1JobSpec instance) { - this(instance, false); + this(instance,false); } - - public V1JobSpecBuilder(V1JobSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1JobSpecBuilder(V1JobSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withBackoffLimit(instance.getBackoffLimit()); @@ -92,12 +71,10 @@ public V1JobSpecBuilder(V1JobSpec instance, Boolean validationEnabled) { this.withTtlSecondsAfterFinished(instance.getTtlSecondsAfterFinished()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JobSpecFluent fluent; Boolean validationEnabled; - public V1JobSpec build() { V1JobSpec buildable = new V1JobSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); @@ -113,4 +90,5 @@ public V1JobSpec build() { buildable.setTtlSecondsAfterFinished(fluent.getTtlSecondsAfterFinished()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java index 8b94c018cf..ce694a469b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java @@ -1,166 +1,102 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1JobSpecFluent> extends Fluent { +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1JobSpecFluent> extends Fluent{ public Long getActiveDeadlineSeconds(); - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds); - public Boolean hasActiveDeadlineSeconds(); - public Integer getBackoffLimit(); - public A withBackoffLimit(Integer backoffLimit); - public Boolean hasBackoffLimit(); - public String getCompletionMode(); - public A withCompletionMode(String completionMode); - public Boolean hasCompletionMode(); - public Integer getCompletions(); - public A withCompletions(Integer completions); - public Boolean hasCompletions(); - public Boolean getManualSelector(); - public A withManualSelector(Boolean manualSelector); - public Boolean hasManualSelector(); - public Integer getParallelism(); - public A withParallelism(Integer parallelism); - public Boolean hasParallelism(); - + /** * This method has been deprecated, please use method buildPodFailurePolicy instead. - * * @return The buildable object. */ @Deprecated public V1PodFailurePolicy getPodFailurePolicy(); - public V1PodFailurePolicy buildPodFailurePolicy(); - public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy); - public Boolean hasPodFailurePolicy(); - public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicy(); - - public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicyLike( - V1PodFailurePolicy item); - + public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item); public V1JobSpecFluent.PodFailurePolicyNested editPodFailurePolicy(); - public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicy(); - - public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicyLike( - V1PodFailurePolicy item); - + public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item); + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1JobSpecFluent.SelectorNested withNewSelector(); - public V1JobSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V1JobSpecFluent.SelectorNested editSelector(); - public V1JobSpecFluent.SelectorNested editOrNewSelector(); - public V1JobSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - public Boolean getSuspend(); - public A withSuspend(Boolean suspend); - public Boolean hasSuspend(); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1JobSpecFluent.TemplateNested withNewTemplate(); - public V1JobSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public V1JobSpecFluent.TemplateNested editTemplate(); - public V1JobSpecFluent.TemplateNested editOrNewTemplate(); - public V1JobSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - public Integer getTtlSecondsAfterFinished(); - public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished); - public Boolean hasTtlSecondsAfterFinished(); - public A withManualSelector(); - public A withSuspend(); - - public interface PodFailurePolicyNested - extends Nested, V1PodFailurePolicyFluent> { + public interface PodFailurePolicyNested extends Nested,V1PodFailurePolicyFluent>{ public N and(); - public N endPodFailurePolicy(); + } - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } - - public interface TemplateNested - extends Nested, V1PodTemplateSpecFluent> { + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java index 4840e2205a..5343ebd2da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java @@ -1,26 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JobSpecFluentImpl> extends BaseFluent - implements V1JobSpecFluent { - public V1JobSpecFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Object; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JobSpecFluentImpl> extends BaseFluent implements V1JobSpecFluent{ + public V1JobSpecFluentImpl() { + } public V1JobSpecFluentImpl(V1JobSpec instance) { this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); @@ -43,8 +39,8 @@ public V1JobSpecFluentImpl(V1JobSpec instance) { this.withTemplate(instance.getTemplate()); this.withTtlSecondsAfterFinished(instance.getTtlSecondsAfterFinished()); - } + } private Long activeDeadlineSeconds; private Integer backoffLimit; private String completionMode; @@ -56,436 +52,270 @@ public V1JobSpecFluentImpl(V1JobSpec instance) { private Boolean suspend; private V1PodTemplateSpecBuilder template; private Integer ttlSecondsAfterFinished; - public Long getActiveDeadlineSeconds() { return this.activeDeadlineSeconds; } - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { - this.activeDeadlineSeconds = activeDeadlineSeconds; - return (A) this; + this.activeDeadlineSeconds=activeDeadlineSeconds; return (A) this; } - public Boolean hasActiveDeadlineSeconds() { return this.activeDeadlineSeconds != null; } - public Integer getBackoffLimit() { return this.backoffLimit; } - public A withBackoffLimit(Integer backoffLimit) { - this.backoffLimit = backoffLimit; - return (A) this; + this.backoffLimit=backoffLimit; return (A) this; } - public Boolean hasBackoffLimit() { return this.backoffLimit != null; } - public String getCompletionMode() { return this.completionMode; } - public A withCompletionMode(String completionMode) { - this.completionMode = completionMode; - return (A) this; + this.completionMode=completionMode; return (A) this; } - public Boolean hasCompletionMode() { return this.completionMode != null; } - public Integer getCompletions() { return this.completions; } - public A withCompletions(Integer completions) { - this.completions = completions; - return (A) this; + this.completions=completions; return (A) this; } - public Boolean hasCompletions() { return this.completions != null; } - public Boolean getManualSelector() { return this.manualSelector; } - public A withManualSelector(Boolean manualSelector) { - this.manualSelector = manualSelector; - return (A) this; + this.manualSelector=manualSelector; return (A) this; } - public Boolean hasManualSelector() { return this.manualSelector != null; } - public Integer getParallelism() { return this.parallelism; } - public A withParallelism(Integer parallelism) { - this.parallelism = parallelism; - return (A) this; + this.parallelism=parallelism; return (A) this; } - public Boolean hasParallelism() { return this.parallelism != null; } - + /** * This method has been deprecated, please use method buildPodFailurePolicy instead. - * * @return The buildable object. */ @Deprecated public V1PodFailurePolicy getPodFailurePolicy() { - return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; + return this.podFailurePolicy!=null ?this.podFailurePolicy.build():null; } - public V1PodFailurePolicy buildPodFailurePolicy() { - return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; + return this.podFailurePolicy!=null ?this.podFailurePolicy.build():null; } - public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { _visitables.get("podFailurePolicy").remove(this.podFailurePolicy); - if (podFailurePolicy != null) { - this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); - _visitables.get("podFailurePolicy").add(this.podFailurePolicy); - } else { - this.podFailurePolicy = null; - _visitables.get("podFailurePolicy").remove(this.podFailurePolicy); - } - return (A) this; + if (podFailurePolicy!=null){ this.podFailurePolicy= new V1PodFailurePolicyBuilder(podFailurePolicy); _visitables.get("podFailurePolicy").add(this.podFailurePolicy);} else { this.podFailurePolicy = null; _visitables.get("podFailurePolicy").remove(this.podFailurePolicy); } return (A) this; } - public Boolean hasPodFailurePolicy() { return this.podFailurePolicy != null; } - public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicy() { return new V1JobSpecFluentImpl.PodFailurePolicyNestedImpl(); } - - public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicyLike( - V1PodFailurePolicy item) { + public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item) { return new V1JobSpecFluentImpl.PodFailurePolicyNestedImpl(item); } - public V1JobSpecFluent.PodFailurePolicyNested editPodFailurePolicy() { return withNewPodFailurePolicyLike(getPodFailurePolicy()); } - public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicy() { - return withNewPodFailurePolicyLike( - getPodFailurePolicy() != null - ? getPodFailurePolicy() - : new V1PodFailurePolicyBuilder().build()); + return withNewPodFailurePolicyLike(getPodFailurePolicy() != null ? getPodFailurePolicy(): new V1PodFailurePolicyBuilder().build()); } - - public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicyLike( - V1PodFailurePolicy item) { - return withNewPodFailurePolicyLike( - getPodFailurePolicy() != null ? getPodFailurePolicy() : item); + public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item) { + return withNewPodFailurePolicyLike(getPodFailurePolicy() != null ? getPodFailurePolicy(): item); } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1JobSpecFluent.SelectorNested withNewSelector() { return new V1JobSpecFluentImpl.SelectorNestedImpl(); } - public V1JobSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1JobSpecFluentImpl.SelectorNestedImpl(item); } - public V1JobSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1JobSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - public V1JobSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - public Boolean getSuspend() { return this.suspend; } - public A withSuspend(Boolean suspend) { - this.suspend = suspend; - return (A) this; + this.suspend=suspend; return (A) this; } - public Boolean hasSuspend() { return this.suspend != null; } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1JobSpecFluent.TemplateNested withNewTemplate() { return new V1JobSpecFluentImpl.TemplateNestedImpl(); } - public V1JobSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1JobSpecFluentImpl.TemplateNestedImpl(item); } - public V1JobSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1JobSpecFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - public V1JobSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - public Integer getTtlSecondsAfterFinished() { return this.ttlSecondsAfterFinished; } - public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { - this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; - return (A) this; + this.ttlSecondsAfterFinished=ttlSecondsAfterFinished; return (A) this; } - public Boolean hasTtlSecondsAfterFinished() { return this.ttlSecondsAfterFinished != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JobSpecFluentImpl that = (V1JobSpecFluentImpl) o; - if (activeDeadlineSeconds != null - ? !activeDeadlineSeconds.equals(that.activeDeadlineSeconds) - : that.activeDeadlineSeconds != null) return false; - if (backoffLimit != null ? !backoffLimit.equals(that.backoffLimit) : that.backoffLimit != null) - return false; - if (completionMode != null - ? !completionMode.equals(that.completionMode) - : that.completionMode != null) return false; - if (completions != null ? !completions.equals(that.completions) : that.completions != null) - return false; - if (manualSelector != null - ? !manualSelector.equals(that.manualSelector) - : that.manualSelector != null) return false; - if (parallelism != null ? !parallelism.equals(that.parallelism) : that.parallelism != null) - return false; - if (podFailurePolicy != null - ? !podFailurePolicy.equals(that.podFailurePolicy) - : that.podFailurePolicy != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (suspend != null ? !suspend.equals(that.suspend) : that.suspend != null) return false; - if (template != null ? !template.equals(that.template) : that.template != null) return false; - if (ttlSecondsAfterFinished != null - ? !ttlSecondsAfterFinished.equals(that.ttlSecondsAfterFinished) - : that.ttlSecondsAfterFinished != null) return false; + if (activeDeadlineSeconds != null ? !activeDeadlineSeconds.equals(that.activeDeadlineSeconds) :that.activeDeadlineSeconds != null) return false; + if (backoffLimit != null ? !backoffLimit.equals(that.backoffLimit) :that.backoffLimit != null) return false; + if (completionMode != null ? !completionMode.equals(that.completionMode) :that.completionMode != null) return false; + if (completions != null ? !completions.equals(that.completions) :that.completions != null) return false; + if (manualSelector != null ? !manualSelector.equals(that.manualSelector) :that.manualSelector != null) return false; + if (parallelism != null ? !parallelism.equals(that.parallelism) :that.parallelism != null) return false; + if (podFailurePolicy != null ? !podFailurePolicy.equals(that.podFailurePolicy) :that.podFailurePolicy != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (suspend != null ? !suspend.equals(that.suspend) :that.suspend != null) return false; + if (template != null ? !template.equals(that.template) :that.template != null) return false; + if (ttlSecondsAfterFinished != null ? !ttlSecondsAfterFinished.equals(that.ttlSecondsAfterFinished) :that.ttlSecondsAfterFinished != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - activeDeadlineSeconds, - backoffLimit, - completionMode, - completions, - manualSelector, - parallelism, - podFailurePolicy, - selector, - suspend, - template, - ttlSecondsAfterFinished, - super.hashCode()); + return java.util.Objects.hash(activeDeadlineSeconds, backoffLimit, completionMode, completions, manualSelector, parallelism, podFailurePolicy, selector, suspend, template, ttlSecondsAfterFinished, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (activeDeadlineSeconds != null) { - sb.append("activeDeadlineSeconds:"); - sb.append(activeDeadlineSeconds + ","); - } - if (backoffLimit != null) { - sb.append("backoffLimit:"); - sb.append(backoffLimit + ","); - } - if (completionMode != null) { - sb.append("completionMode:"); - sb.append(completionMode + ","); - } - if (completions != null) { - sb.append("completions:"); - sb.append(completions + ","); - } - if (manualSelector != null) { - sb.append("manualSelector:"); - sb.append(manualSelector + ","); - } - if (parallelism != null) { - sb.append("parallelism:"); - sb.append(parallelism + ","); - } - if (podFailurePolicy != null) { - sb.append("podFailurePolicy:"); - sb.append(podFailurePolicy + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (suspend != null) { - sb.append("suspend:"); - sb.append(suspend + ","); - } - if (template != null) { - sb.append("template:"); - sb.append(template + ","); - } - if (ttlSecondsAfterFinished != null) { - sb.append("ttlSecondsAfterFinished:"); - sb.append(ttlSecondsAfterFinished); - } + if (activeDeadlineSeconds != null) { sb.append("activeDeadlineSeconds:"); sb.append(activeDeadlineSeconds + ","); } + if (backoffLimit != null) { sb.append("backoffLimit:"); sb.append(backoffLimit + ","); } + if (completionMode != null) { sb.append("completionMode:"); sb.append(completionMode + ","); } + if (completions != null) { sb.append("completions:"); sb.append(completions + ","); } + if (manualSelector != null) { sb.append("manualSelector:"); sb.append(manualSelector + ","); } + if (parallelism != null) { sb.append("parallelism:"); sb.append(parallelism + ","); } + if (podFailurePolicy != null) { sb.append("podFailurePolicy:"); sb.append(podFailurePolicy + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } + if (suspend != null) { sb.append("suspend:"); sb.append(suspend + ","); } + if (template != null) { sb.append("template:"); sb.append(template + ","); } + if (ttlSecondsAfterFinished != null) { sb.append("ttlSecondsAfterFinished:"); sb.append(ttlSecondsAfterFinished); } sb.append("}"); return sb.toString(); } - public A withManualSelector() { return withManualSelector(true); } - public A withSuspend() { return withSuspend(true); } - - class PodFailurePolicyNestedImpl - extends V1PodFailurePolicyFluentImpl> - implements V1JobSpecFluent.PodFailurePolicyNested, Nested { + class PodFailurePolicyNestedImpl extends V1PodFailurePolicyFluentImpl> implements V1JobSpecFluent.PodFailurePolicyNested,Nested{ PodFailurePolicyNestedImpl(V1PodFailurePolicy item) { this.builder = new V1PodFailurePolicyBuilder(this, item); } - PodFailurePolicyNestedImpl() { this.builder = new V1PodFailurePolicyBuilder(this); } - V1PodFailurePolicyBuilder builder; - public N and() { return (N) V1JobSpecFluentImpl.this.withPodFailurePolicy(builder.build()); } - public N endPodFailurePolicy() { return and(); } + } - - class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements V1JobSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1JobSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1JobSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } - - class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements V1JobSpecFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1JobSpecFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1JobSpecFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java index 88257b60d5..12837be41f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1JobStatusBuilder extends V1JobStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JobStatusBuilder extends V1JobStatusFluentImpl implements VisitableBuilder{ public V1JobStatusBuilder() { this(false); } - public V1JobStatusBuilder(Boolean validationEnabled) { this(new V1JobStatus(), validationEnabled); } - public V1JobStatusBuilder(V1JobStatusFluent fluent) { this(fluent, false); } - - public V1JobStatusBuilder(V1JobStatusFluent fluent, Boolean validationEnabled) { + public V1JobStatusBuilder(V1JobStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1JobStatus(), validationEnabled); } - - public V1JobStatusBuilder(V1JobStatusFluent fluent, V1JobStatus instance) { + public V1JobStatusBuilder(V1JobStatusFluent fluent,V1JobStatus instance) { this(fluent, instance, false); } - - public V1JobStatusBuilder( - V1JobStatusFluent fluent, V1JobStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JobStatusBuilder(V1JobStatusFluent fluent,V1JobStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withActive(instance.getActive()); fluent.withCompletedIndexes(instance.getCompletedIndexes()); @@ -57,15 +38,13 @@ public V1JobStatusBuilder( fluent.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JobStatusBuilder(V1JobStatus instance) { - this(instance, false); + this(instance,false); } - - public V1JobStatusBuilder(V1JobStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1JobStatusBuilder(V1JobStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withActive(instance.getActive()); this.withCompletedIndexes(instance.getCompletedIndexes()); @@ -84,12 +63,10 @@ public V1JobStatusBuilder(V1JobStatus instance, Boolean validationEnabled) { this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JobStatusFluent fluent; Boolean validationEnabled; - public V1JobStatus build() { V1JobStatus buildable = new V1JobStatus(); buildable.setActive(fluent.getActive()); @@ -103,4 +80,5 @@ public V1JobStatus build() { buildable.setUncountedTerminatedPods(fluent.getUncountedTerminatedPods()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java index bef2b884f0..269bc95a24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java @@ -1,162 +1,98 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1JobStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1JobStatusFluent> extends Fluent{ public Integer getActive(); - public A withActive(Integer active); - public Boolean hasActive(); - public String getCompletedIndexes(); - public A withCompletedIndexes(String completedIndexes); - public Boolean hasCompletedIndexes(); - public OffsetDateTime getCompletionTime(); - public A withCompletionTime(OffsetDateTime completionTime); - public Boolean hasCompletionTime(); - - public A addToConditions(Integer index, V1JobCondition item); - - public A setToConditions(Integer index, V1JobCondition item); - + public A addToConditions(Integer index,V1JobCondition item); + public A setToConditions(Integer index,V1JobCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1JobCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1JobCondition buildCondition(Integer index); - public V1JobCondition buildFirstCondition(); - public V1JobCondition buildLastCondition(); - public V1JobCondition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... conditions); - public Boolean hasConditions(); - public V1JobStatusFluent.ConditionsNested addNewCondition(); - public V1JobStatusFluent.ConditionsNested addNewConditionLike(V1JobCondition item); - - public V1JobStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1JobCondition item); - + public V1JobStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1JobCondition item); public V1JobStatusFluent.ConditionsNested editCondition(Integer index); - public V1JobStatusFluent.ConditionsNested editFirstCondition(); - public V1JobStatusFluent.ConditionsNested editLastCondition(); - - public V1JobStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1JobStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Integer getFailed(); - public A withFailed(Integer failed); - public Boolean hasFailed(); - public Integer getReady(); - public A withReady(Integer ready); - public Boolean hasReady(); - public OffsetDateTime getStartTime(); - public A withStartTime(OffsetDateTime startTime); - public Boolean hasStartTime(); - public Integer getSucceeded(); - public A withSucceeded(Integer succeeded); - public Boolean hasSucceeded(); - + /** * This method has been deprecated, please use method buildUncountedTerminatedPods instead. - * * @return The buildable object. */ @Deprecated public V1UncountedTerminatedPods getUncountedTerminatedPods(); - public V1UncountedTerminatedPods buildUncountedTerminatedPods(); - public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods); - public Boolean hasUncountedTerminatedPods(); - public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPods(); - - public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike( - V1UncountedTerminatedPods item); - + public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item); public V1JobStatusFluent.UncountedTerminatedPodsNested editUncountedTerminatedPods(); - public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods(); - - public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike( - V1UncountedTerminatedPods item); - - public interface ConditionsNested - extends Nested, V1JobConditionFluent> { + public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item); + public interface ConditionsNested extends Nested,V1JobConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface UncountedTerminatedPodsNested - extends Nested, - V1UncountedTerminatedPodsFluent> { + public interface UncountedTerminatedPodsNested extends Nested,V1UncountedTerminatedPodsFluent>{ public N and(); - public N endUncountedTerminatedPods(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java index a32ea381cf..d22e28229c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java @@ -1,32 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JobStatusFluentImpl> extends BaseFluent - implements V1JobStatusFluent { - public V1JobStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.time.OffsetDateTime; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JobStatusFluentImpl> extends BaseFluent implements V1JobStatusFluent{ + public V1JobStatusFluentImpl() { + } public V1JobStatusFluentImpl(V1JobStatus instance) { this.withActive(instance.getActive()); @@ -45,8 +41,8 @@ public V1JobStatusFluentImpl(V1JobStatus instance) { this.withSucceeded(instance.getSucceeded()); this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); - } + } private Integer active; private String completedIndexes; private OffsetDateTime completionTime; @@ -56,122 +52,58 @@ public V1JobStatusFluentImpl(V1JobStatus instance) { private OffsetDateTime startTime; private Integer succeeded; private V1UncountedTerminatedPodsBuilder uncountedTerminatedPods; - public Integer getActive() { return this.active; } - public A withActive(Integer active) { - this.active = active; - return (A) this; + this.active=active; return (A) this; } - public Boolean hasActive() { return this.active != null; } - public String getCompletedIndexes() { return this.completedIndexes; } - public A withCompletedIndexes(String completedIndexes) { - this.completedIndexes = completedIndexes; - return (A) this; + this.completedIndexes=completedIndexes; return (A) this; } - public Boolean hasCompletedIndexes() { return this.completedIndexes != null; } - public OffsetDateTime getCompletionTime() { return this.completionTime; } - public A withCompletionTime(OffsetDateTime completionTime) { - this.completionTime = completionTime; - return (A) this; + this.completionTime=completionTime; return (A) this; } - public Boolean hasCompletionTime() { return this.completionTime != null; } - - public A addToConditions(Integer index, V1JobCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1JobConditionBuilder builder = new V1JobConditionBuilder(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 addToConditions(Integer index,V1JobCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1JobConditionBuilder builder = new V1JobConditionBuilder(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(Integer index, V1JobCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1JobCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1JobConditionBuilder builder = new V1JobConditionBuilder(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; + 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.V1JobCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(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 ArrayList(); - } - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(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(); @@ -183,363 +115,213 @@ public A removeMatchingFromConditions(Predicate predicate each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1JobCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1JobCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1JobCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1JobCondition buildMatchingCondition(Predicate predicate) { - for (V1JobConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1JobConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1JobConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1JobConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1JobCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1JobCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1JobCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1JobCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1JobStatusFluent.ConditionsNested addNewCondition() { return new V1JobStatusFluentImpl.ConditionsNestedImpl(); } - public V1JobStatusFluent.ConditionsNested addNewConditionLike(V1JobCondition item) { return new V1JobStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1JobStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1JobCondition item) { + public V1JobStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1JobCondition item) { return new V1JobStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1JobStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1JobStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1JobStatusFluent.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 V1JobStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1JobStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewUncountedTerminatedPods() { return new V1JobStatusFluentImpl.UncountedTerminatedPodsNestedImpl(); } - - public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike( - V1UncountedTerminatedPods item) { + public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { return new V1JobStatusFluentImpl.UncountedTerminatedPodsNestedImpl(item); } - public V1JobStatusFluent.UncountedTerminatedPodsNested editUncountedTerminatedPods() { return withNewUncountedTerminatedPodsLike(getUncountedTerminatedPods()); } - public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods() { - return withNewUncountedTerminatedPodsLike( - getUncountedTerminatedPods() != null - ? getUncountedTerminatedPods() - : new V1UncountedTerminatedPodsBuilder().build()); + return withNewUncountedTerminatedPodsLike(getUncountedTerminatedPods() != null ? getUncountedTerminatedPods(): new V1UncountedTerminatedPodsBuilder().build()); } - - public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike( - V1UncountedTerminatedPods item) { - return withNewUncountedTerminatedPodsLike( - getUncountedTerminatedPods() != null ? getUncountedTerminatedPods() : item); + public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { + return withNewUncountedTerminatedPodsLike(getUncountedTerminatedPods() != null ? getUncountedTerminatedPods(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JobStatusFluentImpl that = (V1JobStatusFluentImpl) o; - if (active != null ? !active.equals(that.active) : that.active != null) return false; - if (completedIndexes != null - ? !completedIndexes.equals(that.completedIndexes) - : that.completedIndexes != null) return false; - if (completionTime != null - ? !completionTime.equals(that.completionTime) - : that.completionTime != null) return false; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (failed != null ? !failed.equals(that.failed) : that.failed != null) return false; - if (ready != null ? !ready.equals(that.ready) : that.ready != null) return false; - if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) - return false; - if (succeeded != null ? !succeeded.equals(that.succeeded) : that.succeeded != null) - return false; - if (uncountedTerminatedPods != null - ? !uncountedTerminatedPods.equals(that.uncountedTerminatedPods) - : that.uncountedTerminatedPods != null) return false; + if (active != null ? !active.equals(that.active) :that.active != null) return false; + if (completedIndexes != null ? !completedIndexes.equals(that.completedIndexes) :that.completedIndexes != null) return false; + if (completionTime != null ? !completionTime.equals(that.completionTime) :that.completionTime != null) return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (failed != null ? !failed.equals(that.failed) :that.failed != null) return false; + if (ready != null ? !ready.equals(that.ready) :that.ready != null) return false; + if (startTime != null ? !startTime.equals(that.startTime) :that.startTime != null) return false; + if (succeeded != null ? !succeeded.equals(that.succeeded) :that.succeeded != null) return false; + if (uncountedTerminatedPods != null ? !uncountedTerminatedPods.equals(that.uncountedTerminatedPods) :that.uncountedTerminatedPods != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - active, - completedIndexes, - completionTime, - conditions, - failed, - ready, - startTime, - succeeded, - uncountedTerminatedPods, - super.hashCode()); + return java.util.Objects.hash(active, completedIndexes, completionTime, conditions, failed, ready, startTime, succeeded, uncountedTerminatedPods, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (active != null) { - sb.append("active:"); - sb.append(active + ","); - } - if (completedIndexes != null) { - sb.append("completedIndexes:"); - sb.append(completedIndexes + ","); - } - if (completionTime != null) { - sb.append("completionTime:"); - sb.append(completionTime + ","); - } - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (failed != null) { - sb.append("failed:"); - sb.append(failed + ","); - } - if (ready != null) { - sb.append("ready:"); - sb.append(ready + ","); - } - if (startTime != null) { - sb.append("startTime:"); - sb.append(startTime + ","); - } - if (succeeded != null) { - sb.append("succeeded:"); - sb.append(succeeded + ","); - } - if (uncountedTerminatedPods != null) { - sb.append("uncountedTerminatedPods:"); - sb.append(uncountedTerminatedPods); - } + if (active != null) { sb.append("active:"); sb.append(active + ","); } + if (completedIndexes != null) { sb.append("completedIndexes:"); sb.append(completedIndexes + ","); } + if (completionTime != null) { sb.append("completionTime:"); sb.append(completionTime + ","); } + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (failed != null) { sb.append("failed:"); sb.append(failed + ","); } + if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } + if (startTime != null) { sb.append("startTime:"); sb.append(startTime + ","); } + if (succeeded != null) { sb.append("succeeded:"); sb.append(succeeded + ","); } + if (uncountedTerminatedPods != null) { sb.append("uncountedTerminatedPods:"); sb.append(uncountedTerminatedPods); } sb.append("}"); return sb.toString(); } - - class ConditionsNestedImpl - extends V1JobConditionFluentImpl> - implements V1JobStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1JobCondition item) { + class ConditionsNestedImpl extends V1JobConditionFluentImpl> implements V1JobStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1JobCondition item) { this.index = index; this.builder = new V1JobConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1JobConditionBuilder(this); } - V1JobConditionBuilder builder; Integer index; - public N and() { - return (N) V1JobStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1JobStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class UncountedTerminatedPodsNestedImpl - extends V1UncountedTerminatedPodsFluentImpl< - V1JobStatusFluent.UncountedTerminatedPodsNested> - implements V1JobStatusFluent.UncountedTerminatedPodsNested, Nested { + class UncountedTerminatedPodsNestedImpl extends V1UncountedTerminatedPodsFluentImpl> implements V1JobStatusFluent.UncountedTerminatedPodsNested,Nested{ UncountedTerminatedPodsNestedImpl(V1UncountedTerminatedPods item) { this.builder = new V1UncountedTerminatedPodsBuilder(this, item); } - UncountedTerminatedPodsNestedImpl() { this.builder = new V1UncountedTerminatedPodsBuilder(this); } - V1UncountedTerminatedPodsBuilder builder; - public N and() { return (N) V1JobStatusFluentImpl.this.withUncountedTerminatedPods(builder.build()); } - public N endUncountedTerminatedPods() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java index f3d6d022d8..74ea182e94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1JobTemplateSpecBuilder extends V1JobTemplateSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1JobTemplateSpecBuilder extends V1JobTemplateSpecFluentImpl implements VisitableBuilder{ public V1JobTemplateSpecBuilder() { this(false); } - public V1JobTemplateSpecBuilder(Boolean validationEnabled) { this(new V1JobTemplateSpec(), validationEnabled); } - public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent) { this(fluent, false); } - - public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent, Boolean validationEnabled) { + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1JobTemplateSpec(), validationEnabled); } - - public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent, V1JobTemplateSpec instance) { + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,V1JobTemplateSpec instance) { this(fluent, instance, false); } - - public V1JobTemplateSpecBuilder( - V1JobTemplateSpecFluent fluent, V1JobTemplateSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,V1JobTemplateSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance) { - this(instance, false); + this(instance,false); } - - public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1JobTemplateSpecFluent fluent; Boolean validationEnabled; - public V1JobTemplateSpec build() { V1JobTemplateSpec buildable = new V1JobTemplateSpec(); buildable.setMetadata(fluent.getMetadata()); buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java index d5fe7e8a9c..cee013dc45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java @@ -1,82 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1JobTemplateSpecFluent> extends Fluent { - + /** + * Generated + */ +public interface V1JobTemplateSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1JobTemplateSpecFluent.MetadataNested withNewMetadata(); - public V1JobTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1JobTemplateSpecFluent.MetadataNested editMetadata(); - public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadata(); - public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1JobSpec getSpec(); - public V1JobSpec buildSpec(); - public A withSpec(V1JobSpec spec); - public Boolean hasSpec(); - public V1JobTemplateSpecFluent.SpecNested withNewSpec(); - public V1JobTemplateSpecFluent.SpecNested withNewSpecLike(V1JobSpec item); - public V1JobTemplateSpecFluent.SpecNested editSpec(); - public V1JobTemplateSpecFluent.SpecNested editOrNewSpec(); - public V1JobTemplateSpecFluent.SpecNested editOrNewSpecLike(V1JobSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1JobSpecFluent> { + public interface SpecNested extends Nested,V1JobSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java index 91adc93e36..4ae99f5d24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java @@ -1,204 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1JobTemplateSpecFluentImpl> extends BaseFluent - implements V1JobTemplateSpecFluent { - public V1JobTemplateSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1JobTemplateSpecFluentImpl> extends BaseFluent implements V1JobTemplateSpecFluent{ + public V1JobTemplateSpecFluentImpl() { + } public V1JobTemplateSpecFluentImpl(V1JobTemplateSpec instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private V1ObjectMetaBuilder metadata; private V1JobSpecBuilder spec; - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1JobTemplateSpecFluent.MetadataNested withNewMetadata() { return new V1JobTemplateSpecFluentImpl.MetadataNestedImpl(); } - public V1JobTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1JobTemplateSpecFluentImpl.MetadataNestedImpl(item); } - public V1JobTemplateSpecFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1JobSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1JobSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1JobSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1JobSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1JobTemplateSpecFluent.SpecNested withNewSpec() { return new V1JobTemplateSpecFluentImpl.SpecNestedImpl(); } - public V1JobTemplateSpecFluent.SpecNested withNewSpecLike(V1JobSpec item) { return new V1JobTemplateSpecFluentImpl.SpecNestedImpl(item); } - public V1JobTemplateSpecFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1JobTemplateSpecFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1JobSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1JobSpecBuilder().build()); } - public V1JobTemplateSpecFluent.SpecNested editOrNewSpecLike(V1JobSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JobTemplateSpecFluentImpl that = (V1JobTemplateSpecFluentImpl) o; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return java.util.Objects.hash(metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1JobTemplateSpecFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1JobTemplateSpecFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1JobTemplateSpecFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1JobSpecFluentImpl> - implements V1JobTemplateSpecFluent.SpecNested, Nested { + class SpecNestedImpl extends V1JobSpecFluentImpl> implements V1JobTemplateSpecFluent.SpecNested,Nested{ SpecNestedImpl(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1JobSpecBuilder(this); } - V1JobSpecBuilder builder; - public N and() { return (N) V1JobTemplateSpecFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java index 65cb68c7fc..ef77a49beb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1KeyToPathBuilder extends V1KeyToPathFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1KeyToPathBuilder extends V1KeyToPathFluentImpl implements VisitableBuilder{ public V1KeyToPathBuilder() { this(false); } - public V1KeyToPathBuilder(Boolean validationEnabled) { this(new V1KeyToPath(), validationEnabled); } - public V1KeyToPathBuilder(V1KeyToPathFluent fluent) { this(fluent, false); } - - public V1KeyToPathBuilder(V1KeyToPathFluent fluent, Boolean validationEnabled) { + public V1KeyToPathBuilder(V1KeyToPathFluent fluent,Boolean validationEnabled) { this(fluent, new V1KeyToPath(), validationEnabled); } - - public V1KeyToPathBuilder(V1KeyToPathFluent fluent, V1KeyToPath instance) { + public V1KeyToPathBuilder(V1KeyToPathFluent fluent,V1KeyToPath instance) { this(fluent, instance, false); } - - public V1KeyToPathBuilder( - V1KeyToPathFluent fluent, V1KeyToPath instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1KeyToPathBuilder(V1KeyToPathFluent fluent,V1KeyToPath instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKey(instance.getKey()); fluent.withMode(instance.getMode()); fluent.withPath(instance.getPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1KeyToPathBuilder(V1KeyToPath instance) { - this(instance, false); + this(instance,false); } - - public V1KeyToPathBuilder(V1KeyToPath instance, Boolean validationEnabled) { - this.fluent = this; + public V1KeyToPathBuilder(V1KeyToPath instance,Boolean validationEnabled) { + this.fluent = this; this.withKey(instance.getKey()); this.withMode(instance.getMode()); this.withPath(instance.getPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1KeyToPathFluent fluent; Boolean validationEnabled; - public V1KeyToPath build() { V1KeyToPath buildable = new V1KeyToPath(); buildable.setKey(fluent.getKey()); @@ -73,4 +50,5 @@ public V1KeyToPath build() { buildable.setPath(fluent.getPath()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java index 8b67b8db30..1cd8a7ee01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java @@ -1,36 +1,22 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1KeyToPathFluent> extends Fluent { + /** + * Generated + */ +public interface V1KeyToPathFluent> extends Fluent{ public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public Integer getMode(); - public A withMode(Integer mode); - public Boolean hasMode(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java index 643090a84b..d9531cfdb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java @@ -1,106 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1KeyToPathFluentImpl> extends BaseFluent - implements V1KeyToPathFluent { - public V1KeyToPathFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1KeyToPathFluentImpl> extends BaseFluent implements V1KeyToPathFluent{ + public V1KeyToPathFluentImpl() { + } public V1KeyToPathFluentImpl(V1KeyToPath instance) { this.withKey(instance.getKey()); this.withMode(instance.getMode()); this.withPath(instance.getPath()); - } + } private String key; private Integer mode; private String path; - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public Integer getMode() { return this.mode; } - public A withMode(Integer mode) { - this.mode = mode; - return (A) this; + this.mode=mode; return (A) this; } - public Boolean hasMode() { return this.mode != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1KeyToPathFluentImpl that = (V1KeyToPathFluentImpl) o; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (mode != null ? !mode.equals(that.mode) : that.mode != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (mode != null ? !mode.equals(that.mode) :that.mode != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(key, mode, path, super.hashCode()); + return java.util.Objects.hash(key, mode, path, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (mode != null) { - sb.append("mode:"); - sb.append(mode + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path); - } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (mode != null) { sb.append("mode:"); sb.append(mode + ","); } + if (path != null) { sb.append("path:"); sb.append(path); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java index 5451e41bff..7d455b58f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1LabelSelectorBuilder extends V1LabelSelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LabelSelectorBuilder extends V1LabelSelectorFluentImpl implements VisitableBuilder{ public V1LabelSelectorBuilder() { this(false); } - public V1LabelSelectorBuilder(Boolean validationEnabled) { this(new V1LabelSelector(), validationEnabled); } - public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent) { this(fluent, false); } - - public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent, Boolean validationEnabled) { + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1LabelSelector(), validationEnabled); } - - public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent, V1LabelSelector instance) { + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,V1LabelSelector instance) { this(fluent, instance, false); } - - public V1LabelSelectorBuilder( - V1LabelSelectorFluent fluent, V1LabelSelector instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,V1LabelSelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMatchExpressions(instance.getMatchExpressions()); fluent.withMatchLabels(instance.getMatchLabels()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LabelSelectorBuilder(V1LabelSelector instance) { - this(instance, false); + this(instance,false); } - - public V1LabelSelectorBuilder(V1LabelSelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1LabelSelectorBuilder(V1LabelSelector instance,Boolean validationEnabled) { + this.fluent = this; this.withMatchExpressions(instance.getMatchExpressions()); this.withMatchLabels(instance.getMatchLabels()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LabelSelectorFluent fluent; Boolean validationEnabled; - public V1LabelSelector build() { V1LabelSelector buildable = new V1LabelSelector(); buildable.setMatchExpressions(fluent.getMatchExpressions()); buildable.setMatchLabels(fluent.getMatchLabels()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java index ec82cd45d2..e7918cb6de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java @@ -1,107 +1,65 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1LabelSelectorFluent> extends Fluent { - public A addToMatchExpressions(Integer index, V1LabelSelectorRequirement item); - - public A setToMatchExpressions(Integer index, V1LabelSelectorRequirement item); - - public A addToMatchExpressions( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items); + /** + * Generated + */ +public interface V1LabelSelectorFluent> extends Fluent{ + public A addToMatchExpressions(Integer index,V1LabelSelectorRequirement item); + public A setToMatchExpressions(Integer index,V1LabelSelectorRequirement item); + public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items); public A addAllToMatchExpressions(Collection items); - - public A removeFromMatchExpressions( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items); - + public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items); public A removeAllFromMatchExpressions(Collection items); - - public A removeMatchingFromMatchExpressions( - Predicate predicate); - + public A removeMatchingFromMatchExpressions(Predicate predicate); + /** * This method has been deprecated, please use method buildMatchExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchExpressions(); - public List buildMatchExpressions(); - public V1LabelSelectorRequirement buildMatchExpression(Integer index); - public V1LabelSelectorRequirement buildFirstMatchExpression(); - public V1LabelSelectorRequirement buildLastMatchExpression(); - - public V1LabelSelectorRequirement buildMatchingMatchExpression( - Predicate predicate); - + public V1LabelSelectorRequirement buildMatchingMatchExpression(Predicate predicate); public Boolean hasMatchingMatchExpression(Predicate predicate); - public A withMatchExpressions(List matchExpressions); - - public A withMatchExpressions( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions); - + public A withMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions); public Boolean hasMatchExpressions(); - public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpression(); - - public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( - V1LabelSelectorRequirement item); - - public V1LabelSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( - Integer index, V1LabelSelectorRequirement item); - + public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item); + public V1LabelSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike(Integer index,V1LabelSelectorRequirement item); public V1LabelSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index); - public V1LabelSelectorFluent.MatchExpressionsNested editFirstMatchExpression(); - public V1LabelSelectorFluent.MatchExpressionsNested editLastMatchExpression(); - - public V1LabelSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( - Predicate predicate); - - public A addToMatchLabels(String key, String value); - - public A addToMatchLabels(Map map); - + public V1LabelSelectorFluent.MatchExpressionsNested editMatchingMatchExpression(Predicate predicate); + public A addToMatchLabels(String key,String value); + public A addToMatchLabels(Map map); public A removeFromMatchLabels(String key); - - public A removeFromMatchLabels(Map map); - - public Map getMatchLabels(); - - public A withMatchLabels(Map matchLabels); - + public A removeFromMatchLabels(Map map); + public Map getMatchLabels(); + public A withMatchLabels(Map matchLabels); public Boolean hasMatchLabels(); - - public interface MatchExpressionsNested - extends Nested, - V1LabelSelectorRequirementFluent> { + public interface MatchExpressionsNested extends Nested,V1LabelSelectorRequirementFluent>{ public N and(); - public N endMatchExpression(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java index 3c9dd1b930..68d0c37489 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java @@ -1,122 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LabelSelectorFluentImpl> extends BaseFluent - implements V1LabelSelectorFluent { - public V1LabelSelectorFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LabelSelectorFluentImpl> extends BaseFluent implements V1LabelSelectorFluent{ + public V1LabelSelectorFluentImpl() { + } public V1LabelSelectorFluentImpl(V1LabelSelector instance) { this.withMatchExpressions(instance.getMatchExpressions()); this.withMatchLabels(instance.getMatchLabels()); - } + } private ArrayList matchExpressions; - private Map matchLabels; - - public A addToMatchExpressions(Integer index, V1LabelSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables - .get("matchExpressions") - .add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder); - this.matchExpressions.add(index >= 0 ? index : matchExpressions.size(), builder); - return (A) this; + private Map matchLabels; + public A addToMatchExpressions(Integer index,V1LabelSelectorRequirement item) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder);this.matchExpressions.add(index >= 0 ? index : matchExpressions.size(), builder); return (A)this; } - - public A setToMatchExpressions(Integer index, V1LabelSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } + public A setToMatchExpressions(Integer index,V1LabelSelectorRequirement item) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= _visitables.get("matchExpressions").size()) { - _visitables.get("matchExpressions").add(builder); - } else { - _visitables.get("matchExpressions").set(index, builder); - } - if (index < 0 || index >= matchExpressions.size()) { - matchExpressions.add(builder); - } else { - matchExpressions.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("matchExpressions").size()) { _visitables.get("matchExpressions").add(builder); } else { _visitables.get("matchExpressions").set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { matchExpressions.add(builder); } else { matchExpressions.set(index, builder);} + return (A)this; } - - public A addToMatchExpressions( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; + public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; } - public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; } - - public A removeFromMatchExpressions( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - if (this.matchExpressions != null) { - this.matchExpressions.remove(builder); - } - } - return (A) this; + public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder);if (this.matchExpressions != null) {this.matchExpressions.remove(builder);}} return (A)this; } - public A removeAllFromMatchExpressions(Collection items) { - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - if (this.matchExpressions != null) { - this.matchExpressions.remove(builder); - } - } - return (A) this; + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder);if (this.matchExpressions != null) {this.matchExpressions.remove(builder);}} return (A)this; } - - public A removeMatchingFromMatchExpressions( - Predicate predicate) { + public A removeMatchingFromMatchExpressions(Predicate predicate) { if (matchExpressions == null) return (A) this; final Iterator each = matchExpressions.iterator(); final List visitables = _visitables.get("matchExpressions"); @@ -127,248 +68,138 @@ public A removeMatchingFromMatchExpressions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildMatchExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public List buildMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public V1LabelSelectorRequirement buildMatchExpression(Integer index) { return this.matchExpressions.get(index).build(); } - public V1LabelSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } - public V1LabelSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - - public V1LabelSelectorRequirement buildMatchingMatchExpression( - Predicate predicate) { - for (V1LabelSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1LabelSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item: matchExpressions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingMatchExpression( - Predicate predicate) { - for (V1LabelSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item: matchExpressions) { if(predicate.test(item)){ return true;} } return false; } - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - _visitables.get("matchExpressions").removeAll(this.matchExpressions); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1LabelSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; - } - return (A) this; + if (this.matchExpressions != null) { _visitables.get("matchExpressions").removeAll(this.matchExpressions);} + if (matchExpressions != null) {this.matchExpressions = new ArrayList(); for (V1LabelSelectorRequirement item : matchExpressions){this.addToMatchExpressions(item);}} else { this.matchExpressions = null;} return (A) this; } - - public A withMatchExpressions( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - } - if (matchExpressions != null) { - for (V1LabelSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } - return (A) this; + public A withMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) {this.matchExpressions.clear();} + if (matchExpressions != null) {for (V1LabelSelectorRequirement item :matchExpressions){ this.addToMatchExpressions(item);}} return (A) this; } - public Boolean hasMatchExpressions() { return matchExpressions != null && !matchExpressions.isEmpty(); } - public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpression() { return new V1LabelSelectorFluentImpl.MatchExpressionsNestedImpl(); } - - public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( - V1LabelSelectorRequirement item) { + public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item) { return new V1LabelSelectorFluentImpl.MatchExpressionsNestedImpl(-1, item); } - - public V1LabelSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( - Integer index, V1LabelSelectorRequirement item) { + public V1LabelSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike(Integer index,V1LabelSelectorRequirement item) { return new V1LabelSelectorFluentImpl.MatchExpressionsNestedImpl(index, item); } - public V1LabelSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index) { - if (matchExpressions.size() <= index) - throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); + if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public V1LabelSelectorFluent.MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) - throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); + if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); return setNewMatchExpressionLike(0, buildMatchExpression(0)); } - public V1LabelSelectorFluent.MatchExpressionsNested editLastMatchExpression() { int index = matchExpressions.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - - public V1LabelSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( - Predicate predicate) { + public V1LabelSelectorFluent.MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; - for (int i = 0; i < matchExpressions.size(); i++) { - if (predicate.test(matchExpressions.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching matchExpressions. No match found."); + for (int i=0;i map) { - if (this.matchLabels == null && map != null) { - this.matchLabels = new LinkedHashMap(); - } - if (map != null) { - this.matchLabels.putAll(map); - } - return (A) this; + public A addToMatchLabels(Map map) { + if(this.matchLabels == null && map != null) { this.matchLabels = new LinkedHashMap(); } + if(map != null) { this.matchLabels.putAll(map);} return (A)this; } - public A removeFromMatchLabels(String key) { - if (this.matchLabels == null) { - return (A) this; - } - if (key != null && this.matchLabels != null) { - this.matchLabels.remove(key); - } - return (A) this; + if(this.matchLabels == null) { return (A) this; } + if(key != null && this.matchLabels != null) {this.matchLabels.remove(key);} return (A)this; } - - public A removeFromMatchLabels(Map map) { - if (this.matchLabels == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.matchLabels != null) { - this.matchLabels.remove(key); - } - } - } - return (A) this; + public A removeFromMatchLabels(Map map) { + if(this.matchLabels == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.matchLabels != null){this.matchLabels.remove(key);}}} return (A)this; } - - public Map getMatchLabels() { + public Map getMatchLabels() { return this.matchLabels; } - - public A withMatchLabels(Map matchLabels) { - if (matchLabels == null) { - this.matchLabels = null; - } else { - this.matchLabels = new LinkedHashMap(matchLabels); - } - return (A) this; + public A withMatchLabels(Map matchLabels) { + if (matchLabels == null) { this.matchLabels = null;} else {this.matchLabels = new LinkedHashMap(matchLabels);} return (A) this; } - public Boolean hasMatchLabels() { return this.matchLabels != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LabelSelectorFluentImpl that = (V1LabelSelectorFluentImpl) o; - if (matchExpressions != null - ? !matchExpressions.equals(that.matchExpressions) - : that.matchExpressions != null) return false; - if (matchLabels != null ? !matchLabels.equals(that.matchLabels) : that.matchLabels != null) - return false; + if (matchExpressions != null ? !matchExpressions.equals(that.matchExpressions) :that.matchExpressions != null) return false; + if (matchLabels != null ? !matchLabels.equals(that.matchLabels) :that.matchLabels != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(matchExpressions, matchLabels, super.hashCode()); + return java.util.Objects.hash(matchExpressions, matchLabels, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchExpressions != null && !matchExpressions.isEmpty()) { - sb.append("matchExpressions:"); - sb.append(matchExpressions + ","); - } - if (matchLabels != null && !matchLabels.isEmpty()) { - sb.append("matchLabels:"); - sb.append(matchLabels); - } + if (matchExpressions != null && !matchExpressions.isEmpty()) { sb.append("matchExpressions:"); sb.append(matchExpressions + ","); } + if (matchLabels != null && !matchLabels.isEmpty()) { sb.append("matchLabels:"); sb.append(matchLabels); } sb.append("}"); return sb.toString(); } - - class MatchExpressionsNestedImpl - extends V1LabelSelectorRequirementFluentImpl> - implements V1LabelSelectorFluent.MatchExpressionsNested, Nested { - MatchExpressionsNestedImpl(Integer index, V1LabelSelectorRequirement item) { + class MatchExpressionsNestedImpl extends V1LabelSelectorRequirementFluentImpl> implements V1LabelSelectorFluent.MatchExpressionsNested,Nested{ + MatchExpressionsNestedImpl(Integer index,V1LabelSelectorRequirement item) { this.index = index; this.builder = new V1LabelSelectorRequirementBuilder(this, item); } - MatchExpressionsNestedImpl() { this.index = -1; this.builder = new V1LabelSelectorRequirementBuilder(this); } - V1LabelSelectorRequirementBuilder builder; Integer index; - public N and() { - return (N) V1LabelSelectorFluentImpl.this.setToMatchExpressions(index, builder.build()); + return (N) V1LabelSelectorFluentImpl.this.setToMatchExpressions(index,builder.build()); } - public N endMatchExpression() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java index 60b1e73a70..3954b9dee4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1LabelSelectorRequirementBuilder - extends V1LabelSelectorRequirementFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LabelSelectorRequirementBuilder extends V1LabelSelectorRequirementFluentImpl implements VisitableBuilder{ public V1LabelSelectorRequirementBuilder() { this(false); } - public V1LabelSelectorRequirementBuilder(Boolean validationEnabled) { this(new V1LabelSelectorRequirement(), validationEnabled); } - public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent) { this(fluent, false); } - - public V1LabelSelectorRequirementBuilder( - V1LabelSelectorRequirementFluent fluent, Boolean validationEnabled) { + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,Boolean validationEnabled) { this(fluent, new V1LabelSelectorRequirement(), validationEnabled); } - - public V1LabelSelectorRequirementBuilder( - V1LabelSelectorRequirementFluent fluent, V1LabelSelectorRequirement instance) { + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,V1LabelSelectorRequirement instance) { this(fluent, instance, false); } - - public V1LabelSelectorRequirementBuilder( - V1LabelSelectorRequirementFluent fluent, - V1LabelSelectorRequirement instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,V1LabelSelectorRequirement instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKey(instance.getKey()); fluent.withOperator(instance.getOperator()); fluent.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirement instance) { - this(instance, false); + this(instance,false); } - - public V1LabelSelectorRequirementBuilder( - V1LabelSelectorRequirement instance, Boolean validationEnabled) { - this.fluent = this; + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirement instance,Boolean validationEnabled) { + this.fluent = this; this.withKey(instance.getKey()); this.withOperator(instance.getOperator()); this.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LabelSelectorRequirementFluent fluent; Boolean validationEnabled; - public V1LabelSelectorRequirement build() { V1LabelSelectorRequirement buildable = new V1LabelSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -79,4 +50,5 @@ public V1LabelSelectorRequirement build() { buildable.setValues(fluent.getValues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java index 1e3b231a5c..93641f6671 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java @@ -1,64 +1,38 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1LabelSelectorRequirementFluent> - extends Fluent { + /** + * Generated + */ +public interface V1LabelSelectorRequirementFluent> extends Fluent{ public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public String getOperator(); - public A withOperator(String operator); - public Boolean hasOperator(); - - public A addToValues(Integer index, String item); - - public A setToValues(Integer index, String item); - + public A addToValues(Integer index,String item); + public A setToValues(Integer index,String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); - public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(Collection items); - public List getValues(); - public String getValue(Integer index); - public String getFirstValue(); - public String getLastValue(); - public String getMatchingValue(Predicate predicate); - public Boolean hasMatchingValue(Predicate predicate); - public A withValues(List values); - public A withValues(java.lang.String... values); - public Boolean hasValues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java index e2b13592fb..6d23c3ec5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java @@ -1,213 +1,123 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LabelSelectorRequirementFluentImpl> - extends BaseFluent implements V1LabelSelectorRequirementFluent { - public V1LabelSelectorRequirementFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LabelSelectorRequirementFluentImpl> extends BaseFluent implements V1LabelSelectorRequirementFluent{ + public V1LabelSelectorRequirementFluentImpl() { + } public V1LabelSelectorRequirementFluentImpl(V1LabelSelectorRequirement instance) { this.withKey(instance.getKey()); this.withOperator(instance.getOperator()); this.withValues(instance.getValues()); - } + } private String key; private String operator; private List values; - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + this.operator=operator; return (A) this; } - public Boolean hasOperator() { return this.operator != null; } - - public A addToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } + public A addToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} this.values.add(index, item); - return (A) this; + return (A)this; } - - public A setToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } - this.values.set(index, item); - return (A) this; + public A setToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.set(index, item); return (A)this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A addAllToValues(Collection items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A removeFromValues(java.lang.String... items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public A removeAllFromValues(Collection items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public List getValues() { return this.values; } - public String getValue(Integer index) { return this.values.get(index); } - public String getFirstValue() { return this.values.get(0); } - public String getLastValue() { return this.values.get(values.size() - 1); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: values) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: values) { if(predicate.test(item)){ return true;} } return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + if (values != null) {this.values = new ArrayList(); for (String item : values){this.addToValues(item);}} else { this.values = null;} return (A) this; } - public A withValues(java.lang.String... values) { - if (this.values != null) { - this.values.clear(); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + if (this.values != null) {this.values.clear();} + if (values != null) {for (String item :values){ this.addToValues(item);}} return (A) this; } - public Boolean hasValues() { return values != null && !values.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LabelSelectorRequirementFluentImpl that = (V1LabelSelectorRequirementFluentImpl) o; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (operator != null ? !operator.equals(that.operator) : that.operator != null) return false; - if (values != null ? !values.equals(that.values) : that.values != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (operator != null ? !operator.equals(that.operator) :that.operator != null) return false; + if (values != null ? !values.equals(that.values) :that.values != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(key, operator, values, super.hashCode()); + return java.util.Objects.hash(key, operator, values, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (operator != null) { - sb.append("operator:"); - sb.append(operator + ","); - } - if (values != null && !values.isEmpty()) { - sb.append("values:"); - sb.append(values); - } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java index 320d387071..85e17c0f87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LeaseBuilder extends V1LeaseFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LeaseBuilder extends V1LeaseFluentImpl implements VisitableBuilder{ public V1LeaseBuilder() { this(false); } - public V1LeaseBuilder(Boolean validationEnabled) { this(new V1Lease(), validationEnabled); } - public V1LeaseBuilder(V1LeaseFluent fluent) { this(fluent, false); } - - public V1LeaseBuilder(V1LeaseFluent fluent, Boolean validationEnabled) { + public V1LeaseBuilder(V1LeaseFluent fluent,Boolean validationEnabled) { this(fluent, new V1Lease(), validationEnabled); } - - public V1LeaseBuilder(V1LeaseFluent fluent, V1Lease instance) { + public V1LeaseBuilder(V1LeaseFluent fluent,V1Lease instance) { this(fluent, instance, false); } - - public V1LeaseBuilder(V1LeaseFluent fluent, V1Lease instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LeaseBuilder(V1LeaseFluent fluent,V1Lease instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -46,15 +28,13 @@ public V1LeaseBuilder(V1LeaseFluent fluent, V1Lease instance, Boolean validat fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LeaseBuilder(V1Lease instance) { - this(instance, false); + this(instance,false); } - - public V1LeaseBuilder(V1Lease instance, Boolean validationEnabled) { - this.fluent = this; + public V1LeaseBuilder(V1Lease instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -63,12 +43,10 @@ public V1LeaseBuilder(V1Lease instance, Boolean validationEnabled) { this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LeaseFluent fluent; Boolean validationEnabled; - public V1Lease build() { V1Lease buildable = new V1Lease(); buildable.setApiVersion(fluent.getApiVersion()); @@ -77,4 +55,5 @@ public V1Lease build() { buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java index 1d6396d62f..76cdba2bbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java @@ -1,92 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1LeaseFluent> extends Fluent { + /** + * Generated + */ +public interface V1LeaseFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1LeaseFluent.MetadataNested withNewMetadata(); - public V1LeaseFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1LeaseFluent.MetadataNested editMetadata(); - public V1LeaseFluent.MetadataNested editOrNewMetadata(); - public V1LeaseFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1LeaseSpec getSpec(); - public V1LeaseSpec buildSpec(); - public A withSpec(V1LeaseSpec spec); - public Boolean hasSpec(); - public V1LeaseFluent.SpecNested withNewSpec(); - public V1LeaseFluent.SpecNested withNewSpecLike(V1LeaseSpec item); - public V1LeaseFluent.SpecNested editSpec(); - public V1LeaseFluent.SpecNested editOrNewSpec(); - public V1LeaseFluent.SpecNested editOrNewSpecLike(V1LeaseSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested extends Nested, V1LeaseSpecFluent> { + public interface SpecNested extends Nested,V1LeaseSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java index 9e31d76754..861a87f05b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LeaseFluentImpl> extends BaseFluent - implements V1LeaseFluent { - public V1LeaseFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LeaseFluentImpl> extends BaseFluent implements V1LeaseFluent{ + public V1LeaseFluentImpl() { + } public V1LeaseFluentImpl(V1Lease instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,218 +23,152 @@ public V1LeaseFluentImpl(V1Lease instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1LeaseSpecBuilder spec; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1LeaseFluent.MetadataNested withNewMetadata() { return new V1LeaseFluentImpl.MetadataNestedImpl(); } - public V1LeaseFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1LeaseFluentImpl.MetadataNestedImpl(item); } - public V1LeaseFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1LeaseFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1LeaseFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1LeaseSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1LeaseSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1LeaseSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1LeaseSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1LeaseSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1LeaseFluent.SpecNested withNewSpec() { return new V1LeaseFluentImpl.SpecNestedImpl(); } - public V1LeaseFluent.SpecNested withNewSpecLike(V1LeaseSpec item) { return new V1LeaseFluentImpl.SpecNestedImpl(item); } - public V1LeaseFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1LeaseFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1LeaseSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1LeaseSpecBuilder().build()); } - public V1LeaseFluent.SpecNested editOrNewSpecLike(V1LeaseSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LeaseFluentImpl that = (V1LeaseFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1LeaseFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1LeaseFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1LeaseFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1LeaseSpecFluentImpl> - implements V1LeaseFluent.SpecNested, Nested { + class SpecNestedImpl extends V1LeaseSpecFluentImpl> implements V1LeaseFluent.SpecNested,Nested{ SpecNestedImpl(V1LeaseSpec item) { this.builder = new V1LeaseSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1LeaseSpecBuilder(this); } - V1LeaseSpecBuilder builder; - public N and() { return (N) V1LeaseFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java index cc43eed236..26fe3ecb1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LeaseListBuilder extends V1LeaseListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LeaseListBuilder extends V1LeaseListFluentImpl implements VisitableBuilder{ public V1LeaseListBuilder() { this(false); } - public V1LeaseListBuilder(Boolean validationEnabled) { this(new V1LeaseList(), validationEnabled); } - public V1LeaseListBuilder(V1LeaseListFluent fluent) { this(fluent, false); } - - public V1LeaseListBuilder(V1LeaseListFluent fluent, Boolean validationEnabled) { + public V1LeaseListBuilder(V1LeaseListFluent fluent,Boolean validationEnabled) { this(fluent, new V1LeaseList(), validationEnabled); } - - public V1LeaseListBuilder(V1LeaseListFluent fluent, V1LeaseList instance) { + public V1LeaseListBuilder(V1LeaseListFluent fluent,V1LeaseList instance) { this(fluent, instance, false); } - - public V1LeaseListBuilder( - V1LeaseListFluent fluent, V1LeaseList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LeaseListBuilder(V1LeaseListFluent fluent,V1LeaseList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1LeaseListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LeaseListBuilder(V1LeaseList instance) { - this(instance, false); + this(instance,false); } - - public V1LeaseListBuilder(V1LeaseList instance, Boolean validationEnabled) { - this.fluent = this; + public V1LeaseListBuilder(V1LeaseList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1LeaseListBuilder(V1LeaseList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LeaseListFluent fluent; Boolean validationEnabled; - public V1LeaseList build() { V1LeaseList buildable = new V1LeaseList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1LeaseList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java index d61b4a99c1..78a9769233 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1LeaseListFluent> extends Fluent { + /** + * Generated + */ +public interface V1LeaseListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Lease item); - - public A setToItems(Integer index, V1Lease item); - + public A addToItems(Integer index,V1Lease item); + public A setToItems(Integer index,V1Lease item); public A addToItems(io.kubernetes.client.openapi.models.V1Lease... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Lease buildItem(Integer index); - public V1Lease buildFirstItem(); - public V1Lease buildLastItem(); - public V1Lease buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Lease... items); - public Boolean hasItems(); - public V1LeaseListFluent.ItemsNested addNewItem(); - public V1LeaseListFluent.ItemsNested addNewItemLike(V1Lease item); - - public V1LeaseListFluent.ItemsNested setNewItemLike(Integer index, V1Lease item); - + public V1LeaseListFluent.ItemsNested setNewItemLike(Integer index,V1Lease item); public V1LeaseListFluent.ItemsNested editItem(Integer index); - public V1LeaseListFluent.ItemsNested editFirstItem(); - public V1LeaseListFluent.ItemsNested editLastItem(); - public V1LeaseListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1LeaseListFluent.MetadataNested withNewMetadata(); - public V1LeaseListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1LeaseListFluent.MetadataNested editMetadata(); - public V1LeaseListFluent.MetadataNested editOrNewMetadata(); - public V1LeaseListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1LeaseFluent> { + public interface ItemsNested extends Nested,V1LeaseFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java index 89b2df59da..143559f9a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LeaseListFluentImpl> extends BaseFluent - implements V1LeaseListFluent { - public V1LeaseListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LeaseListFluentImpl> extends BaseFluent implements V1LeaseListFluent{ + public V1LeaseListFluentImpl() { + } public V1LeaseListFluentImpl(V1LeaseList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1LeaseListFluentImpl(V1LeaseList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Lease item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Lease item) { + if (this.items == null) {this.items = new ArrayList();} + V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Lease item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Lease item) { + if (this.items == null) {this.items = new ArrayList();} V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Lease... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items) { - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,269 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Lease buildItem(Integer index) { return this.items.get(index).build(); } - public V1Lease buildFirstItem() { return this.items.get(0).build(); } - public V1Lease buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Lease buildMatchingItem(Predicate predicate) { - for (V1LeaseBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1LeaseBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1LeaseBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LeaseBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Lease item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Lease item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Lease... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Lease item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Lease item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1LeaseListFluent.ItemsNested addNewItem() { return new V1LeaseListFluentImpl.ItemsNestedImpl(); } - public V1LeaseListFluent.ItemsNested addNewItemLike(V1Lease item) { return new V1LeaseListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1LeaseListFluent.ItemsNested setNewItemLike(Integer index, V1Lease item) { + public V1LeaseListFluent.ItemsNested setNewItemLike(Integer index,V1Lease item) { return new V1LeaseListFluentImpl.ItemsNestedImpl(index, item); } - public V1LeaseListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1LeaseListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1LeaseListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - public V1LeaseListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1LeaseListFluentImpl.MetadataNestedImpl(); } - public V1LeaseListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1LeaseListFluentImpl.MetadataNestedImpl(item); } - public V1LeaseListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1LeaseListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1LeaseListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LeaseListFluentImpl that = (V1LeaseListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1LeaseFluentImpl> - implements V1LeaseListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Lease item) { + class ItemsNestedImpl extends V1LeaseFluentImpl> implements V1LeaseListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Lease item) { this.index = index; this.builder = new V1LeaseBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1LeaseBuilder(this); } - V1LeaseBuilder builder; Integer index; - public N and() { - return (N) V1LeaseListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1LeaseListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1LeaseListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1LeaseListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1LeaseListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java index a4135a8fb6..7445318b0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LeaseSpecBuilder extends V1LeaseSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LeaseSpecBuilder extends V1LeaseSpecFluentImpl implements VisitableBuilder{ public V1LeaseSpecBuilder() { this(false); } - public V1LeaseSpecBuilder(Boolean validationEnabled) { this(new V1LeaseSpec(), validationEnabled); } - public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent) { this(fluent, false); } - - public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent, Boolean validationEnabled) { + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1LeaseSpec(), validationEnabled); } - - public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent, V1LeaseSpec instance) { + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance) { this(fluent, instance, false); } - - public V1LeaseSpecBuilder( - V1LeaseSpecFluent fluent, V1LeaseSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAcquireTime(instance.getAcquireTime()); fluent.withHolderIdentity(instance.getHolderIdentity()); @@ -49,15 +30,13 @@ public V1LeaseSpecBuilder( fluent.withRenewTime(instance.getRenewTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LeaseSpecBuilder(V1LeaseSpec instance) { - this(instance, false); + this(instance,false); } - - public V1LeaseSpecBuilder(V1LeaseSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1LeaseSpecBuilder(V1LeaseSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAcquireTime(instance.getAcquireTime()); this.withHolderIdentity(instance.getHolderIdentity()); @@ -68,12 +47,10 @@ public V1LeaseSpecBuilder(V1LeaseSpec instance, Boolean validationEnabled) { this.withRenewTime(instance.getRenewTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LeaseSpecFluent fluent; Boolean validationEnabled; - public V1LeaseSpec build() { V1LeaseSpec buildable = new V1LeaseSpec(); buildable.setAcquireTime(fluent.getAcquireTime()); @@ -83,4 +60,5 @@ public V1LeaseSpec build() { buildable.setRenewTime(fluent.getRenewTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java index 5f351942b5..de86619172 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java @@ -1,49 +1,29 @@ -/* -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.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1LeaseSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1LeaseSpecFluent> extends Fluent{ public OffsetDateTime getAcquireTime(); - public A withAcquireTime(OffsetDateTime acquireTime); - public Boolean hasAcquireTime(); - public String getHolderIdentity(); - public A withHolderIdentity(String holderIdentity); - public Boolean hasHolderIdentity(); - public Integer getLeaseDurationSeconds(); - public A withLeaseDurationSeconds(Integer leaseDurationSeconds); - public Boolean hasLeaseDurationSeconds(); - public Integer getLeaseTransitions(); - public A withLeaseTransitions(Integer leaseTransitions); - public Boolean hasLeaseTransitions(); - public OffsetDateTime getRenewTime(); - public A withRenewTime(OffsetDateTime renewTime); - public Boolean hasRenewTime(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java index eee4dcb1df..811dc4611e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LeaseSpecFluentImpl> extends BaseFluent - implements V1LeaseSpecFluent { - public V1LeaseSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LeaseSpecFluentImpl> extends BaseFluent implements V1LeaseSpecFluent{ + public V1LeaseSpecFluentImpl() { + } public V1LeaseSpecFluentImpl(V1LeaseSpec instance) { this.withAcquireTime(instance.getAcquireTime()); @@ -31,133 +25,82 @@ public V1LeaseSpecFluentImpl(V1LeaseSpec instance) { this.withLeaseTransitions(instance.getLeaseTransitions()); this.withRenewTime(instance.getRenewTime()); - } + } private OffsetDateTime acquireTime; private String holderIdentity; private Integer leaseDurationSeconds; private Integer leaseTransitions; private OffsetDateTime renewTime; - public OffsetDateTime getAcquireTime() { return this.acquireTime; } - public A withAcquireTime(OffsetDateTime acquireTime) { - this.acquireTime = acquireTime; - return (A) this; + this.acquireTime=acquireTime; return (A) this; } - public Boolean hasAcquireTime() { return this.acquireTime != null; } - public String getHolderIdentity() { return this.holderIdentity; } - public A withHolderIdentity(String holderIdentity) { - this.holderIdentity = holderIdentity; - return (A) this; + this.holderIdentity=holderIdentity; return (A) this; } - public Boolean hasHolderIdentity() { return this.holderIdentity != null; } - public Integer getLeaseDurationSeconds() { return this.leaseDurationSeconds; } - public A withLeaseDurationSeconds(Integer leaseDurationSeconds) { - this.leaseDurationSeconds = leaseDurationSeconds; - return (A) this; + this.leaseDurationSeconds=leaseDurationSeconds; return (A) this; } - public Boolean hasLeaseDurationSeconds() { return this.leaseDurationSeconds != null; } - public Integer getLeaseTransitions() { return this.leaseTransitions; } - public A withLeaseTransitions(Integer leaseTransitions) { - this.leaseTransitions = leaseTransitions; - return (A) this; + this.leaseTransitions=leaseTransitions; return (A) this; } - public Boolean hasLeaseTransitions() { return this.leaseTransitions != null; } - public OffsetDateTime getRenewTime() { return this.renewTime; } - public A withRenewTime(OffsetDateTime renewTime) { - this.renewTime = renewTime; - return (A) this; + this.renewTime=renewTime; return (A) this; } - public Boolean hasRenewTime() { return this.renewTime != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LeaseSpecFluentImpl that = (V1LeaseSpecFluentImpl) o; - if (acquireTime != null ? !acquireTime.equals(that.acquireTime) : that.acquireTime != null) - return false; - if (holderIdentity != null - ? !holderIdentity.equals(that.holderIdentity) - : that.holderIdentity != null) return false; - if (leaseDurationSeconds != null - ? !leaseDurationSeconds.equals(that.leaseDurationSeconds) - : that.leaseDurationSeconds != null) return false; - if (leaseTransitions != null - ? !leaseTransitions.equals(that.leaseTransitions) - : that.leaseTransitions != null) return false; - if (renewTime != null ? !renewTime.equals(that.renewTime) : that.renewTime != null) - return false; + if (acquireTime != null ? !acquireTime.equals(that.acquireTime) :that.acquireTime != null) return false; + if (holderIdentity != null ? !holderIdentity.equals(that.holderIdentity) :that.holderIdentity != null) return false; + if (leaseDurationSeconds != null ? !leaseDurationSeconds.equals(that.leaseDurationSeconds) :that.leaseDurationSeconds != null) return false; + if (leaseTransitions != null ? !leaseTransitions.equals(that.leaseTransitions) :that.leaseTransitions != null) return false; + if (renewTime != null ? !renewTime.equals(that.renewTime) :that.renewTime != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - acquireTime, - holderIdentity, - leaseDurationSeconds, - leaseTransitions, - renewTime, - super.hashCode()); + return java.util.Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (acquireTime != null) { - sb.append("acquireTime:"); - sb.append(acquireTime + ","); - } - if (holderIdentity != null) { - sb.append("holderIdentity:"); - sb.append(holderIdentity + ","); - } - if (leaseDurationSeconds != null) { - sb.append("leaseDurationSeconds:"); - sb.append(leaseDurationSeconds + ","); - } - if (leaseTransitions != null) { - sb.append("leaseTransitions:"); - sb.append(leaseTransitions + ","); - } - if (renewTime != null) { - sb.append("renewTime:"); - sb.append(renewTime); - } + if (acquireTime != null) { sb.append("acquireTime:"); sb.append(acquireTime + ","); } + if (holderIdentity != null) { sb.append("holderIdentity:"); sb.append(holderIdentity + ","); } + if (leaseDurationSeconds != null) { sb.append("leaseDurationSeconds:"); sb.append(leaseDurationSeconds + ","); } + if (leaseTransitions != null) { sb.append("leaseTransitions:"); sb.append(leaseTransitions + ","); } + if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java index bf83278308..702d571388 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1LifecycleBuilder extends V1LifecycleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LifecycleBuilder extends V1LifecycleFluentImpl implements VisitableBuilder{ public V1LifecycleBuilder() { this(false); } - public V1LifecycleBuilder(Boolean validationEnabled) { this(new V1Lifecycle(), validationEnabled); } - public V1LifecycleBuilder(V1LifecycleFluent fluent) { this(fluent, false); } - - public V1LifecycleBuilder(V1LifecycleFluent fluent, Boolean validationEnabled) { + public V1LifecycleBuilder(V1LifecycleFluent fluent,Boolean validationEnabled) { this(fluent, new V1Lifecycle(), validationEnabled); } - - public V1LifecycleBuilder(V1LifecycleFluent fluent, V1Lifecycle instance) { + public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance) { this(fluent, instance, false); } - - public V1LifecycleBuilder( - V1LifecycleFluent fluent, V1Lifecycle instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPostStart(instance.getPostStart()); fluent.withPreStop(instance.getPreStop()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LifecycleBuilder(V1Lifecycle instance) { - this(instance, false); + this(instance,false); } - - public V1LifecycleBuilder(V1Lifecycle instance, Boolean validationEnabled) { - this.fluent = this; + public V1LifecycleBuilder(V1Lifecycle instance,Boolean validationEnabled) { + this.fluent = this; this.withPostStart(instance.getPostStart()); this.withPreStop(instance.getPreStop()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LifecycleFluent fluent; Boolean validationEnabled; - public V1Lifecycle build() { V1Lifecycle buildable = new V1Lifecycle(); buildable.setPostStart(fluent.getPostStart()); buildable.setPreStop(fluent.getPreStop()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java index ff12c7f038..25ad48dd8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java @@ -1,82 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1LifecycleFluent> extends Fluent { - + /** + * Generated + */ +public interface V1LifecycleFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildPostStart instead. - * * @return The buildable object. */ @Deprecated public V1LifecycleHandler getPostStart(); - public V1LifecycleHandler buildPostStart(); - public A withPostStart(V1LifecycleHandler postStart); - public Boolean hasPostStart(); - public V1LifecycleFluent.PostStartNested withNewPostStart(); - public V1LifecycleFluent.PostStartNested withNewPostStartLike(V1LifecycleHandler item); - public V1LifecycleFluent.PostStartNested editPostStart(); - public V1LifecycleFluent.PostStartNested editOrNewPostStart(); - public V1LifecycleFluent.PostStartNested editOrNewPostStartLike(V1LifecycleHandler item); - + /** * This method has been deprecated, please use method buildPreStop instead. - * * @return The buildable object. */ @Deprecated public V1LifecycleHandler getPreStop(); - public V1LifecycleHandler buildPreStop(); - public A withPreStop(V1LifecycleHandler preStop); - public Boolean hasPreStop(); - public V1LifecycleFluent.PreStopNested withNewPreStop(); - public V1LifecycleFluent.PreStopNested withNewPreStopLike(V1LifecycleHandler item); - public V1LifecycleFluent.PreStopNested editPreStop(); - public V1LifecycleFluent.PreStopNested editOrNewPreStop(); - public V1LifecycleFluent.PreStopNested editOrNewPreStopLike(V1LifecycleHandler item); - - public interface PostStartNested - extends Nested, V1LifecycleHandlerFluent> { + public interface PostStartNested extends Nested,V1LifecycleHandlerFluent>{ public N and(); - public N endPostStart(); + } - - public interface PreStopNested - extends Nested, V1LifecycleHandlerFluent> { + public interface PreStopNested extends Nested,V1LifecycleHandlerFluent>{ public N and(); - public N endPreStop(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java index a6893fb2c3..0db641d2c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java @@ -1,207 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LifecycleFluentImpl> extends BaseFluent - implements V1LifecycleFluent { - public V1LifecycleFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LifecycleFluentImpl> extends BaseFluent implements V1LifecycleFluent{ + public V1LifecycleFluentImpl() { + } public V1LifecycleFluentImpl(V1Lifecycle instance) { this.withPostStart(instance.getPostStart()); this.withPreStop(instance.getPreStop()); - } + } private V1LifecycleHandlerBuilder postStart; private V1LifecycleHandlerBuilder preStop; - + /** * This method has been deprecated, please use method buildPostStart instead. - * * @return The buildable object. */ @Deprecated public V1LifecycleHandler getPostStart() { - return this.postStart != null ? this.postStart.build() : null; + return this.postStart!=null ?this.postStart.build():null; } - public V1LifecycleHandler buildPostStart() { - return this.postStart != null ? this.postStart.build() : null; + return this.postStart!=null ?this.postStart.build():null; } - public A withPostStart(V1LifecycleHandler postStart) { _visitables.get("postStart").remove(this.postStart); - if (postStart != null) { - this.postStart = new V1LifecycleHandlerBuilder(postStart); - _visitables.get("postStart").add(this.postStart); - } else { - this.postStart = null; - _visitables.get("postStart").remove(this.postStart); - } - return (A) this; + if (postStart!=null){ this.postStart= new V1LifecycleHandlerBuilder(postStart); _visitables.get("postStart").add(this.postStart);} else { this.postStart = null; _visitables.get("postStart").remove(this.postStart); } return (A) this; } - public Boolean hasPostStart() { return this.postStart != null; } - public V1LifecycleFluent.PostStartNested withNewPostStart() { return new V1LifecycleFluentImpl.PostStartNestedImpl(); } - public V1LifecycleFluent.PostStartNested withNewPostStartLike(V1LifecycleHandler item) { return new V1LifecycleFluentImpl.PostStartNestedImpl(item); } - public V1LifecycleFluent.PostStartNested editPostStart() { return withNewPostStartLike(getPostStart()); } - public V1LifecycleFluent.PostStartNested editOrNewPostStart() { - return withNewPostStartLike( - getPostStart() != null ? getPostStart() : new V1LifecycleHandlerBuilder().build()); + return withNewPostStartLike(getPostStart() != null ? getPostStart(): new V1LifecycleHandlerBuilder().build()); } - public V1LifecycleFluent.PostStartNested editOrNewPostStartLike(V1LifecycleHandler item) { - return withNewPostStartLike(getPostStart() != null ? getPostStart() : item); + return withNewPostStartLike(getPostStart() != null ? getPostStart(): item); } - + /** * This method has been deprecated, please use method buildPreStop instead. - * * @return The buildable object. */ @Deprecated public V1LifecycleHandler getPreStop() { - return this.preStop != null ? this.preStop.build() : null; + return this.preStop!=null ?this.preStop.build():null; } - public V1LifecycleHandler buildPreStop() { - return this.preStop != null ? this.preStop.build() : null; + return this.preStop!=null ?this.preStop.build():null; } - public A withPreStop(V1LifecycleHandler preStop) { _visitables.get("preStop").remove(this.preStop); - if (preStop != null) { - this.preStop = new V1LifecycleHandlerBuilder(preStop); - _visitables.get("preStop").add(this.preStop); - } else { - this.preStop = null; - _visitables.get("preStop").remove(this.preStop); - } - return (A) this; + if (preStop!=null){ this.preStop= new V1LifecycleHandlerBuilder(preStop); _visitables.get("preStop").add(this.preStop);} else { this.preStop = null; _visitables.get("preStop").remove(this.preStop); } return (A) this; } - public Boolean hasPreStop() { return this.preStop != null; } - public V1LifecycleFluent.PreStopNested withNewPreStop() { return new V1LifecycleFluentImpl.PreStopNestedImpl(); } - public V1LifecycleFluent.PreStopNested withNewPreStopLike(V1LifecycleHandler item) { return new V1LifecycleFluentImpl.PreStopNestedImpl(item); } - public V1LifecycleFluent.PreStopNested editPreStop() { return withNewPreStopLike(getPreStop()); } - public V1LifecycleFluent.PreStopNested editOrNewPreStop() { - return withNewPreStopLike( - getPreStop() != null ? getPreStop() : new V1LifecycleHandlerBuilder().build()); + return withNewPreStopLike(getPreStop() != null ? getPreStop(): new V1LifecycleHandlerBuilder().build()); } - public V1LifecycleFluent.PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { - return withNewPreStopLike(getPreStop() != null ? getPreStop() : item); + return withNewPreStopLike(getPreStop() != null ? getPreStop(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LifecycleFluentImpl that = (V1LifecycleFluentImpl) o; - if (postStart != null ? !postStart.equals(that.postStart) : that.postStart != null) - return false; - if (preStop != null ? !preStop.equals(that.preStop) : that.preStop != null) return false; + if (postStart != null ? !postStart.equals(that.postStart) :that.postStart != null) return false; + if (preStop != null ? !preStop.equals(that.preStop) :that.preStop != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(postStart, preStop, super.hashCode()); + return java.util.Objects.hash(postStart, preStop, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (postStart != null) { - sb.append("postStart:"); - sb.append(postStart + ","); - } - if (preStop != null) { - sb.append("preStop:"); - sb.append(preStop); - } + if (postStart != null) { sb.append("postStart:"); sb.append(postStart + ","); } + if (preStop != null) { sb.append("preStop:"); sb.append(preStop); } sb.append("}"); return sb.toString(); } - - class PostStartNestedImpl - extends V1LifecycleHandlerFluentImpl> - implements V1LifecycleFluent.PostStartNested, Nested { + class PostStartNestedImpl extends V1LifecycleHandlerFluentImpl> implements V1LifecycleFluent.PostStartNested,Nested{ PostStartNestedImpl(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } - PostStartNestedImpl() { this.builder = new V1LifecycleHandlerBuilder(this); } - V1LifecycleHandlerBuilder builder; - public N and() { return (N) V1LifecycleFluentImpl.this.withPostStart(builder.build()); } - public N endPostStart() { return and(); } + } - - class PreStopNestedImpl - extends V1LifecycleHandlerFluentImpl> - implements V1LifecycleFluent.PreStopNested, Nested { + class PreStopNestedImpl extends V1LifecycleHandlerFluentImpl> implements V1LifecycleFluent.PreStopNested,Nested{ PreStopNestedImpl(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } - PreStopNestedImpl() { this.builder = new V1LifecycleHandlerBuilder(this); } - V1LifecycleHandlerBuilder builder; - public N and() { return (N) V1LifecycleFluentImpl.this.withPreStop(builder.build()); } - public N endPreStop() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java index 5e6b985e72..2e2befb54b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java @@ -1,73 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1LifecycleHandlerBuilder - extends V1LifecycleHandlerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LifecycleHandlerBuilder extends V1LifecycleHandlerFluentImpl implements VisitableBuilder{ public V1LifecycleHandlerBuilder() { this(false); } - public V1LifecycleHandlerBuilder(Boolean validationEnabled) { this(new V1LifecycleHandler(), validationEnabled); } - public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent) { this(fluent, false); } - - public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent, Boolean validationEnabled) { + public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,Boolean validationEnabled) { this(fluent, new V1LifecycleHandler(), validationEnabled); } - - public V1LifecycleHandlerBuilder( - V1LifecycleHandlerFluent fluent, V1LifecycleHandler instance) { + public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,V1LifecycleHandler instance) { this(fluent, instance, false); } - - public V1LifecycleHandlerBuilder( - V1LifecycleHandlerFluent fluent, V1LifecycleHandler instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,V1LifecycleHandler instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withExec(instance.getExec()); fluent.withHttpGet(instance.getHttpGet()); fluent.withTcpSocket(instance.getTcpSocket()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LifecycleHandlerBuilder(V1LifecycleHandler instance) { - this(instance, false); + this(instance,false); } - - public V1LifecycleHandlerBuilder(V1LifecycleHandler instance, Boolean validationEnabled) { - this.fluent = this; + public V1LifecycleHandlerBuilder(V1LifecycleHandler instance,Boolean validationEnabled) { + this.fluent = this; this.withExec(instance.getExec()); this.withHttpGet(instance.getHttpGet()); this.withTcpSocket(instance.getTcpSocket()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LifecycleHandlerFluent fluent; Boolean validationEnabled; - public V1LifecycleHandler build() { V1LifecycleHandler buildable = new V1LifecycleHandler(); buildable.setExec(fluent.getExec()); @@ -75,4 +50,5 @@ public V1LifecycleHandler build() { buildable.setTcpSocket(fluent.getTcpSocket()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java index 29ce79affc..3f844971f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java @@ -1,113 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1LifecycleHandlerFluent> extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1LifecycleHandlerFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildExec instead. - * * @return The buildable object. */ @Deprecated public V1ExecAction getExec(); - public V1ExecAction buildExec(); - public A withExec(V1ExecAction exec); - public Boolean hasExec(); - public V1LifecycleHandlerFluent.ExecNested withNewExec(); - public V1LifecycleHandlerFluent.ExecNested withNewExecLike(V1ExecAction item); - public V1LifecycleHandlerFluent.ExecNested editExec(); - public V1LifecycleHandlerFluent.ExecNested editOrNewExec(); - public V1LifecycleHandlerFluent.ExecNested editOrNewExecLike(V1ExecAction item); - + /** * This method has been deprecated, please use method buildHttpGet instead. - * * @return The buildable object. */ @Deprecated public V1HTTPGetAction getHttpGet(); - public V1HTTPGetAction buildHttpGet(); - public A withHttpGet(V1HTTPGetAction httpGet); - public Boolean hasHttpGet(); - public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGet(); - public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item); - public V1LifecycleHandlerFluent.HttpGetNested editHttpGet(); - public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGet(); - public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item); - + /** * This method has been deprecated, please use method buildTcpSocket instead. - * * @return The buildable object. */ @Deprecated public V1TCPSocketAction getTcpSocket(); - public V1TCPSocketAction buildTcpSocket(); - public A withTcpSocket(V1TCPSocketAction tcpSocket); - public Boolean hasTcpSocket(); - public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocket(); - public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item); - public V1LifecycleHandlerFluent.TcpSocketNested editTcpSocket(); - public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocket(); - public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item); - - public interface ExecNested - extends Nested, V1ExecActionFluent> { + public interface ExecNested extends Nested,V1ExecActionFluent>{ public N and(); - public N endExec(); + } - - public interface HttpGetNested - extends Nested, V1HTTPGetActionFluent> { + public interface HttpGetNested extends Nested,V1HTTPGetActionFluent>{ public N and(); - public N endHttpGet(); + } - - public interface TcpSocketNested - extends Nested, V1TCPSocketActionFluent> { + public interface TcpSocketNested extends Nested,V1TCPSocketActionFluent>{ public N and(); - public N endTcpSocket(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java index 65c991b8bb..75701a4eaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java @@ -1,287 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LifecycleHandlerFluentImpl> - extends BaseFluent implements V1LifecycleHandlerFluent { - public V1LifecycleHandlerFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LifecycleHandlerFluentImpl> extends BaseFluent implements V1LifecycleHandlerFluent{ + public V1LifecycleHandlerFluentImpl() { + } public V1LifecycleHandlerFluentImpl(V1LifecycleHandler instance) { this.withExec(instance.getExec()); this.withHttpGet(instance.getHttpGet()); this.withTcpSocket(instance.getTcpSocket()); - } + } private V1ExecActionBuilder exec; private V1HTTPGetActionBuilder httpGet; private V1TCPSocketActionBuilder tcpSocket; - + /** * This method has been deprecated, please use method buildExec instead. - * * @return The buildable object. */ @Deprecated public V1ExecAction getExec() { - return this.exec != null ? this.exec.build() : null; + return this.exec!=null ?this.exec.build():null; } - public V1ExecAction buildExec() { - return this.exec != null ? this.exec.build() : null; + return this.exec!=null ?this.exec.build():null; } - public A withExec(V1ExecAction exec) { _visitables.get("exec").remove(this.exec); - if (exec != null) { - this.exec = new V1ExecActionBuilder(exec); - _visitables.get("exec").add(this.exec); - } else { - this.exec = null; - _visitables.get("exec").remove(this.exec); - } - return (A) this; + if (exec!=null){ this.exec= new V1ExecActionBuilder(exec); _visitables.get("exec").add(this.exec);} else { this.exec = null; _visitables.get("exec").remove(this.exec); } return (A) this; } - public Boolean hasExec() { return this.exec != null; } - public V1LifecycleHandlerFluent.ExecNested withNewExec() { return new V1LifecycleHandlerFluentImpl.ExecNestedImpl(); } - public V1LifecycleHandlerFluent.ExecNested withNewExecLike(V1ExecAction item) { return new V1LifecycleHandlerFluentImpl.ExecNestedImpl(item); } - public V1LifecycleHandlerFluent.ExecNested editExec() { return withNewExecLike(getExec()); } - public V1LifecycleHandlerFluent.ExecNested editOrNewExec() { - return withNewExecLike(getExec() != null ? getExec() : new V1ExecActionBuilder().build()); + return withNewExecLike(getExec() != null ? getExec(): new V1ExecActionBuilder().build()); } - public V1LifecycleHandlerFluent.ExecNested editOrNewExecLike(V1ExecAction item) { - return withNewExecLike(getExec() != null ? getExec() : item); + return withNewExecLike(getExec() != null ? getExec(): item); } - + /** * This method has been deprecated, please use method buildHttpGet instead. - * * @return The buildable object. */ @Deprecated public V1HTTPGetAction getHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; + return this.httpGet!=null ?this.httpGet.build():null; } - public V1HTTPGetAction buildHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; + return this.httpGet!=null ?this.httpGet.build():null; } - public A withHttpGet(V1HTTPGetAction httpGet) { _visitables.get("httpGet").remove(this.httpGet); - if (httpGet != null) { - this.httpGet = new V1HTTPGetActionBuilder(httpGet); - _visitables.get("httpGet").add(this.httpGet); - } else { - this.httpGet = null; - _visitables.get("httpGet").remove(this.httpGet); - } - return (A) this; + if (httpGet!=null){ this.httpGet= new V1HTTPGetActionBuilder(httpGet); _visitables.get("httpGet").add(this.httpGet);} else { this.httpGet = null; _visitables.get("httpGet").remove(this.httpGet); } return (A) this; } - public Boolean hasHttpGet() { return this.httpGet != null; } - public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGet() { return new V1LifecycleHandlerFluentImpl.HttpGetNestedImpl(); } - public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { return new V1LifecycleHandlerFluentImpl.HttpGetNestedImpl(item); } - public V1LifecycleHandlerFluent.HttpGetNested editHttpGet() { return withNewHttpGetLike(getHttpGet()); } - public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGet() { - return withNewHttpGetLike( - getHttpGet() != null ? getHttpGet() : new V1HTTPGetActionBuilder().build()); + return withNewHttpGetLike(getHttpGet() != null ? getHttpGet(): new V1HTTPGetActionBuilder().build()); } - public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { - return withNewHttpGetLike(getHttpGet() != null ? getHttpGet() : item); + return withNewHttpGetLike(getHttpGet() != null ? getHttpGet(): item); } - + /** * This method has been deprecated, please use method buildTcpSocket instead. - * * @return The buildable object. */ @Deprecated public V1TCPSocketAction getTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; + return this.tcpSocket!=null ?this.tcpSocket.build():null; } - public V1TCPSocketAction buildTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; + return this.tcpSocket!=null ?this.tcpSocket.build():null; } - public A withTcpSocket(V1TCPSocketAction tcpSocket) { _visitables.get("tcpSocket").remove(this.tcpSocket); - if (tcpSocket != null) { - this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); - _visitables.get("tcpSocket").add(this.tcpSocket); - } else { - this.tcpSocket = null; - _visitables.get("tcpSocket").remove(this.tcpSocket); - } - return (A) this; + if (tcpSocket!=null){ this.tcpSocket= new V1TCPSocketActionBuilder(tcpSocket); _visitables.get("tcpSocket").add(this.tcpSocket);} else { this.tcpSocket = null; _visitables.get("tcpSocket").remove(this.tcpSocket); } return (A) this; } - public Boolean hasTcpSocket() { return this.tcpSocket != null; } - public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocket() { return new V1LifecycleHandlerFluentImpl.TcpSocketNestedImpl(); } - public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { return new V1LifecycleHandlerFluentImpl.TcpSocketNestedImpl(item); } - public V1LifecycleHandlerFluent.TcpSocketNested editTcpSocket() { return withNewTcpSocketLike(getTcpSocket()); } - public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocket() { - return withNewTcpSocketLike( - getTcpSocket() != null ? getTcpSocket() : new V1TCPSocketActionBuilder().build()); + return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket(): new V1TCPSocketActionBuilder().build()); } - - public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocketLike( - V1TCPSocketAction item) { - return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket() : item); + public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { + return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LifecycleHandlerFluentImpl that = (V1LifecycleHandlerFluentImpl) o; - if (exec != null ? !exec.equals(that.exec) : that.exec != null) return false; - if (httpGet != null ? !httpGet.equals(that.httpGet) : that.httpGet != null) return false; - if (tcpSocket != null ? !tcpSocket.equals(that.tcpSocket) : that.tcpSocket != null) - return false; + if (exec != null ? !exec.equals(that.exec) :that.exec != null) return false; + if (httpGet != null ? !httpGet.equals(that.httpGet) :that.httpGet != null) return false; + if (tcpSocket != null ? !tcpSocket.equals(that.tcpSocket) :that.tcpSocket != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(exec, httpGet, tcpSocket, super.hashCode()); + return java.util.Objects.hash(exec, httpGet, tcpSocket, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (exec != null) { - sb.append("exec:"); - sb.append(exec + ","); - } - if (httpGet != null) { - sb.append("httpGet:"); - sb.append(httpGet + ","); - } - if (tcpSocket != null) { - sb.append("tcpSocket:"); - sb.append(tcpSocket); - } + if (exec != null) { sb.append("exec:"); sb.append(exec + ","); } + if (httpGet != null) { sb.append("httpGet:"); sb.append(httpGet + ","); } + if (tcpSocket != null) { sb.append("tcpSocket:"); sb.append(tcpSocket); } sb.append("}"); return sb.toString(); } - - class ExecNestedImpl extends V1ExecActionFluentImpl> - implements V1LifecycleHandlerFluent.ExecNested, Nested { + class ExecNestedImpl extends V1ExecActionFluentImpl> implements V1LifecycleHandlerFluent.ExecNested,Nested{ ExecNestedImpl(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } - ExecNestedImpl() { this.builder = new V1ExecActionBuilder(this); } - V1ExecActionBuilder builder; - public N and() { return (N) V1LifecycleHandlerFluentImpl.this.withExec(builder.build()); } - public N endExec() { return and(); } + } - - class HttpGetNestedImpl - extends V1HTTPGetActionFluentImpl> - implements V1LifecycleHandlerFluent.HttpGetNested, Nested { + class HttpGetNestedImpl extends V1HTTPGetActionFluentImpl> implements V1LifecycleHandlerFluent.HttpGetNested,Nested{ HttpGetNestedImpl(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } - HttpGetNestedImpl() { this.builder = new V1HTTPGetActionBuilder(this); } - V1HTTPGetActionBuilder builder; - public N and() { return (N) V1LifecycleHandlerFluentImpl.this.withHttpGet(builder.build()); } - public N endHttpGet() { return and(); } + } - - class TcpSocketNestedImpl - extends V1TCPSocketActionFluentImpl> - implements V1LifecycleHandlerFluent.TcpSocketNested, Nested { + class TcpSocketNestedImpl extends V1TCPSocketActionFluentImpl> implements V1LifecycleHandlerFluent.TcpSocketNested,Nested{ TcpSocketNestedImpl(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } - TcpSocketNestedImpl() { this.builder = new V1TCPSocketActionBuilder(this); } - V1TCPSocketActionBuilder builder; - public N and() { return (N) V1LifecycleHandlerFluentImpl.this.withTcpSocket(builder.build()); } - public N endTcpSocket() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java index 973a4360c4..6d29acc284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LimitRangeBuilder extends V1LimitRangeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LimitRangeBuilder extends V1LimitRangeFluentImpl implements VisitableBuilder{ public V1LimitRangeBuilder() { this(false); } - public V1LimitRangeBuilder(Boolean validationEnabled) { this(new V1LimitRange(), validationEnabled); } - public V1LimitRangeBuilder(V1LimitRangeFluent fluent) { this(fluent, false); } - - public V1LimitRangeBuilder(V1LimitRangeFluent fluent, Boolean validationEnabled) { + public V1LimitRangeBuilder(V1LimitRangeFluent fluent,Boolean validationEnabled) { this(fluent, new V1LimitRange(), validationEnabled); } - - public V1LimitRangeBuilder(V1LimitRangeFluent fluent, V1LimitRange instance) { + public V1LimitRangeBuilder(V1LimitRangeFluent fluent,V1LimitRange instance) { this(fluent, instance, false); } - - public V1LimitRangeBuilder( - V1LimitRangeFluent fluent, V1LimitRange instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LimitRangeBuilder(V1LimitRangeFluent fluent,V1LimitRange instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1LimitRangeBuilder( fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LimitRangeBuilder(V1LimitRange instance) { - this(instance, false); + this(instance,false); } - - public V1LimitRangeBuilder(V1LimitRange instance, Boolean validationEnabled) { - this.fluent = this; + public V1LimitRangeBuilder(V1LimitRange instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1LimitRangeBuilder(V1LimitRange instance, Boolean validationEnabled) { this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LimitRangeFluent fluent; Boolean validationEnabled; - public V1LimitRange build() { V1LimitRange buildable = new V1LimitRange(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1LimitRange build() { buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java index 2f85668db7..9082846332 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1LimitRangeFluent> extends Fluent { + /** + * Generated + */ +public interface V1LimitRangeFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1LimitRangeFluent.MetadataNested withNewMetadata(); - public V1LimitRangeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1LimitRangeFluent.MetadataNested editMetadata(); - public V1LimitRangeFluent.MetadataNested editOrNewMetadata(); - public V1LimitRangeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1LimitRangeSpec getSpec(); - public V1LimitRangeSpec buildSpec(); - public A withSpec(V1LimitRangeSpec spec); - public Boolean hasSpec(); - public V1LimitRangeFluent.SpecNested withNewSpec(); - public V1LimitRangeFluent.SpecNested withNewSpecLike(V1LimitRangeSpec item); - public V1LimitRangeFluent.SpecNested editSpec(); - public V1LimitRangeFluent.SpecNested editOrNewSpec(); - public V1LimitRangeFluent.SpecNested editOrNewSpecLike(V1LimitRangeSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1LimitRangeSpecFluent> { + public interface SpecNested extends Nested,V1LimitRangeSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java index fc24492c6e..e35274d253 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LimitRangeFluentImpl> extends BaseFluent - implements V1LimitRangeFluent { - public V1LimitRangeFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LimitRangeFluentImpl> extends BaseFluent implements V1LimitRangeFluent{ + public V1LimitRangeFluentImpl() { + } public V1LimitRangeFluentImpl(V1LimitRange instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,218 +23,152 @@ public V1LimitRangeFluentImpl(V1LimitRange instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1LimitRangeSpecBuilder spec; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1LimitRangeFluent.MetadataNested withNewMetadata() { return new V1LimitRangeFluentImpl.MetadataNestedImpl(); } - public V1LimitRangeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1LimitRangeFluentImpl.MetadataNestedImpl(item); } - public V1LimitRangeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1LimitRangeFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1LimitRangeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1LimitRangeSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1LimitRangeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1LimitRangeSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1LimitRangeSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1LimitRangeSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1LimitRangeFluent.SpecNested withNewSpec() { return new V1LimitRangeFluentImpl.SpecNestedImpl(); } - public V1LimitRangeFluent.SpecNested withNewSpecLike(V1LimitRangeSpec item) { return new V1LimitRangeFluentImpl.SpecNestedImpl(item); } - public V1LimitRangeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1LimitRangeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1LimitRangeSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1LimitRangeSpecBuilder().build()); } - public V1LimitRangeFluent.SpecNested editOrNewSpecLike(V1LimitRangeSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LimitRangeFluentImpl that = (V1LimitRangeFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1LimitRangeFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1LimitRangeFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1LimitRangeFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1LimitRangeSpecFluentImpl> - implements V1LimitRangeFluent.SpecNested, Nested { + class SpecNestedImpl extends V1LimitRangeSpecFluentImpl> implements V1LimitRangeFluent.SpecNested,Nested{ SpecNestedImpl(V1LimitRangeSpec item) { this.builder = new V1LimitRangeSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1LimitRangeSpecBuilder(this); } - V1LimitRangeSpecBuilder builder; - public N and() { return (N) V1LimitRangeFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java index 68788ccd72..c5cb013c68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluentImpl implements VisitableBuilder{ public V1LimitRangeItemBuilder() { this(false); } - public V1LimitRangeItemBuilder(Boolean validationEnabled) { this(new V1LimitRangeItem(), validationEnabled); } - public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent) { this(fluent, false); } - - public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent, Boolean validationEnabled) { + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,Boolean validationEnabled) { this(fluent, new V1LimitRangeItem(), validationEnabled); } - - public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent, V1LimitRangeItem instance) { + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,V1LimitRangeItem instance) { this(fluent, instance, false); } - - public V1LimitRangeItemBuilder( - V1LimitRangeItemFluent fluent, V1LimitRangeItem instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,V1LimitRangeItem instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDefault(instance.getDefault()); fluent.withDefaultRequest(instance.getDefaultRequest()); @@ -51,15 +32,13 @@ public V1LimitRangeItemBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LimitRangeItemBuilder(V1LimitRangeItem instance) { - this(instance, false); + this(instance,false); } - - public V1LimitRangeItemBuilder(V1LimitRangeItem instance, Boolean validationEnabled) { - this.fluent = this; + public V1LimitRangeItemBuilder(V1LimitRangeItem instance,Boolean validationEnabled) { + this.fluent = this; this.withDefault(instance.getDefault()); this.withDefaultRequest(instance.getDefaultRequest()); @@ -72,12 +51,10 @@ public V1LimitRangeItemBuilder(V1LimitRangeItem instance, Boolean validationEnab this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LimitRangeItemFluent fluent; Boolean validationEnabled; - public V1LimitRangeItem build() { V1LimitRangeItem buildable = new V1LimitRangeItem(); buildable.setDefault(fluent.getDefault()); @@ -88,4 +65,5 @@ public V1LimitRangeItem build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java index 6a9c077218..a7daf136f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java @@ -1,96 +1,53 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; - -/** Generated */ -public interface V1LimitRangeItemFluent> extends Fluent { - public A addToDefault(String key, Quantity value); - - public A addToDefault(Map map); - +import java.util.LinkedHashMap; + + /** + * Generated + */ +public interface V1LimitRangeItemFluent> extends Fluent{ + public A addToDefault(String key,Quantity value); + public A addToDefault(Map map); public A removeFromDefault(String key); - - public A removeFromDefault(Map map); - - public Map getDefault(); - - public A withDefault(Map _default); - + public A removeFromDefault(Map map); + public Map getDefault(); + public A withDefault(Map _default); public Boolean hasDefault(); - - public A addToDefaultRequest(String key, Quantity value); - - public A addToDefaultRequest(Map map); - + public A addToDefaultRequest(String key,Quantity value); + public A addToDefaultRequest(Map map); public A removeFromDefaultRequest(String key); - - public A removeFromDefaultRequest(Map map); - - public Map getDefaultRequest(); - - public A withDefaultRequest(Map defaultRequest); - + public A removeFromDefaultRequest(Map map); + public Map getDefaultRequest(); + public A withDefaultRequest(Map defaultRequest); public Boolean hasDefaultRequest(); - - public A addToMax(String key, Quantity value); - - public A addToMax(Map map); - + public A addToMax(String key,Quantity value); + public A addToMax(Map map); public A removeFromMax(String key); - - public A removeFromMax(Map map); - - public Map getMax(); - - public A withMax(Map max); - + public A removeFromMax(Map map); + public Map getMax(); + public A withMax(Map max); public Boolean hasMax(); - - public A addToMaxLimitRequestRatio(String key, Quantity value); - - public A addToMaxLimitRequestRatio(Map map); - + public A addToMaxLimitRequestRatio(String key,Quantity value); + public A addToMaxLimitRequestRatio(Map map); public A removeFromMaxLimitRequestRatio(String key); - - public A removeFromMaxLimitRequestRatio(Map map); - - public Map getMaxLimitRequestRatio(); - - public A withMaxLimitRequestRatio(Map maxLimitRequestRatio); - + public A removeFromMaxLimitRequestRatio(Map map); + public Map getMaxLimitRequestRatio(); + public A withMaxLimitRequestRatio(Map maxLimitRequestRatio); public Boolean hasMaxLimitRequestRatio(); - - public A addToMin(String key, Quantity value); - - public A addToMin(Map map); - + public A addToMin(String key,Quantity value); + public A addToMin(Map map); public A removeFromMin(String key); - - public A removeFromMin(Map map); - - public Map getMin(); - - public A withMin(Map min); - + public A removeFromMin(Map map); + public Map getMin(); + public A withMin(Map min); public Boolean hasMin(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java index d195889f57..2d3d941a72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java @@ -1,28 +1,21 @@ -/* -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.custom.Quantity; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.LinkedHashMap; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LimitRangeItemFluentImpl> extends BaseFluent - implements V1LimitRangeItemFluent { - public V1LimitRangeItemFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LimitRangeItemFluentImpl> extends BaseFluent implements V1LimitRangeItemFluent{ + public V1LimitRangeItemFluentImpl() { + } public V1LimitRangeItemFluentImpl(V1LimitRangeItem instance) { this.withDefault(instance.getDefault()); @@ -35,383 +28,174 @@ public V1LimitRangeItemFluentImpl(V1LimitRangeItem instance) { this.withMin(instance.getMin()); this.withType(instance.getType()); - } - private Map _default; - private Map defaultRequest; - private Map max; - private Map maxLimitRequestRatio; - private Map min; + } + private Map _default; + private Map defaultRequest; + private Map max; + private Map maxLimitRequestRatio; + private Map min; private String type; - - public A addToDefault(String key, Quantity value) { - if (this._default == null && key != null && value != null) { - this._default = new LinkedHashMap(); - } - if (key != null && value != null) { - this._default.put(key, value); - } - return (A) this; + public A addToDefault(String key,Quantity value) { + if(this._default == null && key != null && value != null) { this._default = new LinkedHashMap(); } + if(key != null && value != null) {this._default.put(key, value);} return (A)this; } - - public A addToDefault(Map map) { - if (this._default == null && map != null) { - this._default = new LinkedHashMap(); - } - if (map != null) { - this._default.putAll(map); - } - return (A) this; + public A addToDefault(Map map) { + if(this._default == null && map != null) { this._default = new LinkedHashMap(); } + if(map != null) { this._default.putAll(map);} return (A)this; } - public A removeFromDefault(String key) { - if (this._default == null) { - return (A) this; - } - if (key != null && this._default != null) { - this._default.remove(key); - } - return (A) this; + if(this._default == null) { return (A) this; } + if(key != null && this._default != null) {this._default.remove(key);} return (A)this; } - - public A removeFromDefault(Map map) { - if (this._default == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this._default != null) { - this._default.remove(key); - } - } - } - return (A) this; + public A removeFromDefault(Map map) { + if(this._default == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this._default != null){this._default.remove(key);}}} return (A)this; } - - public Map getDefault() { + public Map getDefault() { return this._default; } - - public A withDefault(Map _default) { - if (_default == null) { - this._default = null; - } else { - this._default = new LinkedHashMap(_default); - } - return (A) this; + public A withDefault(Map _default) { + if (_default == null) { this._default = null;} else {this._default = new LinkedHashMap(_default);} return (A) this; } - public Boolean hasDefault() { return this._default != null; } - - public A addToDefaultRequest(String key, Quantity value) { - if (this.defaultRequest == null && key != null && value != null) { - this.defaultRequest = new LinkedHashMap(); - } - if (key != null && value != null) { - this.defaultRequest.put(key, value); - } - return (A) this; + public A addToDefaultRequest(String key,Quantity value) { + if(this.defaultRequest == null && key != null && value != null) { this.defaultRequest = new LinkedHashMap(); } + if(key != null && value != null) {this.defaultRequest.put(key, value);} return (A)this; } - - public A addToDefaultRequest(Map map) { - if (this.defaultRequest == null && map != null) { - this.defaultRequest = new LinkedHashMap(); - } - if (map != null) { - this.defaultRequest.putAll(map); - } - return (A) this; + public A addToDefaultRequest(Map map) { + if(this.defaultRequest == null && map != null) { this.defaultRequest = new LinkedHashMap(); } + if(map != null) { this.defaultRequest.putAll(map);} return (A)this; } - public A removeFromDefaultRequest(String key) { - if (this.defaultRequest == null) { - return (A) this; - } - if (key != null && this.defaultRequest != null) { - this.defaultRequest.remove(key); - } - return (A) this; + if(this.defaultRequest == null) { return (A) this; } + if(key != null && this.defaultRequest != null) {this.defaultRequest.remove(key);} return (A)this; } - - public A removeFromDefaultRequest(Map map) { - if (this.defaultRequest == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.defaultRequest != null) { - this.defaultRequest.remove(key); - } - } - } - return (A) this; + public A removeFromDefaultRequest(Map map) { + if(this.defaultRequest == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.defaultRequest != null){this.defaultRequest.remove(key);}}} return (A)this; } - - public Map getDefaultRequest() { + public Map getDefaultRequest() { return this.defaultRequest; } - - public A withDefaultRequest(Map defaultRequest) { - if (defaultRequest == null) { - this.defaultRequest = null; - } else { - this.defaultRequest = new LinkedHashMap(defaultRequest); - } - return (A) this; + public A withDefaultRequest(Map defaultRequest) { + if (defaultRequest == null) { this.defaultRequest = null;} else {this.defaultRequest = new LinkedHashMap(defaultRequest);} return (A) this; } - public Boolean hasDefaultRequest() { return this.defaultRequest != null; } - - public A addToMax(String key, Quantity value) { - if (this.max == null && key != null && value != null) { - this.max = new LinkedHashMap(); - } - if (key != null && value != null) { - this.max.put(key, value); - } - return (A) this; + public A addToMax(String key,Quantity value) { + if(this.max == null && key != null && value != null) { this.max = new LinkedHashMap(); } + if(key != null && value != null) {this.max.put(key, value);} return (A)this; } - - public A addToMax(Map map) { - if (this.max == null && map != null) { - this.max = new LinkedHashMap(); - } - if (map != null) { - this.max.putAll(map); - } - return (A) this; + public A addToMax(Map map) { + if(this.max == null && map != null) { this.max = new LinkedHashMap(); } + if(map != null) { this.max.putAll(map);} return (A)this; } - public A removeFromMax(String key) { - if (this.max == null) { - return (A) this; - } - if (key != null && this.max != null) { - this.max.remove(key); - } - return (A) this; + if(this.max == null) { return (A) this; } + if(key != null && this.max != null) {this.max.remove(key);} return (A)this; } - - public A removeFromMax(Map map) { - if (this.max == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.max != null) { - this.max.remove(key); - } - } - } - return (A) this; + public A removeFromMax(Map map) { + if(this.max == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.max != null){this.max.remove(key);}}} return (A)this; } - - public Map getMax() { + public Map getMax() { return this.max; } - - public A withMax(Map max) { - if (max == null) { - this.max = null; - } else { - this.max = new LinkedHashMap(max); - } - return (A) this; + public A withMax(Map max) { + if (max == null) { this.max = null;} else {this.max = new LinkedHashMap(max);} return (A) this; } - public Boolean hasMax() { return this.max != null; } - - public A addToMaxLimitRequestRatio(String key, Quantity value) { - if (this.maxLimitRequestRatio == null && key != null && value != null) { - this.maxLimitRequestRatio = new LinkedHashMap(); - } - if (key != null && value != null) { - this.maxLimitRequestRatio.put(key, value); - } - return (A) this; + public A addToMaxLimitRequestRatio(String key,Quantity value) { + if(this.maxLimitRequestRatio == null && key != null && value != null) { this.maxLimitRequestRatio = new LinkedHashMap(); } + if(key != null && value != null) {this.maxLimitRequestRatio.put(key, value);} return (A)this; } - - public A addToMaxLimitRequestRatio(Map map) { - if (this.maxLimitRequestRatio == null && map != null) { - this.maxLimitRequestRatio = new LinkedHashMap(); - } - if (map != null) { - this.maxLimitRequestRatio.putAll(map); - } - return (A) this; + public A addToMaxLimitRequestRatio(Map map) { + if(this.maxLimitRequestRatio == null && map != null) { this.maxLimitRequestRatio = new LinkedHashMap(); } + if(map != null) { this.maxLimitRequestRatio.putAll(map);} return (A)this; } - public A removeFromMaxLimitRequestRatio(String key) { - if (this.maxLimitRequestRatio == null) { - return (A) this; - } - if (key != null && this.maxLimitRequestRatio != null) { - this.maxLimitRequestRatio.remove(key); - } - return (A) this; + if(this.maxLimitRequestRatio == null) { return (A) this; } + if(key != null && this.maxLimitRequestRatio != null) {this.maxLimitRequestRatio.remove(key);} return (A)this; } - - public A removeFromMaxLimitRequestRatio(Map map) { - if (this.maxLimitRequestRatio == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.maxLimitRequestRatio != null) { - this.maxLimitRequestRatio.remove(key); - } - } - } - return (A) this; + public A removeFromMaxLimitRequestRatio(Map map) { + if(this.maxLimitRequestRatio == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.maxLimitRequestRatio != null){this.maxLimitRequestRatio.remove(key);}}} return (A)this; } - - public Map getMaxLimitRequestRatio() { + public Map getMaxLimitRequestRatio() { return this.maxLimitRequestRatio; } - - public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { - if (maxLimitRequestRatio == null) { - this.maxLimitRequestRatio = null; - } else { - this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); - } - return (A) this; + public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { + if (maxLimitRequestRatio == null) { this.maxLimitRequestRatio = null;} else {this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio);} return (A) this; } - public Boolean hasMaxLimitRequestRatio() { return this.maxLimitRequestRatio != null; } - - public A addToMin(String key, Quantity value) { - if (this.min == null && key != null && value != null) { - this.min = new LinkedHashMap(); - } - if (key != null && value != null) { - this.min.put(key, value); - } - return (A) this; + public A addToMin(String key,Quantity value) { + if(this.min == null && key != null && value != null) { this.min = new LinkedHashMap(); } + if(key != null && value != null) {this.min.put(key, value);} return (A)this; } - - public A addToMin(Map map) { - if (this.min == null && map != null) { - this.min = new LinkedHashMap(); - } - if (map != null) { - this.min.putAll(map); - } - return (A) this; + public A addToMin(Map map) { + if(this.min == null && map != null) { this.min = new LinkedHashMap(); } + if(map != null) { this.min.putAll(map);} return (A)this; } - public A removeFromMin(String key) { - if (this.min == null) { - return (A) this; - } - if (key != null && this.min != null) { - this.min.remove(key); - } - return (A) this; + if(this.min == null) { return (A) this; } + if(key != null && this.min != null) {this.min.remove(key);} return (A)this; } - - public A removeFromMin(Map map) { - if (this.min == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.min != null) { - this.min.remove(key); - } - } - } - return (A) this; + public A removeFromMin(Map map) { + if(this.min == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.min != null){this.min.remove(key);}}} return (A)this; } - - public Map getMin() { + public Map getMin() { return this.min; } - - public A withMin(Map min) { - if (min == null) { - this.min = null; - } else { - this.min = new LinkedHashMap(min); - } - return (A) this; + public A withMin(Map min) { + if (min == null) { this.min = null;} else {this.min = new LinkedHashMap(min);} return (A) this; } - public Boolean hasMin() { return this.min != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LimitRangeItemFluentImpl that = (V1LimitRangeItemFluentImpl) o; - if (_default != null ? !_default.equals(that._default) : that._default != null) return false; - if (defaultRequest != null - ? !defaultRequest.equals(that.defaultRequest) - : that.defaultRequest != null) return false; - if (max != null ? !max.equals(that.max) : that.max != null) return false; - if (maxLimitRequestRatio != null - ? !maxLimitRequestRatio.equals(that.maxLimitRequestRatio) - : that.maxLimitRequestRatio != null) return false; - if (min != null ? !min.equals(that.min) : that.min != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (_default != null ? !_default.equals(that._default) :that._default != null) return false; + if (defaultRequest != null ? !defaultRequest.equals(that.defaultRequest) :that.defaultRequest != null) return false; + if (max != null ? !max.equals(that.max) :that.max != null) return false; + if (maxLimitRequestRatio != null ? !maxLimitRequestRatio.equals(that.maxLimitRequestRatio) :that.maxLimitRequestRatio != null) return false; + if (min != null ? !min.equals(that.min) :that.min != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - _default, defaultRequest, max, maxLimitRequestRatio, min, type, super.hashCode()); + return java.util.Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_default != null && !_default.isEmpty()) { - sb.append("_default:"); - sb.append(_default + ","); - } - if (defaultRequest != null && !defaultRequest.isEmpty()) { - sb.append("defaultRequest:"); - sb.append(defaultRequest + ","); - } - if (max != null && !max.isEmpty()) { - sb.append("max:"); - sb.append(max + ","); - } - if (maxLimitRequestRatio != null && !maxLimitRequestRatio.isEmpty()) { - sb.append("maxLimitRequestRatio:"); - sb.append(maxLimitRequestRatio + ","); - } - if (min != null && !min.isEmpty()) { - sb.append("min:"); - sb.append(min + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (_default != null && !_default.isEmpty()) { sb.append("_default:"); sb.append(_default + ","); } + if (defaultRequest != null && !defaultRequest.isEmpty()) { sb.append("defaultRequest:"); sb.append(defaultRequest + ","); } + if (max != null && !max.isEmpty()) { sb.append("max:"); sb.append(max + ","); } + if (maxLimitRequestRatio != null && !maxLimitRequestRatio.isEmpty()) { sb.append("maxLimitRequestRatio:"); sb.append(maxLimitRequestRatio + ","); } + if (min != null && !min.isEmpty()) { sb.append("min:"); sb.append(min + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java index 0a41438b2b..9b489661af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LimitRangeListBuilder extends V1LimitRangeListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LimitRangeListBuilder extends V1LimitRangeListFluentImpl implements VisitableBuilder{ public V1LimitRangeListBuilder() { this(false); } - public V1LimitRangeListBuilder(Boolean validationEnabled) { this(new V1LimitRangeList(), validationEnabled); } - public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent) { this(fluent, false); } - - public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent, Boolean validationEnabled) { + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,Boolean validationEnabled) { this(fluent, new V1LimitRangeList(), validationEnabled); } - - public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent, V1LimitRangeList instance) { + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,V1LimitRangeList instance) { this(fluent, instance, false); } - - public V1LimitRangeListBuilder( - V1LimitRangeListFluent fluent, V1LimitRangeList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,V1LimitRangeList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1LimitRangeListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LimitRangeListBuilder(V1LimitRangeList instance) { - this(instance, false); + this(instance,false); } - - public V1LimitRangeListBuilder(V1LimitRangeList instance, Boolean validationEnabled) { - this.fluent = this; + public V1LimitRangeListBuilder(V1LimitRangeList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1LimitRangeListBuilder(V1LimitRangeList instance, Boolean validationEnab this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LimitRangeListFluent fluent; Boolean validationEnabled; - public V1LimitRangeList build() { V1LimitRangeList buildable = new V1LimitRangeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1LimitRangeList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java index c3f2afd11e..517a4985fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1LimitRangeListFluent> extends Fluent { + /** + * Generated + */ +public interface V1LimitRangeListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1LimitRange item); - - public A setToItems(Integer index, V1LimitRange item); - + public A addToItems(Integer index,V1LimitRange item); + public A setToItems(Integer index,V1LimitRange item); public A addToItems(io.kubernetes.client.openapi.models.V1LimitRange... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1LimitRange... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1LimitRange buildItem(Integer index); - public V1LimitRange buildFirstItem(); - public V1LimitRange buildLastItem(); - public V1LimitRange buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items); - public Boolean hasItems(); - public V1LimitRangeListFluent.ItemsNested addNewItem(); - public V1LimitRangeListFluent.ItemsNested addNewItemLike(V1LimitRange item); - - public V1LimitRangeListFluent.ItemsNested setNewItemLike(Integer index, V1LimitRange item); - + public V1LimitRangeListFluent.ItemsNested setNewItemLike(Integer index,V1LimitRange item); public V1LimitRangeListFluent.ItemsNested editItem(Integer index); - public V1LimitRangeListFluent.ItemsNested editFirstItem(); - public V1LimitRangeListFluent.ItemsNested editLastItem(); - - public V1LimitRangeListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1LimitRangeListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1LimitRangeListFluent.MetadataNested withNewMetadata(); - public V1LimitRangeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1LimitRangeListFluent.MetadataNested editMetadata(); - public V1LimitRangeListFluent.MetadataNested editOrNewMetadata(); - public V1LimitRangeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1LimitRangeFluent> { + public interface ItemsNested extends Nested,V1LimitRangeFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java index 6f13711fec..8d952735b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LimitRangeListFluentImpl> extends BaseFluent - implements V1LimitRangeListFluent { - public V1LimitRangeListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LimitRangeListFluentImpl> extends BaseFluent implements V1LimitRangeListFluent{ + public V1LimitRangeListFluentImpl() { + } public V1LimitRangeListFluentImpl(V1LimitRangeList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1LimitRangeListFluentImpl(V1LimitRangeList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1LimitRange item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1LimitRange item) { + if (this.items == null) {this.items = new ArrayList();} + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1LimitRange item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1LimitRange item) { + if (this.items == null) {this.items = new ArrayList();} V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1LimitRange buildItem(Integer index) { return this.items.get(index).build(); } - public V1LimitRange buildFirstItem() { return this.items.get(0).build(); } - public V1LimitRange buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1LimitRange buildMatchingItem(Predicate predicate) { - for (V1LimitRangeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1LimitRangeBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1LimitRangeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LimitRangeBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1LimitRange item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1LimitRange item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1LimitRange item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1LimitRange item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1LimitRangeListFluent.ItemsNested addNewItem() { return new V1LimitRangeListFluentImpl.ItemsNestedImpl(); } - public V1LimitRangeListFluent.ItemsNested addNewItemLike(V1LimitRange item) { return new V1LimitRangeListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1LimitRangeListFluent.ItemsNested setNewItemLike(Integer index, V1LimitRange item) { + public V1LimitRangeListFluent.ItemsNested setNewItemLike(Integer index,V1LimitRange item) { return new V1LimitRangeListFluentImpl.ItemsNestedImpl(index, item); } - public V1LimitRangeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1LimitRangeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1LimitRangeListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1LimitRangeListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1LimitRangeListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1LimitRangeListFluentImpl.MetadataNestedImpl(); } - public V1LimitRangeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1LimitRangeListFluentImpl.MetadataNestedImpl(item); } - public V1LimitRangeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1LimitRangeListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1LimitRangeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LimitRangeListFluentImpl that = (V1LimitRangeListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1LimitRangeFluentImpl> - implements V1LimitRangeListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1LimitRange item) { + class ItemsNestedImpl extends V1LimitRangeFluentImpl> implements V1LimitRangeListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1LimitRange item) { this.index = index; this.builder = new V1LimitRangeBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1LimitRangeBuilder(this); } - V1LimitRangeBuilder builder; Integer index; - public N and() { - return (N) V1LimitRangeListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1LimitRangeListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1LimitRangeListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1LimitRangeListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1LimitRangeListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java index ffec87c725..b6094f306b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluentImpl implements VisitableBuilder{ public V1LimitRangeSpecBuilder() { this(false); } - public V1LimitRangeSpecBuilder(Boolean validationEnabled) { this(new V1LimitRangeSpec(), validationEnabled); } - public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent) { this(fluent, false); } - - public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent, Boolean validationEnabled) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1LimitRangeSpec(), validationEnabled); } - - public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent, V1LimitRangeSpec instance) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,V1LimitRangeSpec instance) { this(fluent, instance, false); } - - public V1LimitRangeSpecBuilder( - V1LimitRangeSpecFluent fluent, V1LimitRangeSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,V1LimitRangeSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLimits(instance.getLimits()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance) { - this(instance, false); + this(instance,false); } - - public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withLimits(instance.getLimits()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LimitRangeSpecFluent fluent; Boolean validationEnabled; - public V1LimitRangeSpec build() { V1LimitRangeSpec buildable = new V1LimitRangeSpec(); buildable.setLimits(fluent.getLimits()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java index 54edd54082..e69d04e4c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java @@ -1,85 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1LimitRangeSpecFluent> extends Fluent { - public A addToLimits(Integer index, V1LimitRangeItem item); - - public A setToLimits(Integer index, V1LimitRangeItem item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1LimitRangeSpecFluent> extends Fluent{ + public A addToLimits(Integer index,V1LimitRangeItem item); + public A setToLimits(Integer index,V1LimitRangeItem item); public A addToLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items); - public A addAllToLimits(Collection items); - public A removeFromLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items); - public A removeAllFromLimits(Collection items); - public A removeMatchingFromLimits(Predicate predicate); - + /** * This method has been deprecated, please use method buildLimits instead. - * * @return The buildable object. */ @Deprecated public List getLimits(); - public List buildLimits(); - public V1LimitRangeItem buildLimit(Integer index); - public V1LimitRangeItem buildFirstLimit(); - public V1LimitRangeItem buildLastLimit(); - public V1LimitRangeItem buildMatchingLimit(Predicate predicate); - public Boolean hasMatchingLimit(Predicate predicate); - public A withLimits(List limits); - public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limits); - public Boolean hasLimits(); - public V1LimitRangeSpecFluent.LimitsNested addNewLimit(); - public V1LimitRangeSpecFluent.LimitsNested addNewLimitLike(V1LimitRangeItem item); - - public V1LimitRangeSpecFluent.LimitsNested setNewLimitLike( - Integer index, V1LimitRangeItem item); - + public V1LimitRangeSpecFluent.LimitsNested setNewLimitLike(Integer index,V1LimitRangeItem item); public V1LimitRangeSpecFluent.LimitsNested editLimit(Integer index); - public V1LimitRangeSpecFluent.LimitsNested editFirstLimit(); - public V1LimitRangeSpecFluent.LimitsNested editLastLimit(); - - public V1LimitRangeSpecFluent.LimitsNested editMatchingLimit( - Predicate predicate); - - public interface LimitsNested - extends Nested, V1LimitRangeItemFluent> { + public V1LimitRangeSpecFluent.LimitsNested editMatchingLimit(Predicate predicate); + public interface LimitsNested extends Nested,V1LimitRangeItemFluent>{ public N and(); - public N endLimit(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java index 894390a4a5..e39efe4ed4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java @@ -1,111 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LimitRangeSpecFluentImpl> extends BaseFluent - implements V1LimitRangeSpecFluent { - public V1LimitRangeSpecFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LimitRangeSpecFluentImpl> extends BaseFluent implements V1LimitRangeSpecFluent{ + public V1LimitRangeSpecFluentImpl() { + } public V1LimitRangeSpecFluentImpl(V1LimitRangeSpec instance) { this.withLimits(instance.getLimits()); - } + } private ArrayList limits; - - public A addToLimits(Integer index, V1LimitRangeItem item) { - if (this.limits == null) { - this.limits = new ArrayList(); - } - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").add(index >= 0 ? index : _visitables.get("limits").size(), builder); - this.limits.add(index >= 0 ? index : limits.size(), builder); - return (A) this; + public A addToLimits(Integer index,V1LimitRangeItem item) { + if (this.limits == null) {this.limits = new ArrayList();} + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(index >= 0 ? index : _visitables.get("limits").size(), builder);this.limits.add(index >= 0 ? index : limits.size(), builder); return (A)this; } - - public A setToLimits(Integer index, V1LimitRangeItem item) { - if (this.limits == null) { - this.limits = new ArrayList(); - } + public A setToLimits(Integer index,V1LimitRangeItem item) { + if (this.limits == null) {this.limits = new ArrayList();} V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= _visitables.get("limits").size()) { - _visitables.get("limits").add(builder); - } else { - _visitables.get("limits").set(index, builder); - } - if (index < 0 || index >= limits.size()) { - limits.add(builder); - } else { - limits.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("limits").size()) { _visitables.get("limits").add(builder); } else { _visitables.get("limits").set(index, builder);} + if (index < 0 || index >= limits.size()) { limits.add(builder); } else { limits.set(index, builder);} + return (A)this; } - public A addToLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { - if (this.limits == null) { - this.limits = new ArrayList(); - } - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").add(builder); - this.limits.add(builder); - } - return (A) this; + if (this.limits == null) {this.limits = new ArrayList();} + for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(builder);this.limits.add(builder);} return (A)this; } - public A addAllToLimits(Collection items) { - if (this.limits == null) { - this.limits = new ArrayList(); - } - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").add(builder); - this.limits.add(builder); - } - return (A) this; + if (this.limits == null) {this.limits = new ArrayList();} + for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(builder);this.limits.add(builder);} return (A)this; } - public A removeFromLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").remove(builder); - if (this.limits != null) { - this.limits.remove(builder); - } - } - return (A) this; + for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").remove(builder);if (this.limits != null) {this.limits.remove(builder);}} return (A)this; } - public A removeAllFromLimits(Collection items) { - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").remove(builder); - if (this.limits != null) { - this.limits.remove(builder); - } - } - return (A) this; + for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").remove(builder);if (this.limits != null) {this.limits.remove(builder);}} return (A)this; } - public A removeMatchingFromLimits(Predicate predicate) { if (limits == null) return (A) this; final Iterator each = limits.iterator(); @@ -117,173 +63,111 @@ public A removeMatchingFromLimits(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildLimits instead. - * * @return The buildable object. */ @Deprecated public List getLimits() { return limits != null ? build(limits) : null; } - public List buildLimits() { return limits != null ? build(limits) : null; } - public V1LimitRangeItem buildLimit(Integer index) { return this.limits.get(index).build(); } - public V1LimitRangeItem buildFirstLimit() { return this.limits.get(0).build(); } - public V1LimitRangeItem buildLastLimit() { return this.limits.get(limits.size() - 1).build(); } - public V1LimitRangeItem buildMatchingLimit(Predicate predicate) { - for (V1LimitRangeItemBuilder item : limits) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1LimitRangeItemBuilder item: limits) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingLimit(Predicate predicate) { - for (V1LimitRangeItemBuilder item : limits) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LimitRangeItemBuilder item: limits) { if(predicate.test(item)){ return true;} } return false; } - public A withLimits(List limits) { - if (this.limits != null) { - _visitables.get("limits").removeAll(this.limits); - } - if (limits != null) { - this.limits = new ArrayList(); - for (V1LimitRangeItem item : limits) { - this.addToLimits(item); - } - } else { - this.limits = null; - } - return (A) this; + if (this.limits != null) { _visitables.get("limits").removeAll(this.limits);} + if (limits != null) {this.limits = new ArrayList(); for (V1LimitRangeItem item : limits){this.addToLimits(item);}} else { this.limits = null;} return (A) this; } - public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limits) { - if (this.limits != null) { - this.limits.clear(); - } - if (limits != null) { - for (V1LimitRangeItem item : limits) { - this.addToLimits(item); - } - } - return (A) this; + if (this.limits != null) {this.limits.clear();} + if (limits != null) {for (V1LimitRangeItem item :limits){ this.addToLimits(item);}} return (A) this; } - public Boolean hasLimits() { return limits != null && !limits.isEmpty(); } - public V1LimitRangeSpecFluent.LimitsNested addNewLimit() { return new V1LimitRangeSpecFluentImpl.LimitsNestedImpl(); } - public V1LimitRangeSpecFluent.LimitsNested addNewLimitLike(V1LimitRangeItem item) { return new V1LimitRangeSpecFluentImpl.LimitsNestedImpl(-1, item); } - - public V1LimitRangeSpecFluent.LimitsNested setNewLimitLike( - Integer index, V1LimitRangeItem item) { + public V1LimitRangeSpecFluent.LimitsNested setNewLimitLike(Integer index,V1LimitRangeItem item) { return new V1LimitRangeSpecFluentImpl.LimitsNestedImpl(index, item); } - public V1LimitRangeSpecFluent.LimitsNested editLimit(Integer index) { - if (limits.size() <= index) - throw new RuntimeException("Can't edit limits. Index exceeds size."); + if (limits.size() <= index) throw new RuntimeException("Can't edit limits. Index exceeds size."); return setNewLimitLike(index, buildLimit(index)); } - public V1LimitRangeSpecFluent.LimitsNested editFirstLimit() { - if (limits.size() == 0) - throw new RuntimeException("Can't edit first limits. The list is empty."); + if (limits.size() == 0) throw new RuntimeException("Can't edit first limits. The list is empty."); return setNewLimitLike(0, buildLimit(0)); } - public V1LimitRangeSpecFluent.LimitsNested editLastLimit() { int index = limits.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last limits. The list is empty."); return setNewLimitLike(index, buildLimit(index)); } - - public V1LimitRangeSpecFluent.LimitsNested editMatchingLimit( - Predicate predicate) { + public V1LimitRangeSpecFluent.LimitsNested editMatchingLimit(Predicate predicate) { int index = -1; - for (int i = 0; i < limits.size(); i++) { - if (predicate.test(limits.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1LimitRangeItemFluentImpl> - implements V1LimitRangeSpecFluent.LimitsNested, Nested { - LimitsNestedImpl(Integer index, V1LimitRangeItem item) { + class LimitsNestedImpl extends V1LimitRangeItemFluentImpl> implements V1LimitRangeSpecFluent.LimitsNested,Nested{ + LimitsNestedImpl(Integer index,V1LimitRangeItem item) { this.index = index; this.builder = new V1LimitRangeItemBuilder(this, item); } - LimitsNestedImpl() { this.index = -1; this.builder = new V1LimitRangeItemBuilder(this); } - V1LimitRangeItemBuilder builder; Integer index; - public N and() { - return (N) V1LimitRangeSpecFluentImpl.this.setToLimits(index, builder.build()); + return (N) V1LimitRangeSpecFluentImpl.this.setToLimits(index,builder.build()); } - public N endLimit() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java index 2f752476f1..813de52a95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ListMetaBuilder extends V1ListMetaFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ListMetaBuilder extends V1ListMetaFluentImpl implements VisitableBuilder{ public V1ListMetaBuilder() { this(false); } - public V1ListMetaBuilder(Boolean validationEnabled) { this(new V1ListMeta(), validationEnabled); } - public V1ListMetaBuilder(V1ListMetaFluent fluent) { this(fluent, false); } - - public V1ListMetaBuilder(V1ListMetaFluent fluent, Boolean validationEnabled) { + public V1ListMetaBuilder(V1ListMetaFluent fluent,Boolean validationEnabled) { this(fluent, new V1ListMeta(), validationEnabled); } - - public V1ListMetaBuilder(V1ListMetaFluent fluent, V1ListMeta instance) { + public V1ListMetaBuilder(V1ListMetaFluent fluent,V1ListMeta instance) { this(fluent, instance, false); } - - public V1ListMetaBuilder( - V1ListMetaFluent fluent, V1ListMeta instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ListMetaBuilder(V1ListMetaFluent fluent,V1ListMeta instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContinue(instance.getContinue()); fluent.withRemainingItemCount(instance.getRemainingItemCount()); @@ -47,15 +28,13 @@ public V1ListMetaBuilder( fluent.withSelfLink(instance.getSelfLink()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ListMetaBuilder(V1ListMeta instance) { - this(instance, false); + this(instance,false); } - - public V1ListMetaBuilder(V1ListMeta instance, Boolean validationEnabled) { - this.fluent = this; + public V1ListMetaBuilder(V1ListMeta instance,Boolean validationEnabled) { + this.fluent = this; this.withContinue(instance.getContinue()); this.withRemainingItemCount(instance.getRemainingItemCount()); @@ -64,12 +43,10 @@ public V1ListMetaBuilder(V1ListMeta instance, Boolean validationEnabled) { this.withSelfLink(instance.getSelfLink()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ListMetaFluent fluent; Boolean validationEnabled; - public V1ListMeta build() { V1ListMeta buildable = new V1ListMeta(); buildable.setContinue(fluent.getContinue()); @@ -78,4 +55,5 @@ public V1ListMeta build() { buildable.setSelfLink(fluent.getSelfLink()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java index a55abf8c12..42fbee7db4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java @@ -1,42 +1,25 @@ -/* -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.Fluent; - -/** Generated */ -public interface V1ListMetaFluent> extends Fluent { +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ListMetaFluent> extends Fluent{ public String getContinue(); - public A withContinue(String _continue); - public Boolean hasContinue(); - public Long getRemainingItemCount(); - public A withRemainingItemCount(Long remainingItemCount); - public Boolean hasRemainingItemCount(); - public String getResourceVersion(); - public A withResourceVersion(String resourceVersion); - public Boolean hasResourceVersion(); - public String getSelfLink(); - public A withSelfLink(String selfLink); - public Boolean hasSelfLink(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java index 7d6c3705f3..435125532d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java @@ -1,25 +1,19 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ListMetaFluentImpl> extends BaseFluent - implements V1ListMetaFluent { - public V1ListMetaFluentImpl() {} - +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ListMetaFluentImpl> extends BaseFluent implements V1ListMetaFluent{ + public V1ListMetaFluentImpl() { + } public V1ListMetaFluentImpl(V1ListMeta instance) { this.withContinue(instance.getContinue()); @@ -28,106 +22,70 @@ public V1ListMetaFluentImpl(V1ListMeta instance) { this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); - } + } private String _continue; private Long remainingItemCount; private String resourceVersion; private String selfLink; - public String getContinue() { return this._continue; } - public A withContinue(String _continue) { - this._continue = _continue; - return (A) this; + this._continue=_continue; return (A) this; } - public Boolean hasContinue() { return this._continue != null; } - public Long getRemainingItemCount() { return this.remainingItemCount; } - public A withRemainingItemCount(Long remainingItemCount) { - this.remainingItemCount = remainingItemCount; - return (A) this; + this.remainingItemCount=remainingItemCount; return (A) this; } - public Boolean hasRemainingItemCount() { return this.remainingItemCount != null; } - public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + this.resourceVersion=resourceVersion; return (A) this; } - public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public String getSelfLink() { return this.selfLink; } - public A withSelfLink(String selfLink) { - this.selfLink = selfLink; - return (A) this; + this.selfLink=selfLink; return (A) this; } - public Boolean hasSelfLink() { return this.selfLink != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ListMetaFluentImpl that = (V1ListMetaFluentImpl) o; - if (_continue != null ? !_continue.equals(that._continue) : that._continue != null) - return false; - if (remainingItemCount != null - ? !remainingItemCount.equals(that.remainingItemCount) - : that.remainingItemCount != null) return false; - if (resourceVersion != null - ? !resourceVersion.equals(that.resourceVersion) - : that.resourceVersion != null) return false; - if (selfLink != null ? !selfLink.equals(that.selfLink) : that.selfLink != null) return false; + if (_continue != null ? !_continue.equals(that._continue) :that._continue != null) return false; + if (remainingItemCount != null ? !remainingItemCount.equals(that.remainingItemCount) :that.remainingItemCount != null) return false; + if (resourceVersion != null ? !resourceVersion.equals(that.resourceVersion) :that.resourceVersion != null) return false; + if (selfLink != null ? !selfLink.equals(that.selfLink) :that.selfLink != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - _continue, remainingItemCount, resourceVersion, selfLink, super.hashCode()); + return java.util.Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_continue != null) { - sb.append("_continue:"); - sb.append(_continue + ","); - } - if (remainingItemCount != null) { - sb.append("remainingItemCount:"); - sb.append(remainingItemCount + ","); - } - if (resourceVersion != null) { - sb.append("resourceVersion:"); - sb.append(resourceVersion + ","); - } - if (selfLink != null) { - sb.append("selfLink:"); - sb.append(selfLink); - } + if (_continue != null) { sb.append("_continue:"); sb.append(_continue + ","); } + if (remainingItemCount != null) { sb.append("remainingItemCount:"); sb.append(remainingItemCount + ","); } + if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } + if (selfLink != null) { sb.append("selfLink:"); sb.append(selfLink); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java index 44f0eab336..491758cd10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1LoadBalancerIngressBuilder - extends V1LoadBalancerIngressFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LoadBalancerIngressBuilder extends V1LoadBalancerIngressFluentImpl implements VisitableBuilder{ public V1LoadBalancerIngressBuilder() { this(false); } - public V1LoadBalancerIngressBuilder(Boolean validationEnabled) { this(new V1LoadBalancerIngress(), validationEnabled); } - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent) { this(fluent, false); } - - public V1LoadBalancerIngressBuilder( - V1LoadBalancerIngressFluent fluent, Boolean validationEnabled) { + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,Boolean validationEnabled) { this(fluent, new V1LoadBalancerIngress(), validationEnabled); } - - public V1LoadBalancerIngressBuilder( - V1LoadBalancerIngressFluent fluent, V1LoadBalancerIngress instance) { + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,V1LoadBalancerIngress instance) { this(fluent, instance, false); } - - public V1LoadBalancerIngressBuilder( - V1LoadBalancerIngressFluent fluent, - V1LoadBalancerIngress instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,V1LoadBalancerIngress instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHostname(instance.getHostname()); fluent.withIp(instance.getIp()); fluent.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance) { - this(instance, false); + this(instance,false); } - - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance, Boolean validationEnabled) { - this.fluent = this; + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance,Boolean validationEnabled) { + this.fluent = this; this.withHostname(instance.getHostname()); this.withIp(instance.getIp()); this.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LoadBalancerIngressFluent fluent; Boolean validationEnabled; - public V1LoadBalancerIngress build() { V1LoadBalancerIngress buildable = new V1LoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); @@ -78,4 +50,5 @@ public V1LoadBalancerIngress build() { buildable.setPorts(fluent.getPorts()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java index 87e7e89706..b89023c8fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java @@ -1,98 +1,62 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1LoadBalancerIngressFluent> - extends Fluent { + /** + * Generated + */ +public interface V1LoadBalancerIngressFluent> extends Fluent{ public String getHostname(); - public A withHostname(String hostname); - public Boolean hasHostname(); - public String getIp(); - public A withIp(String ip); - public Boolean hasIp(); - - public A addToPorts(Integer index, V1PortStatus item); - - public A setToPorts(Integer index, V1PortStatus item); - + public A addToPorts(Integer index,V1PortStatus item); + public A setToPorts(Integer index,V1PortStatus item); public A addToPorts(io.kubernetes.client.openapi.models.V1PortStatus... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.V1PortStatus... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public V1PortStatus buildPort(Integer index); - public V1PortStatus buildFirstPort(); - public V1PortStatus buildLastPort(); - public V1PortStatus buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports); - public Boolean hasPorts(); - public V1LoadBalancerIngressFluent.PortsNested addNewPort(); - public V1LoadBalancerIngressFluent.PortsNested addNewPortLike(V1PortStatus item); - - public V1LoadBalancerIngressFluent.PortsNested setNewPortLike( - Integer index, V1PortStatus item); - + public V1LoadBalancerIngressFluent.PortsNested setNewPortLike(Integer index,V1PortStatus item); public V1LoadBalancerIngressFluent.PortsNested editPort(Integer index); - public V1LoadBalancerIngressFluent.PortsNested editFirstPort(); - public V1LoadBalancerIngressFluent.PortsNested editLastPort(); - - public V1LoadBalancerIngressFluent.PortsNested editMatchingPort( - Predicate predicate); - - public interface PortsNested - extends Nested, V1PortStatusFluent> { + public V1LoadBalancerIngressFluent.PortsNested editMatchingPort(Predicate predicate); + public interface PortsNested extends Nested,V1PortStatusFluent>{ public N and(); - public N endPort(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java index 78fb918628..942594e3c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java @@ -1,143 +1,81 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LoadBalancerIngressFluentImpl> - extends BaseFluent implements V1LoadBalancerIngressFluent { - public V1LoadBalancerIngressFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LoadBalancerIngressFluentImpl> extends BaseFluent implements V1LoadBalancerIngressFluent{ + public V1LoadBalancerIngressFluentImpl() { + } public V1LoadBalancerIngressFluentImpl(V1LoadBalancerIngress instance) { this.withHostname(instance.getHostname()); this.withIp(instance.getIp()); this.withPorts(instance.getPorts()); - } + } private String hostname; private String ip; private ArrayList ports; - public String getHostname() { return this.hostname; } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + this.hostname=hostname; return (A) this; } - public Boolean hasHostname() { return this.hostname != null; } - public String getIp() { return this.ip; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + this.ip=ip; return (A) this; } - public Boolean hasIp() { return this.ip != null; } - - public A addToPorts(Integer index, V1PortStatus item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,V1PortStatus item) { + if (this.ports == null) {this.ports = new ArrayList();} + V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, V1PortStatus item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,V1PortStatus item) { + if (this.ports == null) {this.ports = new ArrayList();} V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -149,181 +87,115 @@ public A removeMatchingFromPorts(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public V1PortStatus buildPort(Integer index) { return this.ports.get(index).build(); } - public V1PortStatus buildFirstPort() { return this.ports.get(0).build(); } - public V1PortStatus buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public V1PortStatus buildMatchingPort(Predicate predicate) { - for (V1PortStatusBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PortStatusBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (V1PortStatusBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PortStatusBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1PortStatus item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (V1PortStatus item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (V1PortStatus item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (V1PortStatus item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1LoadBalancerIngressFluent.PortsNested addNewPort() { return new V1LoadBalancerIngressFluentImpl.PortsNestedImpl(); } - public V1LoadBalancerIngressFluent.PortsNested addNewPortLike(V1PortStatus item) { return new V1LoadBalancerIngressFluentImpl.PortsNestedImpl(-1, item); } - - public V1LoadBalancerIngressFluent.PortsNested setNewPortLike( - Integer index, V1PortStatus item) { + public V1LoadBalancerIngressFluent.PortsNested setNewPortLike(Integer index,V1PortStatus item) { return new V1LoadBalancerIngressFluentImpl.PortsNestedImpl(index, item); } - public V1LoadBalancerIngressFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1LoadBalancerIngressFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1LoadBalancerIngressFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1LoadBalancerIngressFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1LoadBalancerIngressFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1PortStatusFluentImpl> - implements V1LoadBalancerIngressFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, V1PortStatus item) { + class PortsNestedImpl extends V1PortStatusFluentImpl> implements V1LoadBalancerIngressFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,V1PortStatus item) { this.index = index; this.builder = new V1PortStatusBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new V1PortStatusBuilder(this); } - V1PortStatusBuilder builder; Integer index; - public N and() { - return (N) V1LoadBalancerIngressFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1LoadBalancerIngressFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java index a24d32a2e0..357fdbc186 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1LoadBalancerStatusBuilder - extends V1LoadBalancerStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LoadBalancerStatusBuilder extends V1LoadBalancerStatusFluentImpl implements VisitableBuilder{ public V1LoadBalancerStatusBuilder() { this(false); } - public V1LoadBalancerStatusBuilder(Boolean validationEnabled) { this(new V1LoadBalancerStatus(), validationEnabled); } - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent) { this(fluent, false); } - - public V1LoadBalancerStatusBuilder( - V1LoadBalancerStatusFluent fluent, Boolean validationEnabled) { + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1LoadBalancerStatus(), validationEnabled); } - - public V1LoadBalancerStatusBuilder( - V1LoadBalancerStatusFluent fluent, V1LoadBalancerStatus instance) { + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,V1LoadBalancerStatus instance) { this(fluent, instance, false); } - - public V1LoadBalancerStatusBuilder( - V1LoadBalancerStatusFluent fluent, - V1LoadBalancerStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,V1LoadBalancerStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withIngress(instance.getIngress()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance) { - this(instance, false); + this(instance,false); } - - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withIngress(instance.getIngress()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LoadBalancerStatusFluent fluent; Boolean validationEnabled; - public V1LoadBalancerStatus build() { V1LoadBalancerStatus buildable = new V1LoadBalancerStatus(); buildable.setIngress(fluent.getIngress()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java index f37d4bea23..9e51a8e713 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java @@ -1,87 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1LoadBalancerStatusFluent> - extends Fluent { - public A addToIngress(Integer index, V1LoadBalancerIngress item); - - public A setToIngress(Integer index, V1LoadBalancerIngress item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1LoadBalancerStatusFluent> extends Fluent{ + public A addToIngress(Integer index,V1LoadBalancerIngress item); + public A setToIngress(Integer index,V1LoadBalancerIngress item); public A addToIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items); - public A addAllToIngress(Collection items); - public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items); - public A removeAllFromIngress(Collection items); - public A removeMatchingFromIngress(Predicate predicate); - + /** * This method has been deprecated, please use method buildIngress instead. - * * @return The buildable object. */ @Deprecated public List getIngress(); - public List buildIngress(); - public V1LoadBalancerIngress buildIngress(Integer index); - public V1LoadBalancerIngress buildFirstIngress(); - public V1LoadBalancerIngress buildLastIngress(); - - public V1LoadBalancerIngress buildMatchingIngress( - Predicate predicate); - + public V1LoadBalancerIngress buildMatchingIngress(Predicate predicate); public Boolean hasMatchingIngress(Predicate predicate); - public A withIngress(List ingress); - public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... ingress); - public Boolean hasIngress(); - public V1LoadBalancerStatusFluent.IngressNested addNewIngress(); - public V1LoadBalancerStatusFluent.IngressNested addNewIngressLike(V1LoadBalancerIngress item); - - public V1LoadBalancerStatusFluent.IngressNested setNewIngressLike( - Integer index, V1LoadBalancerIngress item); - + public V1LoadBalancerStatusFluent.IngressNested setNewIngressLike(Integer index,V1LoadBalancerIngress item); public V1LoadBalancerStatusFluent.IngressNested editIngress(Integer index); - public V1LoadBalancerStatusFluent.IngressNested editFirstIngress(); - public V1LoadBalancerStatusFluent.IngressNested editLastIngress(); - - public V1LoadBalancerStatusFluent.IngressNested editMatchingIngress( - Predicate predicate); - - public interface IngressNested - extends Nested, V1LoadBalancerIngressFluent> { + public V1LoadBalancerStatusFluent.IngressNested editMatchingIngress(Predicate predicate); + public interface IngressNested extends Nested,V1LoadBalancerIngressFluent>{ public N and(); - public N endIngress(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java index 673ba85db6..c4920dc97b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java @@ -1,111 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LoadBalancerStatusFluentImpl> - extends BaseFluent implements V1LoadBalancerStatusFluent { - public V1LoadBalancerStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LoadBalancerStatusFluentImpl> extends BaseFluent implements V1LoadBalancerStatusFluent{ + public V1LoadBalancerStatusFluentImpl() { + } public V1LoadBalancerStatusFluentImpl(V1LoadBalancerStatus instance) { this.withIngress(instance.getIngress()); - } + } private ArrayList ingress; - - public A addToIngress(Integer index, V1LoadBalancerIngress item) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(index >= 0 ? index : _visitables.get("ingress").size(), builder); - this.ingress.add(index >= 0 ? index : ingress.size(), builder); - return (A) this; + public A addToIngress(Integer index,V1LoadBalancerIngress item) { + if (this.ingress == null) {this.ingress = new ArrayList();} + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(index >= 0 ? index : _visitables.get("ingress").size(), builder);this.ingress.add(index >= 0 ? index : ingress.size(), builder); return (A)this; } - - public A setToIngress(Integer index, V1LoadBalancerIngress item) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } + public A setToIngress(Integer index,V1LoadBalancerIngress item) { + if (this.ingress == null) {this.ingress = new ArrayList();} V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= _visitables.get("ingress").size()) { - _visitables.get("ingress").add(builder); - } else { - _visitables.get("ingress").set(index, builder); - } - if (index < 0 || index >= ingress.size()) { - ingress.add(builder); - } else { - ingress.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ingress").size()) { _visitables.get("ingress").add(builder); } else { _visitables.get("ingress").set(index, builder);} + if (index < 0 || index >= ingress.size()) { ingress.add(builder); } else { ingress.set(index, builder);} + return (A)this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; + if (this.ingress == null) {this.ingress = new ArrayList();} + for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; } - public A addAllToIngress(Collection items) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; + if (this.ingress == null) {this.ingress = new ArrayList();} + for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").remove(builder); - if (this.ingress != null) { - this.ingress.remove(builder); - } - } - return (A) this; + for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder);if (this.ingress != null) {this.ingress.remove(builder);}} return (A)this; } - public A removeAllFromIngress(Collection items) { - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").remove(builder); - if (this.ingress != null) { - this.ingress.remove(builder); - } - } - return (A) this; + for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder);if (this.ingress != null) {this.ingress.remove(builder);}} return (A)this; } - public A removeMatchingFromIngress(Predicate predicate) { if (ingress == null) return (A) this; final Iterator each = ingress.iterator(); @@ -117,174 +63,111 @@ public A removeMatchingFromIngress(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildIngress instead. - * * @return The buildable object. */ @Deprecated public List getIngress() { return ingress != null ? build(ingress) : null; } - public List buildIngress() { return ingress != null ? build(ingress) : null; } - public V1LoadBalancerIngress buildIngress(Integer index) { return this.ingress.get(index).build(); } - public V1LoadBalancerIngress buildFirstIngress() { return this.ingress.get(0).build(); } - public V1LoadBalancerIngress buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } - - public V1LoadBalancerIngress buildMatchingIngress( - Predicate predicate) { - for (V1LoadBalancerIngressBuilder item : ingress) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1LoadBalancerIngress buildMatchingIngress(Predicate predicate) { + for (V1LoadBalancerIngressBuilder item: ingress) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingIngress(Predicate predicate) { - for (V1LoadBalancerIngressBuilder item : ingress) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LoadBalancerIngressBuilder item: ingress) { if(predicate.test(item)){ return true;} } return false; } - public A withIngress(List ingress) { - if (this.ingress != null) { - _visitables.get("ingress").removeAll(this.ingress); - } - if (ingress != null) { - this.ingress = new ArrayList(); - for (V1LoadBalancerIngress item : ingress) { - this.addToIngress(item); - } - } else { - this.ingress = null; - } - return (A) this; + if (this.ingress != null) { _visitables.get("ingress").removeAll(this.ingress);} + if (ingress != null) {this.ingress = new ArrayList(); for (V1LoadBalancerIngress item : ingress){this.addToIngress(item);}} else { this.ingress = null;} return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... ingress) { - if (this.ingress != null) { - this.ingress.clear(); - } - if (ingress != null) { - for (V1LoadBalancerIngress item : ingress) { - this.addToIngress(item); - } - } - return (A) this; + if (this.ingress != null) {this.ingress.clear();} + if (ingress != null) {for (V1LoadBalancerIngress item :ingress){ this.addToIngress(item);}} return (A) this; } - public Boolean hasIngress() { return ingress != null && !ingress.isEmpty(); } - public V1LoadBalancerStatusFluent.IngressNested addNewIngress() { return new V1LoadBalancerStatusFluentImpl.IngressNestedImpl(); } - public V1LoadBalancerStatusFluent.IngressNested addNewIngressLike(V1LoadBalancerIngress item) { return new V1LoadBalancerStatusFluentImpl.IngressNestedImpl(-1, item); } - - public V1LoadBalancerStatusFluent.IngressNested setNewIngressLike( - Integer index, V1LoadBalancerIngress item) { + public V1LoadBalancerStatusFluent.IngressNested setNewIngressLike(Integer index,V1LoadBalancerIngress item) { return new V1LoadBalancerStatusFluentImpl.IngressNestedImpl(index, item); } - public V1LoadBalancerStatusFluent.IngressNested editIngress(Integer index) { - if (ingress.size() <= index) - throw new RuntimeException("Can't edit ingress. Index exceeds size."); + if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); return setNewIngressLike(index, buildIngress(index)); } - public V1LoadBalancerStatusFluent.IngressNested editFirstIngress() { - if (ingress.size() == 0) - throw new RuntimeException("Can't edit first ingress. The list is empty."); + if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); return setNewIngressLike(0, buildIngress(0)); } - public V1LoadBalancerStatusFluent.IngressNested editLastIngress() { int index = ingress.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); return setNewIngressLike(index, buildIngress(index)); } - - public V1LoadBalancerStatusFluent.IngressNested editMatchingIngress( - Predicate predicate) { + public V1LoadBalancerStatusFluent.IngressNested editMatchingIngress(Predicate predicate) { int index = -1; - for (int i = 0; i < ingress.size(); i++) { - if (predicate.test(ingress.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1LoadBalancerIngressFluentImpl> - implements V1LoadBalancerStatusFluent.IngressNested, Nested { - IngressNestedImpl(Integer index, V1LoadBalancerIngress item) { + class IngressNestedImpl extends V1LoadBalancerIngressFluentImpl> implements V1LoadBalancerStatusFluent.IngressNested,Nested{ + IngressNestedImpl(Integer index,V1LoadBalancerIngress item) { this.index = index; this.builder = new V1LoadBalancerIngressBuilder(this, item); } - IngressNestedImpl() { this.index = -1; this.builder = new V1LoadBalancerIngressBuilder(this); } - V1LoadBalancerIngressBuilder builder; Integer index; - public N and() { - return (N) V1LoadBalancerStatusFluentImpl.this.setToIngress(index, builder.build()); + return (N) V1LoadBalancerStatusFluentImpl.this.setToIngress(index,builder.build()); } - public N endIngress() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java index c1146158b9..9456038302 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1LocalObjectReferenceBuilder - extends V1LocalObjectReferenceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LocalObjectReferenceBuilder extends V1LocalObjectReferenceFluentImpl implements VisitableBuilder{ public V1LocalObjectReferenceBuilder() { this(false); } - public V1LocalObjectReferenceBuilder(Boolean validationEnabled) { this(new V1LocalObjectReference(), validationEnabled); } - public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent) { this(fluent, false); } - - public V1LocalObjectReferenceBuilder( - V1LocalObjectReferenceFluent fluent, Boolean validationEnabled) { + public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1LocalObjectReference(), validationEnabled); } - - public V1LocalObjectReferenceBuilder( - V1LocalObjectReferenceFluent fluent, V1LocalObjectReference instance) { + public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,V1LocalObjectReference instance) { this(fluent, instance, false); } - - public V1LocalObjectReferenceBuilder( - V1LocalObjectReferenceFluent fluent, - V1LocalObjectReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,V1LocalObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LocalObjectReferenceFluent fluent; Boolean validationEnabled; - public V1LocalObjectReference build() { V1LocalObjectReference buildable = new V1LocalObjectReference(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java index 3e5254c168..d3c05e4f05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java @@ -1,25 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1LocalObjectReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1LocalObjectReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java index 90f60612a8..1a5be46284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LocalObjectReferenceFluentImpl> - extends BaseFluent implements V1LocalObjectReferenceFluent { - public V1LocalObjectReferenceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LocalObjectReferenceFluentImpl> extends BaseFluent implements V1LocalObjectReferenceFluent{ + public V1LocalObjectReferenceFluentImpl() { + } public V1LocalObjectReferenceFluentImpl(V1LocalObjectReference instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LocalObjectReferenceFluentImpl that = (V1LocalObjectReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java index b58c9c50d3..6ff5d616eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1LocalSubjectAccessReviewBuilder - extends V1LocalSubjectAccessReviewFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LocalSubjectAccessReviewBuilder extends V1LocalSubjectAccessReviewFluentImpl implements VisitableBuilder{ public V1LocalSubjectAccessReviewBuilder() { this(false); } - public V1LocalSubjectAccessReviewBuilder(Boolean validationEnabled) { this(new V1LocalSubjectAccessReview(), validationEnabled); } - public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent) { this(fluent, false); } - - public V1LocalSubjectAccessReviewBuilder( - V1LocalSubjectAccessReviewFluent fluent, Boolean validationEnabled) { + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,Boolean validationEnabled) { this(fluent, new V1LocalSubjectAccessReview(), validationEnabled); } - - public V1LocalSubjectAccessReviewBuilder( - V1LocalSubjectAccessReviewFluent fluent, V1LocalSubjectAccessReview instance) { + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,V1LocalSubjectAccessReview instance) { this(fluent, instance, false); } - - public V1LocalSubjectAccessReviewBuilder( - V1LocalSubjectAccessReviewFluent fluent, - V1LocalSubjectAccessReview instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,V1LocalSubjectAccessReview instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1LocalSubjectAccessReviewBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReview instance) { - this(instance, false); + this(instance,false); } - - public V1LocalSubjectAccessReviewBuilder( - V1LocalSubjectAccessReview instance, Boolean validationEnabled) { - this.fluent = this; + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReview instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1LocalSubjectAccessReviewBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LocalSubjectAccessReviewFluent fluent; Boolean validationEnabled; - public V1LocalSubjectAccessReview build() { V1LocalSubjectAccessReview buildable = new V1LocalSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1LocalSubjectAccessReview build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java index cecf8f30ea..de85b9634a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java @@ -1,132 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1LocalSubjectAccessReviewFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1LocalSubjectAccessReviewFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadata(); - public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1LocalSubjectAccessReviewFluent.MetadataNested editMetadata(); - public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadata(); - - public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewSpec getSpec(); - public V1SubjectAccessReviewSpec buildSpec(); - public A withSpec(V1SubjectAccessReviewSpec spec); - public Boolean hasSpec(); - public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpec(); - - public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpecLike( - V1SubjectAccessReviewSpec item); - + public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item); public V1LocalSubjectAccessReviewFluent.SpecNested editSpec(); - public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpec(); - - public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( - V1SubjectAccessReviewSpec item); - + public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewStatus getStatus(); - public V1SubjectAccessReviewStatus buildStatus(); - public A withStatus(V1SubjectAccessReviewStatus status); - public Boolean hasStatus(); - public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatus(); - - public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatusLike( - V1SubjectAccessReviewStatus item); - + public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item); public V1LocalSubjectAccessReviewFluent.StatusNested editStatus(); - public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatus(); - - public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectAccessReviewStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1SubjectAccessReviewSpecFluent> { + public interface SpecNested extends Nested,V1SubjectAccessReviewSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1SubjectAccessReviewStatusFluent> { + public interface StatusNested extends Nested,V1SubjectAccessReviewStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java index e5e4a83304..762a54d32c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LocalSubjectAccessReviewFluentImpl> - extends BaseFluent implements V1LocalSubjectAccessReviewFluent { - public V1LocalSubjectAccessReviewFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LocalSubjectAccessReviewFluentImpl> extends BaseFluent implements V1LocalSubjectAccessReviewFluent{ + public V1LocalSubjectAccessReviewFluentImpl() { + } public V1LocalSubjectAccessReviewFluentImpl(V1LocalSubjectAccessReview instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,306 +25,205 @@ public V1LocalSubjectAccessReviewFluentImpl(V1LocalSubjectAccessReview instance) this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadata() { return new V1LocalSubjectAccessReviewFluentImpl.MetadataNestedImpl(); } - public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1LocalSubjectAccessReviewFluentImpl.MetadataNestedImpl(item); } - public V1LocalSubjectAccessReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1SubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1SubjectAccessReviewSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1SubjectAccessReviewSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1SubjectAccessReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpec() { return new V1LocalSubjectAccessReviewFluentImpl.SpecNestedImpl(); } - - public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpecLike( - V1SubjectAccessReviewSpec item) { + public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { return new V1LocalSubjectAccessReviewFluentImpl.SpecNestedImpl(item); } - public V1LocalSubjectAccessReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1SubjectAccessReviewSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1SubjectAccessReviewSpecBuilder().build()); } - - public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( - V1SubjectAccessReviewSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1SubjectAccessReviewStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1SubjectAccessReviewStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1SubjectAccessReviewStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatus() { return new V1LocalSubjectAccessReviewFluentImpl.StatusNestedImpl(); } - - public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatusLike( - V1SubjectAccessReviewStatus item) { + public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { return new V1LocalSubjectAccessReviewFluentImpl.StatusNestedImpl(item); } - public V1LocalSubjectAccessReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1SubjectAccessReviewStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1SubjectAccessReviewStatusBuilder().build()); } - - public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectAccessReviewStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LocalSubjectAccessReviewFluentImpl that = (V1LocalSubjectAccessReviewFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1LocalSubjectAccessReviewFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1LocalSubjectAccessReviewFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1LocalSubjectAccessReviewFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1SubjectAccessReviewSpecFluentImpl> - implements V1LocalSubjectAccessReviewFluent.SpecNested, Nested { + class SpecNestedImpl extends V1SubjectAccessReviewSpecFluentImpl> implements V1LocalSubjectAccessReviewFluent.SpecNested,Nested{ SpecNestedImpl(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1SubjectAccessReviewSpecBuilder(this); } - V1SubjectAccessReviewSpecBuilder builder; - public N and() { return (N) V1LocalSubjectAccessReviewFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1SubjectAccessReviewStatusFluentImpl< - V1LocalSubjectAccessReviewFluent.StatusNested> - implements V1LocalSubjectAccessReviewFluent.StatusNested, Nested { + class StatusNestedImpl extends V1SubjectAccessReviewStatusFluentImpl> implements V1LocalSubjectAccessReviewFluent.StatusNested,Nested{ StatusNestedImpl(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1SubjectAccessReviewStatusBuilder(this); } - V1SubjectAccessReviewStatusBuilder builder; - public N and() { return (N) V1LocalSubjectAccessReviewFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java index 4d65ea5095..d0f470ff23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1LocalVolumeSourceBuilder - extends V1LocalVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1LocalVolumeSourceBuilder extends V1LocalVolumeSourceFluentImpl implements VisitableBuilder{ public V1LocalVolumeSourceBuilder() { this(false); } - public V1LocalVolumeSourceBuilder(Boolean validationEnabled) { this(new V1LocalVolumeSource(), validationEnabled); } - public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent) { this(fluent, false); } - - public V1LocalVolumeSourceBuilder( - V1LocalVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1LocalVolumeSource(), validationEnabled); } - - public V1LocalVolumeSourceBuilder( - V1LocalVolumeSourceFluent fluent, V1LocalVolumeSource instance) { + public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,V1LocalVolumeSource instance) { this(fluent, instance, false); } - - public V1LocalVolumeSourceBuilder( - V1LocalVolumeSourceFluent fluent, - V1LocalVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,V1LocalVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withPath(instance.getPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withPath(instance.getPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1LocalVolumeSourceFluent fluent; Boolean validationEnabled; - public V1LocalVolumeSource build() { V1LocalVolumeSource buildable = new V1LocalVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setPath(fluent.getPath()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java index a54634f169..f177a22805 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1LocalVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1LocalVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java index ed2c1f651b..238ea9dedd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1LocalVolumeSourceFluentImpl> - extends BaseFluent implements V1LocalVolumeSourceFluent { - public V1LocalVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1LocalVolumeSourceFluentImpl> extends BaseFluent implements V1LocalVolumeSourceFluent{ + public V1LocalVolumeSourceFluentImpl() { + } public V1LocalVolumeSourceFluentImpl(V1LocalVolumeSource instance) { this.withFsType(instance.getFsType()); this.withPath(instance.getPath()); - } + } private String fsType; private String path; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1LocalVolumeSourceFluentImpl that = (V1LocalVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, path, super.hashCode()); + return java.util.Objects.hash(fsType, path, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (path != null) { sb.append("path:"); sb.append(path); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java index 757b7c1867..9e4ff09290 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ManagedFieldsEntryBuilder - extends V1ManagedFieldsEntryFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ManagedFieldsEntryBuilder extends V1ManagedFieldsEntryFluentImpl implements VisitableBuilder{ public V1ManagedFieldsEntryBuilder() { this(false); } - public V1ManagedFieldsEntryBuilder(Boolean validationEnabled) { this(new V1ManagedFieldsEntry(), validationEnabled); } - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent) { this(fluent, false); } - - public V1ManagedFieldsEntryBuilder( - V1ManagedFieldsEntryFluent fluent, Boolean validationEnabled) { + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,Boolean validationEnabled) { this(fluent, new V1ManagedFieldsEntry(), validationEnabled); } - - public V1ManagedFieldsEntryBuilder( - V1ManagedFieldsEntryFluent fluent, V1ManagedFieldsEntry instance) { + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,V1ManagedFieldsEntry instance) { this(fluent, instance, false); } - - public V1ManagedFieldsEntryBuilder( - V1ManagedFieldsEntryFluent fluent, - V1ManagedFieldsEntry instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,V1ManagedFieldsEntry instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withFieldsType(instance.getFieldsType()); @@ -58,15 +34,13 @@ public V1ManagedFieldsEntryBuilder( fluent.withTime(instance.getTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance) { - this(instance, false); + this(instance,false); } - - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance, Boolean validationEnabled) { - this.fluent = this; + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withFieldsType(instance.getFieldsType()); @@ -81,12 +55,10 @@ public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance, Boolean valida this.withTime(instance.getTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ManagedFieldsEntryFluent fluent; Boolean validationEnabled; - public V1ManagedFieldsEntry build() { V1ManagedFieldsEntry buildable = new V1ManagedFieldsEntry(); buildable.setApiVersion(fluent.getApiVersion()); @@ -98,4 +70,5 @@ public V1ManagedFieldsEntry build() { buildable.setTime(fluent.getTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java index e82f9e9c83..bf566f35e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java @@ -1,62 +1,35 @@ -/* -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.Fluent; import java.time.OffsetDateTime; - -/** Generated */ -public interface V1ManagedFieldsEntryFluent> - extends Fluent { +import io.kubernetes.client.fluent.Fluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ManagedFieldsEntryFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getFieldsType(); - public A withFieldsType(String fieldsType); - public Boolean hasFieldsType(); - public Object getFieldsV1(); - public A withFieldsV1(Object fieldsV1); - public Boolean hasFieldsV1(); - public String getManager(); - public A withManager(String manager); - public Boolean hasManager(); - public String getOperation(); - public A withOperation(String operation); - public Boolean hasOperation(); - public String getSubresource(); - public A withSubresource(String subresource); - public Boolean hasSubresource(); - public OffsetDateTime getTime(); - public A withTime(OffsetDateTime time); - public Boolean hasTime(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java index 6616399ed3..30ef172170 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ManagedFieldsEntryFluentImpl> - extends BaseFluent implements V1ManagedFieldsEntryFluent { - public V1ManagedFieldsEntryFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ManagedFieldsEntryFluentImpl> extends BaseFluent implements V1ManagedFieldsEntryFluent{ + public V1ManagedFieldsEntryFluentImpl() { + } public V1ManagedFieldsEntryFluentImpl(V1ManagedFieldsEntry instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,8 +28,8 @@ public V1ManagedFieldsEntryFluentImpl(V1ManagedFieldsEntry instance) { this.withSubresource(instance.getSubresource()); this.withTime(instance.getTime()); - } + } private String apiVersion; private String fieldsType; private Object fieldsV1; @@ -44,153 +37,97 @@ public V1ManagedFieldsEntryFluentImpl(V1ManagedFieldsEntry instance) { private String operation; private String subresource; private OffsetDateTime time; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getFieldsType() { return this.fieldsType; } - public A withFieldsType(String fieldsType) { - this.fieldsType = fieldsType; - return (A) this; + this.fieldsType=fieldsType; return (A) this; } - public Boolean hasFieldsType() { return this.fieldsType != null; } - public Object getFieldsV1() { return this.fieldsV1; } - public A withFieldsV1(Object fieldsV1) { - this.fieldsV1 = fieldsV1; - return (A) this; + this.fieldsV1=fieldsV1; return (A) this; } - public Boolean hasFieldsV1() { return this.fieldsV1 != null; } - public String getManager() { return this.manager; } - public A withManager(String manager) { - this.manager = manager; - return (A) this; + this.manager=manager; return (A) this; } - public Boolean hasManager() { return this.manager != null; } - public String getOperation() { return this.operation; } - public A withOperation(String operation) { - this.operation = operation; - return (A) this; + this.operation=operation; return (A) this; } - public Boolean hasOperation() { return this.operation != null; } - public String getSubresource() { return this.subresource; } - public A withSubresource(String subresource) { - this.subresource = subresource; - return (A) this; + this.subresource=subresource; return (A) this; } - public Boolean hasSubresource() { return this.subresource != null; } - public OffsetDateTime getTime() { return this.time; } - public A withTime(OffsetDateTime time) { - this.time = time; - return (A) this; + this.time=time; return (A) this; } - public Boolean hasTime() { return this.time != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ManagedFieldsEntryFluentImpl that = (V1ManagedFieldsEntryFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (fieldsType != null ? !fieldsType.equals(that.fieldsType) : that.fieldsType != null) - return false; - if (fieldsV1 != null ? !fieldsV1.equals(that.fieldsV1) : that.fieldsV1 != null) return false; - if (manager != null ? !manager.equals(that.manager) : that.manager != null) return false; - if (operation != null ? !operation.equals(that.operation) : that.operation != null) - return false; - if (subresource != null ? !subresource.equals(that.subresource) : that.subresource != null) - return false; - if (time != null ? !time.equals(that.time) : that.time != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (fieldsType != null ? !fieldsType.equals(that.fieldsType) :that.fieldsType != null) return false; + if (fieldsV1 != null ? !fieldsV1.equals(that.fieldsV1) :that.fieldsV1 != null) return false; + if (manager != null ? !manager.equals(that.manager) :that.manager != null) return false; + if (operation != null ? !operation.equals(that.operation) :that.operation != null) return false; + if (subresource != null ? !subresource.equals(that.subresource) :that.subresource != null) return false; + if (time != null ? !time.equals(that.time) :that.time != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time, super.hashCode()); + return java.util.Objects.hash(apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (fieldsType != null) { - sb.append("fieldsType:"); - sb.append(fieldsType + ","); - } - if (fieldsV1 != null) { - sb.append("fieldsV1:"); - sb.append(fieldsV1 + ","); - } - if (manager != null) { - sb.append("manager:"); - sb.append(manager + ","); - } - if (operation != null) { - sb.append("operation:"); - sb.append(operation + ","); - } - if (subresource != null) { - sb.append("subresource:"); - sb.append(subresource + ","); - } - if (time != null) { - sb.append("time:"); - sb.append(time); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (fieldsType != null) { sb.append("fieldsType:"); sb.append(fieldsType + ","); } + if (fieldsV1 != null) { sb.append("fieldsV1:"); sb.append(fieldsV1 + ","); } + if (manager != null) { sb.append("manager:"); sb.append(manager + ","); } + if (operation != null) { sb.append("operation:"); sb.append(operation + ","); } + if (subresource != null) { sb.append("subresource:"); sb.append(subresource + ","); } + if (time != null) { sb.append("time:"); sb.append(time); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java index 7367ca3b4b..955965310e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluentImpl implements VisitableBuilder{ public V1MutatingWebhookBuilder() { this(false); } - public V1MutatingWebhookBuilder(Boolean validationEnabled) { this(new V1MutatingWebhook(), validationEnabled); } - public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent) { this(fluent, false); } - - public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent, Boolean validationEnabled) { + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,Boolean validationEnabled) { this(fluent, new V1MutatingWebhook(), validationEnabled); } - - public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent, V1MutatingWebhook instance) { + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,V1MutatingWebhook instance) { this(fluent, instance, false); } - - public V1MutatingWebhookBuilder( - V1MutatingWebhookFluent fluent, V1MutatingWebhook instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,V1MutatingWebhook instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); fluent.withClientConfig(instance.getClientConfig()); @@ -61,15 +42,13 @@ public V1MutatingWebhookBuilder( fluent.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1MutatingWebhookBuilder(V1MutatingWebhook instance) { - this(instance, false); + this(instance,false); } - - public V1MutatingWebhookBuilder(V1MutatingWebhook instance, Boolean validationEnabled) { - this.fluent = this; + public V1MutatingWebhookBuilder(V1MutatingWebhook instance,Boolean validationEnabled) { + this.fluent = this; this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); this.withClientConfig(instance.getClientConfig()); @@ -92,12 +71,10 @@ public V1MutatingWebhookBuilder(V1MutatingWebhook instance, Boolean validationEn this.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1MutatingWebhookFluent fluent; Boolean validationEnabled; - public V1MutatingWebhook build() { V1MutatingWebhook buildable = new V1MutatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); @@ -113,4 +90,5 @@ public V1MutatingWebhook build() { buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java index 2ccc37a7fe..2071214f9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1MutatingWebhookConfigurationBuilder - extends V1MutatingWebhookConfigurationFluentImpl - implements VisitableBuilder< - V1MutatingWebhookConfiguration, V1MutatingWebhookConfigurationBuilder> { +import java.lang.Boolean; +public class V1MutatingWebhookConfigurationBuilder extends V1MutatingWebhookConfigurationFluentImpl implements VisitableBuilder{ public V1MutatingWebhookConfigurationBuilder() { this(false); } - public V1MutatingWebhookConfigurationBuilder(Boolean validationEnabled) { this(new V1MutatingWebhookConfiguration(), validationEnabled); } - public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent) { this(fluent, false); } - - public V1MutatingWebhookConfigurationBuilder( - V1MutatingWebhookConfigurationFluent fluent, Boolean validationEnabled) { + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1MutatingWebhookConfiguration(), validationEnabled); } - - public V1MutatingWebhookConfigurationBuilder( - V1MutatingWebhookConfigurationFluent fluent, V1MutatingWebhookConfiguration instance) { + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,V1MutatingWebhookConfiguration instance) { this(fluent, instance, false); } - - public V1MutatingWebhookConfigurationBuilder( - V1MutatingWebhookConfigurationFluent fluent, - V1MutatingWebhookConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,V1MutatingWebhookConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -53,16 +28,13 @@ public V1MutatingWebhookConfigurationBuilder( fluent.withWebhooks(instance.getWebhooks()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfiguration instance) { - this(instance, false); + this(instance,false); } - - public V1MutatingWebhookConfigurationBuilder( - V1MutatingWebhookConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -71,12 +43,10 @@ public V1MutatingWebhookConfigurationBuilder( this.withWebhooks(instance.getWebhooks()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1MutatingWebhookConfigurationFluent fluent; Boolean validationEnabled; - public V1MutatingWebhookConfiguration build() { V1MutatingWebhookConfiguration buildable = new V1MutatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V1MutatingWebhookConfiguration build() { buildable.setWebhooks(fluent.getWebhooks()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java index 1d6ba5a796..e5bcfed087 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java @@ -1,135 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1MutatingWebhookConfigurationFluent< - A extends V1MutatingWebhookConfigurationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1MutatingWebhookConfigurationFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadata(); - - public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public V1MutatingWebhookConfigurationFluent.MetadataNested editMetadata(); - public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata(); - - public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - - public A addToWebhooks(Integer index, V1MutatingWebhook item); - - public A setToWebhooks(Integer index, V1MutatingWebhook item); - + public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + public A addToWebhooks(Integer index,V1MutatingWebhook item); + public A setToWebhooks(Integer index,V1MutatingWebhook item); public A addToWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items); - public A addAllToWebhooks(Collection items); - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items); - public A removeAllFromWebhooks(Collection items); - public A removeMatchingFromWebhooks(Predicate predicate); - + /** * This method has been deprecated, please use method buildWebhooks instead. - * * @return The buildable object. */ @Deprecated public List getWebhooks(); - public List buildWebhooks(); - public V1MutatingWebhook buildWebhook(Integer index); - public V1MutatingWebhook buildFirstWebhook(); - public V1MutatingWebhook buildLastWebhook(); - public V1MutatingWebhook buildMatchingWebhook(Predicate predicate); - public Boolean hasMatchingWebhook(Predicate predicate); - public A withWebhooks(List webhooks); - public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... webhooks); - public Boolean hasWebhooks(); - public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhook(); - - public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( - V1MutatingWebhook item); - - public V1MutatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( - Integer index, V1MutatingWebhook item); - + public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike(V1MutatingWebhook item); + public V1MutatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike(Integer index,V1MutatingWebhook item); public V1MutatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index); - public V1MutatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook(); - public V1MutatingWebhookConfigurationFluent.WebhooksNested editLastWebhook(); - - public V1MutatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( - Predicate predicate); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { + public V1MutatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook(Predicate predicate); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface WebhooksNested - extends Nested, - V1MutatingWebhookFluent> { + public interface WebhooksNested extends Nested,V1MutatingWebhookFluent>{ public N and(); - public N endWebhook(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java index 85470849c2..228772175f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1MutatingWebhookConfigurationFluentImpl< - A extends V1MutatingWebhookConfigurationFluent> - extends BaseFluent implements V1MutatingWebhookConfigurationFluent { - public V1MutatingWebhookConfigurationFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1MutatingWebhookConfigurationFluentImpl> extends BaseFluent implements V1MutatingWebhookConfigurationFluent{ + public V1MutatingWebhookConfigurationFluentImpl() { + } public V1MutatingWebhookConfigurationFluentImpl(V1MutatingWebhookConfiguration instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,168 +30,89 @@ public V1MutatingWebhookConfigurationFluentImpl(V1MutatingWebhookConfiguration i this.withMetadata(instance.getMetadata()); this.withWebhooks(instance.getWebhooks()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList webhooks; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadata() { return new V1MutatingWebhookConfigurationFluentImpl.MetadataNestedImpl(); } - - public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1MutatingWebhookConfigurationFluentImpl.MetadataNestedImpl(item); } - public V1MutatingWebhookConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToWebhooks(Integer index, V1MutatingWebhook item) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables - .get("webhooks") - .add(index >= 0 ? index : _visitables.get("webhooks").size(), builder); - this.webhooks.add(index >= 0 ? index : webhooks.size(), builder); - return (A) this; + public A addToWebhooks(Integer index,V1MutatingWebhook item) { + if (this.webhooks == null) {this.webhooks = new ArrayList();} + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(index >= 0 ? index : _visitables.get("webhooks").size(), builder);this.webhooks.add(index >= 0 ? index : webhooks.size(), builder); return (A)this; } - - public A setToWebhooks(Integer index, V1MutatingWebhook item) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } + public A setToWebhooks(Integer index,V1MutatingWebhook item) { + if (this.webhooks == null) {this.webhooks = new ArrayList();} V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= _visitables.get("webhooks").size()) { - _visitables.get("webhooks").add(builder); - } else { - _visitables.get("webhooks").set(index, builder); - } - if (index < 0 || index >= webhooks.size()) { - webhooks.add(builder); - } else { - webhooks.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("webhooks").size()) { _visitables.get("webhooks").add(builder); } else { _visitables.get("webhooks").set(index, builder);} + if (index < 0 || index >= webhooks.size()) { webhooks.add(builder); } else { webhooks.set(index, builder);} + return (A)this; } - public A addToWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); - this.webhooks.add(builder); - } - return (A) this; + if (this.webhooks == null) {this.webhooks = new ArrayList();} + for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; } - public A addAllToWebhooks(Collection items) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); - this.webhooks.add(builder); - } - return (A) this; + if (this.webhooks == null) {this.webhooks = new ArrayList();} + for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; } - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - if (this.webhooks != null) { - this.webhooks.remove(builder); - } - } - return (A) this; + for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder);if (this.webhooks != null) {this.webhooks.remove(builder);}} return (A)this; } - public A removeAllFromWebhooks(Collection items) { - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - if (this.webhooks != null) { - this.webhooks.remove(builder); - } - } - return (A) this; + for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder);if (this.webhooks != null) {this.webhooks.remove(builder);}} return (A)this; } - public A removeMatchingFromWebhooks(Predicate predicate) { if (webhooks == null) return (A) this; final Iterator each = webhooks.iterator(); @@ -208,213 +124,133 @@ public A removeMatchingFromWebhooks(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildWebhooks instead. - * * @return The buildable object. */ @Deprecated public List getWebhooks() { return webhooks != null ? build(webhooks) : null; } - public List buildWebhooks() { return webhooks != null ? build(webhooks) : null; } - public V1MutatingWebhook buildWebhook(Integer index) { return this.webhooks.get(index).build(); } - public V1MutatingWebhook buildFirstWebhook() { return this.webhooks.get(0).build(); } - public V1MutatingWebhook buildLastWebhook() { return this.webhooks.get(webhooks.size() - 1).build(); } - public V1MutatingWebhook buildMatchingWebhook(Predicate predicate) { - for (V1MutatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1MutatingWebhookBuilder item: webhooks) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingWebhook(Predicate predicate) { - for (V1MutatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1MutatingWebhookBuilder item: webhooks) { if(predicate.test(item)){ return true;} } return false; } - public A withWebhooks(List webhooks) { - if (this.webhooks != null) { - _visitables.get("webhooks").removeAll(this.webhooks); - } - if (webhooks != null) { - this.webhooks = new ArrayList(); - for (V1MutatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } else { - this.webhooks = null; - } - return (A) this; + if (this.webhooks != null) { _visitables.get("webhooks").removeAll(this.webhooks);} + if (webhooks != null) {this.webhooks = new ArrayList(); for (V1MutatingWebhook item : webhooks){this.addToWebhooks(item);}} else { this.webhooks = null;} return (A) this; } - public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... webhooks) { - if (this.webhooks != null) { - this.webhooks.clear(); - } - if (webhooks != null) { - for (V1MutatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } - return (A) this; + if (this.webhooks != null) {this.webhooks.clear();} + if (webhooks != null) {for (V1MutatingWebhook item :webhooks){ this.addToWebhooks(item);}} return (A) this; } - public Boolean hasWebhooks() { return webhooks != null && !webhooks.isEmpty(); } - public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhook() { return new V1MutatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(); } - - public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( - V1MutatingWebhook item) { + public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike(V1MutatingWebhook item) { return new V1MutatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(-1, item); } - - public V1MutatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( - Integer index, V1MutatingWebhook item) { + public V1MutatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike(Integer index,V1MutatingWebhook item) { return new V1MutatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(index, item); } - public V1MutatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index) { - if (webhooks.size() <= index) - throw new RuntimeException("Can't edit webhooks. Index exceeds size."); + if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); return setNewWebhookLike(index, buildWebhook(index)); } - public V1MutatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook() { - if (webhooks.size() == 0) - throw new RuntimeException("Can't edit first webhooks. The list is empty."); + if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); return setNewWebhookLike(0, buildWebhook(0)); } - public V1MutatingWebhookConfigurationFluent.WebhooksNested editLastWebhook() { int index = webhooks.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last webhooks. The list is empty."); return setNewWebhookLike(index, buildWebhook(index)); } - - public V1MutatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( - Predicate predicate) { + public V1MutatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook(Predicate predicate) { int index = -1; - for (int i = 0; i < webhooks.size(); i++) { - if (predicate.test(webhooks.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ObjectMetaFluentImpl> - implements V1MutatingWebhookConfigurationFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1MutatingWebhookConfigurationFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1MutatingWebhookConfigurationFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class WebhooksNestedImpl - extends V1MutatingWebhookFluentImpl> - implements V1MutatingWebhookConfigurationFluent.WebhooksNested, Nested { - WebhooksNestedImpl(Integer index, V1MutatingWebhook item) { + class WebhooksNestedImpl extends V1MutatingWebhookFluentImpl> implements V1MutatingWebhookConfigurationFluent.WebhooksNested,Nested{ + WebhooksNestedImpl(Integer index,V1MutatingWebhook item) { this.index = index; this.builder = new V1MutatingWebhookBuilder(this, item); } - WebhooksNestedImpl() { this.index = -1; this.builder = new V1MutatingWebhookBuilder(this); } - V1MutatingWebhookBuilder builder; Integer index; - public N and() { - return (N) - V1MutatingWebhookConfigurationFluentImpl.this.setToWebhooks(index, builder.build()); + return (N) V1MutatingWebhookConfigurationFluentImpl.this.setToWebhooks(index,builder.build()); } - public N endWebhook() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java index 46582f5d54..8e256c3f56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1MutatingWebhookConfigurationListBuilder - extends V1MutatingWebhookConfigurationListFluentImpl - implements VisitableBuilder< - V1MutatingWebhookConfigurationList, V1MutatingWebhookConfigurationListBuilder> { +import java.lang.Boolean; +public class V1MutatingWebhookConfigurationListBuilder extends V1MutatingWebhookConfigurationListFluentImpl implements VisitableBuilder{ public V1MutatingWebhookConfigurationListBuilder() { this(false); } - public V1MutatingWebhookConfigurationListBuilder(Boolean validationEnabled) { this(new V1MutatingWebhookConfigurationList(), validationEnabled); } - - public V1MutatingWebhookConfigurationListBuilder( - V1MutatingWebhookConfigurationListFluent fluent) { + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent) { this(fluent, false); } - - public V1MutatingWebhookConfigurationListBuilder( - V1MutatingWebhookConfigurationListFluent fluent, Boolean validationEnabled) { + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,Boolean validationEnabled) { this(fluent, new V1MutatingWebhookConfigurationList(), validationEnabled); } - - public V1MutatingWebhookConfigurationListBuilder( - V1MutatingWebhookConfigurationListFluent fluent, - V1MutatingWebhookConfigurationList instance) { + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,V1MutatingWebhookConfigurationList instance) { this(fluent, instance, false); } - - public V1MutatingWebhookConfigurationListBuilder( - V1MutatingWebhookConfigurationListFluent fluent, - V1MutatingWebhookConfigurationList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,V1MutatingWebhookConfigurationList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -55,16 +28,13 @@ public V1MutatingWebhookConfigurationListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationList instance) { - this(instance, false); + this(instance,false); } - - public V1MutatingWebhookConfigurationListBuilder( - V1MutatingWebhookConfigurationList instance, Boolean validationEnabled) { - this.fluent = this; + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -73,12 +43,10 @@ public V1MutatingWebhookConfigurationListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1MutatingWebhookConfigurationListFluent fluent; Boolean validationEnabled; - public V1MutatingWebhookConfigurationList build() { V1MutatingWebhookConfigurationList buildable = new V1MutatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -87,4 +55,5 @@ public V1MutatingWebhookConfigurationList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java index f94998042b..f8d8d1e314 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java @@ -1,138 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1MutatingWebhookConfigurationListFluent< - A extends V1MutatingWebhookConfigurationListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1MutatingWebhookConfigurationListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1MutatingWebhookConfiguration item); - - public A setToItems(Integer index, V1MutatingWebhookConfiguration item); - + public A addToItems(Integer index,V1MutatingWebhookConfiguration item); + public A setToItems(Integer index,V1MutatingWebhookConfiguration item); public A addToItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); - public A addAllToItems(Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); - + public A removeFromItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1MutatingWebhookConfiguration buildItem(Integer index); - public V1MutatingWebhookConfiguration buildFirstItem(); - public V1MutatingWebhookConfiguration buildLastItem(); - - public V1MutatingWebhookConfiguration buildMatchingItem( - Predicate predicate); - + public V1MutatingWebhookConfiguration buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); - public Boolean hasItems(); - public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItem(); - - public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( - V1MutatingWebhookConfiguration item); - - public V1MutatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1MutatingWebhookConfiguration item); - + public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item); + public V1MutatingWebhookConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1MutatingWebhookConfiguration item); public V1MutatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index); - public V1MutatingWebhookConfigurationListFluent.ItemsNested editFirstItem(); - public V1MutatingWebhookConfigurationListFluent.ItemsNested editLastItem(); - - public V1MutatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1MutatingWebhookConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadata(); - - public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V1MutatingWebhookConfigurationListFluent.MetadataNested editMetadata(); - public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata(); - - public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1MutatingWebhookConfigurationFluent< - V1MutatingWebhookConfigurationListFluent.ItemsNested> { + public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1MutatingWebhookConfigurationFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, - V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java index b38a1d28a6..9ac220e0c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1MutatingWebhookConfigurationListFluentImpl< - A extends V1MutatingWebhookConfigurationListFluent> - extends BaseFluent implements V1MutatingWebhookConfigurationListFluent { - public V1MutatingWebhookConfigurationListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1MutatingWebhookConfigurationListFluentImpl> extends BaseFluent implements V1MutatingWebhookConfigurationListFluent{ + public V1MutatingWebhookConfigurationListFluentImpl() { + } public V1MutatingWebhookConfigurationListFluentImpl(V1MutatingWebhookConfigurationList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,105 +30,46 @@ public V1MutatingWebhookConfigurationListFluentImpl(V1MutatingWebhookConfigurati this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1MutatingWebhookConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1MutatingWebhookConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1MutatingWebhookConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1MutatingWebhookConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = - new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = - new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = - new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { + for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = - new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -145,280 +81,176 @@ public A removeMatchingFromItems(Predicate getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1MutatingWebhookConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public V1MutatingWebhookConfiguration buildFirstItem() { return this.items.get(0).build(); } - public V1MutatingWebhookConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1MutatingWebhookConfiguration buildMatchingItem( - Predicate predicate) { - for (V1MutatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1MutatingWebhookConfiguration buildMatchingItem(Predicate predicate) { + for (V1MutatingWebhookConfigurationBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1MutatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1MutatingWebhookConfigurationBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1MutatingWebhookConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1MutatingWebhookConfiguration item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1MutatingWebhookConfiguration item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1MutatingWebhookConfiguration item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItem() { return new V1MutatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(); } - - public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( - V1MutatingWebhookConfiguration item) { + public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item) { return new V1MutatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1MutatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1MutatingWebhookConfiguration item) { + public V1MutatingWebhookConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1MutatingWebhookConfiguration item) { return new V1MutatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public V1MutatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1MutatingWebhookConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1MutatingWebhookConfigurationListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1MutatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1MutatingWebhookConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1MutatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(); } - - public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1MutatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(item); } - public V1MutatingWebhookConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1MutatingWebhookConfigurationListFluentImpl that = - (V1MutatingWebhookConfigurationListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + V1MutatingWebhookConfigurationListFluentImpl that = (V1MutatingWebhookConfigurationListFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1MutatingWebhookConfigurationFluentImpl< - V1MutatingWebhookConfigurationListFluent.ItemsNested> - implements V1MutatingWebhookConfigurationListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1MutatingWebhookConfiguration item) { + class ItemsNestedImpl extends V1MutatingWebhookConfigurationFluentImpl> implements V1MutatingWebhookConfigurationListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1MutatingWebhookConfiguration item) { this.index = index; this.builder = new V1MutatingWebhookConfigurationBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1MutatingWebhookConfigurationBuilder(this); } - V1MutatingWebhookConfigurationBuilder builder; Integer index; - public N and() { - return (N) - V1MutatingWebhookConfigurationListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1MutatingWebhookConfigurationListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1MutatingWebhookConfigurationListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1MutatingWebhookConfigurationListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1MutatingWebhookConfigurationListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java index fe74679569..b188541399 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java @@ -1,252 +1,149 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1MutatingWebhookFluent> extends Fluent { - public A addToAdmissionReviewVersions(Integer index, String item); - - public A setToAdmissionReviewVersions(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1MutatingWebhookFluent> extends Fluent{ + public A addToAdmissionReviewVersions(Integer index,String item); + public A setToAdmissionReviewVersions(Integer index,String item); public A addToAdmissionReviewVersions(java.lang.String... items); - public A addAllToAdmissionReviewVersions(Collection items); - public A removeFromAdmissionReviewVersions(java.lang.String... items); - public A removeAllFromAdmissionReviewVersions(Collection items); - public List getAdmissionReviewVersions(); - public String getAdmissionReviewVersion(Integer index); - public String getFirstAdmissionReviewVersion(); - public String getLastAdmissionReviewVersion(); - public String getMatchingAdmissionReviewVersion(Predicate predicate); - public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate); - public A withAdmissionReviewVersions(List admissionReviewVersions); - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions); - public Boolean hasAdmissionReviewVersions(); - + /** * This method has been deprecated, please use method buildClientConfig instead. - * * @return The buildable object. */ @Deprecated public AdmissionregistrationV1WebhookClientConfig getClientConfig(); - public AdmissionregistrationV1WebhookClientConfig buildClientConfig(); - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig); - public Boolean hasClientConfig(); - public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfig(); - - public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item); - + public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item); public V1MutatingWebhookFluent.ClientConfigNested editClientConfig(); - public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfig(); - - public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item); - + public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item); public String getFailurePolicy(); - public A withFailurePolicy(String failurePolicy); - public Boolean hasFailurePolicy(); - public String getMatchPolicy(); - public A withMatchPolicy(String matchPolicy); - public Boolean hasMatchPolicy(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector(); - public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public Boolean hasNamespaceSelector(); - public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelector(); - - public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item); public V1MutatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector(); - public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - - public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item); + /** * This method has been deprecated, please use method buildObjectSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getObjectSelector(); - public V1LabelSelector buildObjectSelector(); - public A withObjectSelector(V1LabelSelector objectSelector); - public Boolean hasObjectSelector(); - public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelector(); - - public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( - V1LabelSelector item); - + public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item); public V1MutatingWebhookFluent.ObjectSelectorNested editObjectSelector(); - public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector(); - - public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( - V1LabelSelector item); - + public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item); public String getReinvocationPolicy(); - public A withReinvocationPolicy(String reinvocationPolicy); - public Boolean hasReinvocationPolicy(); - - public A addToRules(Integer index, V1RuleWithOperations item); - - public A setToRules(Integer index, V1RuleWithOperations item); - + public A addToRules(Integer index,V1RuleWithOperations item); + public A setToRules(Integer index,V1RuleWithOperations item); public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A addAllToRules(Collection items); - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1RuleWithOperations buildRule(Integer index); - public V1RuleWithOperations buildFirstRule(); - public V1RuleWithOperations buildLastRule(); - public V1RuleWithOperations buildMatchingRule(Predicate predicate); - public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules); - public Boolean hasRules(); - public V1MutatingWebhookFluent.RulesNested addNewRule(); - public V1MutatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item); - - public V1MutatingWebhookFluent.RulesNested setNewRuleLike( - Integer index, V1RuleWithOperations item); - + public V1MutatingWebhookFluent.RulesNested setNewRuleLike(Integer index,V1RuleWithOperations item); public V1MutatingWebhookFluent.RulesNested editRule(Integer index); - public V1MutatingWebhookFluent.RulesNested editFirstRule(); - public V1MutatingWebhookFluent.RulesNested editLastRule(); - - public V1MutatingWebhookFluent.RulesNested editMatchingRule( - Predicate predicate); - + public V1MutatingWebhookFluent.RulesNested editMatchingRule(Predicate predicate); public String getSideEffects(); - public A withSideEffects(String sideEffects); - public Boolean hasSideEffects(); - public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(Integer timeoutSeconds); - public Boolean hasTimeoutSeconds(); - - public interface ClientConfigNested - extends Nested, - AdmissionregistrationV1WebhookClientConfigFluent< - V1MutatingWebhookFluent.ClientConfigNested> { + public interface ClientConfigNested extends Nested,AdmissionregistrationV1WebhookClientConfigFluent>{ public N and(); - public N endClientConfig(); + } - - public interface NamespaceSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface NamespaceSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endNamespaceSelector(); + } - - public interface ObjectSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface ObjectSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endObjectSelector(); + } - - public interface RulesNested - extends Nested, V1RuleWithOperationsFluent> { + public interface RulesNested extends Nested,V1RuleWithOperationsFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java index 822986004b..7245694b6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1MutatingWebhookFluentImpl> extends BaseFluent - implements V1MutatingWebhookFluent { - public V1MutatingWebhookFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1MutatingWebhookFluentImpl> extends BaseFluent implements V1MutatingWebhookFluent{ + public V1MutatingWebhookFluentImpl() { + } public V1MutatingWebhookFluentImpl(V1MutatingWebhook instance) { this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); @@ -48,8 +44,8 @@ public V1MutatingWebhookFluentImpl(V1MutatingWebhook instance) { this.withSideEffects(instance.getSideEffects()); this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + } private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; private String failurePolicy; @@ -61,413 +57,220 @@ public V1MutatingWebhookFluentImpl(V1MutatingWebhook instance) { private ArrayList rules; private String sideEffects; private Integer timeoutSeconds; - - public A addToAdmissionReviewVersions(Integer index, String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } + public A addToAdmissionReviewVersions(Integer index,String item) { + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} this.admissionReviewVersions.add(index, item); - return (A) this; + return (A)this; } - - public A setToAdmissionReviewVersions(Integer index, String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - this.admissionReviewVersions.set(index, item); - return (A) this; + public A setToAdmissionReviewVersions(Integer index,String item) { + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + this.admissionReviewVersions.set(index, item); return (A)this; } - public A addToAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.admissionReviewVersions.add(item); - } - return (A) this; + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; } - public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.admissionReviewVersions.add(item); - } - return (A) this; + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; } - public A removeFromAdmissionReviewVersions(java.lang.String... items) { - for (String item : items) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.admissionReviewVersions!= null){ this.admissionReviewVersions.remove(item);}} return (A)this; } - public A removeAllFromAdmissionReviewVersions(Collection items) { - for (String item : items) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.admissionReviewVersions!= null){ this.admissionReviewVersions.remove(item);}} return (A)this; } - public List getAdmissionReviewVersions() { return this.admissionReviewVersions; } - public String getAdmissionReviewVersion(Integer index) { return this.admissionReviewVersions.get(index); } - public String getFirstAdmissionReviewVersion() { return this.admissionReviewVersions.get(0); } - public String getLastAdmissionReviewVersion() { return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - public String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: admissionReviewVersions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: admissionReviewVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withAdmissionReviewVersions(List admissionReviewVersions) { - if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } - } else { - this.admissionReviewVersions = null; - } - return (A) this; + if (admissionReviewVersions != null) {this.admissionReviewVersions = new ArrayList(); for (String item : admissionReviewVersions){this.addToAdmissionReviewVersions(item);}} else { this.admissionReviewVersions = null;} return (A) this; } - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.clear(); - } - if (admissionReviewVersions != null) { - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } - } - return (A) this; + if (this.admissionReviewVersions != null) {this.admissionReviewVersions.clear();} + if (admissionReviewVersions != null) {for (String item :admissionReviewVersions){ this.addToAdmissionReviewVersions(item);}} return (A) this; } - public Boolean hasAdmissionReviewVersions() { return admissionReviewVersions != null && !admissionReviewVersions.isEmpty(); } - + /** * This method has been deprecated, please use method buildClientConfig instead. - * * @return The buildable object. */ @Deprecated public AdmissionregistrationV1WebhookClientConfig getClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + return this.clientConfig!=null ?this.clientConfig.build():null; } - public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + return this.clientConfig!=null ?this.clientConfig.build():null; } - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { _visitables.get("clientConfig").remove(this.clientConfig); - if (clientConfig != null) { - this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); - _visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - _visitables.get("clientConfig").remove(this.clientConfig); - } - return (A) this; + if (clientConfig!=null){ this.clientConfig= new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); _visitables.get("clientConfig").add(this.clientConfig);} else { this.clientConfig = null; _visitables.get("clientConfig").remove(this.clientConfig); } return (A) this; } - public Boolean hasClientConfig() { return this.clientConfig != null; } - public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfig() { return new V1MutatingWebhookFluentImpl.ClientConfigNestedImpl(); } - - public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item) { + public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { return new V1MutatingWebhookFluentImpl.ClientConfigNestedImpl(item); } - public V1MutatingWebhookFluent.ClientConfigNested editClientConfig() { return withNewClientConfigLike(getClientConfig()); } - public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike( - getClientConfig() != null - ? getClientConfig() - : new AdmissionregistrationV1WebhookClientConfigBuilder().build()); + return withNewClientConfigLike(getClientConfig() != null ? getClientConfig(): new AdmissionregistrationV1WebhookClientConfigBuilder().build()); } - - public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item) { - return withNewClientConfigLike(getClientConfig() != null ? getClientConfig() : item); + public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return withNewClientConfigLike(getClientConfig() != null ? getClientConfig(): item); } - public String getFailurePolicy() { return this.failurePolicy; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + this.failurePolicy=failurePolicy; return (A) this; } - public Boolean hasFailurePolicy() { return this.failurePolicy != null; } - public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + this.matchPolicy=matchPolicy; return (A) this; } - public Boolean hasMatchPolicy() { return this.matchPolicy != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - _visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - _visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + if (namespaceSelector!=null){ this.namespaceSelector= new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector);} else { this.namespaceSelector = null; _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelector() { return new V1MutatingWebhookFluentImpl.NamespaceSelectorNestedImpl(); } - - public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item) { + public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { return new V1MutatingWebhookFluentImpl.NamespaceSelectorNestedImpl(item); } - public V1MutatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null - ? getNamespaceSelector() - : new V1LabelSelectorBuilder().build()); + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): new V1LabelSelectorBuilder().build()); } - - public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item) { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null ? getNamespaceSelector() : item); + public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): item); } - + /** * This method has been deprecated, please use method buildObjectSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + return this.objectSelector!=null ?this.objectSelector.build():null; } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + return this.objectSelector!=null ?this.objectSelector.build():null; } - public A withObjectSelector(V1LabelSelector objectSelector) { _visitables.get("objectSelector").remove(this.objectSelector); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - _visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - _visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; + if (objectSelector!=null){ this.objectSelector= new V1LabelSelectorBuilder(objectSelector); _visitables.get("objectSelector").add(this.objectSelector);} else { this.objectSelector = null; _visitables.get("objectSelector").remove(this.objectSelector); } return (A) this; } - public Boolean hasObjectSelector() { return this.objectSelector != null; } - public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelector() { return new V1MutatingWebhookFluentImpl.ObjectSelectorNestedImpl(); } - - public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( - V1LabelSelector item) { + public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { return new V1MutatingWebhookFluentImpl.ObjectSelectorNestedImpl(item); } - public V1MutatingWebhookFluent.ObjectSelectorNested editObjectSelector() { return withNewObjectSelectorLike(getObjectSelector()); } - public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike( - getObjectSelector() != null ? getObjectSelector() : new V1LabelSelectorBuilder().build()); + return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector(): new V1LabelSelectorBuilder().build()); } - - public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( - V1LabelSelector item) { - return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector() : item); + public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector(): item); } - public String getReinvocationPolicy() { return this.reinvocationPolicy; } - public A withReinvocationPolicy(String reinvocationPolicy) { - this.reinvocationPolicy = reinvocationPolicy; - return (A) this; + this.reinvocationPolicy=reinvocationPolicy; return (A) this; } - public Boolean hasReinvocationPolicy() { return this.reinvocationPolicy != null; } - - public A addToRules(Integer index, V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1RuleWithOperations item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1RuleWithOperations item) { + if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -479,341 +282,197 @@ public A removeMatchingFromRules(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1RuleWithOperations buildRule(Integer index) { return this.rules.get(index).build(); } - public V1RuleWithOperations buildFirstRule() { return this.rules.get(0).build(); } - public V1RuleWithOperations buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public V1RuleWithOperations buildMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1RuleWithOperationsBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1RuleWithOperationsBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1RuleWithOperations item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1RuleWithOperations item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1MutatingWebhookFluent.RulesNested addNewRule() { return new V1MutatingWebhookFluentImpl.RulesNestedImpl(); } - public V1MutatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item) { return new V1MutatingWebhookFluentImpl.RulesNestedImpl(-1, item); } - - public V1MutatingWebhookFluent.RulesNested setNewRuleLike( - Integer index, V1RuleWithOperations item) { + public V1MutatingWebhookFluent.RulesNested setNewRuleLike(Integer index,V1RuleWithOperations item) { return new V1MutatingWebhookFluentImpl.RulesNestedImpl(index, item); } - public V1MutatingWebhookFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1MutatingWebhookFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1MutatingWebhookFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1MutatingWebhookFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1MutatingWebhookFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends AdmissionregistrationV1WebhookClientConfigFluentImpl< - V1MutatingWebhookFluent.ClientConfigNested> - implements V1MutatingWebhookFluent.ClientConfigNested, Nested { + class ClientConfigNestedImpl extends AdmissionregistrationV1WebhookClientConfigFluentImpl> implements V1MutatingWebhookFluent.ClientConfigNested,Nested{ ClientConfigNestedImpl(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } - ClientConfigNestedImpl() { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this); } - AdmissionregistrationV1WebhookClientConfigBuilder builder; - public N and() { return (N) V1MutatingWebhookFluentImpl.this.withClientConfig(builder.build()); } - public N endClientConfig() { return and(); } + } - - class NamespaceSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1MutatingWebhookFluent.NamespaceSelectorNested, Nested { + class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1MutatingWebhookFluent.NamespaceSelectorNested,Nested{ NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - NamespaceSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1MutatingWebhookFluentImpl.this.withNamespaceSelector(builder.build()); } - public N endNamespaceSelector() { return and(); } + } - - class ObjectSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1MutatingWebhookFluent.ObjectSelectorNested, Nested { + class ObjectSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1MutatingWebhookFluent.ObjectSelectorNested,Nested{ ObjectSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - ObjectSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1MutatingWebhookFluentImpl.this.withObjectSelector(builder.build()); } - public N endObjectSelector() { return and(); } + } - - class RulesNestedImpl - extends V1RuleWithOperationsFluentImpl> - implements V1MutatingWebhookFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1RuleWithOperations item) { + class RulesNestedImpl extends V1RuleWithOperationsFluentImpl> implements V1MutatingWebhookFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1RuleWithOperationsBuilder(this); } - V1RuleWithOperationsBuilder builder; Integer index; - public N and() { - return (N) V1MutatingWebhookFluentImpl.this.setToRules(index, builder.build()); + return (N) V1MutatingWebhookFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java index ab4effd869..223e9c9438 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluentImpl implements VisitableBuilder{ public V1NFSVolumeSourceBuilder() { this(false); } - public V1NFSVolumeSourceBuilder(Boolean validationEnabled) { this(new V1NFSVolumeSource(), validationEnabled); } - public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent) { this(fluent, false); } - - public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1NFSVolumeSource(), validationEnabled); } - - public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent, V1NFSVolumeSource instance) { + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,V1NFSVolumeSource instance) { this(fluent, instance, false); } - - public V1NFSVolumeSourceBuilder( - V1NFSVolumeSourceFluent fluent, V1NFSVolumeSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,V1NFSVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPath(instance.getPath()); fluent.withReadOnly(instance.getReadOnly()); fluent.withServer(instance.getServer()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withPath(instance.getPath()); this.withReadOnly(instance.getReadOnly()); this.withServer(instance.getServer()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NFSVolumeSourceFluent fluent; Boolean validationEnabled; - public V1NFSVolumeSource build() { V1NFSVolumeSource buildable = new V1NFSVolumeSource(); buildable.setPath(fluent.getPath()); @@ -73,4 +50,5 @@ public V1NFSVolumeSource build() { buildable.setServer(fluent.getServer()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java index 5c4d192a70..56593997c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java @@ -1,38 +1,22 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NFSVolumeSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1NFSVolumeSourceFluent> extends Fluent{ public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getServer(); - public A withServer(String server); - public Boolean hasServer(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java index a453e68772..1f5b1b83b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java @@ -1,110 +1,79 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NFSVolumeSourceFluentImpl> extends BaseFluent - implements V1NFSVolumeSourceFluent { - public V1NFSVolumeSourceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NFSVolumeSourceFluentImpl> extends BaseFluent implements V1NFSVolumeSourceFluent{ + public V1NFSVolumeSourceFluentImpl() { + } public V1NFSVolumeSourceFluentImpl(V1NFSVolumeSource instance) { this.withPath(instance.getPath()); this.withReadOnly(instance.getReadOnly()); this.withServer(instance.getServer()); - } + } private String path; private Boolean readOnly; private String server; - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getServer() { return this.server; } - public A withServer(String server) { - this.server = server; - return (A) this; + this.server=server; return (A) this; } - public Boolean hasServer() { return this.server != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NFSVolumeSourceFluentImpl that = (V1NFSVolumeSourceFluentImpl) o; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (server != null ? !server.equals(that.server) : that.server != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (server != null ? !server.equals(that.server) :that.server != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(path, readOnly, server, super.hashCode()); + return java.util.Objects.hash(path, readOnly, server, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (server != null) { - sb.append("server:"); - sb.append(server); - } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (server != null) { sb.append("server:"); sb.append(server); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java index 2e9eb4df8a..58f0802c1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NamespaceBuilder extends V1NamespaceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NamespaceBuilder extends V1NamespaceFluentImpl implements VisitableBuilder{ public V1NamespaceBuilder() { this(false); } - public V1NamespaceBuilder(Boolean validationEnabled) { this(new V1Namespace(), validationEnabled); } - public V1NamespaceBuilder(V1NamespaceFluent fluent) { this(fluent, false); } - - public V1NamespaceBuilder(V1NamespaceFluent fluent, Boolean validationEnabled) { + public V1NamespaceBuilder(V1NamespaceFluent fluent,Boolean validationEnabled) { this(fluent, new V1Namespace(), validationEnabled); } - - public V1NamespaceBuilder(V1NamespaceFluent fluent, V1Namespace instance) { + public V1NamespaceBuilder(V1NamespaceFluent fluent,V1Namespace instance) { this(fluent, instance, false); } - - public V1NamespaceBuilder( - V1NamespaceFluent fluent, V1Namespace instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NamespaceBuilder(V1NamespaceFluent fluent,V1Namespace instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1NamespaceBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NamespaceBuilder(V1Namespace instance) { - this(instance, false); + this(instance,false); } - - public V1NamespaceBuilder(V1Namespace instance, Boolean validationEnabled) { - this.fluent = this; + public V1NamespaceBuilder(V1Namespace instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1NamespaceBuilder(V1Namespace instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NamespaceFluent fluent; Boolean validationEnabled; - public V1Namespace build() { V1Namespace buildable = new V1Namespace(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1Namespace build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java index 2184b268da..5296e7b593 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NamespaceConditionBuilder - extends V1NamespaceConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NamespaceConditionBuilder extends V1NamespaceConditionFluentImpl implements VisitableBuilder{ public V1NamespaceConditionBuilder() { this(false); } - public V1NamespaceConditionBuilder(Boolean validationEnabled) { this(new V1NamespaceCondition(), validationEnabled); } - public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent) { this(fluent, false); } - - public V1NamespaceConditionBuilder( - V1NamespaceConditionFluent fluent, Boolean validationEnabled) { + public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1NamespaceCondition(), validationEnabled); } - - public V1NamespaceConditionBuilder( - V1NamespaceConditionFluent fluent, V1NamespaceCondition instance) { + public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,V1NamespaceCondition instance) { this(fluent, instance, false); } - - public V1NamespaceConditionBuilder( - V1NamespaceConditionFluent fluent, - V1NamespaceCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,V1NamespaceCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,15 +30,13 @@ public V1NamespaceConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NamespaceConditionBuilder(V1NamespaceCondition instance) { - this(instance, false); + this(instance,false); } - - public V1NamespaceConditionBuilder(V1NamespaceCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1NamespaceConditionBuilder(V1NamespaceCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -73,12 +47,10 @@ public V1NamespaceConditionBuilder(V1NamespaceCondition instance, Boolean valida this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NamespaceConditionFluent fluent; Boolean validationEnabled; - public V1NamespaceCondition build() { V1NamespaceCondition buildable = new V1NamespaceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -88,4 +60,5 @@ public V1NamespaceCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java index 634b9e47e8..4ce6db9212 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NamespaceConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1NamespaceConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java index 061e7b4ac2..003637910c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NamespaceConditionFluentImpl> - extends BaseFluent implements V1NamespaceConditionFluent { - public V1NamespaceConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NamespaceConditionFluentImpl> extends BaseFluent implements V1NamespaceConditionFluent{ + public V1NamespaceConditionFluentImpl() { + } public V1NamespaceConditionFluentImpl(V1NamespaceCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1NamespaceConditionFluentImpl(V1NamespaceCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NamespaceConditionFluentImpl that = (V1NamespaceConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java index 81d773b936..4443cecaea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1NamespaceFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NamespaceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1NamespaceFluent.MetadataNested withNewMetadata(); - public V1NamespaceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1NamespaceFluent.MetadataNested editMetadata(); - public V1NamespaceFluent.MetadataNested editOrNewMetadata(); - public V1NamespaceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1NamespaceSpec getSpec(); - public V1NamespaceSpec buildSpec(); - public A withSpec(V1NamespaceSpec spec); - public Boolean hasSpec(); - public V1NamespaceFluent.SpecNested withNewSpec(); - public V1NamespaceFluent.SpecNested withNewSpecLike(V1NamespaceSpec item); - public V1NamespaceFluent.SpecNested editSpec(); - public V1NamespaceFluent.SpecNested editOrNewSpec(); - public V1NamespaceFluent.SpecNested editOrNewSpecLike(V1NamespaceSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1NamespaceStatus getStatus(); - public V1NamespaceStatus buildStatus(); - public A withStatus(V1NamespaceStatus status); - public Boolean hasStatus(); - public V1NamespaceFluent.StatusNested withNewStatus(); - public V1NamespaceFluent.StatusNested withNewStatusLike(V1NamespaceStatus item); - public V1NamespaceFluent.StatusNested editStatus(); - public V1NamespaceFluent.StatusNested editOrNewStatus(); - public V1NamespaceFluent.StatusNested editOrNewStatusLike(V1NamespaceStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1NamespaceSpecFluent> { + public interface SpecNested extends Nested,V1NamespaceSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1NamespaceStatusFluent> { + public interface StatusNested extends Nested,V1NamespaceStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java index a353af02e0..4d4eab13a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NamespaceFluentImpl> extends BaseFluent - implements V1NamespaceFluent { - public V1NamespaceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NamespaceFluentImpl> extends BaseFluent implements V1NamespaceFluent{ + public V1NamespaceFluentImpl() { + } public V1NamespaceFluentImpl(V1Namespace instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1NamespaceFluentImpl(V1Namespace instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1NamespaceSpecBuilder spec; private V1NamespaceStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1NamespaceFluent.MetadataNested withNewMetadata() { return new V1NamespaceFluentImpl.MetadataNestedImpl(); } - public V1NamespaceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1NamespaceFluentImpl.MetadataNestedImpl(item); } - public V1NamespaceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1NamespaceFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1NamespaceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1NamespaceSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1NamespaceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1NamespaceSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1NamespaceSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1NamespaceSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1NamespaceFluent.SpecNested withNewSpec() { return new V1NamespaceFluentImpl.SpecNestedImpl(); } - public V1NamespaceFluent.SpecNested withNewSpecLike(V1NamespaceSpec item) { return new V1NamespaceFluentImpl.SpecNestedImpl(item); } - public V1NamespaceFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1NamespaceFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1NamespaceSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1NamespaceSpecBuilder().build()); } - public V1NamespaceFluent.SpecNested editOrNewSpecLike(V1NamespaceSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1NamespaceStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1NamespaceStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1NamespaceStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1NamespaceStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1NamespaceStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1NamespaceFluent.StatusNested withNewStatus() { return new V1NamespaceFluentImpl.StatusNestedImpl(); } - public V1NamespaceFluent.StatusNested withNewStatusLike(V1NamespaceStatus item) { return new V1NamespaceFluentImpl.StatusNestedImpl(item); } - public V1NamespaceFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1NamespaceFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1NamespaceStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1NamespaceStatusBuilder().build()); } - public V1NamespaceFluent.StatusNested editOrNewStatusLike(V1NamespaceStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NamespaceFluentImpl that = (V1NamespaceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1NamespaceFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1NamespaceFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1NamespaceFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1NamespaceSpecFluentImpl> - implements V1NamespaceFluent.SpecNested, Nested { + class SpecNestedImpl extends V1NamespaceSpecFluentImpl> implements V1NamespaceFluent.SpecNested,Nested{ SpecNestedImpl(V1NamespaceSpec item) { this.builder = new V1NamespaceSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1NamespaceSpecBuilder(this); } - V1NamespaceSpecBuilder builder; - public N and() { return (N) V1NamespaceFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1NamespaceStatusFluentImpl> - implements V1NamespaceFluent.StatusNested, Nested { + class StatusNestedImpl extends V1NamespaceStatusFluentImpl> implements V1NamespaceFluent.StatusNested,Nested{ StatusNestedImpl(V1NamespaceStatus item) { this.builder = new V1NamespaceStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1NamespaceStatusBuilder(this); } - V1NamespaceStatusBuilder builder; - public N and() { return (N) V1NamespaceFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java index 7ae1159aa6..bed5a374cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NamespaceListBuilder extends V1NamespaceListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NamespaceListBuilder extends V1NamespaceListFluentImpl implements VisitableBuilder{ public V1NamespaceListBuilder() { this(false); } - public V1NamespaceListBuilder(Boolean validationEnabled) { this(new V1NamespaceList(), validationEnabled); } - public V1NamespaceListBuilder(V1NamespaceListFluent fluent) { this(fluent, false); } - - public V1NamespaceListBuilder(V1NamespaceListFluent fluent, Boolean validationEnabled) { + public V1NamespaceListBuilder(V1NamespaceListFluent fluent,Boolean validationEnabled) { this(fluent, new V1NamespaceList(), validationEnabled); } - - public V1NamespaceListBuilder(V1NamespaceListFluent fluent, V1NamespaceList instance) { + public V1NamespaceListBuilder(V1NamespaceListFluent fluent,V1NamespaceList instance) { this(fluent, instance, false); } - - public V1NamespaceListBuilder( - V1NamespaceListFluent fluent, V1NamespaceList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NamespaceListBuilder(V1NamespaceListFluent fluent,V1NamespaceList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1NamespaceListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NamespaceListBuilder(V1NamespaceList instance) { - this(instance, false); + this(instance,false); } - - public V1NamespaceListBuilder(V1NamespaceList instance, Boolean validationEnabled) { - this.fluent = this; + public V1NamespaceListBuilder(V1NamespaceList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1NamespaceListBuilder(V1NamespaceList instance, Boolean validationEnable this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NamespaceListFluent fluent; Boolean validationEnabled; - public V1NamespaceList build() { V1NamespaceList buildable = new V1NamespaceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1NamespaceList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java index 5e8870e824..a6b752050c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1NamespaceListFluent> extends Fluent { + /** + * Generated + */ +public interface V1NamespaceListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Namespace item); - - public A setToItems(Integer index, V1Namespace item); - + public A addToItems(Integer index,V1Namespace item); + public A setToItems(Integer index,V1Namespace item); public A addToItems(io.kubernetes.client.openapi.models.V1Namespace... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Namespace... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Namespace buildItem(Integer index); - public V1Namespace buildFirstItem(); - public V1Namespace buildLastItem(); - public V1Namespace buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items); - public Boolean hasItems(); - public V1NamespaceListFluent.ItemsNested addNewItem(); - public V1NamespaceListFluent.ItemsNested addNewItemLike(V1Namespace item); - - public V1NamespaceListFluent.ItemsNested setNewItemLike(Integer index, V1Namespace item); - + public V1NamespaceListFluent.ItemsNested setNewItemLike(Integer index,V1Namespace item); public V1NamespaceListFluent.ItemsNested editItem(Integer index); - public V1NamespaceListFluent.ItemsNested editFirstItem(); - public V1NamespaceListFluent.ItemsNested editLastItem(); - - public V1NamespaceListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1NamespaceListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1NamespaceListFluent.MetadataNested withNewMetadata(); - public V1NamespaceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1NamespaceListFluent.MetadataNested editMetadata(); - public V1NamespaceListFluent.MetadataNested editOrNewMetadata(); - public V1NamespaceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1NamespaceFluent> { + public interface ItemsNested extends Nested,V1NamespaceFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java index e1c0aaaf53..0bb89e4052 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NamespaceListFluentImpl> extends BaseFluent - implements V1NamespaceListFluent { - public V1NamespaceListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NamespaceListFluentImpl> extends BaseFluent implements V1NamespaceListFluent{ + public V1NamespaceListFluentImpl() { + } public V1NamespaceListFluentImpl(V1NamespaceList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1NamespaceListFluentImpl(V1NamespaceList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Namespace item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Namespace item) { + if (this.items == null) {this.items = new ArrayList();} + V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Namespace item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Namespace item) { + if (this.items == null) {this.items = new ArrayList();} V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Namespace buildItem(Integer index) { return this.items.get(index).build(); } - public V1Namespace buildFirstItem() { return this.items.get(0).build(); } - public V1Namespace buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Namespace buildMatchingItem(Predicate predicate) { - for (V1NamespaceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NamespaceBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1NamespaceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NamespaceBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Namespace item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Namespace item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Namespace item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Namespace item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1NamespaceListFluent.ItemsNested addNewItem() { return new V1NamespaceListFluentImpl.ItemsNestedImpl(); } - public V1NamespaceListFluent.ItemsNested addNewItemLike(V1Namespace item) { return new V1NamespaceListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1NamespaceListFluent.ItemsNested setNewItemLike(Integer index, V1Namespace item) { + public V1NamespaceListFluent.ItemsNested setNewItemLike(Integer index,V1Namespace item) { return new V1NamespaceListFluentImpl.ItemsNestedImpl(index, item); } - public V1NamespaceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1NamespaceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1NamespaceListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1NamespaceListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1NamespaceListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1NamespaceListFluentImpl.MetadataNestedImpl(); } - public V1NamespaceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1NamespaceListFluentImpl.MetadataNestedImpl(item); } - public V1NamespaceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1NamespaceListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1NamespaceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NamespaceListFluentImpl that = (V1NamespaceListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1NamespaceFluentImpl> - implements V1NamespaceListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Namespace item) { + class ItemsNestedImpl extends V1NamespaceFluentImpl> implements V1NamespaceListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Namespace item) { this.index = index; this.builder = new V1NamespaceBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1NamespaceBuilder(this); } - V1NamespaceBuilder builder; Integer index; - public N and() { - return (N) V1NamespaceListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1NamespaceListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1NamespaceListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1NamespaceListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1NamespaceListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java index c49b1a5cfd..456c035ae5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluentImpl implements VisitableBuilder{ public V1NamespaceSpecBuilder() { this(false); } - public V1NamespaceSpecBuilder(Boolean validationEnabled) { this(new V1NamespaceSpec(), validationEnabled); } - public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent) { this(fluent, false); } - - public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent, Boolean validationEnabled) { + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1NamespaceSpec(), validationEnabled); } - - public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent, V1NamespaceSpec instance) { + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,V1NamespaceSpec instance) { this(fluent, instance, false); } - - public V1NamespaceSpecBuilder( - V1NamespaceSpecFluent fluent, V1NamespaceSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,V1NamespaceSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFinalizers(instance.getFinalizers()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NamespaceSpecBuilder(V1NamespaceSpec instance) { - this(instance, false); + this(instance,false); } - - public V1NamespaceSpecBuilder(V1NamespaceSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1NamespaceSpecBuilder(V1NamespaceSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withFinalizers(instance.getFinalizers()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NamespaceSpecFluent fluent; Boolean validationEnabled; - public V1NamespaceSpec build() { V1NamespaceSpec buildable = new V1NamespaceSpec(); buildable.setFinalizers(fluent.getFinalizers()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java index 9c54d5a35e..234aa3506b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java @@ -1,51 +1,32 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1NamespaceSpecFluent> extends Fluent { - public A addToFinalizers(Integer index, String item); - - public A setToFinalizers(Integer index, String item); - + /** + * Generated + */ +public interface V1NamespaceSpecFluent> extends Fluent{ + public A addToFinalizers(Integer index,String item); + public A setToFinalizers(Integer index,String item); public A addToFinalizers(java.lang.String... items); - public A addAllToFinalizers(Collection items); - public A removeFromFinalizers(java.lang.String... items); - public A removeAllFromFinalizers(Collection items); - public List getFinalizers(); - public String getFinalizer(Integer index); - public String getFirstFinalizer(); - public String getLastFinalizer(); - public String getMatchingFinalizer(Predicate predicate); - public Boolean hasMatchingFinalizer(Predicate predicate); - public A withFinalizers(List finalizers); - public A withFinalizers(java.lang.String... finalizers); - public Boolean hasFinalizers(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java index f283956479..f88797c2c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java @@ -1,172 +1,95 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NamespaceSpecFluentImpl> extends BaseFluent - implements V1NamespaceSpecFluent { - public V1NamespaceSpecFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NamespaceSpecFluentImpl> extends BaseFluent implements V1NamespaceSpecFluent{ + public V1NamespaceSpecFluentImpl() { + } public V1NamespaceSpecFluentImpl(V1NamespaceSpec instance) { this.withFinalizers(instance.getFinalizers()); - } + } private List finalizers; - - public A addToFinalizers(Integer index, String item) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } + public A addToFinalizers(Integer index,String item) { + if (this.finalizers == null) {this.finalizers = new ArrayList();} this.finalizers.add(index, item); - return (A) this; + return (A)this; } - - public A setToFinalizers(Integer index, String item) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } - this.finalizers.set(index, item); - return (A) this; + public A setToFinalizers(Integer index,String item) { + if (this.finalizers == null) {this.finalizers = new ArrayList();} + this.finalizers.set(index, item); return (A)this; } - public A addToFinalizers(java.lang.String... items) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } - for (String item : items) { - this.finalizers.add(item); - } - return (A) this; + if (this.finalizers == null) {this.finalizers = new ArrayList();} + for (String item : items) {this.finalizers.add(item);} return (A)this; } - public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } - for (String item : items) { - this.finalizers.add(item); - } - return (A) this; + if (this.finalizers == null) {this.finalizers = new ArrayList();} + for (String item : items) {this.finalizers.add(item);} return (A)this; } - public A removeFromFinalizers(java.lang.String... items) { - for (String item : items) { - if (this.finalizers != null) { - this.finalizers.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.finalizers!= null){ this.finalizers.remove(item);}} return (A)this; } - public A removeAllFromFinalizers(Collection items) { - for (String item : items) { - if (this.finalizers != null) { - this.finalizers.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.finalizers!= null){ this.finalizers.remove(item);}} return (A)this; } - public List getFinalizers() { return this.finalizers; } - public String getFinalizer(Integer index) { return this.finalizers.get(index); } - public String getFirstFinalizer() { return this.finalizers.get(0); } - public String getLastFinalizer() { return this.finalizers.get(finalizers.size() - 1); } - public String getMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: finalizers) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: finalizers) { if(predicate.test(item)){ return true;} } return false; } - public A withFinalizers(List finalizers) { - if (finalizers != null) { - this.finalizers = new ArrayList(); - for (String item : finalizers) { - this.addToFinalizers(item); - } - } else { - this.finalizers = null; - } - return (A) this; + if (finalizers != null) {this.finalizers = new ArrayList(); for (String item : finalizers){this.addToFinalizers(item);}} else { this.finalizers = null;} return (A) this; } - public A withFinalizers(java.lang.String... finalizers) { - if (this.finalizers != null) { - this.finalizers.clear(); - } - if (finalizers != null) { - for (String item : finalizers) { - this.addToFinalizers(item); - } - } - return (A) this; + if (this.finalizers != null) {this.finalizers.clear();} + if (finalizers != null) {for (String item :finalizers){ this.addToFinalizers(item);}} return (A) this; } - public Boolean hasFinalizers() { return finalizers != null && !finalizers.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NamespaceSpecFluentImpl that = (V1NamespaceSpecFluentImpl) o; - if (finalizers != null ? !finalizers.equals(that.finalizers) : that.finalizers != null) - return false; + if (finalizers != null ? !finalizers.equals(that.finalizers) :that.finalizers != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(finalizers, super.hashCode()); + return java.util.Objects.hash(finalizers, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (finalizers != null && !finalizers.isEmpty()) { - sb.append("finalizers:"); - sb.append(finalizers); - } + if (finalizers != null && !finalizers.isEmpty()) { sb.append("finalizers:"); sb.append(finalizers); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java index 0bf2d9d328..709efb0bf6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluentImpl implements VisitableBuilder{ public V1NamespaceStatusBuilder() { this(false); } - public V1NamespaceStatusBuilder(Boolean validationEnabled) { this(new V1NamespaceStatus(), validationEnabled); } - public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent) { this(fluent, false); } - - public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent, Boolean validationEnabled) { + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1NamespaceStatus(), validationEnabled); } - - public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent, V1NamespaceStatus instance) { + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,V1NamespaceStatus instance) { this(fluent, instance, false); } - - public V1NamespaceStatusBuilder( - V1NamespaceStatusFluent fluent, V1NamespaceStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,V1NamespaceStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); fluent.withPhase(instance.getPhase()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NamespaceStatusBuilder(V1NamespaceStatus instance) { - this(instance, false); + this(instance,false); } - - public V1NamespaceStatusBuilder(V1NamespaceStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1NamespaceStatusBuilder(V1NamespaceStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); this.withPhase(instance.getPhase()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NamespaceStatusFluent fluent; Boolean validationEnabled; - public V1NamespaceStatus build() { V1NamespaceStatus buildable = new V1NamespaceStatus(); buildable.setConditions(fluent.getConditions()); buildable.setPhase(fluent.getPhase()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java index 9b92feda8e..e50af64ca6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java @@ -1,92 +1,59 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NamespaceStatusFluent> extends Fluent { - public A addToConditions(Integer index, V1NamespaceCondition item); - - public A setToConditions(Integer index, V1NamespaceCondition item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NamespaceStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1NamespaceCondition item); + public A setToConditions(Integer index,V1NamespaceCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1NamespaceCondition buildCondition(Integer index); - public V1NamespaceCondition buildFirstCondition(); - public V1NamespaceCondition buildLastCondition(); - - public V1NamespaceCondition buildMatchingCondition( - Predicate predicate); - + public V1NamespaceCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... conditions); - public Boolean hasConditions(); - public V1NamespaceStatusFluent.ConditionsNested addNewCondition(); - public V1NamespaceStatusFluent.ConditionsNested addNewConditionLike(V1NamespaceCondition item); - - public V1NamespaceStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1NamespaceCondition item); - + public V1NamespaceStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1NamespaceCondition item); public V1NamespaceStatusFluent.ConditionsNested editCondition(Integer index); - public V1NamespaceStatusFluent.ConditionsNested editFirstCondition(); - public V1NamespaceStatusFluent.ConditionsNested editLastCondition(); - - public V1NamespaceStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1NamespaceStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public String getPhase(); - public A withPhase(String phase); - public Boolean hasPhase(); - - public interface ConditionsNested - extends Nested, V1NamespaceConditionFluent> { + public interface ConditionsNested extends Nested,V1NamespaceConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java index 97d4250842..e45b29758d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java @@ -1,116 +1,60 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NamespaceStatusFluentImpl> extends BaseFluent - implements V1NamespaceStatusFluent { - public V1NamespaceStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NamespaceStatusFluentImpl> extends BaseFluent implements V1NamespaceStatusFluent{ + public V1NamespaceStatusFluentImpl() { + } public V1NamespaceStatusFluentImpl(V1NamespaceStatus instance) { this.withConditions(instance.getConditions()); this.withPhase(instance.getPhase()); - } + } private ArrayList conditions; private String phase; - - public A addToConditions(Integer index, V1NamespaceCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(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 addToConditions(Integer index,V1NamespaceCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(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(Integer index, V1NamespaceCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1NamespaceCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(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; + 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.V1NamespaceCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(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 ArrayList(); - } - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(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(); @@ -122,194 +66,122 @@ public A removeMatchingFromConditions(Predicate pre each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1NamespaceCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1NamespaceCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1NamespaceCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1NamespaceCondition buildMatchingCondition( - Predicate predicate) { - for (V1NamespaceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NamespaceCondition buildMatchingCondition(Predicate predicate) { + for (V1NamespaceConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1NamespaceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NamespaceConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1NamespaceCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1NamespaceCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1NamespaceCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1NamespaceCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1NamespaceStatusFluent.ConditionsNested addNewCondition() { return new V1NamespaceStatusFluentImpl.ConditionsNestedImpl(); } - - public V1NamespaceStatusFluent.ConditionsNested addNewConditionLike( - V1NamespaceCondition item) { + public V1NamespaceStatusFluent.ConditionsNested addNewConditionLike(V1NamespaceCondition item) { return new V1NamespaceStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1NamespaceStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1NamespaceCondition item) { + public V1NamespaceStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1NamespaceCondition item) { return new V1NamespaceStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1NamespaceStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1NamespaceStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1NamespaceStatusFluent.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 V1NamespaceStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1NamespaceStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1NamespaceConditionFluentImpl> - implements V1NamespaceStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1NamespaceCondition item) { + class ConditionsNestedImpl extends V1NamespaceConditionFluentImpl> implements V1NamespaceStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1NamespaceCondition item) { this.index = index; this.builder = new V1NamespaceConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1NamespaceConditionBuilder(this); } - V1NamespaceConditionBuilder builder; Integer index; - public N and() { - return (N) V1NamespaceStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1NamespaceStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java index 26692b0523..e99b5c68ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluentImpl implements VisitableBuilder{ public V1NetworkPolicyBuilder() { this(false); } - public V1NetworkPolicyBuilder(Boolean validationEnabled) { this(new V1NetworkPolicy(), validationEnabled); } - public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicy(), validationEnabled); } - - public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent, V1NetworkPolicy instance) { + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,V1NetworkPolicy instance) { this(fluent, instance, false); } - - public V1NetworkPolicyBuilder( - V1NetworkPolicyFluent fluent, V1NetworkPolicy instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,V1NetworkPolicy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1NetworkPolicyBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyBuilder(V1NetworkPolicy instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyBuilder(V1NetworkPolicy instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyBuilder(V1NetworkPolicy instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1NetworkPolicyBuilder(V1NetworkPolicy instance, Boolean validationEnable this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyFluent fluent; Boolean validationEnabled; - public V1NetworkPolicy build() { V1NetworkPolicy buildable = new V1NetworkPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1NetworkPolicy build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java index 4ff4f5b41f..3d5b23cac8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyEgressRuleBuilder - extends V1NetworkPolicyEgressRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyEgressRuleBuilder extends V1NetworkPolicyEgressRuleFluentImpl implements VisitableBuilder{ public V1NetworkPolicyEgressRuleBuilder() { this(false); } - public V1NetworkPolicyEgressRuleBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyEgressRule(), validationEnabled); } - public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyEgressRuleBuilder( - V1NetworkPolicyEgressRuleFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicyEgressRule(), validationEnabled); } - - public V1NetworkPolicyEgressRuleBuilder( - V1NetworkPolicyEgressRuleFluent fluent, V1NetworkPolicyEgressRule instance) { + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,V1NetworkPolicyEgressRule instance) { this(fluent, instance, false); } - - public V1NetworkPolicyEgressRuleBuilder( - V1NetworkPolicyEgressRuleFluent fluent, - V1NetworkPolicyEgressRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,V1NetworkPolicyEgressRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPorts(instance.getPorts()); fluent.withTo(instance.getTo()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRule instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyEgressRuleBuilder( - V1NetworkPolicyEgressRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRule instance,Boolean validationEnabled) { + this.fluent = this; this.withPorts(instance.getPorts()); this.withTo(instance.getTo()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyEgressRuleFluent fluent; Boolean validationEnabled; - public V1NetworkPolicyEgressRule build() { V1NetworkPolicyEgressRule buildable = new V1NetworkPolicyEgressRule(); buildable.setPorts(fluent.getPorts()); buildable.setTo(fluent.getTo()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java index 85ba6045f7..45b98137a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java @@ -1,149 +1,90 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NetworkPolicyEgressRuleFluent> - extends Fluent { - public A addToPorts(Integer index, V1NetworkPolicyPort item); - - public A setToPorts(Integer index, V1NetworkPolicyPort item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NetworkPolicyEgressRuleFluent> extends Fluent{ + public A addToPorts(Integer index,V1NetworkPolicyPort item); + public A setToPorts(Integer index,V1NetworkPolicyPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public V1NetworkPolicyPort buildPort(Integer index); - public V1NetworkPolicyPort buildFirstPort(); - public V1NetworkPolicyPort buildLastPort(); - public V1NetworkPolicyPort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports); - public Boolean hasPorts(); - public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPort(); - public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item); - - public V1NetworkPolicyEgressRuleFluent.PortsNested setNewPortLike( - Integer index, V1NetworkPolicyPort item); - + public V1NetworkPolicyEgressRuleFluent.PortsNested setNewPortLike(Integer index,V1NetworkPolicyPort item); public V1NetworkPolicyEgressRuleFluent.PortsNested editPort(Integer index); - public V1NetworkPolicyEgressRuleFluent.PortsNested editFirstPort(); - public V1NetworkPolicyEgressRuleFluent.PortsNested editLastPort(); - - public V1NetworkPolicyEgressRuleFluent.PortsNested editMatchingPort( - Predicate predicate); - - public A addToTo(Integer index, V1NetworkPolicyPeer item); - - public A setToTo(Integer index, V1NetworkPolicyPeer item); - + public V1NetworkPolicyEgressRuleFluent.PortsNested editMatchingPort(Predicate predicate); + public A addToTo(Integer index,V1NetworkPolicyPeer item); + public A setToTo(Integer index,V1NetworkPolicyPeer item); public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A addAllToTo(Collection items); - public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A removeAllFromTo(Collection items); - public A removeMatchingFromTo(Predicate predicate); - + /** * This method has been deprecated, please use method buildTo instead. - * * @return The buildable object. */ @Deprecated public List getTo(); - public List buildTo(); - public V1NetworkPolicyPeer buildTo(Integer index); - public V1NetworkPolicyPeer buildFirstTo(); - public V1NetworkPolicyPeer buildLastTo(); - public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate); - public Boolean hasMatchingTo(Predicate predicate); - public A withTo(List to); - public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to); - public Boolean hasTo(); - public V1NetworkPolicyEgressRuleFluent.ToNested addNewTo(); - public V1NetworkPolicyEgressRuleFluent.ToNested addNewToLike(V1NetworkPolicyPeer item); - - public V1NetworkPolicyEgressRuleFluent.ToNested setNewToLike( - Integer index, V1NetworkPolicyPeer item); - + public V1NetworkPolicyEgressRuleFluent.ToNested setNewToLike(Integer index,V1NetworkPolicyPeer item); public V1NetworkPolicyEgressRuleFluent.ToNested editTo(Integer index); - public V1NetworkPolicyEgressRuleFluent.ToNested editFirstTo(); - public V1NetworkPolicyEgressRuleFluent.ToNested editLastTo(); - - public V1NetworkPolicyEgressRuleFluent.ToNested editMatchingTo( - Predicate predicate); - - public interface PortsNested - extends Nested, V1NetworkPolicyPortFluent> { + public V1NetworkPolicyEgressRuleFluent.ToNested editMatchingTo(Predicate predicate); + public interface PortsNested extends Nested,V1NetworkPolicyPortFluent>{ public N and(); - public N endPort(); + } - - public interface ToNested - extends Nested, V1NetworkPolicyPeerFluent> { + public interface ToNested extends Nested,V1NetworkPolicyPeerFluent>{ public N and(); - public N endTo(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java index e62249193b..1bad45b339 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java @@ -1,114 +1,60 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyEgressRuleFluentImpl> - extends BaseFluent implements V1NetworkPolicyEgressRuleFluent { - public V1NetworkPolicyEgressRuleFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyEgressRuleFluentImpl> extends BaseFluent implements V1NetworkPolicyEgressRuleFluent{ + public V1NetworkPolicyEgressRuleFluentImpl() { + } public V1NetworkPolicyEgressRuleFluentImpl(V1NetworkPolicyEgressRule instance) { this.withPorts(instance.getPorts()); this.withTo(instance.getTo()); - } + } private ArrayList ports; private ArrayList to; - - public A addToPorts(Integer index, V1NetworkPolicyPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,V1NetworkPolicyPort item) { + if (this.ports == null) {this.ports = new ArrayList();} + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, V1NetworkPolicyPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,V1NetworkPolicyPort item) { + if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -120,200 +66,101 @@ public A removeMatchingFromPorts(Predicate predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public V1NetworkPolicyPort buildPort(Integer index) { return this.ports.get(index).build(); } - public V1NetworkPolicyPort buildFirstPort() { return this.ports.get(0).build(); } - public V1NetworkPolicyPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NetworkPolicyPortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyPortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (V1NetworkPolicyPort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (V1NetworkPolicyPort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPort() { return new V1NetworkPolicyEgressRuleFluentImpl.PortsNestedImpl(); } - public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item) { return new V1NetworkPolicyEgressRuleFluentImpl.PortsNestedImpl(-1, item); } - - public V1NetworkPolicyEgressRuleFluent.PortsNested setNewPortLike( - Integer index, V1NetworkPolicyPort item) { + public V1NetworkPolicyEgressRuleFluent.PortsNested setNewPortLike(Integer index,V1NetworkPolicyPort item) { return new V1NetworkPolicyEgressRuleFluentImpl.PortsNestedImpl(index, item); } - public V1NetworkPolicyEgressRuleFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1NetworkPolicyEgressRuleFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1NetworkPolicyEgressRuleFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1NetworkPolicyEgressRuleFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1NetworkPolicyEgressRuleFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(index >= 0 ? index : _visitables.get("to").size(), builder); - this.to.add(index >= 0 ? index : to.size(), builder); - return (A) this; + public A addToTo(Integer index,V1NetworkPolicyPeer item) { + if (this.to == null) {this.to = new ArrayList();} + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(index >= 0 ? index : _visitables.get("to").size(), builder);this.to.add(index >= 0 ? index : to.size(), builder); return (A)this; } - - public A setToTo(Integer index, V1NetworkPolicyPeer item) { - if (this.to == null) { - this.to = new ArrayList(); - } + public A setToTo(Integer index,V1NetworkPolicyPeer item) { + if (this.to == null) {this.to = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= _visitables.get("to").size()) { - _visitables.get("to").add(builder); - } else { - _visitables.get("to").set(index, builder); - } - if (index < 0 || index >= to.size()) { - to.add(builder); - } else { - to.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("to").size()) { _visitables.get("to").add(builder); } else { _visitables.get("to").set(index, builder);} + if (index < 0 || index >= to.size()) { to.add(builder); } else { to.set(index, builder);} + return (A)this; } - public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.to == null) { - this.to = new ArrayList(); - } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(builder); - this.to.add(builder); - } - return (A) this; + if (this.to == null) {this.to = new ArrayList();} + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(builder);this.to.add(builder);} return (A)this; } - public A addAllToTo(Collection items) { - if (this.to == null) { - this.to = new ArrayList(); - } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(builder); - this.to.add(builder); - } - return (A) this; + if (this.to == null) {this.to = new ArrayList();} + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(builder);this.to.add(builder);} return (A)this; } - public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").remove(builder); - if (this.to != null) { - this.to.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").remove(builder);if (this.to != null) {this.to.remove(builder);}} return (A)this; } - public A removeAllFromTo(Collection items) { - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").remove(builder); - if (this.to != null) { - this.to.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").remove(builder);if (this.to != null) {this.to.remove(builder);}} return (A)this; } - public A removeMatchingFromTo(Predicate predicate) { if (to == null) return (A) this; final Iterator each = to.iterator(); @@ -325,201 +172,132 @@ public A removeMatchingFromTo(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTo instead. - * * @return The buildable object. */ @Deprecated public List getTo() { return to != null ? build(to) : null; } - public List buildTo() { return to != null ? build(to) : null; } - public V1NetworkPolicyPeer buildTo(Integer index) { return this.to.get(index).build(); } - public V1NetworkPolicyPeer buildFirstTo() { return this.to.get(0).build(); } - public V1NetworkPolicyPeer buildLastTo() { return this.to.get(to.size() - 1).build(); } - public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : to) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NetworkPolicyPeerBuilder item: to) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingTo(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : to) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyPeerBuilder item: to) { if(predicate.test(item)){ return true;} } return false; } - public A withTo(List to) { - if (this.to != null) { - _visitables.get("to").removeAll(this.to); - } - if (to != null) { - this.to = new ArrayList(); - for (V1NetworkPolicyPeer item : to) { - this.addToTo(item); - } - } else { - this.to = null; - } - return (A) this; + if (this.to != null) { _visitables.get("to").removeAll(this.to);} + if (to != null) {this.to = new ArrayList(); for (V1NetworkPolicyPeer item : to){this.addToTo(item);}} else { this.to = null;} return (A) this; } - public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to) { - if (this.to != null) { - this.to.clear(); - } - if (to != null) { - for (V1NetworkPolicyPeer item : to) { - this.addToTo(item); - } - } - return (A) this; + if (this.to != null) {this.to.clear();} + if (to != null) {for (V1NetworkPolicyPeer item :to){ this.addToTo(item);}} return (A) this; } - public Boolean hasTo() { return to != null && !to.isEmpty(); } - public V1NetworkPolicyEgressRuleFluent.ToNested addNewTo() { return new V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl(); } - public V1NetworkPolicyEgressRuleFluent.ToNested addNewToLike(V1NetworkPolicyPeer item) { return new V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl(-1, item); } - - public V1NetworkPolicyEgressRuleFluent.ToNested setNewToLike( - Integer index, V1NetworkPolicyPeer item) { + public V1NetworkPolicyEgressRuleFluent.ToNested setNewToLike(Integer index,V1NetworkPolicyPeer item) { return new V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl(index, item); } - public V1NetworkPolicyEgressRuleFluent.ToNested editTo(Integer index) { if (to.size() <= index) throw new RuntimeException("Can't edit to. Index exceeds size."); return setNewToLike(index, buildTo(index)); } - public V1NetworkPolicyEgressRuleFluent.ToNested editFirstTo() { if (to.size() == 0) throw new RuntimeException("Can't edit first to. The list is empty."); return setNewToLike(0, buildTo(0)); } - public V1NetworkPolicyEgressRuleFluent.ToNested editLastTo() { int index = to.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last to. The list is empty."); return setNewToLike(index, buildTo(index)); } - - public V1NetworkPolicyEgressRuleFluent.ToNested editMatchingTo( - Predicate predicate) { + public V1NetworkPolicyEgressRuleFluent.ToNested editMatchingTo(Predicate predicate) { int index = -1; - for (int i = 0; i < to.size(); i++) { - if (predicate.test(to.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1NetworkPolicyPortFluentImpl> - implements V1NetworkPolicyEgressRuleFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, V1NetworkPolicyPort item) { + class PortsNestedImpl extends V1NetworkPolicyPortFluentImpl> implements V1NetworkPolicyEgressRuleFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyPortBuilder(this); } - V1NetworkPolicyPortBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicyEgressRuleFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1NetworkPolicyEgressRuleFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } - - class ToNestedImpl - extends V1NetworkPolicyPeerFluentImpl> - implements V1NetworkPolicyEgressRuleFluent.ToNested, Nested { - ToNestedImpl(Integer index, V1NetworkPolicyPeer item) { + class ToNestedImpl extends V1NetworkPolicyPeerFluentImpl> implements V1NetworkPolicyEgressRuleFluent.ToNested,Nested{ + ToNestedImpl(Integer index,V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } - ToNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyPeerBuilder(this); } - V1NetworkPolicyPeerBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicyEgressRuleFluentImpl.this.setToTo(index, builder.build()); + return (N) V1NetworkPolicyEgressRuleFluentImpl.this.setToTo(index,builder.build()); } - public N endTo() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java index afad8cdd88..2a2eb87f7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1NetworkPolicyFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NetworkPolicyFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1NetworkPolicyFluent.MetadataNested withNewMetadata(); - public V1NetworkPolicyFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1NetworkPolicyFluent.MetadataNested editMetadata(); - public V1NetworkPolicyFluent.MetadataNested editOrNewMetadata(); - public V1NetworkPolicyFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1NetworkPolicySpec getSpec(); - public V1NetworkPolicySpec buildSpec(); - public A withSpec(V1NetworkPolicySpec spec); - public Boolean hasSpec(); - public V1NetworkPolicyFluent.SpecNested withNewSpec(); - public V1NetworkPolicyFluent.SpecNested withNewSpecLike(V1NetworkPolicySpec item); - public V1NetworkPolicyFluent.SpecNested editSpec(); - public V1NetworkPolicyFluent.SpecNested editOrNewSpec(); - public V1NetworkPolicyFluent.SpecNested editOrNewSpecLike(V1NetworkPolicySpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1NetworkPolicyStatus getStatus(); - public V1NetworkPolicyStatus buildStatus(); - public A withStatus(V1NetworkPolicyStatus status); - public Boolean hasStatus(); - public V1NetworkPolicyFluent.StatusNested withNewStatus(); - public V1NetworkPolicyFluent.StatusNested withNewStatusLike(V1NetworkPolicyStatus item); - public V1NetworkPolicyFluent.StatusNested editStatus(); - public V1NetworkPolicyFluent.StatusNested editOrNewStatus(); - public V1NetworkPolicyFluent.StatusNested editOrNewStatusLike(V1NetworkPolicyStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1NetworkPolicySpecFluent> { + public interface SpecNested extends Nested,V1NetworkPolicySpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1NetworkPolicyStatusFluent> { + public interface StatusNested extends Nested,V1NetworkPolicyStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java index 7508abe1fd..2e66fa1244 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyFluentImpl> extends BaseFluent - implements V1NetworkPolicyFluent { - public V1NetworkPolicyFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyFluentImpl> extends BaseFluent implements V1NetworkPolicyFluent{ + public V1NetworkPolicyFluentImpl() { + } public V1NetworkPolicyFluentImpl(V1NetworkPolicy instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,299 +25,205 @@ public V1NetworkPolicyFluentImpl(V1NetworkPolicy instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1NetworkPolicySpecBuilder spec; private V1NetworkPolicyStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1NetworkPolicyFluent.MetadataNested withNewMetadata() { return new V1NetworkPolicyFluentImpl.MetadataNestedImpl(); } - public V1NetworkPolicyFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1NetworkPolicyFluentImpl.MetadataNestedImpl(item); } - public V1NetworkPolicyFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1NetworkPolicyFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1NetworkPolicyFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1NetworkPolicySpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1NetworkPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1NetworkPolicySpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1NetworkPolicySpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1NetworkPolicySpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1NetworkPolicyFluent.SpecNested withNewSpec() { return new V1NetworkPolicyFluentImpl.SpecNestedImpl(); } - public V1NetworkPolicyFluent.SpecNested withNewSpecLike(V1NetworkPolicySpec item) { return new V1NetworkPolicyFluentImpl.SpecNestedImpl(item); } - public V1NetworkPolicyFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1NetworkPolicyFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1NetworkPolicySpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1NetworkPolicySpecBuilder().build()); } - public V1NetworkPolicyFluent.SpecNested editOrNewSpecLike(V1NetworkPolicySpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1NetworkPolicyStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1NetworkPolicyStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1NetworkPolicyStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1NetworkPolicyStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1NetworkPolicyStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1NetworkPolicyFluent.StatusNested withNewStatus() { return new V1NetworkPolicyFluentImpl.StatusNestedImpl(); } - public V1NetworkPolicyFluent.StatusNested withNewStatusLike(V1NetworkPolicyStatus item) { return new V1NetworkPolicyFluentImpl.StatusNestedImpl(item); } - public V1NetworkPolicyFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1NetworkPolicyFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1NetworkPolicyStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1NetworkPolicyStatusBuilder().build()); } - public V1NetworkPolicyFluent.StatusNested editOrNewStatusLike(V1NetworkPolicyStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NetworkPolicyFluentImpl that = (V1NetworkPolicyFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1NetworkPolicyFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1NetworkPolicyFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1NetworkPolicyFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1NetworkPolicySpecFluentImpl> - implements V1NetworkPolicyFluent.SpecNested, Nested { + class SpecNestedImpl extends V1NetworkPolicySpecFluentImpl> implements V1NetworkPolicyFluent.SpecNested,Nested{ SpecNestedImpl(V1NetworkPolicySpec item) { this.builder = new V1NetworkPolicySpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1NetworkPolicySpecBuilder(this); } - V1NetworkPolicySpecBuilder builder; - public N and() { return (N) V1NetworkPolicyFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1NetworkPolicyStatusFluentImpl> - implements V1NetworkPolicyFluent.StatusNested, Nested { + class StatusNestedImpl extends V1NetworkPolicyStatusFluentImpl> implements V1NetworkPolicyFluent.StatusNested,Nested{ StatusNestedImpl(V1NetworkPolicyStatus item) { this.builder = new V1NetworkPolicyStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1NetworkPolicyStatusBuilder(this); } - V1NetworkPolicyStatusBuilder builder; - public N and() { return (N) V1NetworkPolicyFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java index 22dcffe976..000e39eac7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyIngressRuleBuilder - extends V1NetworkPolicyIngressRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyIngressRuleBuilder extends V1NetworkPolicyIngressRuleFluentImpl implements VisitableBuilder{ public V1NetworkPolicyIngressRuleBuilder() { this(false); } - public V1NetworkPolicyIngressRuleBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyIngressRule(), validationEnabled); } - public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyIngressRuleBuilder( - V1NetworkPolicyIngressRuleFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicyIngressRule(), validationEnabled); } - - public V1NetworkPolicyIngressRuleBuilder( - V1NetworkPolicyIngressRuleFluent fluent, V1NetworkPolicyIngressRule instance) { + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,V1NetworkPolicyIngressRule instance) { this(fluent, instance, false); } - - public V1NetworkPolicyIngressRuleBuilder( - V1NetworkPolicyIngressRuleFluent fluent, - V1NetworkPolicyIngressRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,V1NetworkPolicyIngressRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFrom(instance.getFrom()); fluent.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRule instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyIngressRuleBuilder( - V1NetworkPolicyIngressRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRule instance,Boolean validationEnabled) { + this.fluent = this; this.withFrom(instance.getFrom()); this.withPorts(instance.getPorts()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyIngressRuleFluent fluent; Boolean validationEnabled; - public V1NetworkPolicyIngressRule build() { V1NetworkPolicyIngressRule buildable = new V1NetworkPolicyIngressRule(); buildable.setFrom(fluent.getFrom()); buildable.setPorts(fluent.getPorts()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java index bb4894c488..e7b0ea1079 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java @@ -1,150 +1,90 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NetworkPolicyIngressRuleFluent> - extends Fluent { - public A addToFrom(Integer index, V1NetworkPolicyPeer item); - - public A setToFrom(Integer index, V1NetworkPolicyPeer item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NetworkPolicyIngressRuleFluent> extends Fluent{ + public A addToFrom(Integer index,V1NetworkPolicyPeer item); + public A setToFrom(Integer index,V1NetworkPolicyPeer item); public A addToFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A addAllToFrom(Collection items); - public A removeFromFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A removeAllFromFrom(Collection items); - public A removeMatchingFromFrom(Predicate predicate); - + /** * This method has been deprecated, please use method buildFrom instead. - * * @return The buildable object. */ @Deprecated public List getFrom(); - public List buildFrom(); - public V1NetworkPolicyPeer buildFrom(Integer index); - public V1NetworkPolicyPeer buildFirstFrom(); - public V1NetworkPolicyPeer buildLastFrom(); - public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate); - public Boolean hasMatchingFrom(Predicate predicate); - public A withFrom(List from); - public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... from); - public Boolean hasFrom(); - public V1NetworkPolicyIngressRuleFluent.FromNested addNewFrom(); - public V1NetworkPolicyIngressRuleFluent.FromNested addNewFromLike(V1NetworkPolicyPeer item); - - public V1NetworkPolicyIngressRuleFluent.FromNested setNewFromLike( - Integer index, V1NetworkPolicyPeer item); - + public V1NetworkPolicyIngressRuleFluent.FromNested setNewFromLike(Integer index,V1NetworkPolicyPeer item); public V1NetworkPolicyIngressRuleFluent.FromNested editFrom(Integer index); - public V1NetworkPolicyIngressRuleFluent.FromNested editFirstFrom(); - public V1NetworkPolicyIngressRuleFluent.FromNested editLastFrom(); - - public V1NetworkPolicyIngressRuleFluent.FromNested editMatchingFrom( - Predicate predicate); - - public A addToPorts(Integer index, V1NetworkPolicyPort item); - - public A setToPorts(Integer index, V1NetworkPolicyPort item); - + public V1NetworkPolicyIngressRuleFluent.FromNested editMatchingFrom(Predicate predicate); + public A addToPorts(Integer index,V1NetworkPolicyPort item); + public A setToPorts(Integer index,V1NetworkPolicyPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public V1NetworkPolicyPort buildPort(Integer index); - public V1NetworkPolicyPort buildFirstPort(); - public V1NetworkPolicyPort buildLastPort(); - public V1NetworkPolicyPort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports); - public Boolean hasPorts(); - public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPort(); - public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item); - - public V1NetworkPolicyIngressRuleFluent.PortsNested setNewPortLike( - Integer index, V1NetworkPolicyPort item); - + public V1NetworkPolicyIngressRuleFluent.PortsNested setNewPortLike(Integer index,V1NetworkPolicyPort item); public V1NetworkPolicyIngressRuleFluent.PortsNested editPort(Integer index); - public V1NetworkPolicyIngressRuleFluent.PortsNested editFirstPort(); - public V1NetworkPolicyIngressRuleFluent.PortsNested editLastPort(); - - public V1NetworkPolicyIngressRuleFluent.PortsNested editMatchingPort( - Predicate predicate); - - public interface FromNested - extends Nested, V1NetworkPolicyPeerFluent> { + public V1NetworkPolicyIngressRuleFluent.PortsNested editMatchingPort(Predicate predicate); + public interface FromNested extends Nested,V1NetworkPolicyPeerFluent>{ public N and(); - public N endFrom(); + } - - public interface PortsNested - extends Nested, - V1NetworkPolicyPortFluent> { + public interface PortsNested extends Nested,V1NetworkPolicyPortFluent>{ public N and(); - public N endPort(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java index 110f122fd1..52bdf45d1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java @@ -1,114 +1,60 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyIngressRuleFluentImpl> - extends BaseFluent implements V1NetworkPolicyIngressRuleFluent { - public V1NetworkPolicyIngressRuleFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyIngressRuleFluentImpl> extends BaseFluent implements V1NetworkPolicyIngressRuleFluent{ + public V1NetworkPolicyIngressRuleFluentImpl() { + } public V1NetworkPolicyIngressRuleFluentImpl(V1NetworkPolicyIngressRule instance) { this.withFrom(instance.getFrom()); this.withPorts(instance.getPorts()); - } + } private ArrayList from; private ArrayList ports; - - public A addToFrom(Integer index, V1NetworkPolicyPeer item) { - if (this.from == null) { - this.from = new ArrayList(); - } - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").add(index >= 0 ? index : _visitables.get("from").size(), builder); - this.from.add(index >= 0 ? index : from.size(), builder); - return (A) this; + public A addToFrom(Integer index,V1NetworkPolicyPeer item) { + if (this.from == null) {this.from = new ArrayList();} + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(index >= 0 ? index : _visitables.get("from").size(), builder);this.from.add(index >= 0 ? index : from.size(), builder); return (A)this; } - - public A setToFrom(Integer index, V1NetworkPolicyPeer item) { - if (this.from == null) { - this.from = new ArrayList(); - } + public A setToFrom(Integer index,V1NetworkPolicyPeer item) { + if (this.from == null) {this.from = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= _visitables.get("from").size()) { - _visitables.get("from").add(builder); - } else { - _visitables.get("from").set(index, builder); - } - if (index < 0 || index >= from.size()) { - from.add(builder); - } else { - from.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("from").size()) { _visitables.get("from").add(builder); } else { _visitables.get("from").set(index, builder);} + if (index < 0 || index >= from.size()) { from.add(builder); } else { from.set(index, builder);} + return (A)this; } - public A addToFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.from == null) { - this.from = new ArrayList(); - } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").add(builder); - this.from.add(builder); - } - return (A) this; + if (this.from == null) {this.from = new ArrayList();} + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(builder);this.from.add(builder);} return (A)this; } - public A addAllToFrom(Collection items) { - if (this.from == null) { - this.from = new ArrayList(); - } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").add(builder); - this.from.add(builder); - } - return (A) this; + if (this.from == null) {this.from = new ArrayList();} + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(builder);this.from.add(builder);} return (A)this; } - public A removeFromFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").remove(builder); - if (this.from != null) { - this.from.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").remove(builder);if (this.from != null) {this.from.remove(builder);}} return (A)this; } - public A removeAllFromFrom(Collection items) { - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").remove(builder); - if (this.from != null) { - this.from.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").remove(builder);if (this.from != null) {this.from.remove(builder);}} return (A)this; } - public A removeMatchingFromFrom(Predicate predicate) { if (from == null) return (A) this; final Iterator each = from.iterator(); @@ -120,200 +66,101 @@ public A removeMatchingFromFrom(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildFrom instead. - * * @return The buildable object. */ @Deprecated public List getFrom() { return from != null ? build(from) : null; } - public List buildFrom() { return from != null ? build(from) : null; } - public V1NetworkPolicyPeer buildFrom(Integer index) { return this.from.get(index).build(); } - public V1NetworkPolicyPeer buildFirstFrom() { return this.from.get(0).build(); } - public V1NetworkPolicyPeer buildLastFrom() { return this.from.get(from.size() - 1).build(); } - public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : from) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NetworkPolicyPeerBuilder item: from) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingFrom(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : from) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyPeerBuilder item: from) { if(predicate.test(item)){ return true;} } return false; } - public A withFrom(List from) { - if (this.from != null) { - _visitables.get("from").removeAll(this.from); - } - if (from != null) { - this.from = new ArrayList(); - for (V1NetworkPolicyPeer item : from) { - this.addToFrom(item); - } - } else { - this.from = null; - } - return (A) this; + if (this.from != null) { _visitables.get("from").removeAll(this.from);} + if (from != null) {this.from = new ArrayList(); for (V1NetworkPolicyPeer item : from){this.addToFrom(item);}} else { this.from = null;} return (A) this; } - public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... from) { - if (this.from != null) { - this.from.clear(); - } - if (from != null) { - for (V1NetworkPolicyPeer item : from) { - this.addToFrom(item); - } - } - return (A) this; + if (this.from != null) {this.from.clear();} + if (from != null) {for (V1NetworkPolicyPeer item :from){ this.addToFrom(item);}} return (A) this; } - public Boolean hasFrom() { return from != null && !from.isEmpty(); } - public V1NetworkPolicyIngressRuleFluent.FromNested addNewFrom() { return new V1NetworkPolicyIngressRuleFluentImpl.FromNestedImpl(); } - public V1NetworkPolicyIngressRuleFluent.FromNested addNewFromLike(V1NetworkPolicyPeer item) { return new V1NetworkPolicyIngressRuleFluentImpl.FromNestedImpl(-1, item); } - - public V1NetworkPolicyIngressRuleFluent.FromNested setNewFromLike( - Integer index, V1NetworkPolicyPeer item) { + public V1NetworkPolicyIngressRuleFluent.FromNested setNewFromLike(Integer index,V1NetworkPolicyPeer item) { return new V1NetworkPolicyIngressRuleFluentImpl.FromNestedImpl(index, item); } - public V1NetworkPolicyIngressRuleFluent.FromNested editFrom(Integer index) { if (from.size() <= index) throw new RuntimeException("Can't edit from. Index exceeds size."); return setNewFromLike(index, buildFrom(index)); } - public V1NetworkPolicyIngressRuleFluent.FromNested editFirstFrom() { if (from.size() == 0) throw new RuntimeException("Can't edit first from. The list is empty."); return setNewFromLike(0, buildFrom(0)); } - public V1NetworkPolicyIngressRuleFluent.FromNested editLastFrom() { int index = from.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last from. The list is empty."); return setNewFromLike(index, buildFrom(index)); } - - public V1NetworkPolicyIngressRuleFluent.FromNested editMatchingFrom( - Predicate predicate) { + public V1NetworkPolicyIngressRuleFluent.FromNested editMatchingFrom(Predicate predicate) { int index = -1; - for (int i = 0; i < from.size(); i++) { - if (predicate.test(from.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,V1NetworkPolicyPort item) { + if (this.ports == null) {this.ports = new ArrayList();} + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, V1NetworkPolicyPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,V1NetworkPolicyPort item) { + if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -325,201 +172,132 @@ public A removeMatchingFromPorts(Predicate predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public V1NetworkPolicyPort buildPort(Integer index) { return this.ports.get(index).build(); } - public V1NetworkPolicyPort buildFirstPort() { return this.ports.get(0).build(); } - public V1NetworkPolicyPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NetworkPolicyPortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyPortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (V1NetworkPolicyPort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (V1NetworkPolicyPort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPort() { return new V1NetworkPolicyIngressRuleFluentImpl.PortsNestedImpl(); } - public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item) { return new V1NetworkPolicyIngressRuleFluentImpl.PortsNestedImpl(-1, item); } - - public V1NetworkPolicyIngressRuleFluent.PortsNested setNewPortLike( - Integer index, V1NetworkPolicyPort item) { + public V1NetworkPolicyIngressRuleFluent.PortsNested setNewPortLike(Integer index,V1NetworkPolicyPort item) { return new V1NetworkPolicyIngressRuleFluentImpl.PortsNestedImpl(index, item); } - public V1NetworkPolicyIngressRuleFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1NetworkPolicyIngressRuleFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1NetworkPolicyIngressRuleFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1NetworkPolicyIngressRuleFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1NetworkPolicyIngressRuleFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1NetworkPolicyPeerFluentImpl> - implements V1NetworkPolicyIngressRuleFluent.FromNested, Nested { - FromNestedImpl(Integer index, V1NetworkPolicyPeer item) { + class FromNestedImpl extends V1NetworkPolicyPeerFluentImpl> implements V1NetworkPolicyIngressRuleFluent.FromNested,Nested{ + FromNestedImpl(Integer index,V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } - FromNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyPeerBuilder(this); } - V1NetworkPolicyPeerBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicyIngressRuleFluentImpl.this.setToFrom(index, builder.build()); + return (N) V1NetworkPolicyIngressRuleFluentImpl.this.setToFrom(index,builder.build()); } - public N endFrom() { return and(); } + } - - class PortsNestedImpl - extends V1NetworkPolicyPortFluentImpl> - implements V1NetworkPolicyIngressRuleFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, V1NetworkPolicyPort item) { + class PortsNestedImpl extends V1NetworkPolicyPortFluentImpl> implements V1NetworkPolicyIngressRuleFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyPortBuilder(this); } - V1NetworkPolicyPortBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicyIngressRuleFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1NetworkPolicyIngressRuleFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java index c66624eb71..e543db7674 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyListBuilder - extends V1NetworkPolicyListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluentImpl implements VisitableBuilder{ public V1NetworkPolicyListBuilder() { this(false); } - public V1NetworkPolicyListBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyList(), validationEnabled); } - public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyListBuilder( - V1NetworkPolicyListFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicyList(), validationEnabled); } - - public V1NetworkPolicyListBuilder( - V1NetworkPolicyListFluent fluent, V1NetworkPolicyList instance) { + public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,V1NetworkPolicyList instance) { this(fluent, instance, false); } - - public V1NetworkPolicyListBuilder( - V1NetworkPolicyListFluent fluent, - V1NetworkPolicyList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,V1NetworkPolicyList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1NetworkPolicyListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance, Boolean validati this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyListFluent fluent; Boolean validationEnabled; - public V1NetworkPolicyList build() { V1NetworkPolicyList buildable = new V1NetworkPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1NetworkPolicyList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java index 87fd1c1d43..c9052b55c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1NetworkPolicyListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1NetworkPolicyListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1NetworkPolicy item); - - public A setToItems(Integer index, V1NetworkPolicy item); - + public A addToItems(Integer index,V1NetworkPolicy item); + public A setToItems(Integer index,V1NetworkPolicy item); public A addToItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1NetworkPolicy buildItem(Integer index); - public V1NetworkPolicy buildFirstItem(); - public V1NetworkPolicy buildLastItem(); - public V1NetworkPolicy buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items); - public Boolean hasItems(); - public V1NetworkPolicyListFluent.ItemsNested addNewItem(); - public V1NetworkPolicyListFluent.ItemsNested addNewItemLike(V1NetworkPolicy item); - - public V1NetworkPolicyListFluent.ItemsNested setNewItemLike( - Integer index, V1NetworkPolicy item); - + public V1NetworkPolicyListFluent.ItemsNested setNewItemLike(Integer index,V1NetworkPolicy item); public V1NetworkPolicyListFluent.ItemsNested editItem(Integer index); - public V1NetworkPolicyListFluent.ItemsNested editFirstItem(); - public V1NetworkPolicyListFluent.ItemsNested editLastItem(); - - public V1NetworkPolicyListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1NetworkPolicyListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1NetworkPolicyListFluent.MetadataNested withNewMetadata(); - public V1NetworkPolicyListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1NetworkPolicyListFluent.MetadataNested editMetadata(); - public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadata(); - public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1NetworkPolicyFluent> { + public interface ItemsNested extends Nested,V1NetworkPolicyFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java index 25a3995dc8..520004979f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyListFluentImpl> - extends BaseFluent implements V1NetworkPolicyListFluent { - public V1NetworkPolicyListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyListFluentImpl> extends BaseFluent implements V1NetworkPolicyListFluent{ + public V1NetworkPolicyListFluentImpl() { + } public V1NetworkPolicyListFluentImpl(V1NetworkPolicyList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1NetworkPolicyListFluentImpl(V1NetworkPolicyList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1NetworkPolicy item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1NetworkPolicy item) { + if (this.items == null) {this.items = new ArrayList();} + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1NetworkPolicy item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1NetworkPolicy item) { + if (this.items == null) {this.items = new ArrayList();} V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1NetworkPolicy buildItem(Integer index) { return this.items.get(index).build(); } - public V1NetworkPolicy buildFirstItem() { return this.items.get(0).build(); } - public V1NetworkPolicy buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1NetworkPolicy buildMatchingItem(Predicate predicate) { - for (V1NetworkPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NetworkPolicyBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1NetworkPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1NetworkPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1NetworkPolicy item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1NetworkPolicy item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1NetworkPolicy item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1NetworkPolicyListFluent.ItemsNested addNewItem() { return new V1NetworkPolicyListFluentImpl.ItemsNestedImpl(); } - public V1NetworkPolicyListFluent.ItemsNested addNewItemLike(V1NetworkPolicy item) { return new V1NetworkPolicyListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1NetworkPolicyListFluent.ItemsNested setNewItemLike( - Integer index, V1NetworkPolicy item) { + public V1NetworkPolicyListFluent.ItemsNested setNewItemLike(Integer index,V1NetworkPolicy item) { return new V1NetworkPolicyListFluentImpl.ItemsNestedImpl(index, item); } - public V1NetworkPolicyListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1NetworkPolicyListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1NetworkPolicyListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1NetworkPolicyListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1NetworkPolicyListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1NetworkPolicyListFluentImpl.MetadataNestedImpl(); } - public V1NetworkPolicyListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1NetworkPolicyListFluentImpl.MetadataNestedImpl(item); } - public V1NetworkPolicyListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NetworkPolicyListFluentImpl that = (V1NetworkPolicyListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1NetworkPolicyFluentImpl> - implements V1NetworkPolicyListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1NetworkPolicy item) { + class ItemsNestedImpl extends V1NetworkPolicyFluentImpl> implements V1NetworkPolicyListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1NetworkPolicy item) { this.index = index; this.builder = new V1NetworkPolicyBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyBuilder(this); } - V1NetworkPolicyBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicyListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1NetworkPolicyListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1NetworkPolicyListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1NetworkPolicyListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1NetworkPolicyListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java index 439ad79d79..20b546be06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyPeerBuilder - extends V1NetworkPolicyPeerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyPeerBuilder extends V1NetworkPolicyPeerFluentImpl implements VisitableBuilder{ public V1NetworkPolicyPeerBuilder() { this(false); } - public V1NetworkPolicyPeerBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyPeer(), validationEnabled); } - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyPeerBuilder( - V1NetworkPolicyPeerFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicyPeer(), validationEnabled); } - - public V1NetworkPolicyPeerBuilder( - V1NetworkPolicyPeerFluent fluent, V1NetworkPolicyPeer instance) { + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,V1NetworkPolicyPeer instance) { this(fluent, instance, false); } - - public V1NetworkPolicyPeerBuilder( - V1NetworkPolicyPeerFluent fluent, - V1NetworkPolicyPeer instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,V1NetworkPolicyPeer instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withIpBlock(instance.getIpBlock()); fluent.withNamespaceSelector(instance.getNamespaceSelector()); fluent.withPodSelector(instance.getPodSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance,Boolean validationEnabled) { + this.fluent = this; this.withIpBlock(instance.getIpBlock()); this.withNamespaceSelector(instance.getNamespaceSelector()); this.withPodSelector(instance.getPodSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyPeerFluent fluent; Boolean validationEnabled; - public V1NetworkPolicyPeer build() { V1NetworkPolicyPeer buildable = new V1NetworkPolicyPeer(); buildable.setIpBlock(fluent.getIpBlock()); @@ -78,4 +50,5 @@ public V1NetworkPolicyPeer build() { buildable.setPodSelector(fluent.getPodSelector()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java index a2487d62ae..849b9bb621 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java @@ -1,119 +1,73 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1NetworkPolicyPeerFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1NetworkPolicyPeerFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildIpBlock instead. - * * @return The buildable object. */ @Deprecated public V1IPBlock getIpBlock(); - public V1IPBlock buildIpBlock(); - public A withIpBlock(V1IPBlock ipBlock); - public Boolean hasIpBlock(); - public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlock(); - public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlockLike(V1IPBlock item); - public V1NetworkPolicyPeerFluent.IpBlockNested editIpBlock(); - public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlock(); - public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlockLike(V1IPBlock item); - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector(); - public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public Boolean hasNamespaceSelector(); - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelector(); - - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item); public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editNamespaceSelector(); - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item); + /** * This method has been deprecated, please use method buildPodSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getPodSelector(); - public V1LabelSelector buildPodSelector(); - public A withPodSelector(V1LabelSelector podSelector); - public Boolean hasPodSelector(); - public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelector(); - - public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelectorLike( - V1LabelSelector item); - + public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelectorLike(V1LabelSelector item); public V1NetworkPolicyPeerFluent.PodSelectorNested editPodSelector(); - public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelector(); - - public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelectorLike( - V1LabelSelector item); - - public interface IpBlockNested - extends Nested, V1IPBlockFluent> { + public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item); + public interface IpBlockNested extends Nested,V1IPBlockFluent>{ public N and(); - public N endIpBlock(); + } - - public interface NamespaceSelectorNested - extends Nested, - V1LabelSelectorFluent> { + public interface NamespaceSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endNamespaceSelector(); + } - - public interface PodSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface PodSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endPodSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java index d6e4f7939d..8b54ffa946 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java @@ -1,295 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyPeerFluentImpl> - extends BaseFluent implements V1NetworkPolicyPeerFluent { - public V1NetworkPolicyPeerFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyPeerFluentImpl> extends BaseFluent implements V1NetworkPolicyPeerFluent{ + public V1NetworkPolicyPeerFluentImpl() { + } public V1NetworkPolicyPeerFluentImpl(V1NetworkPolicyPeer instance) { this.withIpBlock(instance.getIpBlock()); this.withNamespaceSelector(instance.getNamespaceSelector()); this.withPodSelector(instance.getPodSelector()); - } + } private V1IPBlockBuilder ipBlock; private V1LabelSelectorBuilder namespaceSelector; private V1LabelSelectorBuilder podSelector; - + /** * This method has been deprecated, please use method buildIpBlock instead. - * * @return The buildable object. */ @Deprecated public V1IPBlock getIpBlock() { - return this.ipBlock != null ? this.ipBlock.build() : null; + return this.ipBlock!=null ?this.ipBlock.build():null; } - public V1IPBlock buildIpBlock() { - return this.ipBlock != null ? this.ipBlock.build() : null; + return this.ipBlock!=null ?this.ipBlock.build():null; } - public A withIpBlock(V1IPBlock ipBlock) { _visitables.get("ipBlock").remove(this.ipBlock); - if (ipBlock != null) { - this.ipBlock = new V1IPBlockBuilder(ipBlock); - _visitables.get("ipBlock").add(this.ipBlock); - } else { - this.ipBlock = null; - _visitables.get("ipBlock").remove(this.ipBlock); - } - return (A) this; + if (ipBlock!=null){ this.ipBlock= new V1IPBlockBuilder(ipBlock); _visitables.get("ipBlock").add(this.ipBlock);} else { this.ipBlock = null; _visitables.get("ipBlock").remove(this.ipBlock); } return (A) this; } - public Boolean hasIpBlock() { return this.ipBlock != null; } - public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlock() { return new V1NetworkPolicyPeerFluentImpl.IpBlockNestedImpl(); } - public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlockLike(V1IPBlock item) { return new V1NetworkPolicyPeerFluentImpl.IpBlockNestedImpl(item); } - public V1NetworkPolicyPeerFluent.IpBlockNested editIpBlock() { return withNewIpBlockLike(getIpBlock()); } - public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlock() { - return withNewIpBlockLike(getIpBlock() != null ? getIpBlock() : new V1IPBlockBuilder().build()); + return withNewIpBlockLike(getIpBlock() != null ? getIpBlock(): new V1IPBlockBuilder().build()); } - public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlockLike(V1IPBlock item) { - return withNewIpBlockLike(getIpBlock() != null ? getIpBlock() : item); + return withNewIpBlockLike(getIpBlock() != null ? getIpBlock(): item); } - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - _visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - _visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + if (namespaceSelector!=null){ this.namespaceSelector= new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector);} else { this.namespaceSelector = null; _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelector() { return new V1NetworkPolicyPeerFluentImpl.NamespaceSelectorNestedImpl(); } - - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item) { + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { return new V1NetworkPolicyPeerFluentImpl.NamespaceSelectorNestedImpl(item); } - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null - ? getNamespaceSelector() - : new V1LabelSelectorBuilder().build()); + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): new V1LabelSelectorBuilder().build()); } - - public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item) { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null ? getNamespaceSelector() : item); + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): item); } - + /** * This method has been deprecated, please use method buildPodSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getPodSelector() { - return this.podSelector != null ? this.podSelector.build() : null; + return this.podSelector!=null ?this.podSelector.build():null; } - public V1LabelSelector buildPodSelector() { - return this.podSelector != null ? this.podSelector.build() : null; + return this.podSelector!=null ?this.podSelector.build():null; } - public A withPodSelector(V1LabelSelector podSelector) { _visitables.get("podSelector").remove(this.podSelector); - if (podSelector != null) { - this.podSelector = new V1LabelSelectorBuilder(podSelector); - _visitables.get("podSelector").add(this.podSelector); - } else { - this.podSelector = null; - _visitables.get("podSelector").remove(this.podSelector); - } - return (A) this; + if (podSelector!=null){ this.podSelector= new V1LabelSelectorBuilder(podSelector); _visitables.get("podSelector").add(this.podSelector);} else { this.podSelector = null; _visitables.get("podSelector").remove(this.podSelector); } return (A) this; } - public Boolean hasPodSelector() { return this.podSelector != null; } - public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelector() { return new V1NetworkPolicyPeerFluentImpl.PodSelectorNestedImpl(); } - - public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelectorLike( - V1LabelSelector item) { + public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { return new V1NetworkPolicyPeerFluentImpl.PodSelectorNestedImpl(item); } - public V1NetworkPolicyPeerFluent.PodSelectorNested editPodSelector() { return withNewPodSelectorLike(getPodSelector()); } - public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelector() { - return withNewPodSelectorLike( - getPodSelector() != null ? getPodSelector() : new V1LabelSelectorBuilder().build()); + return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector(): new V1LabelSelectorBuilder().build()); } - - public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelectorLike( - V1LabelSelector item) { - return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector() : item); + public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { + return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NetworkPolicyPeerFluentImpl that = (V1NetworkPolicyPeerFluentImpl) o; - if (ipBlock != null ? !ipBlock.equals(that.ipBlock) : that.ipBlock != null) return false; - if (namespaceSelector != null - ? !namespaceSelector.equals(that.namespaceSelector) - : that.namespaceSelector != null) return false; - if (podSelector != null ? !podSelector.equals(that.podSelector) : that.podSelector != null) - return false; + if (ipBlock != null ? !ipBlock.equals(that.ipBlock) :that.ipBlock != null) return false; + if (namespaceSelector != null ? !namespaceSelector.equals(that.namespaceSelector) :that.namespaceSelector != null) return false; + if (podSelector != null ? !podSelector.equals(that.podSelector) :that.podSelector != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(ipBlock, namespaceSelector, podSelector, super.hashCode()); + return java.util.Objects.hash(ipBlock, namespaceSelector, podSelector, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ipBlock != null) { - sb.append("ipBlock:"); - sb.append(ipBlock + ","); - } - if (namespaceSelector != null) { - sb.append("namespaceSelector:"); - sb.append(namespaceSelector + ","); - } - if (podSelector != null) { - sb.append("podSelector:"); - sb.append(podSelector); - } + if (ipBlock != null) { sb.append("ipBlock:"); sb.append(ipBlock + ","); } + if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } + if (podSelector != null) { sb.append("podSelector:"); sb.append(podSelector); } sb.append("}"); return sb.toString(); } - - class IpBlockNestedImpl extends V1IPBlockFluentImpl> - implements V1NetworkPolicyPeerFluent.IpBlockNested, Nested { + class IpBlockNestedImpl extends V1IPBlockFluentImpl> implements V1NetworkPolicyPeerFluent.IpBlockNested,Nested{ IpBlockNestedImpl(V1IPBlock item) { this.builder = new V1IPBlockBuilder(this, item); } - IpBlockNestedImpl() { this.builder = new V1IPBlockBuilder(this); } - V1IPBlockBuilder builder; - public N and() { return (N) V1NetworkPolicyPeerFluentImpl.this.withIpBlock(builder.build()); } - public N endIpBlock() { return and(); } + } - - class NamespaceSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1NetworkPolicyPeerFluent.NamespaceSelectorNested, Nested { + class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1NetworkPolicyPeerFluent.NamespaceSelectorNested,Nested{ NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - NamespaceSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1NetworkPolicyPeerFluentImpl.this.withNamespaceSelector(builder.build()); } - public N endNamespaceSelector() { return and(); } + } - - class PodSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1NetworkPolicyPeerFluent.PodSelectorNested, Nested { + class PodSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1NetworkPolicyPeerFluent.PodSelectorNested,Nested{ PodSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - PodSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1NetworkPolicyPeerFluentImpl.this.withPodSelector(builder.build()); } - public N endPodSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java index 053c4f99b5..2850052648 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyPortBuilder - extends V1NetworkPolicyPortFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyPortBuilder extends V1NetworkPolicyPortFluentImpl implements VisitableBuilder{ public V1NetworkPolicyPortBuilder() { this(false); } - public V1NetworkPolicyPortBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyPort(), validationEnabled); } - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyPortBuilder( - V1NetworkPolicyPortFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicyPort(), validationEnabled); } - - public V1NetworkPolicyPortBuilder( - V1NetworkPolicyPortFluent fluent, V1NetworkPolicyPort instance) { + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,V1NetworkPolicyPort instance) { this(fluent, instance, false); } - - public V1NetworkPolicyPortBuilder( - V1NetworkPolicyPortFluent fluent, - V1NetworkPolicyPort instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,V1NetworkPolicyPort instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEndPort(instance.getEndPort()); fluent.withPort(instance.getPort()); fluent.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance,Boolean validationEnabled) { + this.fluent = this; this.withEndPort(instance.getEndPort()); this.withPort(instance.getPort()); this.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyPortFluent fluent; Boolean validationEnabled; - public V1NetworkPolicyPort build() { V1NetworkPolicyPort buildable = new V1NetworkPolicyPort(); buildable.setEndPort(fluent.getEndPort()); @@ -78,4 +50,5 @@ public V1NetworkPolicyPort build() { buildable.setProtocol(fluent.getProtocol()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java index 5530eea58b..cbd80dc35f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java @@ -1,42 +1,25 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NetworkPolicyPortFluent> - extends Fluent { + /** + * Generated + */ +public interface V1NetworkPolicyPortFluent> extends Fluent{ public Integer getEndPort(); - public A withEndPort(Integer endPort); - public Boolean hasEndPort(); - public IntOrString getPort(); - public A withPort(IntOrString port); - public Boolean hasPort(); - public A withNewPort(int value); - public A withNewPort(String value); - public String getProtocol(); - public A withProtocol(String protocol); - public Boolean hasProtocol(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java index 758a5f8f66..6a20e0ef71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java @@ -1,115 +1,84 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.custom.IntOrString; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyPortFluentImpl> - extends BaseFluent implements V1NetworkPolicyPortFluent { - public V1NetworkPolicyPortFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyPortFluentImpl> extends BaseFluent implements V1NetworkPolicyPortFluent{ + public V1NetworkPolicyPortFluentImpl() { + } public V1NetworkPolicyPortFluentImpl(V1NetworkPolicyPort instance) { this.withEndPort(instance.getEndPort()); this.withPort(instance.getPort()); this.withProtocol(instance.getProtocol()); - } + } private Integer endPort; private IntOrString port; private String protocol; - public Integer getEndPort() { return this.endPort; } - public A withEndPort(Integer endPort) { - this.endPort = endPort; - return (A) this; + this.endPort=endPort; return (A) this; } - public Boolean hasEndPort() { return this.endPort != null; } - public IntOrString getPort() { return this.port; } - public A withPort(IntOrString port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public A withNewPort(int value) { - return (A) withPort(new IntOrString(value)); + return (A)withPort(new IntOrString(value)); } - public A withNewPort(String value) { - return (A) withPort(new IntOrString(value)); + return (A)withPort(new IntOrString(value)); } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + this.protocol=protocol; return (A) this; } - public Boolean hasProtocol() { return this.protocol != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NetworkPolicyPortFluentImpl that = (V1NetworkPolicyPortFluentImpl) o; - if (endPort != null ? !endPort.equals(that.endPort) : that.endPort != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; + if (endPort != null ? !endPort.equals(that.endPort) :that.endPort != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; + if (protocol != null ? !protocol.equals(that.protocol) :that.protocol != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(endPort, port, protocol, super.hashCode()); + return java.util.Objects.hash(endPort, port, protocol, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endPort != null) { - sb.append("endPort:"); - sb.append(endPort + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port + ","); - } - if (protocol != null) { - sb.append("protocol:"); - sb.append(protocol); - } + if (endPort != null) { sb.append("endPort:"); sb.append(endPort + ","); } + if (port != null) { sb.append("port:"); sb.append(port + ","); } + if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java index 14ccaa7c2a..93ed8c7732 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicySpecBuilder - extends V1NetworkPolicySpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicySpecBuilder extends V1NetworkPolicySpecFluentImpl implements VisitableBuilder{ public V1NetworkPolicySpecBuilder() { this(false); } - public V1NetworkPolicySpecBuilder(Boolean validationEnabled) { this(new V1NetworkPolicySpec(), validationEnabled); } - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent) { this(fluent, false); } - - public V1NetworkPolicySpecBuilder( - V1NetworkPolicySpecFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicySpec(), validationEnabled); } - - public V1NetworkPolicySpecBuilder( - V1NetworkPolicySpecFluent fluent, V1NetworkPolicySpec instance) { + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,V1NetworkPolicySpec instance) { this(fluent, instance, false); } - - public V1NetworkPolicySpecBuilder( - V1NetworkPolicySpecFluent fluent, - V1NetworkPolicySpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,V1NetworkPolicySpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEgress(instance.getEgress()); fluent.withIngress(instance.getIngress()); @@ -52,15 +28,13 @@ public V1NetworkPolicySpecBuilder( fluent.withPolicyTypes(instance.getPolicyTypes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance,Boolean validationEnabled) { + this.fluent = this; this.withEgress(instance.getEgress()); this.withIngress(instance.getIngress()); @@ -69,12 +43,10 @@ public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance, Boolean validati this.withPolicyTypes(instance.getPolicyTypes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicySpecFluent fluent; Boolean validationEnabled; - public V1NetworkPolicySpec build() { V1NetworkPolicySpec buildable = new V1NetworkPolicySpec(); buildable.setEgress(fluent.getEgress()); @@ -83,4 +55,5 @@ public V1NetworkPolicySpec build() { buildable.setPolicyTypes(fluent.getPolicyTypes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java index 85ed813cd2..9dc5fa2cfb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java @@ -1,218 +1,126 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NetworkPolicySpecFluent> - extends Fluent { - public A addToEgress(Integer index, V1NetworkPolicyEgressRule item); - - public A setToEgress(Integer index, V1NetworkPolicyEgressRule item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NetworkPolicySpecFluent> extends Fluent{ + public A addToEgress(Integer index,V1NetworkPolicyEgressRule item); + public A setToEgress(Integer index,V1NetworkPolicyEgressRule item); public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items); - public A addAllToEgress(Collection items); - public A removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items); - public A removeAllFromEgress(Collection items); - public A removeMatchingFromEgress(Predicate predicate); - + /** * This method has been deprecated, please use method buildEgress instead. - * * @return The buildable object. */ @Deprecated public List getEgress(); - public List buildEgress(); - public V1NetworkPolicyEgressRule buildEgress(Integer index); - public V1NetworkPolicyEgressRule buildFirstEgress(); - public V1NetworkPolicyEgressRule buildLastEgress(); - - public V1NetworkPolicyEgressRule buildMatchingEgress( - Predicate predicate); - + public V1NetworkPolicyEgressRule buildMatchingEgress(Predicate predicate); public Boolean hasMatchingEgress(Predicate predicate); - public A withEgress(List egress); - public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress); - public Boolean hasEgress(); - public V1NetworkPolicySpecFluent.EgressNested addNewEgress(); - public V1NetworkPolicySpecFluent.EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item); - - public V1NetworkPolicySpecFluent.EgressNested setNewEgressLike( - Integer index, V1NetworkPolicyEgressRule item); - + public V1NetworkPolicySpecFluent.EgressNested setNewEgressLike(Integer index,V1NetworkPolicyEgressRule item); public V1NetworkPolicySpecFluent.EgressNested editEgress(Integer index); - public V1NetworkPolicySpecFluent.EgressNested editFirstEgress(); - public V1NetworkPolicySpecFluent.EgressNested editLastEgress(); - - public V1NetworkPolicySpecFluent.EgressNested editMatchingEgress( - Predicate predicate); - - public A addToIngress(Integer index, V1NetworkPolicyIngressRule item); - - public A setToIngress(Integer index, V1NetworkPolicyIngressRule item); - + public V1NetworkPolicySpecFluent.EgressNested editMatchingEgress(Predicate predicate); + public A addToIngress(Integer index,V1NetworkPolicyIngressRule item); + public A setToIngress(Integer index,V1NetworkPolicyIngressRule item); public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items); - public A addAllToIngress(Collection items); - - public A removeFromIngress( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items); - + public A removeFromIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items); public A removeAllFromIngress(Collection items); - public A removeMatchingFromIngress(Predicate predicate); - + /** * This method has been deprecated, please use method buildIngress instead. - * * @return The buildable object. */ @Deprecated public List getIngress(); - public List buildIngress(); - public V1NetworkPolicyIngressRule buildIngress(Integer index); - public V1NetworkPolicyIngressRule buildFirstIngress(); - public V1NetworkPolicyIngressRule buildLastIngress(); - - public V1NetworkPolicyIngressRule buildMatchingIngress( - Predicate predicate); - + public V1NetworkPolicyIngressRule buildMatchingIngress(Predicate predicate); public Boolean hasMatchingIngress(Predicate predicate); - public A withIngress(List ingress); - public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress); - public Boolean hasIngress(); - public V1NetworkPolicySpecFluent.IngressNested addNewIngress(); - - public V1NetworkPolicySpecFluent.IngressNested addNewIngressLike( - V1NetworkPolicyIngressRule item); - - public V1NetworkPolicySpecFluent.IngressNested setNewIngressLike( - Integer index, V1NetworkPolicyIngressRule item); - + public V1NetworkPolicySpecFluent.IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item); + public V1NetworkPolicySpecFluent.IngressNested setNewIngressLike(Integer index,V1NetworkPolicyIngressRule item); public V1NetworkPolicySpecFluent.IngressNested editIngress(Integer index); - public V1NetworkPolicySpecFluent.IngressNested editFirstIngress(); - public V1NetworkPolicySpecFluent.IngressNested editLastIngress(); - - public V1NetworkPolicySpecFluent.IngressNested editMatchingIngress( - Predicate predicate); - + public V1NetworkPolicySpecFluent.IngressNested editMatchingIngress(Predicate predicate); + /** * This method has been deprecated, please use method buildPodSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getPodSelector(); - public V1LabelSelector buildPodSelector(); - public A withPodSelector(V1LabelSelector podSelector); - public Boolean hasPodSelector(); - public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelector(); - - public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelectorLike( - V1LabelSelector item); - + public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelectorLike(V1LabelSelector item); public V1NetworkPolicySpecFluent.PodSelectorNested editPodSelector(); - public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelector(); - - public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelectorLike( - V1LabelSelector item); - - public A addToPolicyTypes(Integer index, String item); - - public A setToPolicyTypes(Integer index, String item); - + public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item); + public A addToPolicyTypes(Integer index,String item); + public A setToPolicyTypes(Integer index,String item); public A addToPolicyTypes(java.lang.String... items); - public A addAllToPolicyTypes(Collection items); - public A removeFromPolicyTypes(java.lang.String... items); - public A removeAllFromPolicyTypes(Collection items); - public List getPolicyTypes(); - public String getPolicyType(Integer index); - public String getFirstPolicyType(); - public String getLastPolicyType(); - public String getMatchingPolicyType(Predicate predicate); - public Boolean hasMatchingPolicyType(Predicate predicate); - public A withPolicyTypes(List policyTypes); - public A withPolicyTypes(java.lang.String... policyTypes); - public Boolean hasPolicyTypes(); - - public interface EgressNested - extends Nested, - V1NetworkPolicyEgressRuleFluent> { + public interface EgressNested extends Nested,V1NetworkPolicyEgressRuleFluent>{ public N and(); - public N endEgress(); + } - - public interface IngressNested - extends Nested, - V1NetworkPolicyIngressRuleFluent> { + public interface IngressNested extends Nested,V1NetworkPolicyIngressRuleFluent>{ public N and(); - public N endIngress(); + } - - public interface PodSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface PodSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endPodSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java index 78a0d2e927..bc61289262 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicySpecFluentImpl> - extends BaseFluent implements V1NetworkPolicySpecFluent { - public V1NetworkPolicySpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicySpecFluentImpl> extends BaseFluent implements V1NetworkPolicySpecFluent{ + public V1NetworkPolicySpecFluentImpl() { + } public V1NetworkPolicySpecFluentImpl(V1NetworkPolicySpec instance) { this.withEgress(instance.getEgress()); @@ -34,88 +30,37 @@ public V1NetworkPolicySpecFluentImpl(V1NetworkPolicySpec instance) { this.withPodSelector(instance.getPodSelector()); this.withPolicyTypes(instance.getPolicyTypes()); - } + } private ArrayList egress; private ArrayList ingress; private V1LabelSelectorBuilder podSelector; private List policyTypes; - - public A addToEgress(Integer index, V1NetworkPolicyEgressRule item) { - if (this.egress == null) { - this.egress = new ArrayList(); - } - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").add(index >= 0 ? index : _visitables.get("egress").size(), builder); - this.egress.add(index >= 0 ? index : egress.size(), builder); - return (A) this; + public A addToEgress(Integer index,V1NetworkPolicyEgressRule item) { + if (this.egress == null) {this.egress = new ArrayList();} + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(index >= 0 ? index : _visitables.get("egress").size(), builder);this.egress.add(index >= 0 ? index : egress.size(), builder); return (A)this; } - - public A setToEgress(Integer index, V1NetworkPolicyEgressRule item) { - if (this.egress == null) { - this.egress = new ArrayList(); - } + public A setToEgress(Integer index,V1NetworkPolicyEgressRule item) { + if (this.egress == null) {this.egress = new ArrayList();} V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= _visitables.get("egress").size()) { - _visitables.get("egress").add(builder); - } else { - _visitables.get("egress").set(index, builder); - } - if (index < 0 || index >= egress.size()) { - egress.add(builder); - } else { - egress.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("egress").size()) { _visitables.get("egress").add(builder); } else { _visitables.get("egress").set(index, builder);} + if (index < 0 || index >= egress.size()) { egress.add(builder); } else { egress.set(index, builder);} + return (A)this; } - public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - if (this.egress == null) { - this.egress = new ArrayList(); - } - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").add(builder); - this.egress.add(builder); - } - return (A) this; + if (this.egress == null) {this.egress = new ArrayList();} + for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(builder);this.egress.add(builder);} return (A)this; } - public A addAllToEgress(Collection items) { - if (this.egress == null) { - this.egress = new ArrayList(); - } - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").add(builder); - this.egress.add(builder); - } - return (A) this; + if (this.egress == null) {this.egress = new ArrayList();} + for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(builder);this.egress.add(builder);} return (A)this; } - - public A removeFromEgress( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").remove(builder); - if (this.egress != null) { - this.egress.remove(builder); - } - } - return (A) this; + public A removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { + for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").remove(builder);if (this.egress != null) {this.egress.remove(builder);}} return (A)this; } - public A removeAllFromEgress(Collection items) { - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").remove(builder); - if (this.egress != null) { - this.egress.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").remove(builder);if (this.egress != null) {this.egress.remove(builder);}} return (A)this; } - public A removeMatchingFromEgress(Predicate predicate) { if (egress == null) return (A) this; final Iterator each = egress.iterator(); @@ -127,205 +72,101 @@ public A removeMatchingFromEgress(Predicate pr each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEgress instead. - * * @return The buildable object. */ @Deprecated public List getEgress() { return egress != null ? build(egress) : null; } - public List buildEgress() { return egress != null ? build(egress) : null; } - public V1NetworkPolicyEgressRule buildEgress(Integer index) { return this.egress.get(index).build(); } - public V1NetworkPolicyEgressRule buildFirstEgress() { return this.egress.get(0).build(); } - public V1NetworkPolicyEgressRule buildLastEgress() { return this.egress.get(egress.size() - 1).build(); } - - public V1NetworkPolicyEgressRule buildMatchingEgress( - Predicate predicate) { - for (V1NetworkPolicyEgressRuleBuilder item : egress) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NetworkPolicyEgressRule buildMatchingEgress(Predicate predicate) { + for (V1NetworkPolicyEgressRuleBuilder item: egress) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEgress(Predicate predicate) { - for (V1NetworkPolicyEgressRuleBuilder item : egress) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyEgressRuleBuilder item: egress) { if(predicate.test(item)){ return true;} } return false; } - public A withEgress(List egress) { - if (this.egress != null) { - _visitables.get("egress").removeAll(this.egress); - } - if (egress != null) { - this.egress = new ArrayList(); - for (V1NetworkPolicyEgressRule item : egress) { - this.addToEgress(item); - } - } else { - this.egress = null; - } - return (A) this; + if (this.egress != null) { _visitables.get("egress").removeAll(this.egress);} + if (egress != null) {this.egress = new ArrayList(); for (V1NetworkPolicyEgressRule item : egress){this.addToEgress(item);}} else { this.egress = null;} return (A) this; } - public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress) { - if (this.egress != null) { - this.egress.clear(); - } - if (egress != null) { - for (V1NetworkPolicyEgressRule item : egress) { - this.addToEgress(item); - } - } - return (A) this; + if (this.egress != null) {this.egress.clear();} + if (egress != null) {for (V1NetworkPolicyEgressRule item :egress){ this.addToEgress(item);}} return (A) this; } - public Boolean hasEgress() { return egress != null && !egress.isEmpty(); } - public V1NetworkPolicySpecFluent.EgressNested addNewEgress() { return new V1NetworkPolicySpecFluentImpl.EgressNestedImpl(); } - - public V1NetworkPolicySpecFluent.EgressNested addNewEgressLike( - V1NetworkPolicyEgressRule item) { + public V1NetworkPolicySpecFluent.EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item) { return new V1NetworkPolicySpecFluentImpl.EgressNestedImpl(-1, item); } - - public V1NetworkPolicySpecFluent.EgressNested setNewEgressLike( - Integer index, V1NetworkPolicyEgressRule item) { + public V1NetworkPolicySpecFluent.EgressNested setNewEgressLike(Integer index,V1NetworkPolicyEgressRule item) { return new V1NetworkPolicySpecFluentImpl.EgressNestedImpl(index, item); } - public V1NetworkPolicySpecFluent.EgressNested editEgress(Integer index) { - if (egress.size() <= index) - throw new RuntimeException("Can't edit egress. Index exceeds size."); + if (egress.size() <= index) throw new RuntimeException("Can't edit egress. Index exceeds size."); return setNewEgressLike(index, buildEgress(index)); } - public V1NetworkPolicySpecFluent.EgressNested editFirstEgress() { - if (egress.size() == 0) - throw new RuntimeException("Can't edit first egress. The list is empty."); + if (egress.size() == 0) throw new RuntimeException("Can't edit first egress. The list is empty."); return setNewEgressLike(0, buildEgress(0)); } - public V1NetworkPolicySpecFluent.EgressNested editLastEgress() { int index = egress.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last egress. The list is empty."); return setNewEgressLike(index, buildEgress(index)); } - - public V1NetworkPolicySpecFluent.EgressNested editMatchingEgress( - Predicate predicate) { + public V1NetworkPolicySpecFluent.EgressNested editMatchingEgress(Predicate predicate) { int index = -1; - for (int i = 0; i < egress.size(); i++) { - if (predicate.test(egress.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(index >= 0 ? index : _visitables.get("ingress").size(), builder); - this.ingress.add(index >= 0 ? index : ingress.size(), builder); - return (A) this; + public A addToIngress(Integer index,V1NetworkPolicyIngressRule item) { + if (this.ingress == null) {this.ingress = new ArrayList();} + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(index >= 0 ? index : _visitables.get("ingress").size(), builder);this.ingress.add(index >= 0 ? index : ingress.size(), builder); return (A)this; } - - public A setToIngress(Integer index, V1NetworkPolicyIngressRule item) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } + public A setToIngress(Integer index,V1NetworkPolicyIngressRule item) { + if (this.ingress == null) {this.ingress = new ArrayList();} V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= _visitables.get("ingress").size()) { - _visitables.get("ingress").add(builder); - } else { - _visitables.get("ingress").set(index, builder); - } - if (index < 0 || index >= ingress.size()) { - ingress.add(builder); - } else { - ingress.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ingress").size()) { _visitables.get("ingress").add(builder); } else { _visitables.get("ingress").set(index, builder);} + if (index < 0 || index >= ingress.size()) { ingress.add(builder); } else { ingress.set(index, builder);} + return (A)this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; + if (this.ingress == null) {this.ingress = new ArrayList();} + for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; } - public A addAllToIngress(Collection items) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; + if (this.ingress == null) {this.ingress = new ArrayList();} + for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; } - - public A removeFromIngress( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").remove(builder); - if (this.ingress != null) { - this.ingress.remove(builder); - } - } - return (A) this; + public A removeFromIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { + for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").remove(builder);if (this.ingress != null) {this.ingress.remove(builder);}} return (A)this; } - public A removeAllFromIngress(Collection items) { - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").remove(builder); - if (this.ingress != null) { - this.ingress.remove(builder); - } - } - return (A) this; + for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").remove(builder);if (this.ingress != null) {this.ingress.remove(builder);}} return (A)this; } - public A removeMatchingFromIngress(Predicate predicate) { if (ingress == null) return (A) this; final Iterator each = ingress.iterator(); @@ -337,408 +178,237 @@ public A removeMatchingFromIngress(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildIngress instead. - * * @return The buildable object. */ @Deprecated public List getIngress() { return ingress != null ? build(ingress) : null; } - public List buildIngress() { return ingress != null ? build(ingress) : null; } - public V1NetworkPolicyIngressRule buildIngress(Integer index) { return this.ingress.get(index).build(); } - public V1NetworkPolicyIngressRule buildFirstIngress() { return this.ingress.get(0).build(); } - public V1NetworkPolicyIngressRule buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } - - public V1NetworkPolicyIngressRule buildMatchingIngress( - Predicate predicate) { - for (V1NetworkPolicyIngressRuleBuilder item : ingress) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NetworkPolicyIngressRule buildMatchingIngress(Predicate predicate) { + for (V1NetworkPolicyIngressRuleBuilder item: ingress) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingIngress(Predicate predicate) { - for (V1NetworkPolicyIngressRuleBuilder item : ingress) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NetworkPolicyIngressRuleBuilder item: ingress) { if(predicate.test(item)){ return true;} } return false; } - public A withIngress(List ingress) { - if (this.ingress != null) { - _visitables.get("ingress").removeAll(this.ingress); - } - if (ingress != null) { - this.ingress = new ArrayList(); - for (V1NetworkPolicyIngressRule item : ingress) { - this.addToIngress(item); - } - } else { - this.ingress = null; - } - return (A) this; + if (this.ingress != null) { _visitables.get("ingress").removeAll(this.ingress);} + if (ingress != null) {this.ingress = new ArrayList(); for (V1NetworkPolicyIngressRule item : ingress){this.addToIngress(item);}} else { this.ingress = null;} return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress) { - if (this.ingress != null) { - this.ingress.clear(); - } - if (ingress != null) { - for (V1NetworkPolicyIngressRule item : ingress) { - this.addToIngress(item); - } - } - return (A) this; + if (this.ingress != null) {this.ingress.clear();} + if (ingress != null) {for (V1NetworkPolicyIngressRule item :ingress){ this.addToIngress(item);}} return (A) this; } - public Boolean hasIngress() { return ingress != null && !ingress.isEmpty(); } - public V1NetworkPolicySpecFluent.IngressNested addNewIngress() { return new V1NetworkPolicySpecFluentImpl.IngressNestedImpl(); } - - public V1NetworkPolicySpecFluent.IngressNested addNewIngressLike( - V1NetworkPolicyIngressRule item) { + public V1NetworkPolicySpecFluent.IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item) { return new V1NetworkPolicySpecFluentImpl.IngressNestedImpl(-1, item); } - - public V1NetworkPolicySpecFluent.IngressNested setNewIngressLike( - Integer index, V1NetworkPolicyIngressRule item) { + public V1NetworkPolicySpecFluent.IngressNested setNewIngressLike(Integer index,V1NetworkPolicyIngressRule item) { return new V1NetworkPolicySpecFluentImpl.IngressNestedImpl(index, item); } - public V1NetworkPolicySpecFluent.IngressNested editIngress(Integer index) { - if (ingress.size() <= index) - throw new RuntimeException("Can't edit ingress. Index exceeds size."); + if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); return setNewIngressLike(index, buildIngress(index)); } - public V1NetworkPolicySpecFluent.IngressNested editFirstIngress() { - if (ingress.size() == 0) - throw new RuntimeException("Can't edit first ingress. The list is empty."); + if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); return setNewIngressLike(0, buildIngress(0)); } - public V1NetworkPolicySpecFluent.IngressNested editLastIngress() { int index = ingress.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); return setNewIngressLike(index, buildIngress(index)); } - - public V1NetworkPolicySpecFluent.IngressNested editMatchingIngress( - Predicate predicate) { + public V1NetworkPolicySpecFluent.IngressNested editMatchingIngress(Predicate predicate) { int index = -1; - for (int i = 0; i < ingress.size(); i++) { - if (predicate.test(ingress.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewPodSelector() { return new V1NetworkPolicySpecFluentImpl.PodSelectorNestedImpl(); } - - public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelectorLike( - V1LabelSelector item) { + public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { return new V1NetworkPolicySpecFluentImpl.PodSelectorNestedImpl(item); } - public V1NetworkPolicySpecFluent.PodSelectorNested editPodSelector() { return withNewPodSelectorLike(getPodSelector()); } - public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelector() { - return withNewPodSelectorLike( - getPodSelector() != null ? getPodSelector() : new V1LabelSelectorBuilder().build()); + return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector(): new V1LabelSelectorBuilder().build()); } - - public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelectorLike( - V1LabelSelector item) { - return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector() : item); + public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { + return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector(): item); } - - public A addToPolicyTypes(Integer index, String item) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); - } + public A addToPolicyTypes(Integer index,String item) { + if (this.policyTypes == null) {this.policyTypes = new ArrayList();} this.policyTypes.add(index, item); - return (A) this; + return (A)this; } - - public A setToPolicyTypes(Integer index, String item) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); - } - this.policyTypes.set(index, item); - return (A) this; + public A setToPolicyTypes(Integer index,String item) { + if (this.policyTypes == null) {this.policyTypes = new ArrayList();} + this.policyTypes.set(index, item); return (A)this; } - public A addToPolicyTypes(java.lang.String... items) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); - } - for (String item : items) { - this.policyTypes.add(item); - } - return (A) this; + if (this.policyTypes == null) {this.policyTypes = new ArrayList();} + for (String item : items) {this.policyTypes.add(item);} return (A)this; } - public A addAllToPolicyTypes(Collection items) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); - } - for (String item : items) { - this.policyTypes.add(item); - } - return (A) this; + if (this.policyTypes == null) {this.policyTypes = new ArrayList();} + for (String item : items) {this.policyTypes.add(item);} return (A)this; } - public A removeFromPolicyTypes(java.lang.String... items) { - for (String item : items) { - if (this.policyTypes != null) { - this.policyTypes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.policyTypes!= null){ this.policyTypes.remove(item);}} return (A)this; } - public A removeAllFromPolicyTypes(Collection items) { - for (String item : items) { - if (this.policyTypes != null) { - this.policyTypes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.policyTypes!= null){ this.policyTypes.remove(item);}} return (A)this; } - public List getPolicyTypes() { return this.policyTypes; } - public String getPolicyType(Integer index) { return this.policyTypes.get(index); } - public String getFirstPolicyType() { return this.policyTypes.get(0); } - public String getLastPolicyType() { return this.policyTypes.get(policyTypes.size() - 1); } - public String getMatchingPolicyType(Predicate predicate) { - for (String item : policyTypes) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: policyTypes) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingPolicyType(Predicate predicate) { - for (String item : policyTypes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: policyTypes) { if(predicate.test(item)){ return true;} } return false; } - public A withPolicyTypes(List policyTypes) { - if (policyTypes != null) { - this.policyTypes = new ArrayList(); - for (String item : policyTypes) { - this.addToPolicyTypes(item); - } - } else { - this.policyTypes = null; - } - return (A) this; + if (policyTypes != null) {this.policyTypes = new ArrayList(); for (String item : policyTypes){this.addToPolicyTypes(item);}} else { this.policyTypes = null;} return (A) this; } - public A withPolicyTypes(java.lang.String... policyTypes) { - if (this.policyTypes != null) { - this.policyTypes.clear(); - } - if (policyTypes != null) { - for (String item : policyTypes) { - this.addToPolicyTypes(item); - } - } - return (A) this; + if (this.policyTypes != null) {this.policyTypes.clear();} + if (policyTypes != null) {for (String item :policyTypes){ this.addToPolicyTypes(item);}} return (A) this; } - public Boolean hasPolicyTypes() { return policyTypes != null && !policyTypes.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NetworkPolicySpecFluentImpl that = (V1NetworkPolicySpecFluentImpl) o; - if (egress != null ? !egress.equals(that.egress) : that.egress != null) return false; - if (ingress != null ? !ingress.equals(that.ingress) : that.ingress != null) return false; - if (podSelector != null ? !podSelector.equals(that.podSelector) : that.podSelector != null) - return false; - if (policyTypes != null ? !policyTypes.equals(that.policyTypes) : that.policyTypes != null) - return false; + if (egress != null ? !egress.equals(that.egress) :that.egress != null) return false; + if (ingress != null ? !ingress.equals(that.ingress) :that.ingress != null) return false; + if (podSelector != null ? !podSelector.equals(that.podSelector) :that.podSelector != null) return false; + if (policyTypes != null ? !policyTypes.equals(that.policyTypes) :that.policyTypes != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(egress, ingress, podSelector, policyTypes, super.hashCode()); + return java.util.Objects.hash(egress, ingress, podSelector, policyTypes, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (egress != null && !egress.isEmpty()) { - sb.append("egress:"); - sb.append(egress + ","); - } - if (ingress != null && !ingress.isEmpty()) { - sb.append("ingress:"); - sb.append(ingress + ","); - } - if (podSelector != null) { - sb.append("podSelector:"); - sb.append(podSelector + ","); - } - if (policyTypes != null && !policyTypes.isEmpty()) { - sb.append("policyTypes:"); - sb.append(policyTypes); - } + if (egress != null && !egress.isEmpty()) { sb.append("egress:"); sb.append(egress + ","); } + if (ingress != null && !ingress.isEmpty()) { sb.append("ingress:"); sb.append(ingress + ","); } + if (podSelector != null) { sb.append("podSelector:"); sb.append(podSelector + ","); } + if (policyTypes != null && !policyTypes.isEmpty()) { sb.append("policyTypes:"); sb.append(policyTypes); } sb.append("}"); return sb.toString(); } - - class EgressNestedImpl - extends V1NetworkPolicyEgressRuleFluentImpl> - implements V1NetworkPolicySpecFluent.EgressNested, Nested { - EgressNestedImpl(Integer index, V1NetworkPolicyEgressRule item) { + class EgressNestedImpl extends V1NetworkPolicyEgressRuleFluentImpl> implements V1NetworkPolicySpecFluent.EgressNested,Nested{ + EgressNestedImpl(Integer index,V1NetworkPolicyEgressRule item) { this.index = index; this.builder = new V1NetworkPolicyEgressRuleBuilder(this, item); } - EgressNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyEgressRuleBuilder(this); } - V1NetworkPolicyEgressRuleBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicySpecFluentImpl.this.setToEgress(index, builder.build()); + return (N) V1NetworkPolicySpecFluentImpl.this.setToEgress(index,builder.build()); } - public N endEgress() { return and(); } + } - - class IngressNestedImpl - extends V1NetworkPolicyIngressRuleFluentImpl> - implements V1NetworkPolicySpecFluent.IngressNested, Nested { - IngressNestedImpl(Integer index, V1NetworkPolicyIngressRule item) { + class IngressNestedImpl extends V1NetworkPolicyIngressRuleFluentImpl> implements V1NetworkPolicySpecFluent.IngressNested,Nested{ + IngressNestedImpl(Integer index,V1NetworkPolicyIngressRule item) { this.index = index; this.builder = new V1NetworkPolicyIngressRuleBuilder(this, item); } - IngressNestedImpl() { this.index = -1; this.builder = new V1NetworkPolicyIngressRuleBuilder(this); } - V1NetworkPolicyIngressRuleBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicySpecFluentImpl.this.setToIngress(index, builder.build()); + return (N) V1NetworkPolicySpecFluentImpl.this.setToIngress(index,builder.build()); } - public N endIngress() { return and(); } + } - - class PodSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1NetworkPolicySpecFluent.PodSelectorNested, Nested { + class PodSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1NetworkPolicySpecFluent.PodSelectorNested,Nested{ PodSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - PodSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1NetworkPolicySpecFluentImpl.this.withPodSelector(builder.build()); } - public N endPodSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java index 64c8a3168e..f29ab33a89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1NetworkPolicyStatusBuilder - extends V1NetworkPolicyStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NetworkPolicyStatusBuilder extends V1NetworkPolicyStatusFluentImpl implements VisitableBuilder{ public V1NetworkPolicyStatusBuilder() { this(false); } - public V1NetworkPolicyStatusBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyStatus(), validationEnabled); } - public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatusFluent fluent) { this(fluent, false); } - - public V1NetworkPolicyStatusBuilder( - V1NetworkPolicyStatusFluent fluent, Boolean validationEnabled) { + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1NetworkPolicyStatus(), validationEnabled); } - - public V1NetworkPolicyStatusBuilder( - V1NetworkPolicyStatusFluent fluent, V1NetworkPolicyStatus instance) { + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatusFluent fluent,V1NetworkPolicyStatus instance) { this(fluent, instance, false); } - - public V1NetworkPolicyStatusBuilder( - V1NetworkPolicyStatusFluent fluent, - V1NetworkPolicyStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatusFluent fluent,V1NetworkPolicyStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatus instance) { - this(instance, false); + this(instance,false); } - - public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NetworkPolicyStatusFluent fluent; Boolean validationEnabled; - public V1NetworkPolicyStatus build() { V1NetworkPolicyStatus buildable = new V1NetworkPolicyStatus(); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java index 3a162ea82b..205b51d3c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java @@ -1,86 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NetworkPolicyStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1Condition item); - - public A setToConditions(Integer index, V1Condition item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NetworkPolicyStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1Condition item); + public A setToConditions(Integer index,V1Condition item); public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1Condition buildCondition(Integer index); - public V1Condition buildFirstCondition(); - public V1Condition buildLastCondition(); - public V1Condition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - public Boolean hasConditions(); - public V1NetworkPolicyStatusFluent.ConditionsNested addNewCondition(); - public V1NetworkPolicyStatusFluent.ConditionsNested addNewConditionLike(V1Condition item); - - public V1NetworkPolicyStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1Condition item); - + public V1NetworkPolicyStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1Condition item); public V1NetworkPolicyStatusFluent.ConditionsNested editCondition(Integer index); - public V1NetworkPolicyStatusFluent.ConditionsNested editFirstCondition(); - public V1NetworkPolicyStatusFluent.ConditionsNested editLastCondition(); - - public V1NetworkPolicyStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, V1ConditionFluent> { + public V1NetworkPolicyStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1ConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java index a3c2a7690d..6c6bb84e00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java @@ -1,113 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NetworkPolicyStatusFluentImpl> - extends BaseFluent implements V1NetworkPolicyStatusFluent { - public V1NetworkPolicyStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NetworkPolicyStatusFluentImpl> extends BaseFluent implements V1NetworkPolicyStatusFluent{ + public V1NetworkPolicyStatusFluentImpl() { + } public V1NetworkPolicyStatusFluentImpl(V1NetworkPolicyStatus instance) { this.withConditions(instance.getConditions()); - } + } private ArrayList conditions; - - public A addToConditions(Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(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 addToConditions(Integer index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(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(Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(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; + 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.V1Condition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(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 ArrayList(); - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(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(); @@ -119,174 +63,111 @@ public A removeMatchingFromConditions(Predicate predicate) { each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1Condition buildMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1Condition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1Condition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1NetworkPolicyStatusFluent.ConditionsNested addNewCondition() { return new V1NetworkPolicyStatusFluentImpl.ConditionsNestedImpl(); } - public V1NetworkPolicyStatusFluent.ConditionsNested addNewConditionLike(V1Condition item) { return new V1NetworkPolicyStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1NetworkPolicyStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1Condition item) { + public V1NetworkPolicyStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1Condition item) { return new V1NetworkPolicyStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1NetworkPolicyStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1NetworkPolicyStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1NetworkPolicyStatusFluent.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 V1NetworkPolicyStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1NetworkPolicyStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ConditionFluentImpl> - implements V1NetworkPolicyStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1Condition item) { + class ConditionsNestedImpl extends V1ConditionFluentImpl> implements V1NetworkPolicyStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1ConditionBuilder(this); } - V1ConditionBuilder builder; Integer index; - public N and() { - return (N) V1NetworkPolicyStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1NetworkPolicyStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java index 38a7700dfc..04ac0e6da7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NodeAddressBuilder extends V1NodeAddressFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeAddressBuilder extends V1NodeAddressFluentImpl implements VisitableBuilder{ public V1NodeAddressBuilder() { this(false); } - public V1NodeAddressBuilder(Boolean validationEnabled) { this(new V1NodeAddress(), validationEnabled); } - public V1NodeAddressBuilder(V1NodeAddressFluent fluent) { this(fluent, false); } - - public V1NodeAddressBuilder(V1NodeAddressFluent fluent, Boolean validationEnabled) { + public V1NodeAddressBuilder(V1NodeAddressFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeAddress(), validationEnabled); } - - public V1NodeAddressBuilder(V1NodeAddressFluent fluent, V1NodeAddress instance) { + public V1NodeAddressBuilder(V1NodeAddressFluent fluent,V1NodeAddress instance) { this(fluent, instance, false); } - - public V1NodeAddressBuilder( - V1NodeAddressFluent fluent, V1NodeAddress instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeAddressBuilder(V1NodeAddressFluent fluent,V1NodeAddress instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAddress(instance.getAddress()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeAddressBuilder(V1NodeAddress instance) { - this(instance, false); + this(instance,false); } - - public V1NodeAddressBuilder(V1NodeAddress instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeAddressBuilder(V1NodeAddress instance,Boolean validationEnabled) { + this.fluent = this; this.withAddress(instance.getAddress()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeAddressFluent fluent; Boolean validationEnabled; - public V1NodeAddress build() { V1NodeAddress buildable = new V1NodeAddress(); buildable.setAddress(fluent.getAddress()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java index 9185382148..1e817e0f54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NodeAddressFluent> extends Fluent { + /** + * Generated + */ +public interface V1NodeAddressFluent> extends Fluent{ public String getAddress(); - public A withAddress(String address); - public Boolean hasAddress(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java index eb7c703dde..469e5658df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeAddressFluentImpl> extends BaseFluent - implements V1NodeAddressFluent { - public V1NodeAddressFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeAddressFluentImpl> extends BaseFluent implements V1NodeAddressFluent{ + public V1NodeAddressFluentImpl() { + } public V1NodeAddressFluentImpl(V1NodeAddress instance) { this.withAddress(instance.getAddress()); this.withType(instance.getType()); - } + } private String address; private String type; - public String getAddress() { return this.address; } - public A withAddress(String address) { - this.address = address; - return (A) this; + this.address=address; return (A) this; } - public Boolean hasAddress() { return this.address != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeAddressFluentImpl that = (V1NodeAddressFluentImpl) o; - if (address != null ? !address.equals(that.address) : that.address != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (address != null ? !address.equals(that.address) :that.address != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(address, type, super.hashCode()); + return java.util.Objects.hash(address, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (address != null) { - sb.append("address:"); - sb.append(address + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (address != null) { sb.append("address:"); sb.append(address + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java index 70fe210388..78500fc252 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NodeAffinityBuilder extends V1NodeAffinityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeAffinityBuilder extends V1NodeAffinityFluentImpl implements VisitableBuilder{ public V1NodeAffinityBuilder() { this(false); } - public V1NodeAffinityBuilder(Boolean validationEnabled) { this(new V1NodeAffinity(), validationEnabled); } - public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent) { this(fluent, false); } - - public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent, Boolean validationEnabled) { + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeAffinity(), validationEnabled); } - - public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent, V1NodeAffinity instance) { + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,V1NodeAffinity instance) { this(fluent, instance, false); } + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,V1NodeAffinity instance,Boolean validationEnabled) { + this.fluent = fluent; + fluent.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - public V1NodeAffinityBuilder( - V1NodeAffinityFluent fluent, V1NodeAffinity instance, Boolean validationEnabled) { - this.fluent = fluent; - fluent.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + fluent.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - fluent.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeAffinityBuilder(V1NodeAffinity instance) { - this(instance, false); + this(instance,false); } + public V1NodeAffinityBuilder(V1NodeAffinity instance,Boolean validationEnabled) { + this.fluent = this; + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - public V1NodeAffinityBuilder(V1NodeAffinity instance, Boolean validationEnabled) { - this.fluent = this; - this.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - - this.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeAffinityFluent fluent; Boolean validationEnabled; - public V1NodeAffinity build() { V1NodeAffinity buildable = new V1NodeAffinity(); - buildable.setPreferredDuringSchedulingIgnoredDuringExecution( - fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); - buildable.setRequiredDuringSchedulingIgnoredDuringExecution( - fluent.getRequiredDuringSchedulingIgnoredDuringExecution()); + buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); + buildable.setRequiredDuringSchedulingIgnoredDuringExecution(fluent.getRequiredDuringSchedulingIgnoredDuringExecution()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java index 8bad137fb3..1dbae2ac7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java @@ -1,148 +1,75 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NodeAffinityFluent> extends Fluent { - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PreferredSchedulingTerm item); - - public A setToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PreferredSchedulingTerm item); - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items); - - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items); - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NodeAffinityFluent> extends Fluent{ + public A addToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1PreferredSchedulingTerm item); + public A setToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1PreferredSchedulingTerm item); + public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items); + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items); + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + /** - * This method has been deprecated, please use method - * buildPreferredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildPreferredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getPreferredDuringSchedulingIgnoredDuringExecution(); - public List buildPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution( - Integer index); - + public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution(Integer index); public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public V1PreferredSchedulingTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - List preferredDuringSchedulingIgnoredDuringExecution); - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... - preferredDuringSchedulingIgnoredDuringExecution); - + public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution); + public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... preferredDuringSchedulingIgnoredDuringExecution); public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1PreferredSchedulingTerm item); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editFirstPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editLastPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution(); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1PreferredSchedulingTerm item); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution(); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution(); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + /** - * This method has been deprecated, please use method - * buildRequiredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildRequiredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution(); - public V1NodeSelector buildRequiredDuringSchedulingIgnoredDuringExecution(); - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution); - + public A withRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution); public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - withNewRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item); - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editOrNewRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item); - - public interface PreferredDuringSchedulingIgnoredDuringExecutionNested - extends Nested, - V1PreferredSchedulingTermFluent< - V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> { + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution(); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution(); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item); + public interface PreferredDuringSchedulingIgnoredDuringExecutionNested extends Nested,V1PreferredSchedulingTermFluent>{ public N and(); - public N endPreferredDuringSchedulingIgnoredDuringExecution(); + } - - public interface RequiredDuringSchedulingIgnoredDuringExecutionNested - extends Nested, - V1NodeSelectorFluent< - V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> { + public interface RequiredDuringSchedulingIgnoredDuringExecutionNested extends Nested,V1NodeSelectorFluent>{ public N and(); - public N endRequiredDuringSchedulingIgnoredDuringExecution(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java index 2da985c1b6..a41555106f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java @@ -1,140 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeAffinityFluentImpl> extends BaseFluent - implements V1NodeAffinityFluent { - public V1NodeAffinityFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeAffinityFluentImpl> extends BaseFluent implements V1NodeAffinityFluent{ + public V1NodeAffinityFluentImpl() { + } public V1NodeAffinityFluentImpl(V1NodeAffinity instance) { - this.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - private ArrayList - preferredDuringSchedulingIgnoredDuringExecution; + } + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PreferredSchedulingTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables - .get("preferredDuringSchedulingIgnoredDuringExecution") - .add( - index >= 0 - ? index - : _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size(), - builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add( - index >= 0 ? index : preferredDuringSchedulingIgnoredDuringExecution.size(), builder); - return (A) this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1PreferredSchedulingTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index >= 0 ? index : _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size(), builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(index >= 0 ? index : preferredDuringSchedulingIgnoredDuringExecution.size(), builder); return (A)this; } - - public A setToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PreferredSchedulingTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } + public A setToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1PreferredSchedulingTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 - || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); - } - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + return (A)this; } - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { + for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = - preferredDuringSchedulingIgnoredDuringExecution.iterator(); + final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PreferredSchedulingTermBuilder builder = each.next(); @@ -143,330 +66,163 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( each.remove(); } } - return (A) this; + return (A)this; } - + /** - * This method has been deprecated, please use method - * buildPreferredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildPreferredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - ? build(preferredDuringSchedulingIgnoredDuringExecution) - : null; + return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - ? build(preferredDuringSchedulingIgnoredDuringExecution) - : null; + return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - - public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution( - Integer index) { + public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public V1PreferredSchedulingTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution - .get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1) - .build(); + return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } - - public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PreferredSchedulingTermBuilder item: preferredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PreferredSchedulingTermBuilder item: preferredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return true;} } return false; } - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - _visitables - .get("preferredDuringSchedulingIgnoredDuringExecution") - .removeAll(this.preferredDuringSchedulingIgnoredDuringExecution); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").removeAll(this.preferredDuringSchedulingIgnoredDuringExecution);} + if (preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution){this.addToPreferredDuringSchedulingIgnoredDuringExecution(item);}} else { this.preferredDuringSchedulingIgnoredDuringExecution = null;} return (A) this; } - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... - preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } - return (A) this; + public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.clear();} + if (preferredDuringSchedulingIgnoredDuringExecution != null) {for (V1PreferredSchedulingTerm item :preferredDuringSchedulingIgnoredDuringExecution){ this.addToPreferredDuringSchedulingIgnoredDuringExecution(item);}} return (A) this; } - public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); + return preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecution() { + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { - return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - -1, item); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { + return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1PreferredSchedulingTerm item) { - return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - index, item); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1PreferredSchedulingTerm item) { + return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) - throw new RuntimeException( - "Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) - throw new RuntimeException( - "Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - 0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editLastPreferredDuringSchedulingIgnoredDuringExecution() { + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) - throw new RuntimeException( - "Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution.size(); i++) { - if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException( - "Can't edit matching preferredDuringSchedulingIgnoredDuringExecution. No match found."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + for (int i=0;i - withNewRequiredDuringSchedulingIgnoredDuringExecution() { + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution() { return new V1NodeAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return new V1NodeAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - item); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return new V1NodeAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(item); } - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editRequiredDuringSchedulingIgnoredDuringExecution() { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - getRequiredDuringSchedulingIgnoredDuringExecution()); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution() { + return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(getRequiredDuringSchedulingIgnoredDuringExecution()); } - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - getRequiredDuringSchedulingIgnoredDuringExecution() != null - ? getRequiredDuringSchedulingIgnoredDuringExecution() - : new V1NodeSelectorBuilder().build()); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { + return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(getRequiredDuringSchedulingIgnoredDuringExecution() != null ? getRequiredDuringSchedulingIgnoredDuringExecution(): new V1NodeSelectorBuilder().build()); } - - public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - getRequiredDuringSchedulingIgnoredDuringExecution() != null - ? getRequiredDuringSchedulingIgnoredDuringExecution() - : item); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(getRequiredDuringSchedulingIgnoredDuringExecution() != null ? getRequiredDuringSchedulingIgnoredDuringExecution(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeAffinityFluentImpl that = (V1NodeAffinityFluentImpl) o; - if (preferredDuringSchedulingIgnoredDuringExecution != null - ? !preferredDuringSchedulingIgnoredDuringExecution.equals( - that.preferredDuringSchedulingIgnoredDuringExecution) - : that.preferredDuringSchedulingIgnoredDuringExecution != null) return false; - if (requiredDuringSchedulingIgnoredDuringExecution != null - ? !requiredDuringSchedulingIgnoredDuringExecution.equals( - that.requiredDuringSchedulingIgnoredDuringExecution) - : that.requiredDuringSchedulingIgnoredDuringExecution != null) return false; + if (preferredDuringSchedulingIgnoredDuringExecution != null ? !preferredDuringSchedulingIgnoredDuringExecution.equals(that.preferredDuringSchedulingIgnoredDuringExecution) :that.preferredDuringSchedulingIgnoredDuringExecution != null) return false; + if (requiredDuringSchedulingIgnoredDuringExecution != null ? !requiredDuringSchedulingIgnoredDuringExecution.equals(that.requiredDuringSchedulingIgnoredDuringExecution) :that.requiredDuringSchedulingIgnoredDuringExecution != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - preferredDuringSchedulingIgnoredDuringExecution, - requiredDuringSchedulingIgnoredDuringExecution, - super.hashCode()); + return java.util.Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (preferredDuringSchedulingIgnoredDuringExecution != null - && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty()) { - sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); - sb.append(preferredDuringSchedulingIgnoredDuringExecution + ","); - } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { - sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); - sb.append(requiredDuringSchedulingIgnoredDuringExecution); - } + if (preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty()) { sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); sb.append(preferredDuringSchedulingIgnoredDuringExecution + ","); } + if (requiredDuringSchedulingIgnoredDuringExecution != null) { sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); sb.append(requiredDuringSchedulingIgnoredDuringExecution); } sb.append("}"); return sb.toString(); } - - class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl - extends V1PreferredSchedulingTermFluentImpl< - V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> - implements V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested, - Nested { - PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - Integer index, V1PreferredSchedulingTerm item) { + class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1PreferredSchedulingTermFluentImpl> implements V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested,Nested{ + PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(Integer index,V1PreferredSchedulingTerm item) { this.index = index; this.builder = new V1PreferredSchedulingTermBuilder(this, item); } - PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; this.builder = new V1PreferredSchedulingTermBuilder(this); } - V1PreferredSchedulingTermBuilder builder; Integer index; - public N and() { - return (N) - V1NodeAffinityFluentImpl.this.setToPreferredDuringSchedulingIgnoredDuringExecution( - index, builder.build()); + return (N) V1NodeAffinityFluentImpl.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); } - public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } + } - - class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl - extends V1NodeSelectorFluentImpl< - V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> - implements V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested, - Nested { + class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1NodeSelectorFluentImpl> implements V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested,Nested{ RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.builder = new V1NodeSelectorBuilder(this); } - V1NodeSelectorBuilder builder; - public N and() { - return (N) - V1NodeAffinityFluentImpl.this.withRequiredDuringSchedulingIgnoredDuringExecution( - builder.build()); + return (N) V1NodeAffinityFluentImpl.this.withRequiredDuringSchedulingIgnoredDuringExecution(builder.build()); } - public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java index c702d5a26b..370ee5567f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeBuilder extends V1NodeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeBuilder extends V1NodeFluentImpl implements VisitableBuilder{ public V1NodeBuilder() { this(false); } - public V1NodeBuilder(Boolean validationEnabled) { this(new V1Node(), validationEnabled); } - public V1NodeBuilder(V1NodeFluent fluent) { this(fluent, false); } - - public V1NodeBuilder(V1NodeFluent fluent, Boolean validationEnabled) { + public V1NodeBuilder(V1NodeFluent fluent,Boolean validationEnabled) { this(fluent, new V1Node(), validationEnabled); } - - public V1NodeBuilder(V1NodeFluent fluent, V1Node instance) { + public V1NodeBuilder(V1NodeFluent fluent,V1Node instance) { this(fluent, instance, false); } - - public V1NodeBuilder(V1NodeFluent fluent, V1Node instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeBuilder(V1NodeFluent fluent,V1Node instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -48,15 +30,13 @@ public V1NodeBuilder(V1NodeFluent fluent, V1Node instance, Boolean validation fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeBuilder(V1Node instance) { - this(instance, false); + this(instance,false); } - - public V1NodeBuilder(V1Node instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeBuilder(V1Node instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -67,12 +47,10 @@ public V1NodeBuilder(V1Node instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeFluent fluent; Boolean validationEnabled; - public V1Node build() { V1Node buildable = new V1Node(); buildable.setApiVersion(fluent.getApiVersion()); @@ -82,4 +60,5 @@ public V1Node build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java index e5717f49f2..9c56cfb99a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeConditionBuilder extends V1NodeConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeConditionBuilder extends V1NodeConditionFluentImpl implements VisitableBuilder{ public V1NodeConditionBuilder() { this(false); } - public V1NodeConditionBuilder(Boolean validationEnabled) { this(new V1NodeCondition(), validationEnabled); } - public V1NodeConditionBuilder(V1NodeConditionFluent fluent) { this(fluent, false); } - - public V1NodeConditionBuilder(V1NodeConditionFluent fluent, Boolean validationEnabled) { + public V1NodeConditionBuilder(V1NodeConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeCondition(), validationEnabled); } - - public V1NodeConditionBuilder(V1NodeConditionFluent fluent, V1NodeCondition instance) { + public V1NodeConditionBuilder(V1NodeConditionFluent fluent,V1NodeCondition instance) { this(fluent, instance, false); } - - public V1NodeConditionBuilder( - V1NodeConditionFluent fluent, V1NodeCondition instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeConditionBuilder(V1NodeConditionFluent fluent,V1NodeCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastHeartbeatTime(instance.getLastHeartbeatTime()); fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -51,15 +32,13 @@ public V1NodeConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeConditionBuilder(V1NodeCondition instance) { - this(instance, false); + this(instance,false); } - - public V1NodeConditionBuilder(V1NodeCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeConditionBuilder(V1NodeCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -72,12 +51,10 @@ public V1NodeConditionBuilder(V1NodeCondition instance, Boolean validationEnable this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeConditionFluent fluent; Boolean validationEnabled; - public V1NodeCondition build() { V1NodeCondition buildable = new V1NodeCondition(); buildable.setLastHeartbeatTime(fluent.getLastHeartbeatTime()); @@ -88,4 +65,5 @@ public V1NodeCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java index b253f393e7..6897e5aeba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java @@ -1,55 +1,31 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NodeConditionFluent> extends Fluent { + /** + * Generated + */ +public interface V1NodeConditionFluent> extends Fluent{ public OffsetDateTime getLastHeartbeatTime(); - public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime); - public Boolean hasLastHeartbeatTime(); - public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java index 09bc1e7720..61652ae533 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeConditionFluentImpl> extends BaseFluent - implements V1NodeConditionFluent { - public V1NodeConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeConditionFluentImpl> extends BaseFluent implements V1NodeConditionFluent{ + public V1NodeConditionFluentImpl() { + } public V1NodeConditionFluentImpl(V1NodeCondition instance) { this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); @@ -33,143 +26,94 @@ public V1NodeConditionFluentImpl(V1NodeCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastHeartbeatTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastHeartbeatTime() { return this.lastHeartbeatTime; } - public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { - this.lastHeartbeatTime = lastHeartbeatTime; - return (A) this; + this.lastHeartbeatTime=lastHeartbeatTime; return (A) this; } - public Boolean hasLastHeartbeatTime() { return this.lastHeartbeatTime != null; } - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeConditionFluentImpl that = (V1NodeConditionFluentImpl) o; - if (lastHeartbeatTime != null - ? !lastHeartbeatTime.equals(that.lastHeartbeatTime) - : that.lastHeartbeatTime != null) return false; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastHeartbeatTime != null ? !lastHeartbeatTime.equals(that.lastHeartbeatTime) :that.lastHeartbeatTime != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastHeartbeatTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastHeartbeatTime != null) { - sb.append("lastHeartbeatTime:"); - sb.append(lastHeartbeatTime + ","); - } - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastHeartbeatTime != null) { sb.append("lastHeartbeatTime:"); sb.append(lastHeartbeatTime + ","); } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java index 94813c422f..fed418ff5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java @@ -1,68 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1NodeConfigSourceBuilder - extends V1NodeConfigSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeConfigSourceBuilder extends V1NodeConfigSourceFluentImpl implements VisitableBuilder{ public V1NodeConfigSourceBuilder() { this(false); } - public V1NodeConfigSourceBuilder(Boolean validationEnabled) { this(new V1NodeConfigSource(), validationEnabled); } - public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent) { this(fluent, false); } - - public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent, Boolean validationEnabled) { + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeConfigSource(), validationEnabled); } - - public V1NodeConfigSourceBuilder( - V1NodeConfigSourceFluent fluent, V1NodeConfigSource instance) { + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,V1NodeConfigSource instance) { this(fluent, instance, false); } - - public V1NodeConfigSourceBuilder( - V1NodeConfigSourceFluent fluent, V1NodeConfigSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,V1NodeConfigSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConfigMap(instance.getConfigMap()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeConfigSourceBuilder(V1NodeConfigSource instance) { - this(instance, false); + this(instance,false); } - - public V1NodeConfigSourceBuilder(V1NodeConfigSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeConfigSourceBuilder(V1NodeConfigSource instance,Boolean validationEnabled) { + this.fluent = this; this.withConfigMap(instance.getConfigMap()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeConfigSourceFluent fluent; Boolean validationEnabled; - public V1NodeConfigSource build() { V1NodeConfigSource buildable = new V1NodeConfigSource(); buildable.setConfigMap(fluent.getConfigMap()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java index b4907b33f6..8dfa814ef6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java @@ -1,54 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1NodeConfigSourceFluent> extends Fluent { - + /** + * Generated + */ +public interface V1NodeConfigSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildConfigMap instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapNodeConfigSource getConfigMap(); - public V1ConfigMapNodeConfigSource buildConfigMap(); - public A withConfigMap(V1ConfigMapNodeConfigSource configMap); - public Boolean hasConfigMap(); - public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMap(); - - public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMapLike( - V1ConfigMapNodeConfigSource item); - + public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item); public V1NodeConfigSourceFluent.ConfigMapNested editConfigMap(); - public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMap(); - - public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMapLike( - V1ConfigMapNodeConfigSource item); - - public interface ConfigMapNested - extends Nested, - V1ConfigMapNodeConfigSourceFluent> { + public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapNodeConfigSource item); + public interface ConfigMapNested extends Nested,V1ConfigMapNodeConfigSourceFluent>{ public N and(); - public N endConfigMap(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java index e5692b1d70..f8ef2a2685 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java @@ -1,128 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeConfigSourceFluentImpl> - extends BaseFluent implements V1NodeConfigSourceFluent { - public V1NodeConfigSourceFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeConfigSourceFluentImpl> extends BaseFluent implements V1NodeConfigSourceFluent{ + public V1NodeConfigSourceFluentImpl() { + } public V1NodeConfigSourceFluentImpl(V1NodeConfigSource instance) { this.withConfigMap(instance.getConfigMap()); - } + } private V1ConfigMapNodeConfigSourceBuilder configMap; - + /** * This method has been deprecated, please use method buildConfigMap instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapNodeConfigSource getConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + return this.configMap!=null ?this.configMap.build():null; } - public V1ConfigMapNodeConfigSource buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + return this.configMap!=null ?this.configMap.build():null; } - public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { _visitables.get("configMap").remove(this.configMap); - if (configMap != null) { - this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); - _visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - _visitables.get("configMap").remove(this.configMap); - } - return (A) this; + if (configMap!=null){ this.configMap= new V1ConfigMapNodeConfigSourceBuilder(configMap); _visitables.get("configMap").add(this.configMap);} else { this.configMap = null; _visitables.get("configMap").remove(this.configMap); } return (A) this; } - public Boolean hasConfigMap() { return this.configMap != null; } - public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMap() { return new V1NodeConfigSourceFluentImpl.ConfigMapNestedImpl(); } - - public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMapLike( - V1ConfigMapNodeConfigSource item) { + public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) { return new V1NodeConfigSourceFluentImpl.ConfigMapNestedImpl(item); } - public V1NodeConfigSourceFluent.ConfigMapNested editConfigMap() { return withNewConfigMapLike(getConfigMap()); } - public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike( - getConfigMap() != null ? getConfigMap() : new V1ConfigMapNodeConfigSourceBuilder().build()); + return withNewConfigMapLike(getConfigMap() != null ? getConfigMap(): new V1ConfigMapNodeConfigSourceBuilder().build()); } - - public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMapLike( - V1ConfigMapNodeConfigSource item) { - return withNewConfigMapLike(getConfigMap() != null ? getConfigMap() : item); + public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapNodeConfigSource item) { + return withNewConfigMapLike(getConfigMap() != null ? getConfigMap(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeConfigSourceFluentImpl that = (V1NodeConfigSourceFluentImpl) o; - if (configMap != null ? !configMap.equals(that.configMap) : that.configMap != null) - return false; + if (configMap != null ? !configMap.equals(that.configMap) :that.configMap != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(configMap, super.hashCode()); + return java.util.Objects.hash(configMap, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMap != null) { - sb.append("configMap:"); - sb.append(configMap); - } + if (configMap != null) { sb.append("configMap:"); sb.append(configMap); } sb.append("}"); return sb.toString(); } - - class ConfigMapNestedImpl - extends V1ConfigMapNodeConfigSourceFluentImpl> - implements V1NodeConfigSourceFluent.ConfigMapNested, Nested { + class ConfigMapNestedImpl extends V1ConfigMapNodeConfigSourceFluentImpl> implements V1NodeConfigSourceFluent.ConfigMapNested,Nested{ ConfigMapNestedImpl(V1ConfigMapNodeConfigSource item) { this.builder = new V1ConfigMapNodeConfigSourceBuilder(this, item); } - ConfigMapNestedImpl() { this.builder = new V1ConfigMapNodeConfigSourceBuilder(this); } - V1ConfigMapNodeConfigSourceBuilder builder; - public N and() { return (N) V1NodeConfigSourceFluentImpl.this.withConfigMap(builder.build()); } - public N endConfigMap() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java index f95135a8d5..a0fe4b4515 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeConfigStatusBuilder - extends V1NodeConfigStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluentImpl implements VisitableBuilder{ public V1NodeConfigStatusBuilder() { this(false); } - public V1NodeConfigStatusBuilder(Boolean validationEnabled) { this(new V1NodeConfigStatus(), validationEnabled); } - public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent) { this(fluent, false); } - - public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent, Boolean validationEnabled) { + public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeConfigStatus(), validationEnabled); } - - public V1NodeConfigStatusBuilder( - V1NodeConfigStatusFluent fluent, V1NodeConfigStatus instance) { + public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance) { this(fluent, instance, false); } - - public V1NodeConfigStatusBuilder( - V1NodeConfigStatusFluent fluent, V1NodeConfigStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withActive(instance.getActive()); fluent.withAssigned(instance.getAssigned()); @@ -49,15 +28,13 @@ public V1NodeConfigStatusBuilder( fluent.withLastKnownGood(instance.getLastKnownGood()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance) { - this(instance, false); + this(instance,false); } - - public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withActive(instance.getActive()); this.withAssigned(instance.getAssigned()); @@ -66,12 +43,10 @@ public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance, Boolean validation this.withLastKnownGood(instance.getLastKnownGood()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeConfigStatusFluent fluent; Boolean validationEnabled; - public V1NodeConfigStatus build() { V1NodeConfigStatus buildable = new V1NodeConfigStatus(); buildable.setActive(fluent.getActive()); @@ -80,4 +55,5 @@ public V1NodeConfigStatus build() { buildable.setLastKnownGood(fluent.getLastKnownGood()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java index b99a718f07..3dea870107 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java @@ -1,121 +1,77 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1NodeConfigStatusFluent> extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NodeConfigStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildActive instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getActive(); - public V1NodeConfigSource buildActive(); - public A withActive(V1NodeConfigSource active); - public Boolean hasActive(); - public V1NodeConfigStatusFluent.ActiveNested withNewActive(); - public V1NodeConfigStatusFluent.ActiveNested withNewActiveLike(V1NodeConfigSource item); - public V1NodeConfigStatusFluent.ActiveNested editActive(); - public V1NodeConfigStatusFluent.ActiveNested editOrNewActive(); - public V1NodeConfigStatusFluent.ActiveNested editOrNewActiveLike(V1NodeConfigSource item); - + /** * This method has been deprecated, please use method buildAssigned instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getAssigned(); - public V1NodeConfigSource buildAssigned(); - public A withAssigned(V1NodeConfigSource assigned); - public Boolean hasAssigned(); - public V1NodeConfigStatusFluent.AssignedNested withNewAssigned(); - public V1NodeConfigStatusFluent.AssignedNested withNewAssignedLike(V1NodeConfigSource item); - public V1NodeConfigStatusFluent.AssignedNested editAssigned(); - public V1NodeConfigStatusFluent.AssignedNested editOrNewAssigned(); - public V1NodeConfigStatusFluent.AssignedNested editOrNewAssignedLike(V1NodeConfigSource item); - public String getError(); - public A withError(String error); - public Boolean hasError(); - + /** * This method has been deprecated, please use method buildLastKnownGood instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getLastKnownGood(); - public V1NodeConfigSource buildLastKnownGood(); - public A withLastKnownGood(V1NodeConfigSource lastKnownGood); - public Boolean hasLastKnownGood(); - public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGood(); - - public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGoodLike( - V1NodeConfigSource item); - + public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item); public V1NodeConfigStatusFluent.LastKnownGoodNested editLastKnownGood(); - public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGood(); - - public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGoodLike( - V1NodeConfigSource item); - - public interface ActiveNested - extends Nested, V1NodeConfigSourceFluent> { + public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGoodLike(V1NodeConfigSource item); + public interface ActiveNested extends Nested,V1NodeConfigSourceFluent>{ public N and(); - public N endActive(); + } - - public interface AssignedNested - extends Nested, V1NodeConfigSourceFluent> { + public interface AssignedNested extends Nested,V1NodeConfigSourceFluent>{ public N and(); - public N endAssigned(); + } - - public interface LastKnownGoodNested - extends Nested, V1NodeConfigSourceFluent> { + public interface LastKnownGoodNested extends Nested,V1NodeConfigSourceFluent>{ public N and(); - public N endLastKnownGood(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java index b7e094a784..21101e39a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeConfigStatusFluentImpl> - extends BaseFluent implements V1NodeConfigStatusFluent { - public V1NodeConfigStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeConfigStatusFluentImpl> extends BaseFluent implements V1NodeConfigStatusFluent{ + public V1NodeConfigStatusFluentImpl() { + } public V1NodeConfigStatusFluentImpl(V1NodeConfigStatus instance) { this.withActive(instance.getActive()); @@ -29,284 +23,193 @@ public V1NodeConfigStatusFluentImpl(V1NodeConfigStatus instance) { this.withError(instance.getError()); this.withLastKnownGood(instance.getLastKnownGood()); - } + } private V1NodeConfigSourceBuilder active; private V1NodeConfigSourceBuilder assigned; private String error; private V1NodeConfigSourceBuilder lastKnownGood; - + /** * This method has been deprecated, please use method buildActive instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getActive() { - return this.active != null ? this.active.build() : null; + return this.active!=null ?this.active.build():null; } - public V1NodeConfigSource buildActive() { - return this.active != null ? this.active.build() : null; + return this.active!=null ?this.active.build():null; } - public A withActive(V1NodeConfigSource active) { _visitables.get("active").remove(this.active); - if (active != null) { - this.active = new V1NodeConfigSourceBuilder(active); - _visitables.get("active").add(this.active); - } else { - this.active = null; - _visitables.get("active").remove(this.active); - } - return (A) this; + if (active!=null){ this.active= new V1NodeConfigSourceBuilder(active); _visitables.get("active").add(this.active);} else { this.active = null; _visitables.get("active").remove(this.active); } return (A) this; } - public Boolean hasActive() { return this.active != null; } - public V1NodeConfigStatusFluent.ActiveNested withNewActive() { return new V1NodeConfigStatusFluentImpl.ActiveNestedImpl(); } - public V1NodeConfigStatusFluent.ActiveNested withNewActiveLike(V1NodeConfigSource item) { return new V1NodeConfigStatusFluentImpl.ActiveNestedImpl(item); } - public V1NodeConfigStatusFluent.ActiveNested editActive() { return withNewActiveLike(getActive()); } - public V1NodeConfigStatusFluent.ActiveNested editOrNewActive() { - return withNewActiveLike( - getActive() != null ? getActive() : new V1NodeConfigSourceBuilder().build()); + return withNewActiveLike(getActive() != null ? getActive(): new V1NodeConfigSourceBuilder().build()); } - public V1NodeConfigStatusFluent.ActiveNested editOrNewActiveLike(V1NodeConfigSource item) { - return withNewActiveLike(getActive() != null ? getActive() : item); + return withNewActiveLike(getActive() != null ? getActive(): item); } - + /** * This method has been deprecated, please use method buildAssigned instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getAssigned() { - return this.assigned != null ? this.assigned.build() : null; + return this.assigned!=null ?this.assigned.build():null; } - public V1NodeConfigSource buildAssigned() { - return this.assigned != null ? this.assigned.build() : null; + return this.assigned!=null ?this.assigned.build():null; } - public A withAssigned(V1NodeConfigSource assigned) { _visitables.get("assigned").remove(this.assigned); - if (assigned != null) { - this.assigned = new V1NodeConfigSourceBuilder(assigned); - _visitables.get("assigned").add(this.assigned); - } else { - this.assigned = null; - _visitables.get("assigned").remove(this.assigned); - } - return (A) this; + if (assigned!=null){ this.assigned= new V1NodeConfigSourceBuilder(assigned); _visitables.get("assigned").add(this.assigned);} else { this.assigned = null; _visitables.get("assigned").remove(this.assigned); } return (A) this; } - public Boolean hasAssigned() { return this.assigned != null; } - public V1NodeConfigStatusFluent.AssignedNested withNewAssigned() { return new V1NodeConfigStatusFluentImpl.AssignedNestedImpl(); } - public V1NodeConfigStatusFluent.AssignedNested withNewAssignedLike(V1NodeConfigSource item) { return new V1NodeConfigStatusFluentImpl.AssignedNestedImpl(item); } - public V1NodeConfigStatusFluent.AssignedNested editAssigned() { return withNewAssignedLike(getAssigned()); } - public V1NodeConfigStatusFluent.AssignedNested editOrNewAssigned() { - return withNewAssignedLike( - getAssigned() != null ? getAssigned() : new V1NodeConfigSourceBuilder().build()); + return withNewAssignedLike(getAssigned() != null ? getAssigned(): new V1NodeConfigSourceBuilder().build()); } - public V1NodeConfigStatusFluent.AssignedNested editOrNewAssignedLike(V1NodeConfigSource item) { - return withNewAssignedLike(getAssigned() != null ? getAssigned() : item); + return withNewAssignedLike(getAssigned() != null ? getAssigned(): item); } - public String getError() { return this.error; } - public A withError(String error) { - this.error = error; - return (A) this; + this.error=error; return (A) this; } - public Boolean hasError() { return this.error != null; } - + /** * This method has been deprecated, please use method buildLastKnownGood instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getLastKnownGood() { - return this.lastKnownGood != null ? this.lastKnownGood.build() : null; + return this.lastKnownGood!=null ?this.lastKnownGood.build():null; } - public V1NodeConfigSource buildLastKnownGood() { - return this.lastKnownGood != null ? this.lastKnownGood.build() : null; + return this.lastKnownGood!=null ?this.lastKnownGood.build():null; } - public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { _visitables.get("lastKnownGood").remove(this.lastKnownGood); - if (lastKnownGood != null) { - this.lastKnownGood = new V1NodeConfigSourceBuilder(lastKnownGood); - _visitables.get("lastKnownGood").add(this.lastKnownGood); - } else { - this.lastKnownGood = null; - _visitables.get("lastKnownGood").remove(this.lastKnownGood); - } - return (A) this; + if (lastKnownGood!=null){ this.lastKnownGood= new V1NodeConfigSourceBuilder(lastKnownGood); _visitables.get("lastKnownGood").add(this.lastKnownGood);} else { this.lastKnownGood = null; _visitables.get("lastKnownGood").remove(this.lastKnownGood); } return (A) this; } - public Boolean hasLastKnownGood() { return this.lastKnownGood != null; } - public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGood() { return new V1NodeConfigStatusFluentImpl.LastKnownGoodNestedImpl(); } - - public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGoodLike( - V1NodeConfigSource item) { + public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) { return new V1NodeConfigStatusFluentImpl.LastKnownGoodNestedImpl(item); } - public V1NodeConfigStatusFluent.LastKnownGoodNested editLastKnownGood() { return withNewLastKnownGoodLike(getLastKnownGood()); } - public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGood() { - return withNewLastKnownGoodLike( - getLastKnownGood() != null ? getLastKnownGood() : new V1NodeConfigSourceBuilder().build()); + return withNewLastKnownGoodLike(getLastKnownGood() != null ? getLastKnownGood(): new V1NodeConfigSourceBuilder().build()); } - - public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGoodLike( - V1NodeConfigSource item) { - return withNewLastKnownGoodLike(getLastKnownGood() != null ? getLastKnownGood() : item); + public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGoodLike(V1NodeConfigSource item) { + return withNewLastKnownGoodLike(getLastKnownGood() != null ? getLastKnownGood(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeConfigStatusFluentImpl that = (V1NodeConfigStatusFluentImpl) o; - if (active != null ? !active.equals(that.active) : that.active != null) return false; - if (assigned != null ? !assigned.equals(that.assigned) : that.assigned != null) return false; - if (error != null ? !error.equals(that.error) : that.error != null) return false; - if (lastKnownGood != null - ? !lastKnownGood.equals(that.lastKnownGood) - : that.lastKnownGood != null) return false; + if (active != null ? !active.equals(that.active) :that.active != null) return false; + if (assigned != null ? !assigned.equals(that.assigned) :that.assigned != null) return false; + if (error != null ? !error.equals(that.error) :that.error != null) return false; + if (lastKnownGood != null ? !lastKnownGood.equals(that.lastKnownGood) :that.lastKnownGood != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(active, assigned, error, lastKnownGood, super.hashCode()); + return java.util.Objects.hash(active, assigned, error, lastKnownGood, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (active != null) { - sb.append("active:"); - sb.append(active + ","); - } - if (assigned != null) { - sb.append("assigned:"); - sb.append(assigned + ","); - } - if (error != null) { - sb.append("error:"); - sb.append(error + ","); - } - if (lastKnownGood != null) { - sb.append("lastKnownGood:"); - sb.append(lastKnownGood); - } + if (active != null) { sb.append("active:"); sb.append(active + ","); } + if (assigned != null) { sb.append("assigned:"); sb.append(assigned + ","); } + if (error != null) { sb.append("error:"); sb.append(error + ","); } + if (lastKnownGood != null) { sb.append("lastKnownGood:"); sb.append(lastKnownGood); } sb.append("}"); return sb.toString(); } - - class ActiveNestedImpl - extends V1NodeConfigSourceFluentImpl> - implements V1NodeConfigStatusFluent.ActiveNested, Nested { + class ActiveNestedImpl extends V1NodeConfigSourceFluentImpl> implements V1NodeConfigStatusFluent.ActiveNested,Nested{ ActiveNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - ActiveNestedImpl() { this.builder = new V1NodeConfigSourceBuilder(this); } - V1NodeConfigSourceBuilder builder; - public N and() { return (N) V1NodeConfigStatusFluentImpl.this.withActive(builder.build()); } - public N endActive() { return and(); } + } - - class AssignedNestedImpl - extends V1NodeConfigSourceFluentImpl> - implements V1NodeConfigStatusFluent.AssignedNested, Nested { + class AssignedNestedImpl extends V1NodeConfigSourceFluentImpl> implements V1NodeConfigStatusFluent.AssignedNested,Nested{ AssignedNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - AssignedNestedImpl() { this.builder = new V1NodeConfigSourceBuilder(this); } - V1NodeConfigSourceBuilder builder; - public N and() { return (N) V1NodeConfigStatusFluentImpl.this.withAssigned(builder.build()); } - public N endAssigned() { return and(); } + } - - class LastKnownGoodNestedImpl - extends V1NodeConfigSourceFluentImpl> - implements V1NodeConfigStatusFluent.LastKnownGoodNested, Nested { + class LastKnownGoodNestedImpl extends V1NodeConfigSourceFluentImpl> implements V1NodeConfigStatusFluent.LastKnownGoodNested,Nested{ LastKnownGoodNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - LastKnownGoodNestedImpl() { this.builder = new V1NodeConfigSourceBuilder(this); } - V1NodeConfigSourceBuilder builder; - public N and() { return (N) V1NodeConfigStatusFluentImpl.this.withLastKnownGood(builder.build()); } - public N endLastKnownGood() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java index b7961f3a9a..70e58a4aad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1NodeDaemonEndpointsBuilder - extends V1NodeDaemonEndpointsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeDaemonEndpointsBuilder extends V1NodeDaemonEndpointsFluentImpl implements VisitableBuilder{ public V1NodeDaemonEndpointsBuilder() { this(false); } - public V1NodeDaemonEndpointsBuilder(Boolean validationEnabled) { this(new V1NodeDaemonEndpoints(), validationEnabled); } - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent) { this(fluent, false); } - - public V1NodeDaemonEndpointsBuilder( - V1NodeDaemonEndpointsFluent fluent, Boolean validationEnabled) { + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeDaemonEndpoints(), validationEnabled); } - - public V1NodeDaemonEndpointsBuilder( - V1NodeDaemonEndpointsFluent fluent, V1NodeDaemonEndpoints instance) { + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,V1NodeDaemonEndpoints instance) { this(fluent, instance, false); } - - public V1NodeDaemonEndpointsBuilder( - V1NodeDaemonEndpointsFluent fluent, - V1NodeDaemonEndpoints instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,V1NodeDaemonEndpoints instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKubeletEndpoint(instance.getKubeletEndpoint()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance) { - this(instance, false); + this(instance,false); } - - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance,Boolean validationEnabled) { + this.fluent = this; this.withKubeletEndpoint(instance.getKubeletEndpoint()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeDaemonEndpointsFluent fluent; Boolean validationEnabled; - public V1NodeDaemonEndpoints build() { V1NodeDaemonEndpoints buildable = new V1NodeDaemonEndpoints(); buildable.setKubeletEndpoint(fluent.getKubeletEndpoint()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java index 37af3ede31..f1e3eab663 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java @@ -1,55 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1NodeDaemonEndpointsFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1NodeDaemonEndpointsFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildKubeletEndpoint instead. - * * @return The buildable object. */ @Deprecated public V1DaemonEndpoint getKubeletEndpoint(); - public V1DaemonEndpoint buildKubeletEndpoint(); - public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint); - public Boolean hasKubeletEndpoint(); - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpoint(); - - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike( - V1DaemonEndpoint item); - + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item); public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editKubeletEndpoint(); - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpoint(); - - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike( - V1DaemonEndpoint item); - - public interface KubeletEndpointNested - extends Nested, - V1DaemonEndpointFluent> { + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike(V1DaemonEndpoint item); + public interface KubeletEndpointNested extends Nested,V1DaemonEndpointFluent>{ public N and(); - public N endKubeletEndpoint(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java index 7ec0ed9fff..49ff845f95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java @@ -1,131 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeDaemonEndpointsFluentImpl> - extends BaseFluent implements V1NodeDaemonEndpointsFluent { - public V1NodeDaemonEndpointsFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeDaemonEndpointsFluentImpl> extends BaseFluent implements V1NodeDaemonEndpointsFluent{ + public V1NodeDaemonEndpointsFluentImpl() { + } public V1NodeDaemonEndpointsFluentImpl(V1NodeDaemonEndpoints instance) { this.withKubeletEndpoint(instance.getKubeletEndpoint()); - } + } private V1DaemonEndpointBuilder kubeletEndpoint; - + /** * This method has been deprecated, please use method buildKubeletEndpoint instead. - * * @return The buildable object. */ @Deprecated public V1DaemonEndpoint getKubeletEndpoint() { - return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; + return this.kubeletEndpoint!=null ?this.kubeletEndpoint.build():null; } - public V1DaemonEndpoint buildKubeletEndpoint() { - return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; + return this.kubeletEndpoint!=null ?this.kubeletEndpoint.build():null; } - public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { _visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); - if (kubeletEndpoint != null) { - this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); - _visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); - } else { - this.kubeletEndpoint = null; - _visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); - } - return (A) this; + if (kubeletEndpoint!=null){ this.kubeletEndpoint= new V1DaemonEndpointBuilder(kubeletEndpoint); _visitables.get("kubeletEndpoint").add(this.kubeletEndpoint);} else { this.kubeletEndpoint = null; _visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); } return (A) this; } - public Boolean hasKubeletEndpoint() { return this.kubeletEndpoint != null; } - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpoint() { return new V1NodeDaemonEndpointsFluentImpl.KubeletEndpointNestedImpl(); } - - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike( - V1DaemonEndpoint item) { + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item) { return new V1NodeDaemonEndpointsFluentImpl.KubeletEndpointNestedImpl(item); } - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editKubeletEndpoint() { return withNewKubeletEndpointLike(getKubeletEndpoint()); } - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpoint() { - return withNewKubeletEndpointLike( - getKubeletEndpoint() != null - ? getKubeletEndpoint() - : new V1DaemonEndpointBuilder().build()); + return withNewKubeletEndpointLike(getKubeletEndpoint() != null ? getKubeletEndpoint(): new V1DaemonEndpointBuilder().build()); } - - public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike( - V1DaemonEndpoint item) { - return withNewKubeletEndpointLike(getKubeletEndpoint() != null ? getKubeletEndpoint() : item); + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike(V1DaemonEndpoint item) { + return withNewKubeletEndpointLike(getKubeletEndpoint() != null ? getKubeletEndpoint(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeDaemonEndpointsFluentImpl that = (V1NodeDaemonEndpointsFluentImpl) o; - if (kubeletEndpoint != null - ? !kubeletEndpoint.equals(that.kubeletEndpoint) - : that.kubeletEndpoint != null) return false; + if (kubeletEndpoint != null ? !kubeletEndpoint.equals(that.kubeletEndpoint) :that.kubeletEndpoint != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(kubeletEndpoint, super.hashCode()); + return java.util.Objects.hash(kubeletEndpoint, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (kubeletEndpoint != null) { - sb.append("kubeletEndpoint:"); - sb.append(kubeletEndpoint); - } + if (kubeletEndpoint != null) { sb.append("kubeletEndpoint:"); sb.append(kubeletEndpoint); } sb.append("}"); return sb.toString(); } - - class KubeletEndpointNestedImpl - extends V1DaemonEndpointFluentImpl> - implements V1NodeDaemonEndpointsFluent.KubeletEndpointNested, Nested { + class KubeletEndpointNestedImpl extends V1DaemonEndpointFluentImpl> implements V1NodeDaemonEndpointsFluent.KubeletEndpointNested,Nested{ KubeletEndpointNestedImpl(V1DaemonEndpoint item) { this.builder = new V1DaemonEndpointBuilder(this, item); } - KubeletEndpointNestedImpl() { this.builder = new V1DaemonEndpointBuilder(this); } - V1DaemonEndpointBuilder builder; - public N and() { return (N) V1NodeDaemonEndpointsFluentImpl.this.withKubeletEndpoint(builder.build()); } - public N endKubeletEndpoint() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java index cc24538768..2a722c9efa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java @@ -1,123 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1NodeFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NodeFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1NodeFluent.MetadataNested withNewMetadata(); - public V1NodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1NodeFluent.MetadataNested editMetadata(); - public V1NodeFluent.MetadataNested editOrNewMetadata(); - public V1NodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1NodeSpec getSpec(); - public V1NodeSpec buildSpec(); - public A withSpec(V1NodeSpec spec); - public Boolean hasSpec(); - public V1NodeFluent.SpecNested withNewSpec(); - public V1NodeFluent.SpecNested withNewSpecLike(V1NodeSpec item); - public V1NodeFluent.SpecNested editSpec(); - public V1NodeFluent.SpecNested editOrNewSpec(); - public V1NodeFluent.SpecNested editOrNewSpecLike(V1NodeSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1NodeStatus getStatus(); - public V1NodeStatus buildStatus(); - public A withStatus(V1NodeStatus status); - public Boolean hasStatus(); - public V1NodeFluent.StatusNested withNewStatus(); - public V1NodeFluent.StatusNested withNewStatusLike(V1NodeStatus item); - public V1NodeFluent.StatusNested editStatus(); - public V1NodeFluent.StatusNested editOrNewStatus(); - public V1NodeFluent.StatusNested editOrNewStatusLike(V1NodeStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested extends Nested, V1NodeSpecFluent> { + public interface SpecNested extends Nested,V1NodeSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1NodeStatusFluent> { + public interface StatusNested extends Nested,V1NodeStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java index f533c6126d..e916b5d976 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeFluentImpl> extends BaseFluent - implements V1NodeFluent { - public V1NodeFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeFluentImpl> extends BaseFluent implements V1NodeFluent{ + public V1NodeFluentImpl() { + } public V1NodeFluentImpl(V1Node instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,295 +25,205 @@ public V1NodeFluentImpl(V1Node instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1NodeSpecBuilder spec; private V1NodeStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1NodeFluent.MetadataNested withNewMetadata() { return new V1NodeFluentImpl.MetadataNestedImpl(); } - public V1NodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1NodeFluentImpl.MetadataNestedImpl(item); } - public V1NodeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1NodeFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1NodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1NodeSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1NodeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1NodeSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1NodeSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1NodeSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1NodeFluent.SpecNested withNewSpec() { return new V1NodeFluentImpl.SpecNestedImpl(); } - public V1NodeFluent.SpecNested withNewSpecLike(V1NodeSpec item) { return new V1NodeFluentImpl.SpecNestedImpl(item); } - public V1NodeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1NodeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1NodeSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1NodeSpecBuilder().build()); } - public V1NodeFluent.SpecNested editOrNewSpecLike(V1NodeSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1NodeStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1NodeStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1NodeStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1NodeStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1NodeStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1NodeFluent.StatusNested withNewStatus() { return new V1NodeFluentImpl.StatusNestedImpl(); } - public V1NodeFluent.StatusNested withNewStatusLike(V1NodeStatus item) { return new V1NodeFluentImpl.StatusNestedImpl(item); } - public V1NodeFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1NodeFluent.StatusNested editOrNewStatus() { - return withNewStatusLike(getStatus() != null ? getStatus() : new V1NodeStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1NodeStatusBuilder().build()); } - public V1NodeFluent.StatusNested editOrNewStatusLike(V1NodeStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeFluentImpl that = (V1NodeFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1NodeFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1NodeFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1NodeFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1NodeSpecFluentImpl> - implements V1NodeFluent.SpecNested, Nested { + class SpecNestedImpl extends V1NodeSpecFluentImpl> implements V1NodeFluent.SpecNested,Nested{ SpecNestedImpl(V1NodeSpec item) { this.builder = new V1NodeSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1NodeSpecBuilder(this); } - V1NodeSpecBuilder builder; - public N and() { return (N) V1NodeFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1NodeStatusFluentImpl> - implements V1NodeFluent.StatusNested, Nested { + class StatusNestedImpl extends V1NodeStatusFluentImpl> implements V1NodeFluent.StatusNested,Nested{ StatusNestedImpl(V1NodeStatus item) { this.builder = new V1NodeStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1NodeStatusBuilder(this); } - V1NodeStatusBuilder builder; - public N and() { return (N) V1NodeFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java index cd3f347c0d..3e0663cf6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeListBuilder extends V1NodeListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeListBuilder extends V1NodeListFluentImpl implements VisitableBuilder{ public V1NodeListBuilder() { this(false); } - public V1NodeListBuilder(Boolean validationEnabled) { this(new V1NodeList(), validationEnabled); } - public V1NodeListBuilder(V1NodeListFluent fluent) { this(fluent, false); } - - public V1NodeListBuilder(V1NodeListFluent fluent, Boolean validationEnabled) { + public V1NodeListBuilder(V1NodeListFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeList(), validationEnabled); } - - public V1NodeListBuilder(V1NodeListFluent fluent, V1NodeList instance) { + public V1NodeListBuilder(V1NodeListFluent fluent,V1NodeList instance) { this(fluent, instance, false); } - - public V1NodeListBuilder( - V1NodeListFluent fluent, V1NodeList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeListBuilder(V1NodeListFluent fluent,V1NodeList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1NodeListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeListBuilder(V1NodeList instance) { - this(instance, false); + this(instance,false); } - - public V1NodeListBuilder(V1NodeList instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeListBuilder(V1NodeList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1NodeListBuilder(V1NodeList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeListFluent fluent; Boolean validationEnabled; - public V1NodeList build() { V1NodeList buildable = new V1NodeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1NodeList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java index c6c7f4ec47..dc19540d0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java @@ -1,125 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1NodeListFluent> extends Fluent { + /** + * Generated + */ +public interface V1NodeListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Node item); - - public A setToItems(Integer index, V1Node item); - + public A addToItems(Integer index,V1Node item); + public A setToItems(Integer index,V1Node item); public A addToItems(io.kubernetes.client.openapi.models.V1Node... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Node buildItem(Integer index); - public V1Node buildFirstItem(); - public V1Node buildLastItem(); - public V1Node buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Node... items); - public Boolean hasItems(); - public V1NodeListFluent.ItemsNested addNewItem(); - public V1NodeListFluent.ItemsNested addNewItemLike(V1Node item); - - public V1NodeListFluent.ItemsNested setNewItemLike(Integer index, V1Node item); - + public V1NodeListFluent.ItemsNested setNewItemLike(Integer index,V1Node item); public V1NodeListFluent.ItemsNested editItem(Integer index); - public V1NodeListFluent.ItemsNested editFirstItem(); - public V1NodeListFluent.ItemsNested editLastItem(); - public V1NodeListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1NodeListFluent.MetadataNested withNewMetadata(); - public V1NodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1NodeListFluent.MetadataNested editMetadata(); - public V1NodeListFluent.MetadataNested editOrNewMetadata(); - public V1NodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested extends Nested, V1NodeFluent> { + public interface ItemsNested extends Nested,V1NodeFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java index 87924f0c61..e0e3f5d418 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeListFluentImpl> extends BaseFluent - implements V1NodeListFluent { - public V1NodeListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeListFluentImpl> extends BaseFluent implements V1NodeListFluent{ + public V1NodeListFluentImpl() { + } public V1NodeListFluentImpl(V1NodeList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1NodeListFluentImpl(V1NodeList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Node item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Node item) { + if (this.items == null) {this.items = new ArrayList();} + V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Node item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Node item) { + if (this.items == null) {this.items = new ArrayList();} V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Node... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items) { - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,269 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Node buildItem(Integer index) { return this.items.get(index).build(); } - public V1Node buildFirstItem() { return this.items.get(0).build(); } - public V1Node buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Node buildMatchingItem(Predicate predicate) { - for (V1NodeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NodeBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1NodeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NodeBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Node item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Node item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Node... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Node item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Node item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1NodeListFluent.ItemsNested addNewItem() { return new V1NodeListFluentImpl.ItemsNestedImpl(); } - public V1NodeListFluent.ItemsNested addNewItemLike(V1Node item) { return new V1NodeListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1NodeListFluent.ItemsNested setNewItemLike(Integer index, V1Node item) { + public V1NodeListFluent.ItemsNested setNewItemLike(Integer index,V1Node item) { return new V1NodeListFluentImpl.ItemsNestedImpl(index, item); } - public V1NodeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1NodeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1NodeListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - public V1NodeListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1NodeListFluentImpl.MetadataNestedImpl(); } - public V1NodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1NodeListFluentImpl.MetadataNestedImpl(item); } - public V1NodeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1NodeListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1NodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeListFluentImpl that = (V1NodeListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1NodeFluentImpl> - implements V1NodeListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Node item) { + class ItemsNestedImpl extends V1NodeFluentImpl> implements V1NodeListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Node item) { this.index = index; this.builder = new V1NodeBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1NodeBuilder(this); } - V1NodeBuilder builder; Integer index; - public N and() { - return (N) V1NodeListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1NodeListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1NodeListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1NodeListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1NodeListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java index d654fdc297..3a879939d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1NodeSelectorBuilder extends V1NodeSelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeSelectorBuilder extends V1NodeSelectorFluentImpl implements VisitableBuilder{ public V1NodeSelectorBuilder() { this(false); } - public V1NodeSelectorBuilder(Boolean validationEnabled) { this(new V1NodeSelector(), validationEnabled); } - public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent) { this(fluent, false); } - - public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent, Boolean validationEnabled) { + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeSelector(), validationEnabled); } - - public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent, V1NodeSelector instance) { + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,V1NodeSelector instance) { this(fluent, instance, false); } - - public V1NodeSelectorBuilder( - V1NodeSelectorFluent fluent, V1NodeSelector instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,V1NodeSelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNodeSelectorTerms(instance.getNodeSelectorTerms()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeSelectorBuilder(V1NodeSelector instance) { - this(instance, false); + this(instance,false); } - - public V1NodeSelectorBuilder(V1NodeSelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeSelectorBuilder(V1NodeSelector instance,Boolean validationEnabled) { + this.fluent = this; this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeSelectorFluent fluent; Boolean validationEnabled; - public V1NodeSelector build() { V1NodeSelector buildable = new V1NodeSelector(); buildable.setNodeSelectorTerms(fluent.getNodeSelectorTerms()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java index 372dcc731a..792d0ce641 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java @@ -1,89 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NodeSelectorFluent> extends Fluent { - public A addToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item); - - public A setToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NodeSelectorFluent> extends Fluent{ + public A addToNodeSelectorTerms(Integer index,V1NodeSelectorTerm item); + public A setToNodeSelectorTerms(Integer index,V1NodeSelectorTerm item); public A addToNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items); - public A addAllToNodeSelectorTerms(Collection items); - - public A removeFromNodeSelectorTerms( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items); - + public A removeFromNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items); public A removeAllFromNodeSelectorTerms(Collection items); - public A removeMatchingFromNodeSelectorTerms(Predicate predicate); - + /** * This method has been deprecated, please use method buildNodeSelectorTerms instead. - * * @return The buildable object. */ @Deprecated public List getNodeSelectorTerms(); - public List buildNodeSelectorTerms(); - public V1NodeSelectorTerm buildNodeSelectorTerm(Integer index); - public V1NodeSelectorTerm buildFirstNodeSelectorTerm(); - public V1NodeSelectorTerm buildLastNodeSelectorTerm(); - - public V1NodeSelectorTerm buildMatchingNodeSelectorTerm( - Predicate predicate); - + public V1NodeSelectorTerm buildMatchingNodeSelectorTerm(Predicate predicate); public Boolean hasMatchingNodeSelectorTerm(Predicate predicate); - public A withNodeSelectorTerms(List nodeSelectorTerms); - - public A withNodeSelectorTerms( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms); - + public A withNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms); public Boolean hasNodeSelectorTerms(); - public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTerm(); - - public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTermLike( - V1NodeSelectorTerm item); - - public V1NodeSelectorFluent.NodeSelectorTermsNested setNewNodeSelectorTermLike( - Integer index, V1NodeSelectorTerm item); - + public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item); + public V1NodeSelectorFluent.NodeSelectorTermsNested setNewNodeSelectorTermLike(Integer index,V1NodeSelectorTerm item); public V1NodeSelectorFluent.NodeSelectorTermsNested editNodeSelectorTerm(Integer index); - public V1NodeSelectorFluent.NodeSelectorTermsNested editFirstNodeSelectorTerm(); - public V1NodeSelectorFluent.NodeSelectorTermsNested editLastNodeSelectorTerm(); - - public V1NodeSelectorFluent.NodeSelectorTermsNested editMatchingNodeSelectorTerm( - Predicate predicate); - - public interface NodeSelectorTermsNested - extends Nested, V1NodeSelectorTermFluent> { + public V1NodeSelectorFluent.NodeSelectorTermsNested editMatchingNodeSelectorTerm(Predicate predicate); + public interface NodeSelectorTermsNested extends Nested,V1NodeSelectorTermFluent>{ public N and(); - public N endNodeSelectorTerm(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java index 6c655ed8d1..c10ac5feae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java @@ -1,114 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeSelectorFluentImpl> extends BaseFluent - implements V1NodeSelectorFluent { - public V1NodeSelectorFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeSelectorFluentImpl> extends BaseFluent implements V1NodeSelectorFluent{ + public V1NodeSelectorFluentImpl() { + } public V1NodeSelectorFluentImpl(V1NodeSelector instance) { this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); - } + } private ArrayList nodeSelectorTerms; - - public A addToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item) { - if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); - } - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables - .get("nodeSelectorTerms") - .add(index >= 0 ? index : _visitables.get("nodeSelectorTerms").size(), builder); - this.nodeSelectorTerms.add(index >= 0 ? index : nodeSelectorTerms.size(), builder); - return (A) this; + public A addToNodeSelectorTerms(Integer index,V1NodeSelectorTerm item) { + if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(index >= 0 ? index : _visitables.get("nodeSelectorTerms").size(), builder);this.nodeSelectorTerms.add(index >= 0 ? index : nodeSelectorTerms.size(), builder); return (A)this; } - - public A setToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item) { - if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); - } + public A setToNodeSelectorTerms(Integer index,V1NodeSelectorTerm item) { + if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= _visitables.get("nodeSelectorTerms").size()) { - _visitables.get("nodeSelectorTerms").add(builder); - } else { - _visitables.get("nodeSelectorTerms").set(index, builder); - } - if (index < 0 || index >= nodeSelectorTerms.size()) { - nodeSelectorTerms.add(builder); - } else { - nodeSelectorTerms.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("nodeSelectorTerms").size()) { _visitables.get("nodeSelectorTerms").add(builder); } else { _visitables.get("nodeSelectorTerms").set(index, builder);} + if (index < 0 || index >= nodeSelectorTerms.size()) { nodeSelectorTerms.add(builder); } else { nodeSelectorTerms.set(index, builder);} + return (A)this; } - public A addToNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); - } - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").add(builder); - this.nodeSelectorTerms.add(builder); - } - return (A) this; + if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} + for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(builder);this.nodeSelectorTerms.add(builder);} return (A)this; } - public A addAllToNodeSelectorTerms(Collection items) { - if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); - } - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").add(builder); - this.nodeSelectorTerms.add(builder); - } - return (A) this; + if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} + for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(builder);this.nodeSelectorTerms.add(builder);} return (A)this; } - - public A removeFromNodeSelectorTerms( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").remove(builder); - if (this.nodeSelectorTerms != null) { - this.nodeSelectorTerms.remove(builder); - } - } - return (A) this; + public A removeFromNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { + for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").remove(builder);if (this.nodeSelectorTerms != null) {this.nodeSelectorTerms.remove(builder);}} return (A)this; } - public A removeAllFromNodeSelectorTerms(Collection items) { - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").remove(builder); - if (this.nodeSelectorTerms != null) { - this.nodeSelectorTerms.remove(builder); - } - } - return (A) this; + for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").remove(builder);if (this.nodeSelectorTerms != null) {this.nodeSelectorTerms.remove(builder);}} return (A)this; } - public A removeMatchingFromNodeSelectorTerms(Predicate predicate) { if (nodeSelectorTerms == null) return (A) this; final Iterator each = nodeSelectorTerms.iterator(); @@ -120,180 +63,111 @@ public A removeMatchingFromNodeSelectorTerms(Predicate getNodeSelectorTerms() { return nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; } - public List buildNodeSelectorTerms() { return nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; } - public V1NodeSelectorTerm buildNodeSelectorTerm(Integer index) { return this.nodeSelectorTerms.get(index).build(); } - public V1NodeSelectorTerm buildFirstNodeSelectorTerm() { return this.nodeSelectorTerms.get(0).build(); } - public V1NodeSelectorTerm buildLastNodeSelectorTerm() { return this.nodeSelectorTerms.get(nodeSelectorTerms.size() - 1).build(); } - - public V1NodeSelectorTerm buildMatchingNodeSelectorTerm( - Predicate predicate) { - for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NodeSelectorTerm buildMatchingNodeSelectorTerm(Predicate predicate) { + for (V1NodeSelectorTermBuilder item: nodeSelectorTerms) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingNodeSelectorTerm(Predicate predicate) { - for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NodeSelectorTermBuilder item: nodeSelectorTerms) { if(predicate.test(item)){ return true;} } return false; } - public A withNodeSelectorTerms(List nodeSelectorTerms) { - if (this.nodeSelectorTerms != null) { - _visitables.get("nodeSelectorTerms").removeAll(this.nodeSelectorTerms); - } - if (nodeSelectorTerms != null) { - this.nodeSelectorTerms = new ArrayList(); - for (V1NodeSelectorTerm item : nodeSelectorTerms) { - this.addToNodeSelectorTerms(item); - } - } else { - this.nodeSelectorTerms = null; - } - return (A) this; + if (this.nodeSelectorTerms != null) { _visitables.get("nodeSelectorTerms").removeAll(this.nodeSelectorTerms);} + if (nodeSelectorTerms != null) {this.nodeSelectorTerms = new ArrayList(); for (V1NodeSelectorTerm item : nodeSelectorTerms){this.addToNodeSelectorTerms(item);}} else { this.nodeSelectorTerms = null;} return (A) this; } - - public A withNodeSelectorTerms( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms) { - if (this.nodeSelectorTerms != null) { - this.nodeSelectorTerms.clear(); - } - if (nodeSelectorTerms != null) { - for (V1NodeSelectorTerm item : nodeSelectorTerms) { - this.addToNodeSelectorTerms(item); - } - } - return (A) this; + public A withNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms) { + if (this.nodeSelectorTerms != null) {this.nodeSelectorTerms.clear();} + if (nodeSelectorTerms != null) {for (V1NodeSelectorTerm item :nodeSelectorTerms){ this.addToNodeSelectorTerms(item);}} return (A) this; } - public Boolean hasNodeSelectorTerms() { return nodeSelectorTerms != null && !nodeSelectorTerms.isEmpty(); } - public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTerm() { return new V1NodeSelectorFluentImpl.NodeSelectorTermsNestedImpl(); } - - public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTermLike( - V1NodeSelectorTerm item) { + public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item) { return new V1NodeSelectorFluentImpl.NodeSelectorTermsNestedImpl(-1, item); } - - public V1NodeSelectorFluent.NodeSelectorTermsNested setNewNodeSelectorTermLike( - Integer index, V1NodeSelectorTerm item) { + public V1NodeSelectorFluent.NodeSelectorTermsNested setNewNodeSelectorTermLike(Integer index,V1NodeSelectorTerm item) { return new V1NodeSelectorFluentImpl.NodeSelectorTermsNestedImpl(index, item); } - public V1NodeSelectorFluent.NodeSelectorTermsNested editNodeSelectorTerm(Integer index) { - if (nodeSelectorTerms.size() <= index) - throw new RuntimeException("Can't edit nodeSelectorTerms. Index exceeds size."); + if (nodeSelectorTerms.size() <= index) throw new RuntimeException("Can't edit nodeSelectorTerms. Index exceeds size."); return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); } - public V1NodeSelectorFluent.NodeSelectorTermsNested editFirstNodeSelectorTerm() { - if (nodeSelectorTerms.size() == 0) - throw new RuntimeException("Can't edit first nodeSelectorTerms. The list is empty."); + if (nodeSelectorTerms.size() == 0) throw new RuntimeException("Can't edit first nodeSelectorTerms. The list is empty."); return setNewNodeSelectorTermLike(0, buildNodeSelectorTerm(0)); } - public V1NodeSelectorFluent.NodeSelectorTermsNested editLastNodeSelectorTerm() { int index = nodeSelectorTerms.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last nodeSelectorTerms. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last nodeSelectorTerms. The list is empty."); return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); } - - public V1NodeSelectorFluent.NodeSelectorTermsNested editMatchingNodeSelectorTerm( - Predicate predicate) { + public V1NodeSelectorFluent.NodeSelectorTermsNested editMatchingNodeSelectorTerm(Predicate predicate) { int index = -1; - for (int i = 0; i < nodeSelectorTerms.size(); i++) { - if (predicate.test(nodeSelectorTerms.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching nodeSelectorTerms. No match found."); + for (int i=0;i - extends V1NodeSelectorTermFluentImpl> - implements V1NodeSelectorFluent.NodeSelectorTermsNested, Nested { - NodeSelectorTermsNestedImpl(Integer index, V1NodeSelectorTerm item) { + class NodeSelectorTermsNestedImpl extends V1NodeSelectorTermFluentImpl> implements V1NodeSelectorFluent.NodeSelectorTermsNested,Nested{ + NodeSelectorTermsNestedImpl(Integer index,V1NodeSelectorTerm item) { this.index = index; this.builder = new V1NodeSelectorTermBuilder(this, item); } - NodeSelectorTermsNestedImpl() { this.index = -1; this.builder = new V1NodeSelectorTermBuilder(this); } - V1NodeSelectorTermBuilder builder; Integer index; - public N and() { - return (N) V1NodeSelectorFluentImpl.this.setToNodeSelectorTerms(index, builder.build()); + return (N) V1NodeSelectorFluentImpl.this.setToNodeSelectorTerms(index,builder.build()); } - public N endNodeSelectorTerm() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java index c159a0fae8..9f4fbb417a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1NodeSelectorRequirementBuilder - extends V1NodeSelectorRequirementFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeSelectorRequirementBuilder extends V1NodeSelectorRequirementFluentImpl implements VisitableBuilder{ public V1NodeSelectorRequirementBuilder() { this(false); } - public V1NodeSelectorRequirementBuilder(Boolean validationEnabled) { this(new V1NodeSelectorRequirement(), validationEnabled); } - public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent) { this(fluent, false); } - - public V1NodeSelectorRequirementBuilder( - V1NodeSelectorRequirementFluent fluent, Boolean validationEnabled) { + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeSelectorRequirement(), validationEnabled); } - - public V1NodeSelectorRequirementBuilder( - V1NodeSelectorRequirementFluent fluent, V1NodeSelectorRequirement instance) { + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,V1NodeSelectorRequirement instance) { this(fluent, instance, false); } - - public V1NodeSelectorRequirementBuilder( - V1NodeSelectorRequirementFluent fluent, - V1NodeSelectorRequirement instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,V1NodeSelectorRequirement instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKey(instance.getKey()); fluent.withOperator(instance.getOperator()); fluent.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirement instance) { - this(instance, false); + this(instance,false); } - - public V1NodeSelectorRequirementBuilder( - V1NodeSelectorRequirement instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirement instance,Boolean validationEnabled) { + this.fluent = this; this.withKey(instance.getKey()); this.withOperator(instance.getOperator()); this.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeSelectorRequirementFluent fluent; Boolean validationEnabled; - public V1NodeSelectorRequirement build() { V1NodeSelectorRequirement buildable = new V1NodeSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -79,4 +50,5 @@ public V1NodeSelectorRequirement build() { buildable.setValues(fluent.getValues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java index d687cc643f..5e2ac776bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java @@ -1,64 +1,38 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1NodeSelectorRequirementFluent> - extends Fluent { + /** + * Generated + */ +public interface V1NodeSelectorRequirementFluent> extends Fluent{ public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public String getOperator(); - public A withOperator(String operator); - public Boolean hasOperator(); - - public A addToValues(Integer index, String item); - - public A setToValues(Integer index, String item); - + public A addToValues(Integer index,String item); + public A setToValues(Integer index,String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); - public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(Collection items); - public List getValues(); - public String getValue(Integer index); - public String getFirstValue(); - public String getLastValue(); - public String getMatchingValue(Predicate predicate); - public Boolean hasMatchingValue(Predicate predicate); - public A withValues(List values); - public A withValues(java.lang.String... values); - public Boolean hasValues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java index a486f25ec5..1dd59482f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java @@ -1,213 +1,123 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeSelectorRequirementFluentImpl> - extends BaseFluent implements V1NodeSelectorRequirementFluent { - public V1NodeSelectorRequirementFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeSelectorRequirementFluentImpl> extends BaseFluent implements V1NodeSelectorRequirementFluent{ + public V1NodeSelectorRequirementFluentImpl() { + } public V1NodeSelectorRequirementFluentImpl(V1NodeSelectorRequirement instance) { this.withKey(instance.getKey()); this.withOperator(instance.getOperator()); this.withValues(instance.getValues()); - } + } private String key; private String operator; private List values; - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + this.operator=operator; return (A) this; } - public Boolean hasOperator() { return this.operator != null; } - - public A addToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } + public A addToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} this.values.add(index, item); - return (A) this; + return (A)this; } - - public A setToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } - this.values.set(index, item); - return (A) this; + public A setToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.set(index, item); return (A)this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A addAllToValues(Collection items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A removeFromValues(java.lang.String... items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public A removeAllFromValues(Collection items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public List getValues() { return this.values; } - public String getValue(Integer index) { return this.values.get(index); } - public String getFirstValue() { return this.values.get(0); } - public String getLastValue() { return this.values.get(values.size() - 1); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: values) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: values) { if(predicate.test(item)){ return true;} } return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + if (values != null) {this.values = new ArrayList(); for (String item : values){this.addToValues(item);}} else { this.values = null;} return (A) this; } - public A withValues(java.lang.String... values) { - if (this.values != null) { - this.values.clear(); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + if (this.values != null) {this.values.clear();} + if (values != null) {for (String item :values){ this.addToValues(item);}} return (A) this; } - public Boolean hasValues() { return values != null && !values.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeSelectorRequirementFluentImpl that = (V1NodeSelectorRequirementFluentImpl) o; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (operator != null ? !operator.equals(that.operator) : that.operator != null) return false; - if (values != null ? !values.equals(that.values) : that.values != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (operator != null ? !operator.equals(that.operator) :that.operator != null) return false; + if (values != null ? !values.equals(that.values) :that.values != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(key, operator, values, super.hashCode()); + return java.util.Objects.hash(key, operator, values, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (operator != null) { - sb.append("operator:"); - sb.append(operator + ","); - } - if (values != null && !values.isEmpty()) { - sb.append("values:"); - sb.append(values); - } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java index 30d4f696f7..77fd50298f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java @@ -1,73 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NodeSelectorTermBuilder - extends V1NodeSelectorTermFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluentImpl implements VisitableBuilder{ public V1NodeSelectorTermBuilder() { this(false); } - public V1NodeSelectorTermBuilder(Boolean validationEnabled) { this(new V1NodeSelectorTerm(), validationEnabled); } - public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent) { this(fluent, false); } - - public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent, Boolean validationEnabled) { + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeSelectorTerm(), validationEnabled); } - - public V1NodeSelectorTermBuilder( - V1NodeSelectorTermFluent fluent, V1NodeSelectorTerm instance) { + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,V1NodeSelectorTerm instance) { this(fluent, instance, false); } - - public V1NodeSelectorTermBuilder( - V1NodeSelectorTermFluent fluent, V1NodeSelectorTerm instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,V1NodeSelectorTerm instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMatchExpressions(instance.getMatchExpressions()); fluent.withMatchFields(instance.getMatchFields()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance) { - this(instance, false); + this(instance,false); } - - public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance,Boolean validationEnabled) { + this.fluent = this; this.withMatchExpressions(instance.getMatchExpressions()); this.withMatchFields(instance.getMatchFields()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeSelectorTermFluent fluent; Boolean validationEnabled; - public V1NodeSelectorTerm build() { V1NodeSelectorTerm buildable = new V1NodeSelectorTerm(); buildable.setMatchExpressions(fluent.getMatchExpressions()); buildable.setMatchFields(fluent.getMatchFields()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java index d202f7ba9b..448e074a5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java @@ -1,160 +1,90 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NodeSelectorTermFluent> extends Fluent { - public A addToMatchExpressions(Integer index, V1NodeSelectorRequirement item); - - public A setToMatchExpressions(Integer index, V1NodeSelectorRequirement item); - - public A addToMatchExpressions( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1NodeSelectorTermFluent> extends Fluent{ + public A addToMatchExpressions(Integer index,V1NodeSelectorRequirement item); + public A setToMatchExpressions(Integer index,V1NodeSelectorRequirement item); + public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); public A addAllToMatchExpressions(Collection items); - - public A removeFromMatchExpressions( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - + public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); public A removeAllFromMatchExpressions(Collection items); - - public A removeMatchingFromMatchExpressions( - Predicate predicate); - + public A removeMatchingFromMatchExpressions(Predicate predicate); + /** * This method has been deprecated, please use method buildMatchExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchExpressions(); - public List buildMatchExpressions(); - public V1NodeSelectorRequirement buildMatchExpression(Integer index); - public V1NodeSelectorRequirement buildFirstMatchExpression(); - public V1NodeSelectorRequirement buildLastMatchExpression(); - - public V1NodeSelectorRequirement buildMatchingMatchExpression( - Predicate predicate); - + public V1NodeSelectorRequirement buildMatchingMatchExpression(Predicate predicate); public Boolean hasMatchingMatchExpression(Predicate predicate); - public A withMatchExpressions(List matchExpressions); - - public A withMatchExpressions( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions); - + public A withMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions); public Boolean hasMatchExpressions(); - public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpression(); - - public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpressionLike( - V1NodeSelectorRequirement item); - - public V1NodeSelectorTermFluent.MatchExpressionsNested setNewMatchExpressionLike( - Integer index, V1NodeSelectorRequirement item); - + public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item); + public V1NodeSelectorTermFluent.MatchExpressionsNested setNewMatchExpressionLike(Integer index,V1NodeSelectorRequirement item); public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchExpression(Integer index); - public V1NodeSelectorTermFluent.MatchExpressionsNested editFirstMatchExpression(); - public V1NodeSelectorTermFluent.MatchExpressionsNested editLastMatchExpression(); - - public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchingMatchExpression( - Predicate predicate); - - public A addToMatchFields(Integer index, V1NodeSelectorRequirement item); - - public A setToMatchFields(Integer index, V1NodeSelectorRequirement item); - + public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchingMatchExpression(Predicate predicate); + public A addToMatchFields(Integer index,V1NodeSelectorRequirement item); + public A setToMatchFields(Integer index,V1NodeSelectorRequirement item); public A addToMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - public A addAllToMatchFields(Collection items); - - public A removeFromMatchFields( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - + public A removeFromMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); public A removeAllFromMatchFields(Collection items); - public A removeMatchingFromMatchFields(Predicate predicate); - + /** * This method has been deprecated, please use method buildMatchFields instead. - * * @return The buildable object. */ @Deprecated public List getMatchFields(); - public List buildMatchFields(); - public V1NodeSelectorRequirement buildMatchField(Integer index); - public V1NodeSelectorRequirement buildFirstMatchField(); - public V1NodeSelectorRequirement buildLastMatchField(); - - public V1NodeSelectorRequirement buildMatchingMatchField( - Predicate predicate); - + public V1NodeSelectorRequirement buildMatchingMatchField(Predicate predicate); public Boolean hasMatchingMatchField(Predicate predicate); - public A withMatchFields(List matchFields); - - public A withMatchFields( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields); - + public A withMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields); public Boolean hasMatchFields(); - public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchField(); - - public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchFieldLike( - V1NodeSelectorRequirement item); - - public V1NodeSelectorTermFluent.MatchFieldsNested setNewMatchFieldLike( - Integer index, V1NodeSelectorRequirement item); - + public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item); + public V1NodeSelectorTermFluent.MatchFieldsNested setNewMatchFieldLike(Integer index,V1NodeSelectorRequirement item); public V1NodeSelectorTermFluent.MatchFieldsNested editMatchField(Integer index); - public V1NodeSelectorTermFluent.MatchFieldsNested editFirstMatchField(); - public V1NodeSelectorTermFluent.MatchFieldsNested editLastMatchField(); - - public V1NodeSelectorTermFluent.MatchFieldsNested editMatchingMatchField( - Predicate predicate); - - public interface MatchExpressionsNested - extends Nested, - V1NodeSelectorRequirementFluent> { + public V1NodeSelectorTermFluent.MatchFieldsNested editMatchingMatchField(Predicate predicate); + public interface MatchExpressionsNested extends Nested,V1NodeSelectorRequirementFluent>{ public N and(); - public N endMatchExpression(); + } - - public interface MatchFieldsNested - extends Nested, - V1NodeSelectorRequirementFluent> { + public interface MatchFieldsNested extends Nested,V1NodeSelectorRequirementFluent>{ public N and(); - public N endMatchField(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java index 371cd61c6f..f9630213be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java @@ -1,120 +1,61 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeSelectorTermFluentImpl> - extends BaseFluent implements V1NodeSelectorTermFluent { - public V1NodeSelectorTermFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeSelectorTermFluentImpl> extends BaseFluent implements V1NodeSelectorTermFluent{ + public V1NodeSelectorTermFluentImpl() { + } public V1NodeSelectorTermFluentImpl(V1NodeSelectorTerm instance) { this.withMatchExpressions(instance.getMatchExpressions()); this.withMatchFields(instance.getMatchFields()); - } + } private ArrayList matchExpressions; private ArrayList matchFields; - - public A addToMatchExpressions(Integer index, V1NodeSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables - .get("matchExpressions") - .add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder); - this.matchExpressions.add(index >= 0 ? index : matchExpressions.size(), builder); - return (A) this; + public A addToMatchExpressions(Integer index,V1NodeSelectorRequirement item) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder);this.matchExpressions.add(index >= 0 ? index : matchExpressions.size(), builder); return (A)this; } - - public A setToMatchExpressions(Integer index, V1NodeSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } + public A setToMatchExpressions(Integer index,V1NodeSelectorRequirement item) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= _visitables.get("matchExpressions").size()) { - _visitables.get("matchExpressions").add(builder); - } else { - _visitables.get("matchExpressions").set(index, builder); - } - if (index < 0 || index >= matchExpressions.size()) { - matchExpressions.add(builder); - } else { - matchExpressions.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("matchExpressions").size()) { _visitables.get("matchExpressions").add(builder); } else { _visitables.get("matchExpressions").set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { matchExpressions.add(builder); } else { matchExpressions.set(index, builder);} + return (A)this; } - - public A addToMatchExpressions( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; + public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; } - public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; } - - public A removeFromMatchExpressions( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - if (this.matchExpressions != null) { - this.matchExpressions.remove(builder); - } - } - return (A) this; + public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder);if (this.matchExpressions != null) {this.matchExpressions.remove(builder);}} return (A)this; } - public A removeAllFromMatchExpressions(Collection items) { - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - if (this.matchExpressions != null) { - this.matchExpressions.remove(builder); - } - } - return (A) this; + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder);if (this.matchExpressions != null) {this.matchExpressions.remove(builder);}} return (A)this; } - - public A removeMatchingFromMatchExpressions( - Predicate predicate) { + public A removeMatchingFromMatchExpressions(Predicate predicate) { if (matchExpressions == null) return (A) this; final Iterator each = matchExpressions.iterator(); final List visitables = _visitables.get("matchExpressions"); @@ -125,211 +66,101 @@ public A removeMatchingFromMatchExpressions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildMatchExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public List buildMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public V1NodeSelectorRequirement buildMatchExpression(Integer index) { return this.matchExpressions.get(index).build(); } - public V1NodeSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } - public V1NodeSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - - public V1NodeSelectorRequirement buildMatchingMatchExpression( - Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NodeSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item: matchExpressions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingMatchExpression(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NodeSelectorRequirementBuilder item: matchExpressions) { if(predicate.test(item)){ return true;} } return false; } - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - _visitables.get("matchExpressions").removeAll(this.matchExpressions); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1NodeSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; - } - return (A) this; + if (this.matchExpressions != null) { _visitables.get("matchExpressions").removeAll(this.matchExpressions);} + if (matchExpressions != null) {this.matchExpressions = new ArrayList(); for (V1NodeSelectorRequirement item : matchExpressions){this.addToMatchExpressions(item);}} else { this.matchExpressions = null;} return (A) this; } - - public A withMatchExpressions( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - } - if (matchExpressions != null) { - for (V1NodeSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } - return (A) this; + public A withMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) {this.matchExpressions.clear();} + if (matchExpressions != null) {for (V1NodeSelectorRequirement item :matchExpressions){ this.addToMatchExpressions(item);}} return (A) this; } - public Boolean hasMatchExpressions() { return matchExpressions != null && !matchExpressions.isEmpty(); } - public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpression() { return new V1NodeSelectorTermFluentImpl.MatchExpressionsNestedImpl(); } - - public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpressionLike( - V1NodeSelectorRequirement item) { + public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item) { return new V1NodeSelectorTermFluentImpl.MatchExpressionsNestedImpl(-1, item); } - - public V1NodeSelectorTermFluent.MatchExpressionsNested setNewMatchExpressionLike( - Integer index, V1NodeSelectorRequirement item) { + public V1NodeSelectorTermFluent.MatchExpressionsNested setNewMatchExpressionLike(Integer index,V1NodeSelectorRequirement item) { return new V1NodeSelectorTermFluentImpl.MatchExpressionsNestedImpl(index, item); } - public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchExpression(Integer index) { - if (matchExpressions.size() <= index) - throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); + if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public V1NodeSelectorTermFluent.MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) - throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); + if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); return setNewMatchExpressionLike(0, buildMatchExpression(0)); } - public V1NodeSelectorTermFluent.MatchExpressionsNested editLastMatchExpression() { int index = matchExpressions.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - - public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchingMatchExpression( - Predicate predicate) { + public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; - for (int i = 0; i < matchExpressions.size(); i++) { - if (predicate.test(matchExpressions.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching matchExpressions. No match found."); + for (int i=0;i(); - } - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables - .get("matchFields") - .add(index >= 0 ? index : _visitables.get("matchFields").size(), builder); - this.matchFields.add(index >= 0 ? index : matchFields.size(), builder); - return (A) this; + public A addToMatchFields(Integer index,V1NodeSelectorRequirement item) { + if (this.matchFields == null) {this.matchFields = new ArrayList();} + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(index >= 0 ? index : _visitables.get("matchFields").size(), builder);this.matchFields.add(index >= 0 ? index : matchFields.size(), builder); return (A)this; } - - public A setToMatchFields(Integer index, V1NodeSelectorRequirement item) { - if (this.matchFields == null) { - this.matchFields = new ArrayList(); - } + public A setToMatchFields(Integer index,V1NodeSelectorRequirement item) { + if (this.matchFields == null) {this.matchFields = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= _visitables.get("matchFields").size()) { - _visitables.get("matchFields").add(builder); - } else { - _visitables.get("matchFields").set(index, builder); - } - if (index < 0 || index >= matchFields.size()) { - matchFields.add(builder); - } else { - matchFields.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("matchFields").size()) { _visitables.get("matchFields").add(builder); } else { _visitables.get("matchFields").set(index, builder);} + if (index < 0 || index >= matchFields.size()) { matchFields.add(builder); } else { matchFields.set(index, builder);} + return (A)this; } - - public A addToMatchFields( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchFields == null) { - this.matchFields = new ArrayList(); - } - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").add(builder); - this.matchFields.add(builder); - } - return (A) this; + public A addToMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { + if (this.matchFields == null) {this.matchFields = new ArrayList();} + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(builder);this.matchFields.add(builder);} return (A)this; } - public A addAllToMatchFields(Collection items) { - if (this.matchFields == null) { - this.matchFields = new ArrayList(); - } - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").add(builder); - this.matchFields.add(builder); - } - return (A) this; + if (this.matchFields == null) {this.matchFields = new ArrayList();} + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(builder);this.matchFields.add(builder);} return (A)this; } - - public A removeFromMatchFields( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").remove(builder); - if (this.matchFields != null) { - this.matchFields.remove(builder); - } - } - return (A) this; + public A removeFromMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").remove(builder);if (this.matchFields != null) {this.matchFields.remove(builder);}} return (A)this; } - public A removeAllFromMatchFields(Collection items) { - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").remove(builder); - if (this.matchFields != null) { - this.matchFields.remove(builder); - } - } - return (A) this; + for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").remove(builder);if (this.matchFields != null) {this.matchFields.remove(builder);}} return (A)this; } - public A removeMatchingFromMatchFields(Predicate predicate) { if (matchFields == null) return (A) this; final Iterator each = matchFields.iterator(); @@ -341,210 +172,132 @@ public A removeMatchingFromMatchFields(Predicate getMatchFields() { return matchFields != null ? build(matchFields) : null; } - public List buildMatchFields() { return matchFields != null ? build(matchFields) : null; } - public V1NodeSelectorRequirement buildMatchField(Integer index) { return this.matchFields.get(index).build(); } - public V1NodeSelectorRequirement buildFirstMatchField() { return this.matchFields.get(0).build(); } - public V1NodeSelectorRequirement buildLastMatchField() { return this.matchFields.get(matchFields.size() - 1).build(); } - - public V1NodeSelectorRequirement buildMatchingMatchField( - Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchFields) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NodeSelectorRequirement buildMatchingMatchField(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item: matchFields) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingMatchField(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchFields) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NodeSelectorRequirementBuilder item: matchFields) { if(predicate.test(item)){ return true;} } return false; } - public A withMatchFields(List matchFields) { - if (this.matchFields != null) { - _visitables.get("matchFields").removeAll(this.matchFields); - } - if (matchFields != null) { - this.matchFields = new ArrayList(); - for (V1NodeSelectorRequirement item : matchFields) { - this.addToMatchFields(item); - } - } else { - this.matchFields = null; - } - return (A) this; + if (this.matchFields != null) { _visitables.get("matchFields").removeAll(this.matchFields);} + if (matchFields != null) {this.matchFields = new ArrayList(); for (V1NodeSelectorRequirement item : matchFields){this.addToMatchFields(item);}} else { this.matchFields = null;} return (A) this; } - - public A withMatchFields( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields) { - if (this.matchFields != null) { - this.matchFields.clear(); - } - if (matchFields != null) { - for (V1NodeSelectorRequirement item : matchFields) { - this.addToMatchFields(item); - } - } - return (A) this; + public A withMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields) { + if (this.matchFields != null) {this.matchFields.clear();} + if (matchFields != null) {for (V1NodeSelectorRequirement item :matchFields){ this.addToMatchFields(item);}} return (A) this; } - public Boolean hasMatchFields() { return matchFields != null && !matchFields.isEmpty(); } - public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchField() { return new V1NodeSelectorTermFluentImpl.MatchFieldsNestedImpl(); } - - public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchFieldLike( - V1NodeSelectorRequirement item) { + public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item) { return new V1NodeSelectorTermFluentImpl.MatchFieldsNestedImpl(-1, item); } - - public V1NodeSelectorTermFluent.MatchFieldsNested setNewMatchFieldLike( - Integer index, V1NodeSelectorRequirement item) { + public V1NodeSelectorTermFluent.MatchFieldsNested setNewMatchFieldLike(Integer index,V1NodeSelectorRequirement item) { return new V1NodeSelectorTermFluentImpl.MatchFieldsNestedImpl(index, item); } - public V1NodeSelectorTermFluent.MatchFieldsNested editMatchField(Integer index) { - if (matchFields.size() <= index) - throw new RuntimeException("Can't edit matchFields. Index exceeds size."); + if (matchFields.size() <= index) throw new RuntimeException("Can't edit matchFields. Index exceeds size."); return setNewMatchFieldLike(index, buildMatchField(index)); } - public V1NodeSelectorTermFluent.MatchFieldsNested editFirstMatchField() { - if (matchFields.size() == 0) - throw new RuntimeException("Can't edit first matchFields. The list is empty."); + if (matchFields.size() == 0) throw new RuntimeException("Can't edit first matchFields. The list is empty."); return setNewMatchFieldLike(0, buildMatchField(0)); } - public V1NodeSelectorTermFluent.MatchFieldsNested editLastMatchField() { int index = matchFields.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last matchFields. The list is empty."); return setNewMatchFieldLike(index, buildMatchField(index)); } - - public V1NodeSelectorTermFluent.MatchFieldsNested editMatchingMatchField( - Predicate predicate) { + public V1NodeSelectorTermFluent.MatchFieldsNested editMatchingMatchField(Predicate predicate) { int index = -1; - for (int i = 0; i < matchFields.size(); i++) { - if (predicate.test(matchFields.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1NodeSelectorRequirementFluentImpl< - V1NodeSelectorTermFluent.MatchExpressionsNested> - implements V1NodeSelectorTermFluent.MatchExpressionsNested, Nested { - MatchExpressionsNestedImpl(Integer index, V1NodeSelectorRequirement item) { + class MatchExpressionsNestedImpl extends V1NodeSelectorRequirementFluentImpl> implements V1NodeSelectorTermFluent.MatchExpressionsNested,Nested{ + MatchExpressionsNestedImpl(Integer index,V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } - MatchExpressionsNestedImpl() { this.index = -1; this.builder = new V1NodeSelectorRequirementBuilder(this); } - V1NodeSelectorRequirementBuilder builder; Integer index; - public N and() { - return (N) V1NodeSelectorTermFluentImpl.this.setToMatchExpressions(index, builder.build()); + return (N) V1NodeSelectorTermFluentImpl.this.setToMatchExpressions(index,builder.build()); } - public N endMatchExpression() { return and(); } + } - - class MatchFieldsNestedImpl - extends V1NodeSelectorRequirementFluentImpl> - implements V1NodeSelectorTermFluent.MatchFieldsNested, Nested { - MatchFieldsNestedImpl(Integer index, V1NodeSelectorRequirement item) { + class MatchFieldsNestedImpl extends V1NodeSelectorRequirementFluentImpl> implements V1NodeSelectorTermFluent.MatchFieldsNested,Nested{ + MatchFieldsNestedImpl(Integer index,V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } - MatchFieldsNestedImpl() { this.index = -1; this.builder = new V1NodeSelectorRequirementBuilder(this); } - V1NodeSelectorRequirementBuilder builder; Integer index; - public N and() { - return (N) V1NodeSelectorTermFluentImpl.this.setToMatchFields(index, builder.build()); + return (N) V1NodeSelectorTermFluentImpl.this.setToMatchFields(index,builder.build()); } - public N endMatchField() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java index 9845e82d69..897ff3c1e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeSpecBuilder extends V1NodeSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeSpecBuilder extends V1NodeSpecFluentImpl implements VisitableBuilder{ public V1NodeSpecBuilder() { this(false); } - public V1NodeSpecBuilder(Boolean validationEnabled) { this(new V1NodeSpec(), validationEnabled); } - public V1NodeSpecBuilder(V1NodeSpecFluent fluent) { this(fluent, false); } - - public V1NodeSpecBuilder(V1NodeSpecFluent fluent, Boolean validationEnabled) { + public V1NodeSpecBuilder(V1NodeSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeSpec(), validationEnabled); } - - public V1NodeSpecBuilder(V1NodeSpecFluent fluent, V1NodeSpec instance) { + public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance) { this(fluent, instance, false); } - - public V1NodeSpecBuilder( - V1NodeSpecFluent fluent, V1NodeSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConfigSource(instance.getConfigSource()); fluent.withExternalID(instance.getExternalID()); @@ -53,15 +34,13 @@ public V1NodeSpecBuilder( fluent.withUnschedulable(instance.getUnschedulable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeSpecBuilder(V1NodeSpec instance) { - this(instance, false); + this(instance,false); } - - public V1NodeSpecBuilder(V1NodeSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeSpecBuilder(V1NodeSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withConfigSource(instance.getConfigSource()); this.withExternalID(instance.getExternalID()); @@ -76,12 +55,10 @@ public V1NodeSpecBuilder(V1NodeSpec instance, Boolean validationEnabled) { this.withUnschedulable(instance.getUnschedulable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeSpecFluent fluent; Boolean validationEnabled; - public V1NodeSpec build() { V1NodeSpec buildable = new V1NodeSpec(); buildable.setConfigSource(fluent.getConfigSource()); @@ -93,4 +70,5 @@ public V1NodeSpec build() { buildable.setUnschedulable(fluent.getUnschedulable()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java index db4b4960f8..920fc399db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java @@ -1,171 +1,104 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NodeSpecFluent> extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1NodeSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildConfigSource instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getConfigSource(); - public V1NodeConfigSource buildConfigSource(); - public A withConfigSource(V1NodeConfigSource configSource); - public Boolean hasConfigSource(); - public V1NodeSpecFluent.ConfigSourceNested withNewConfigSource(); - public V1NodeSpecFluent.ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item); - public V1NodeSpecFluent.ConfigSourceNested editConfigSource(); - public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSource(); - public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item); - public String getExternalID(); - public A withExternalID(String externalID); - public Boolean hasExternalID(); - public String getPodCIDR(); - public A withPodCIDR(String podCIDR); - public Boolean hasPodCIDR(); - - public A addToPodCIDRs(Integer index, String item); - - public A setToPodCIDRs(Integer index, String item); - + public A addToPodCIDRs(Integer index,String item); + public A setToPodCIDRs(Integer index,String item); public A addToPodCIDRs(java.lang.String... items); - public A addAllToPodCIDRs(Collection items); - public A removeFromPodCIDRs(java.lang.String... items); - public A removeAllFromPodCIDRs(Collection items); - public List getPodCIDRs(); - public String getPodCIDR(Integer index); - public String getFirstPodCIDR(); - public String getLastPodCIDR(); - public String getMatchingPodCIDR(Predicate predicate); - public Boolean hasMatchingPodCIDR(Predicate predicate); - public A withPodCIDRs(List podCIDRs); - public A withPodCIDRs(java.lang.String... podCIDRs); - public Boolean hasPodCIDRs(); - public String getProviderID(); - public A withProviderID(String providerID); - public Boolean hasProviderID(); - - public A addToTaints(Integer index, V1Taint item); - - public A setToTaints(Integer index, V1Taint item); - + public A addToTaints(Integer index,V1Taint item); + public A setToTaints(Integer index,V1Taint item); public A addToTaints(io.kubernetes.client.openapi.models.V1Taint... items); - public A addAllToTaints(Collection items); - public A removeFromTaints(io.kubernetes.client.openapi.models.V1Taint... items); - public A removeAllFromTaints(Collection items); - public A removeMatchingFromTaints(Predicate predicate); - + /** * This method has been deprecated, please use method buildTaints instead. - * * @return The buildable object. */ @Deprecated public List getTaints(); - public List buildTaints(); - public V1Taint buildTaint(Integer index); - public V1Taint buildFirstTaint(); - public V1Taint buildLastTaint(); - public V1Taint buildMatchingTaint(Predicate predicate); - public Boolean hasMatchingTaint(Predicate predicate); - public A withTaints(List taints); - public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints); - public Boolean hasTaints(); - public V1NodeSpecFluent.TaintsNested addNewTaint(); - public V1NodeSpecFluent.TaintsNested addNewTaintLike(V1Taint item); - - public V1NodeSpecFluent.TaintsNested setNewTaintLike(Integer index, V1Taint item); - + public V1NodeSpecFluent.TaintsNested setNewTaintLike(Integer index,V1Taint item); public V1NodeSpecFluent.TaintsNested editTaint(Integer index); - public V1NodeSpecFluent.TaintsNested editFirstTaint(); - public V1NodeSpecFluent.TaintsNested editLastTaint(); - public V1NodeSpecFluent.TaintsNested editMatchingTaint(Predicate predicate); - public Boolean getUnschedulable(); - public A withUnschedulable(Boolean unschedulable); - public Boolean hasUnschedulable(); - public A withUnschedulable(); - - public interface ConfigSourceNested - extends Nested, V1NodeConfigSourceFluent> { + public interface ConfigSourceNested extends Nested,V1NodeConfigSourceFluent>{ public N and(); - public N endConfigSource(); + } - - public interface TaintsNested - extends Nested, V1TaintFluent> { + public interface TaintsNested extends Nested,V1TaintFluent>{ public N and(); - public N endTaint(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java index 570b10ca7b..005e12a1b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeSpecFluentImpl> extends BaseFluent - implements V1NodeSpecFluent { - public V1NodeSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeSpecFluentImpl> extends BaseFluent implements V1NodeSpecFluent{ + public V1NodeSpecFluentImpl() { + } public V1NodeSpecFluentImpl(V1NodeSpec instance) { this.withConfigSource(instance.getConfigSource()); @@ -40,8 +36,8 @@ public V1NodeSpecFluentImpl(V1NodeSpec instance) { this.withTaints(instance.getTaints()); this.withUnschedulable(instance.getUnschedulable()); - } + } private V1NodeConfigSourceBuilder configSource; private String externalID; private String podCIDR; @@ -49,287 +45,143 @@ public V1NodeSpecFluentImpl(V1NodeSpec instance) { private String providerID; private ArrayList taints; private Boolean unschedulable; - + /** * This method has been deprecated, please use method buildConfigSource instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigSource getConfigSource() { - return this.configSource != null ? this.configSource.build() : null; + return this.configSource!=null ?this.configSource.build():null; } - public V1NodeConfigSource buildConfigSource() { - return this.configSource != null ? this.configSource.build() : null; + return this.configSource!=null ?this.configSource.build():null; } - public A withConfigSource(V1NodeConfigSource configSource) { _visitables.get("configSource").remove(this.configSource); - if (configSource != null) { - this.configSource = new V1NodeConfigSourceBuilder(configSource); - _visitables.get("configSource").add(this.configSource); - } else { - this.configSource = null; - _visitables.get("configSource").remove(this.configSource); - } - return (A) this; + if (configSource!=null){ this.configSource= new V1NodeConfigSourceBuilder(configSource); _visitables.get("configSource").add(this.configSource);} else { this.configSource = null; _visitables.get("configSource").remove(this.configSource); } return (A) this; } - public Boolean hasConfigSource() { return this.configSource != null; } - public V1NodeSpecFluent.ConfigSourceNested withNewConfigSource() { return new V1NodeSpecFluentImpl.ConfigSourceNestedImpl(); } - public V1NodeSpecFluent.ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { return new V1NodeSpecFluentImpl.ConfigSourceNestedImpl(item); } - public V1NodeSpecFluent.ConfigSourceNested editConfigSource() { return withNewConfigSourceLike(getConfigSource()); } - public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSource() { - return withNewConfigSourceLike( - getConfigSource() != null ? getConfigSource() : new V1NodeConfigSourceBuilder().build()); + return withNewConfigSourceLike(getConfigSource() != null ? getConfigSource(): new V1NodeConfigSourceBuilder().build()); } - public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { - return withNewConfigSourceLike(getConfigSource() != null ? getConfigSource() : item); + return withNewConfigSourceLike(getConfigSource() != null ? getConfigSource(): item); } - public String getExternalID() { return this.externalID; } - public A withExternalID(String externalID) { - this.externalID = externalID; - return (A) this; + this.externalID=externalID; return (A) this; } - public Boolean hasExternalID() { return this.externalID != null; } - public String getPodCIDR() { return this.podCIDR; } - public A withPodCIDR(String podCIDR) { - this.podCIDR = podCIDR; - return (A) this; + this.podCIDR=podCIDR; return (A) this; } - public Boolean hasPodCIDR() { return this.podCIDR != null; } - - public A addToPodCIDRs(Integer index, String item) { - if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); - } + public A addToPodCIDRs(Integer index,String item) { + if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} this.podCIDRs.add(index, item); - return (A) this; + return (A)this; } - - public A setToPodCIDRs(Integer index, String item) { - if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); - } - this.podCIDRs.set(index, item); - return (A) this; + public A setToPodCIDRs(Integer index,String item) { + if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} + this.podCIDRs.set(index, item); return (A)this; } - public A addToPodCIDRs(java.lang.String... items) { - if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); - } - for (String item : items) { - this.podCIDRs.add(item); - } - return (A) this; + if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} + for (String item : items) {this.podCIDRs.add(item);} return (A)this; } - public A addAllToPodCIDRs(Collection items) { - if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); - } - for (String item : items) { - this.podCIDRs.add(item); - } - return (A) this; + if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} + for (String item : items) {this.podCIDRs.add(item);} return (A)this; } - public A removeFromPodCIDRs(java.lang.String... items) { - for (String item : items) { - if (this.podCIDRs != null) { - this.podCIDRs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.podCIDRs!= null){ this.podCIDRs.remove(item);}} return (A)this; } - public A removeAllFromPodCIDRs(Collection items) { - for (String item : items) { - if (this.podCIDRs != null) { - this.podCIDRs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.podCIDRs!= null){ this.podCIDRs.remove(item);}} return (A)this; } - public List getPodCIDRs() { return this.podCIDRs; } - public String getPodCIDR(Integer index) { return this.podCIDRs.get(index); } - public String getFirstPodCIDR() { return this.podCIDRs.get(0); } - public String getLastPodCIDR() { return this.podCIDRs.get(podCIDRs.size() - 1); } - public String getMatchingPodCIDR(Predicate predicate) { - for (String item : podCIDRs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: podCIDRs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingPodCIDR(Predicate predicate) { - for (String item : podCIDRs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: podCIDRs) { if(predicate.test(item)){ return true;} } return false; } - public A withPodCIDRs(List podCIDRs) { - if (podCIDRs != null) { - this.podCIDRs = new ArrayList(); - for (String item : podCIDRs) { - this.addToPodCIDRs(item); - } - } else { - this.podCIDRs = null; - } - return (A) this; + if (podCIDRs != null) {this.podCIDRs = new ArrayList(); for (String item : podCIDRs){this.addToPodCIDRs(item);}} else { this.podCIDRs = null;} return (A) this; } - public A withPodCIDRs(java.lang.String... podCIDRs) { - if (this.podCIDRs != null) { - this.podCIDRs.clear(); - } - if (podCIDRs != null) { - for (String item : podCIDRs) { - this.addToPodCIDRs(item); - } - } - return (A) this; + if (this.podCIDRs != null) {this.podCIDRs.clear();} + if (podCIDRs != null) {for (String item :podCIDRs){ this.addToPodCIDRs(item);}} return (A) this; } - public Boolean hasPodCIDRs() { return podCIDRs != null && !podCIDRs.isEmpty(); } - public String getProviderID() { return this.providerID; } - public A withProviderID(String providerID) { - this.providerID = providerID; - return (A) this; + this.providerID=providerID; return (A) this; } - public Boolean hasProviderID() { return this.providerID != null; } - - public A addToTaints(Integer index, V1Taint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(index >= 0 ? index : _visitables.get("taints").size(), builder); - this.taints.add(index >= 0 ? index : taints.size(), builder); - return (A) this; + public A addToTaints(Integer index,V1Taint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(index >= 0 ? index : _visitables.get("taints").size(), builder);this.taints.add(index >= 0 ? index : taints.size(), builder); return (A)this; } - - public A setToTaints(Integer index, V1Taint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } + public A setToTaints(Integer index,V1Taint item) { + if (this.taints == null) {this.taints = new ArrayList();} V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= _visitables.get("taints").size()) { - _visitables.get("taints").add(builder); - } else { - _visitables.get("taints").set(index, builder); - } - if (index < 0 || index >= taints.size()) { - taints.add(builder); - } else { - taints.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("taints").size()) { _visitables.get("taints").add(builder); } else { _visitables.get("taints").set(index, builder);} + if (index < 0 || index >= taints.size()) { taints.add(builder); } else { taints.set(index, builder);} + return (A)this; } - public A addToTaints(io.kubernetes.client.openapi.models.V1Taint... items) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); - } - return (A) this; + if (this.taints == null) {this.taints = new ArrayList();} + for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; } - public A addAllToTaints(Collection items) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); - } - return (A) this; + if (this.taints == null) {this.taints = new ArrayList();} + for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; } - public A removeFromTaints(io.kubernetes.client.openapi.models.V1Taint... items) { - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").remove(builder); - if (this.taints != null) { - this.taints.remove(builder); - } - } - return (A) this; + for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").remove(builder);if (this.taints != null) {this.taints.remove(builder);}} return (A)this; } - public A removeAllFromTaints(Collection items) { - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").remove(builder); - if (this.taints != null) { - this.taints.remove(builder); - } - } - return (A) this; + for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").remove(builder);if (this.taints != null) {this.taints.remove(builder);}} return (A)this; } - public A removeMatchingFromTaints(Predicate predicate) { if (taints == null) return (A) this; final Iterator each = taints.iterator(); @@ -341,252 +193,151 @@ public A removeMatchingFromTaints(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTaints instead. - * * @return The buildable object. */ @Deprecated public List getTaints() { return taints != null ? build(taints) : null; } - public List buildTaints() { return taints != null ? build(taints) : null; } - public V1Taint buildTaint(Integer index) { return this.taints.get(index).build(); } - public V1Taint buildFirstTaint() { return this.taints.get(0).build(); } - public V1Taint buildLastTaint() { return this.taints.get(taints.size() - 1).build(); } - public V1Taint buildMatchingTaint(Predicate predicate) { - for (V1TaintBuilder item : taints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1TaintBuilder item: taints) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingTaint(Predicate predicate) { - for (V1TaintBuilder item : taints) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1TaintBuilder item: taints) { if(predicate.test(item)){ return true;} } return false; } - public A withTaints(List taints) { - if (this.taints != null) { - _visitables.get("taints").removeAll(this.taints); - } - if (taints != null) { - this.taints = new ArrayList(); - for (V1Taint item : taints) { - this.addToTaints(item); - } - } else { - this.taints = null; - } - return (A) this; + if (this.taints != null) { _visitables.get("taints").removeAll(this.taints);} + if (taints != null) {this.taints = new ArrayList(); for (V1Taint item : taints){this.addToTaints(item);}} else { this.taints = null;} return (A) this; } - public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints) { - if (this.taints != null) { - this.taints.clear(); - } - if (taints != null) { - for (V1Taint item : taints) { - this.addToTaints(item); - } - } - return (A) this; + if (this.taints != null) {this.taints.clear();} + if (taints != null) {for (V1Taint item :taints){ this.addToTaints(item);}} return (A) this; } - public Boolean hasTaints() { return taints != null && !taints.isEmpty(); } - public V1NodeSpecFluent.TaintsNested addNewTaint() { return new V1NodeSpecFluentImpl.TaintsNestedImpl(); } - public V1NodeSpecFluent.TaintsNested addNewTaintLike(V1Taint item) { return new V1NodeSpecFluentImpl.TaintsNestedImpl(-1, item); } - - public V1NodeSpecFluent.TaintsNested setNewTaintLike(Integer index, V1Taint item) { + public V1NodeSpecFluent.TaintsNested setNewTaintLike(Integer index,V1Taint item) { return new V1NodeSpecFluentImpl.TaintsNestedImpl(index, item); } - public V1NodeSpecFluent.TaintsNested editTaint(Integer index) { - if (taints.size() <= index) - throw new RuntimeException("Can't edit taints. Index exceeds size."); + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); return setNewTaintLike(index, buildTaint(index)); } - public V1NodeSpecFluent.TaintsNested editFirstTaint() { - if (taints.size() == 0) - throw new RuntimeException("Can't edit first taints. The list is empty."); + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); return setNewTaintLike(0, buildTaint(0)); } - public V1NodeSpecFluent.TaintsNested editLastTaint() { int index = taints.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); return setNewTaintLike(index, buildTaint(index)); } - public V1NodeSpecFluent.TaintsNested editMatchingTaint(Predicate predicate) { int index = -1; - for (int i = 0; i < taints.size(); i++) { - if (predicate.test(taints.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1NodeConfigSourceFluentImpl> - implements V1NodeSpecFluent.ConfigSourceNested, Nested { + class ConfigSourceNestedImpl extends V1NodeConfigSourceFluentImpl> implements V1NodeSpecFluent.ConfigSourceNested,Nested{ ConfigSourceNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - ConfigSourceNestedImpl() { this.builder = new V1NodeConfigSourceBuilder(this); } - V1NodeConfigSourceBuilder builder; - public N and() { return (N) V1NodeSpecFluentImpl.this.withConfigSource(builder.build()); } - public N endConfigSource() { return and(); } + } - - class TaintsNestedImpl extends V1TaintFluentImpl> - implements V1NodeSpecFluent.TaintsNested, Nested { - TaintsNestedImpl(Integer index, V1Taint item) { + class TaintsNestedImpl extends V1TaintFluentImpl> implements V1NodeSpecFluent.TaintsNested,Nested{ + TaintsNestedImpl(Integer index,V1Taint item) { this.index = index; this.builder = new V1TaintBuilder(this, item); } - TaintsNestedImpl() { this.index = -1; this.builder = new V1TaintBuilder(this); } - V1TaintBuilder builder; Integer index; - public N and() { - return (N) V1NodeSpecFluentImpl.this.setToTaints(index, builder.build()); + return (N) V1NodeSpecFluentImpl.this.setToTaints(index,builder.build()); } - public N endTaint() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java index 5ddef87028..4b2f2a5478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeStatusBuilder extends V1NodeStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeStatusBuilder extends V1NodeStatusFluentImpl implements VisitableBuilder{ public V1NodeStatusBuilder() { this(false); } - public V1NodeStatusBuilder(Boolean validationEnabled) { this(new V1NodeStatus(), validationEnabled); } - public V1NodeStatusBuilder(V1NodeStatusFluent fluent) { this(fluent, false); } - - public V1NodeStatusBuilder(V1NodeStatusFluent fluent, Boolean validationEnabled) { + public V1NodeStatusBuilder(V1NodeStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeStatus(), validationEnabled); } - - public V1NodeStatusBuilder(V1NodeStatusFluent fluent, V1NodeStatus instance) { + public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance) { this(fluent, instance, false); } - - public V1NodeStatusBuilder( - V1NodeStatusFluent fluent, V1NodeStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAddresses(instance.getAddresses()); fluent.withAllocatable(instance.getAllocatable()); @@ -61,15 +42,13 @@ public V1NodeStatusBuilder( fluent.withVolumesInUse(instance.getVolumesInUse()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeStatusBuilder(V1NodeStatus instance) { - this(instance, false); + this(instance,false); } - - public V1NodeStatusBuilder(V1NodeStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeStatusBuilder(V1NodeStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAddresses(instance.getAddresses()); this.withAllocatable(instance.getAllocatable()); @@ -92,12 +71,10 @@ public V1NodeStatusBuilder(V1NodeStatus instance, Boolean validationEnabled) { this.withVolumesInUse(instance.getVolumesInUse()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeStatusFluent fluent; Boolean validationEnabled; - public V1NodeStatus build() { V1NodeStatus buildable = new V1NodeStatus(); buildable.setAddresses(fluent.getAddresses()); @@ -113,4 +90,5 @@ public V1NodeStatus build() { buildable.setVolumesInUse(fluent.getVolumesInUse()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java index 6417d96fd6..f061fb3baa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java @@ -1,436 +1,256 @@ -/* -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.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; -import java.util.Collection; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; +import java.util.Collection; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1NodeStatusFluent> extends Fluent { - public A addToAddresses(Integer index, V1NodeAddress item); - - public A setToAddresses(Integer index, V1NodeAddress item); + /** + * Generated + */ +public interface V1NodeStatusFluent> extends Fluent{ + public A addToAddresses(Integer index,V1NodeAddress item); + public A setToAddresses(Integer index,V1NodeAddress item); public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items); - public A addAllToAddresses(Collection items); - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items); - public A removeAllFromAddresses(Collection items); - public A removeMatchingFromAddresses(Predicate predicate); - + /** * This method has been deprecated, please use method buildAddresses instead. - * * @return The buildable object. */ @Deprecated public List getAddresses(); - public List buildAddresses(); - public V1NodeAddress buildAddress(Integer index); - public V1NodeAddress buildFirstAddress(); - public V1NodeAddress buildLastAddress(); - public V1NodeAddress buildMatchingAddress(Predicate predicate); - public Boolean hasMatchingAddress(Predicate predicate); - public A withAddresses(List addresses); - public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addresses); - public Boolean hasAddresses(); - public V1NodeStatusFluent.AddressesNested addNewAddress(); - public V1NodeStatusFluent.AddressesNested addNewAddressLike(V1NodeAddress item); - - public V1NodeStatusFluent.AddressesNested setNewAddressLike(Integer index, V1NodeAddress item); - + public V1NodeStatusFluent.AddressesNested setNewAddressLike(Integer index,V1NodeAddress item); public V1NodeStatusFluent.AddressesNested editAddress(Integer index); - public V1NodeStatusFluent.AddressesNested editFirstAddress(); - public V1NodeStatusFluent.AddressesNested editLastAddress(); - - public V1NodeStatusFluent.AddressesNested editMatchingAddress( - Predicate predicate); - - public A addToAllocatable(String key, Quantity value); - - public A addToAllocatable(Map map); - + public V1NodeStatusFluent.AddressesNested editMatchingAddress(Predicate predicate); + public A addToAllocatable(String key,Quantity value); + public A addToAllocatable(Map map); public A removeFromAllocatable(String key); - - public A removeFromAllocatable(Map map); - - public Map getAllocatable(); - - public A withAllocatable(Map allocatable); - + public A removeFromAllocatable(Map map); + public Map getAllocatable(); + public A withAllocatable(Map allocatable); public Boolean hasAllocatable(); - - public A addToCapacity(String key, Quantity value); - - public A addToCapacity(Map map); - + public A addToCapacity(String key,Quantity value); + public A addToCapacity(Map map); public A removeFromCapacity(String key); - - public A removeFromCapacity(Map map); - - public Map getCapacity(); - - public A withCapacity(Map capacity); - + public A removeFromCapacity(Map map); + public Map getCapacity(); + public A withCapacity(Map capacity); public Boolean hasCapacity(); - - public A addToConditions(Integer index, V1NodeCondition item); - - public A setToConditions(Integer index, V1NodeCondition item); - + public A addToConditions(Integer index,V1NodeCondition item); + public A setToConditions(Integer index,V1NodeCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1NodeCondition buildCondition(Integer index); - public V1NodeCondition buildFirstCondition(); - public V1NodeCondition buildLastCondition(); - public V1NodeCondition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... conditions); - public Boolean hasConditions(); - public V1NodeStatusFluent.ConditionsNested addNewCondition(); - public V1NodeStatusFluent.ConditionsNested addNewConditionLike(V1NodeCondition item); - - public V1NodeStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1NodeCondition item); - + public V1NodeStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1NodeCondition item); public V1NodeStatusFluent.ConditionsNested editCondition(Integer index); - public V1NodeStatusFluent.ConditionsNested editFirstCondition(); - public V1NodeStatusFluent.ConditionsNested editLastCondition(); - - public V1NodeStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1NodeStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + /** * This method has been deprecated, please use method buildConfig instead. - * * @return The buildable object. */ @Deprecated public V1NodeConfigStatus getConfig(); - public V1NodeConfigStatus buildConfig(); - public A withConfig(V1NodeConfigStatus config); - public Boolean hasConfig(); - public V1NodeStatusFluent.ConfigNested withNewConfig(); - public V1NodeStatusFluent.ConfigNested withNewConfigLike(V1NodeConfigStatus item); - public V1NodeStatusFluent.ConfigNested editConfig(); - public V1NodeStatusFluent.ConfigNested editOrNewConfig(); - public V1NodeStatusFluent.ConfigNested editOrNewConfigLike(V1NodeConfigStatus item); - + /** * This method has been deprecated, please use method buildDaemonEndpoints instead. - * * @return The buildable object. */ @Deprecated public V1NodeDaemonEndpoints getDaemonEndpoints(); - public V1NodeDaemonEndpoints buildDaemonEndpoints(); - public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints); - public Boolean hasDaemonEndpoints(); - public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpoints(); - - public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike( - V1NodeDaemonEndpoints item); - + public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item); public V1NodeStatusFluent.DaemonEndpointsNested editDaemonEndpoints(); - public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpoints(); - - public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike( - V1NodeDaemonEndpoints item); - - public A addToImages(Integer index, V1ContainerImage item); - - public A setToImages(Integer index, V1ContainerImage item); - + public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item); + public A addToImages(Integer index,V1ContainerImage item); + public A setToImages(Integer index,V1ContainerImage item); public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items); - public A addAllToImages(Collection items); - public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items); - public A removeAllFromImages(Collection items); - public A removeMatchingFromImages(Predicate predicate); - + /** * This method has been deprecated, please use method buildImages instead. - * * @return The buildable object. */ @Deprecated public List getImages(); - public List buildImages(); - public V1ContainerImage buildImage(Integer index); - public V1ContainerImage buildFirstImage(); - public V1ContainerImage buildLastImage(); - public V1ContainerImage buildMatchingImage(Predicate predicate); - public Boolean hasMatchingImage(Predicate predicate); - public A withImages(List images); - public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... images); - public Boolean hasImages(); - public V1NodeStatusFluent.ImagesNested addNewImage(); - public V1NodeStatusFluent.ImagesNested addNewImageLike(V1ContainerImage item); - - public V1NodeStatusFluent.ImagesNested setNewImageLike(Integer index, V1ContainerImage item); - + public V1NodeStatusFluent.ImagesNested setNewImageLike(Integer index,V1ContainerImage item); public V1NodeStatusFluent.ImagesNested editImage(Integer index); - public V1NodeStatusFluent.ImagesNested editFirstImage(); - public V1NodeStatusFluent.ImagesNested editLastImage(); - - public V1NodeStatusFluent.ImagesNested editMatchingImage( - Predicate predicate); - + public V1NodeStatusFluent.ImagesNested editMatchingImage(Predicate predicate); + /** * This method has been deprecated, please use method buildNodeInfo instead. - * * @return The buildable object. */ @Deprecated public V1NodeSystemInfo getNodeInfo(); - public V1NodeSystemInfo buildNodeInfo(); - public A withNodeInfo(V1NodeSystemInfo nodeInfo); - public Boolean hasNodeInfo(); - public V1NodeStatusFluent.NodeInfoNested withNewNodeInfo(); - public V1NodeStatusFluent.NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item); - public V1NodeStatusFluent.NodeInfoNested editNodeInfo(); - public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfo(); - public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item); - public String getPhase(); - public A withPhase(String phase); - public Boolean hasPhase(); - - public A addToVolumesAttached(Integer index, V1AttachedVolume item); - - public A setToVolumesAttached(Integer index, V1AttachedVolume item); - + public A addToVolumesAttached(Integer index,V1AttachedVolume item); + public A setToVolumesAttached(Integer index,V1AttachedVolume item); public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items); - public A addAllToVolumesAttached(Collection items); - public A removeFromVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items); - public A removeAllFromVolumesAttached(Collection items); - public A removeMatchingFromVolumesAttached(Predicate predicate); - + /** * This method has been deprecated, please use method buildVolumesAttached instead. - * * @return The buildable object. */ @Deprecated public List getVolumesAttached(); - public List buildVolumesAttached(); - public V1AttachedVolume buildVolumesAttached(Integer index); - public V1AttachedVolume buildFirstVolumesAttached(); - public V1AttachedVolume buildLastVolumesAttached(); - - public V1AttachedVolume buildMatchingVolumesAttached( - Predicate predicate); - + public V1AttachedVolume buildMatchingVolumesAttached(Predicate predicate); public Boolean hasMatchingVolumesAttached(Predicate predicate); - public A withVolumesAttached(List volumesAttached); - - public A withVolumesAttached( - io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached); - + public A withVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached); public Boolean hasVolumesAttached(); - public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttached(); - - public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike( - V1AttachedVolume item); - - public V1NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike( - Integer index, V1AttachedVolume item); - + public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item); + public V1NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike(Integer index,V1AttachedVolume item); public V1NodeStatusFluent.VolumesAttachedNested editVolumesAttached(Integer index); - public V1NodeStatusFluent.VolumesAttachedNested editFirstVolumesAttached(); - public V1NodeStatusFluent.VolumesAttachedNested editLastVolumesAttached(); - - public V1NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached( - Predicate predicate); - - public A addToVolumesInUse(Integer index, String item); - - public A setToVolumesInUse(Integer index, String item); - + public V1NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate); + public A addToVolumesInUse(Integer index,String item); + public A setToVolumesInUse(Integer index,String item); public A addToVolumesInUse(java.lang.String... items); - public A addAllToVolumesInUse(Collection items); - public A removeFromVolumesInUse(java.lang.String... items); - public A removeAllFromVolumesInUse(Collection items); - public List getVolumesInUse(); - public String getVolumesInUse(Integer index); - public String getFirstVolumesInUse(); - public String getLastVolumesInUse(); - public String getMatchingVolumesInUse(Predicate predicate); - public Boolean hasMatchingVolumesInUse(Predicate predicate); - public A withVolumesInUse(List volumesInUse); - public A withVolumesInUse(java.lang.String... volumesInUse); - public Boolean hasVolumesInUse(); - - public interface AddressesNested - extends Nested, V1NodeAddressFluent> { + public interface AddressesNested extends Nested,V1NodeAddressFluent>{ public N and(); - public N endAddress(); + } - - public interface ConditionsNested - extends Nested, V1NodeConditionFluent> { + public interface ConditionsNested extends Nested,V1NodeConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface ConfigNested - extends Nested, V1NodeConfigStatusFluent> { + public interface ConfigNested extends Nested,V1NodeConfigStatusFluent>{ public N and(); - public N endConfig(); + } - - public interface DaemonEndpointsNested - extends Nested, V1NodeDaemonEndpointsFluent> { + public interface DaemonEndpointsNested extends Nested,V1NodeDaemonEndpointsFluent>{ public N and(); - public N endDaemonEndpoints(); + } - - public interface ImagesNested - extends Nested, V1ContainerImageFluent> { + public interface ImagesNested extends Nested,V1ContainerImageFluent>{ public N and(); - public N endImage(); + } - - public interface NodeInfoNested - extends Nested, V1NodeSystemInfoFluent> { + public interface NodeInfoNested extends Nested,V1NodeSystemInfoFluent>{ public N and(); - public N endNodeInfo(); + } - - public interface VolumesAttachedNested - extends Nested, V1AttachedVolumeFluent> { + public interface VolumesAttachedNested extends Nested,V1AttachedVolumeFluent>{ public N and(); - public N endVolumesAttached(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java index bcfea70871..a07e975c7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java @@ -1,34 +1,30 @@ -/* -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.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; +import io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeStatusFluentImpl> extends BaseFluent - implements V1NodeStatusFluent { - public V1NodeStatusFluentImpl() {} +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; +import java.util.Iterator; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeStatusFluentImpl> extends BaseFluent implements V1NodeStatusFluent{ + public V1NodeStatusFluentImpl() { + } public V1NodeStatusFluentImpl(V1NodeStatus instance) { this.withAddresses(instance.getAddresses()); @@ -51,11 +47,11 @@ public V1NodeStatusFluentImpl(V1NodeStatus instance) { this.withVolumesAttached(instance.getVolumesAttached()); this.withVolumesInUse(instance.getVolumesInUse()); - } + } private ArrayList addresses; - private Map allocatable; - private Map capacity; + private Map allocatable; + private Map capacity; private ArrayList conditions; private V1NodeConfigStatusBuilder config; private V1NodeDaemonEndpointsBuilder daemonEndpoints; @@ -64,83 +60,31 @@ public V1NodeStatusFluentImpl(V1NodeStatus instance) { private String phase; private ArrayList volumesAttached; private List volumesInUse; - - public A addToAddresses(Integer index, V1NodeAddress item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables - .get("addresses") - .add(index >= 0 ? index : _visitables.get("addresses").size(), builder); - this.addresses.add(index >= 0 ? index : addresses.size(), builder); - return (A) this; + public A addToAddresses(Integer index,V1NodeAddress item) { + if (this.addresses == null) {this.addresses = new ArrayList();} + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(index >= 0 ? index : _visitables.get("addresses").size(), builder);this.addresses.add(index >= 0 ? index : addresses.size(), builder); return (A)this; } - - public A setToAddresses(Integer index, V1NodeAddress item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } + public A setToAddresses(Integer index,V1NodeAddress item) { + if (this.addresses == null) {this.addresses = new ArrayList();} V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= _visitables.get("addresses").size()) { - _visitables.get("addresses").add(builder); - } else { - _visitables.get("addresses").set(index, builder); - } - if (index < 0 || index >= addresses.size()) { - addresses.add(builder); - } else { - addresses.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("addresses").size()) { _visitables.get("addresses").add(builder); } else { _visitables.get("addresses").set(index, builder);} + if (index < 0 || index >= addresses.size()) { addresses.add(builder); } else { addresses.set(index, builder);} + return (A)this; } - public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").add(builder); - this.addresses.add(builder); - } - return (A) this; + if (this.addresses == null) {this.addresses = new ArrayList();} + for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; } - public A addAllToAddresses(Collection items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").add(builder); - this.addresses.add(builder); - } - return (A) this; + if (this.addresses == null) {this.addresses = new ArrayList();} + for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; } - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").remove(builder); - if (this.addresses != null) { - this.addresses.remove(builder); - } - } - return (A) this; + for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").remove(builder);if (this.addresses != null) {this.addresses.remove(builder);}} return (A)this; } - public A removeAllFromAddresses(Collection items) { - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").remove(builder); - if (this.addresses != null) { - this.addresses.remove(builder); - } - } - return (A) this; + for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").remove(builder);if (this.addresses != null) {this.addresses.remove(builder);}} return (A)this; } - public A removeMatchingFromAddresses(Predicate predicate) { if (addresses == null) return (A) this; final Iterator each = addresses.iterator(); @@ -152,326 +96,151 @@ public A removeMatchingFromAddresses(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildAddresses instead. - * * @return The buildable object. */ @Deprecated public List getAddresses() { return addresses != null ? build(addresses) : null; } - public List buildAddresses() { return addresses != null ? build(addresses) : null; } - public V1NodeAddress buildAddress(Integer index) { return this.addresses.get(index).build(); } - public V1NodeAddress buildFirstAddress() { return this.addresses.get(0).build(); } - public V1NodeAddress buildLastAddress() { return this.addresses.get(addresses.size() - 1).build(); } - public V1NodeAddress buildMatchingAddress(Predicate predicate) { - for (V1NodeAddressBuilder item : addresses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NodeAddressBuilder item: addresses) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingAddress(Predicate predicate) { - for (V1NodeAddressBuilder item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NodeAddressBuilder item: addresses) { if(predicate.test(item)){ return true;} } return false; } - public A withAddresses(List addresses) { - if (this.addresses != null) { - _visitables.get("addresses").removeAll(this.addresses); - } - if (addresses != null) { - this.addresses = new ArrayList(); - for (V1NodeAddress item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; - } - return (A) this; + if (this.addresses != null) { _visitables.get("addresses").removeAll(this.addresses);} + if (addresses != null) {this.addresses = new ArrayList(); for (V1NodeAddress item : addresses){this.addToAddresses(item);}} else { this.addresses = null;} return (A) this; } - public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - } - if (addresses != null) { - for (V1NodeAddress item : addresses) { - this.addToAddresses(item); - } - } - return (A) this; + if (this.addresses != null) {this.addresses.clear();} + if (addresses != null) {for (V1NodeAddress item :addresses){ this.addToAddresses(item);}} return (A) this; } - public Boolean hasAddresses() { return addresses != null && !addresses.isEmpty(); } - public V1NodeStatusFluent.AddressesNested addNewAddress() { return new V1NodeStatusFluentImpl.AddressesNestedImpl(); } - public V1NodeStatusFluent.AddressesNested addNewAddressLike(V1NodeAddress item) { return new V1NodeStatusFluentImpl.AddressesNestedImpl(-1, item); } - - public V1NodeStatusFluent.AddressesNested setNewAddressLike( - Integer index, V1NodeAddress item) { + public V1NodeStatusFluent.AddressesNested setNewAddressLike(Integer index,V1NodeAddress item) { return new V1NodeStatusFluentImpl.AddressesNestedImpl(index, item); } - public V1NodeStatusFluent.AddressesNested editAddress(Integer index) { - if (addresses.size() <= index) - throw new RuntimeException("Can't edit addresses. Index exceeds size."); + if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); return setNewAddressLike(index, buildAddress(index)); } - public V1NodeStatusFluent.AddressesNested editFirstAddress() { - if (addresses.size() == 0) - throw new RuntimeException("Can't edit first addresses. The list is empty."); + if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); return setNewAddressLike(0, buildAddress(0)); } - public V1NodeStatusFluent.AddressesNested editLastAddress() { int index = addresses.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty."); return setNewAddressLike(index, buildAddress(index)); } - - public V1NodeStatusFluent.AddressesNested editMatchingAddress( - Predicate predicate) { + public V1NodeStatusFluent.AddressesNested editMatchingAddress(Predicate predicate) { int index = -1; - for (int i = 0; i < addresses.size(); i++) { - if (predicate.test(addresses.get(i))) { - index = i; - break; - } - } + for (int i=0;i map) { - if (this.allocatable == null && map != null) { - this.allocatable = new LinkedHashMap(); - } - if (map != null) { - this.allocatable.putAll(map); - } - return (A) this; + public A addToAllocatable(Map map) { + if(this.allocatable == null && map != null) { this.allocatable = new LinkedHashMap(); } + if(map != null) { this.allocatable.putAll(map);} return (A)this; } - public A removeFromAllocatable(String key) { - if (this.allocatable == null) { - return (A) this; - } - if (key != null && this.allocatable != null) { - this.allocatable.remove(key); - } - return (A) this; + if(this.allocatable == null) { return (A) this; } + if(key != null && this.allocatable != null) {this.allocatable.remove(key);} return (A)this; } - - public A removeFromAllocatable(Map map) { - if (this.allocatable == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.allocatable != null) { - this.allocatable.remove(key); - } - } - } - return (A) this; + public A removeFromAllocatable(Map map) { + if(this.allocatable == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.allocatable != null){this.allocatable.remove(key);}}} return (A)this; } - - public Map getAllocatable() { + public Map getAllocatable() { return this.allocatable; } - - public A withAllocatable(Map allocatable) { - if (allocatable == null) { - this.allocatable = null; - } else { - this.allocatable = new LinkedHashMap(allocatable); - } - return (A) this; + public A withAllocatable(Map allocatable) { + if (allocatable == null) { this.allocatable = null;} else {this.allocatable = new LinkedHashMap(allocatable);} return (A) this; } - public Boolean hasAllocatable() { return this.allocatable != null; } - - public A addToCapacity(String key, Quantity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); - } - return (A) this; + public A addToCapacity(String key,Quantity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; } - - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); - } - if (map != null) { - this.capacity.putAll(map); - } - return (A) this; + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; } - - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; } - - public Map getCapacity() { + public Map getCapacity() { return this.capacity; } - - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public A withCapacity(Map capacity) { + if (capacity == null) { this.capacity = null;} else {this.capacity = new LinkedHashMap(capacity);} return (A) this; } - public Boolean hasCapacity() { return this.capacity != null; } - - public A addToConditions(Integer index, V1NodeCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(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 addToConditions(Integer index,V1NodeCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(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(Integer index, V1NodeCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1NodeCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1NodeConditionBuilder builder = new V1NodeConditionBuilder(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; + 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.V1NodeCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(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 ArrayList(); - } - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(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(); @@ -483,308 +252,169 @@ public A removeMatchingFromConditions(Predicate predicat each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1NodeCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1NodeCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1NodeCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1NodeCondition buildMatchingCondition(Predicate predicate) { - for (V1NodeConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1NodeConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1NodeConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NodeConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1NodeCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1NodeCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1NodeCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1NodeCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1NodeStatusFluent.ConditionsNested addNewCondition() { return new V1NodeStatusFluentImpl.ConditionsNestedImpl(); } - public V1NodeStatusFluent.ConditionsNested addNewConditionLike(V1NodeCondition item) { return new V1NodeStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1NodeStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1NodeCondition item) { + public V1NodeStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1NodeCondition item) { return new V1NodeStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1NodeStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1NodeStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1NodeStatusFluent.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 V1NodeStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1NodeStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewConfig() { return new V1NodeStatusFluentImpl.ConfigNestedImpl(); } - public V1NodeStatusFluent.ConfigNested withNewConfigLike(V1NodeConfigStatus item) { return new V1NodeStatusFluentImpl.ConfigNestedImpl(item); } - public V1NodeStatusFluent.ConfigNested editConfig() { return withNewConfigLike(getConfig()); } - public V1NodeStatusFluent.ConfigNested editOrNewConfig() { - return withNewConfigLike( - getConfig() != null ? getConfig() : new V1NodeConfigStatusBuilder().build()); + return withNewConfigLike(getConfig() != null ? getConfig(): new V1NodeConfigStatusBuilder().build()); } - public V1NodeStatusFluent.ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { - return withNewConfigLike(getConfig() != null ? getConfig() : item); + return withNewConfigLike(getConfig() != null ? getConfig(): item); } - + /** * This method has been deprecated, please use method buildDaemonEndpoints instead. - * * @return The buildable object. */ @Deprecated public V1NodeDaemonEndpoints getDaemonEndpoints() { - return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; + return this.daemonEndpoints!=null ?this.daemonEndpoints.build():null; } - public V1NodeDaemonEndpoints buildDaemonEndpoints() { - return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; + return this.daemonEndpoints!=null ?this.daemonEndpoints.build():null; } - public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { _visitables.get("daemonEndpoints").remove(this.daemonEndpoints); - if (daemonEndpoints != null) { - this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); - _visitables.get("daemonEndpoints").add(this.daemonEndpoints); - } else { - this.daemonEndpoints = null; - _visitables.get("daemonEndpoints").remove(this.daemonEndpoints); - } - return (A) this; + if (daemonEndpoints!=null){ this.daemonEndpoints= new V1NodeDaemonEndpointsBuilder(daemonEndpoints); _visitables.get("daemonEndpoints").add(this.daemonEndpoints);} else { this.daemonEndpoints = null; _visitables.get("daemonEndpoints").remove(this.daemonEndpoints); } return (A) this; } - public Boolean hasDaemonEndpoints() { return this.daemonEndpoints != null; } - public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpoints() { return new V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl(); } - - public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike( - V1NodeDaemonEndpoints item) { + public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { return new V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl(item); } - public V1NodeStatusFluent.DaemonEndpointsNested editDaemonEndpoints() { return withNewDaemonEndpointsLike(getDaemonEndpoints()); } - public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpoints() { - return withNewDaemonEndpointsLike( - getDaemonEndpoints() != null - ? getDaemonEndpoints() - : new V1NodeDaemonEndpointsBuilder().build()); + return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints(): new V1NodeDaemonEndpointsBuilder().build()); } - - public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike( - V1NodeDaemonEndpoints item) { - return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints() : item); + public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { + return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints(): item); } - - public A addToImages(Integer index, V1ContainerImage item) { - if (this.images == null) { - this.images = new ArrayList(); - } - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(index >= 0 ? index : _visitables.get("images").size(), builder); - this.images.add(index >= 0 ? index : images.size(), builder); - return (A) this; + public A addToImages(Integer index,V1ContainerImage item) { + if (this.images == null) {this.images = new ArrayList();} + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(index >= 0 ? index : _visitables.get("images").size(), builder);this.images.add(index >= 0 ? index : images.size(), builder); return (A)this; } - - public A setToImages(Integer index, V1ContainerImage item) { - if (this.images == null) { - this.images = new ArrayList(); - } + public A setToImages(Integer index,V1ContainerImage item) { + if (this.images == null) {this.images = new ArrayList();} V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= _visitables.get("images").size()) { - _visitables.get("images").add(builder); - } else { - _visitables.get("images").set(index, builder); - } - if (index < 0 || index >= images.size()) { - images.add(builder); - } else { - images.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("images").size()) { _visitables.get("images").add(builder); } else { _visitables.get("images").set(index, builder);} + if (index < 0 || index >= images.size()) { images.add(builder); } else { images.set(index, builder);} + return (A)this; } - public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - if (this.images == null) { - this.images = new ArrayList(); - } - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(builder); - this.images.add(builder); - } - return (A) this; + if (this.images == null) {this.images = new ArrayList();} + for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(builder);this.images.add(builder);} return (A)this; } - public A addAllToImages(Collection items) { - if (this.images == null) { - this.images = new ArrayList(); - } - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(builder); - this.images.add(builder); - } - return (A) this; + if (this.images == null) {this.images = new ArrayList();} + for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(builder);this.images.add(builder);} return (A)this; } - public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").remove(builder); - if (this.images != null) { - this.images.remove(builder); - } - } - return (A) this; + for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").remove(builder);if (this.images != null) {this.images.remove(builder);}} return (A)this; } - public A removeAllFromImages(Collection items) { - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").remove(builder); - if (this.images != null) { - this.images.remove(builder); - } - } - return (A) this; + for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").remove(builder);if (this.images != null) {this.images.remove(builder);}} return (A)this; } - public A removeMatchingFromImages(Predicate predicate) { if (images == null) return (A) this; final Iterator each = images.iterator(); @@ -796,268 +426,144 @@ public A removeMatchingFromImages(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildImages instead. - * * @return The buildable object. */ @Deprecated public List getImages() { return images != null ? build(images) : null; } - public List buildImages() { return images != null ? build(images) : null; } - public V1ContainerImage buildImage(Integer index) { return this.images.get(index).build(); } - public V1ContainerImage buildFirstImage() { return this.images.get(0).build(); } - public V1ContainerImage buildLastImage() { return this.images.get(images.size() - 1).build(); } - public V1ContainerImage buildMatchingImage(Predicate predicate) { - for (V1ContainerImageBuilder item : images) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ContainerImageBuilder item: images) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingImage(Predicate predicate) { - for (V1ContainerImageBuilder item : images) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerImageBuilder item: images) { if(predicate.test(item)){ return true;} } return false; } - public A withImages(List images) { - if (this.images != null) { - _visitables.get("images").removeAll(this.images); - } - if (images != null) { - this.images = new ArrayList(); - for (V1ContainerImage item : images) { - this.addToImages(item); - } - } else { - this.images = null; - } - return (A) this; + if (this.images != null) { _visitables.get("images").removeAll(this.images);} + if (images != null) {this.images = new ArrayList(); for (V1ContainerImage item : images){this.addToImages(item);}} else { this.images = null;} return (A) this; } - public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... images) { - if (this.images != null) { - this.images.clear(); - } - if (images != null) { - for (V1ContainerImage item : images) { - this.addToImages(item); - } - } - return (A) this; + if (this.images != null) {this.images.clear();} + if (images != null) {for (V1ContainerImage item :images){ this.addToImages(item);}} return (A) this; } - public Boolean hasImages() { return images != null && !images.isEmpty(); } - public V1NodeStatusFluent.ImagesNested addNewImage() { return new V1NodeStatusFluentImpl.ImagesNestedImpl(); } - public V1NodeStatusFluent.ImagesNested addNewImageLike(V1ContainerImage item) { return new V1NodeStatusFluentImpl.ImagesNestedImpl(-1, item); } - - public V1NodeStatusFluent.ImagesNested setNewImageLike(Integer index, V1ContainerImage item) { + public V1NodeStatusFluent.ImagesNested setNewImageLike(Integer index,V1ContainerImage item) { return new V1NodeStatusFluentImpl.ImagesNestedImpl(index, item); } - public V1NodeStatusFluent.ImagesNested editImage(Integer index) { - if (images.size() <= index) - throw new RuntimeException("Can't edit images. Index exceeds size."); + if (images.size() <= index) throw new RuntimeException("Can't edit images. Index exceeds size."); return setNewImageLike(index, buildImage(index)); } - public V1NodeStatusFluent.ImagesNested editFirstImage() { - if (images.size() == 0) - throw new RuntimeException("Can't edit first images. The list is empty."); + if (images.size() == 0) throw new RuntimeException("Can't edit first images. The list is empty."); return setNewImageLike(0, buildImage(0)); } - public V1NodeStatusFluent.ImagesNested editLastImage() { int index = images.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last images. The list is empty."); return setNewImageLike(index, buildImage(index)); } - - public V1NodeStatusFluent.ImagesNested editMatchingImage( - Predicate predicate) { + public V1NodeStatusFluent.ImagesNested editMatchingImage(Predicate predicate) { int index = -1; - for (int i = 0; i < images.size(); i++) { - if (predicate.test(images.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewNodeInfo() { return new V1NodeStatusFluentImpl.NodeInfoNestedImpl(); } - public V1NodeStatusFluent.NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { return new V1NodeStatusFluentImpl.NodeInfoNestedImpl(item); } - public V1NodeStatusFluent.NodeInfoNested editNodeInfo() { return withNewNodeInfoLike(getNodeInfo()); } - public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfo() { - return withNewNodeInfoLike( - getNodeInfo() != null ? getNodeInfo() : new V1NodeSystemInfoBuilder().build()); + return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo(): new V1NodeSystemInfoBuilder().build()); } - public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { - return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo() : item); + return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo(): item); } - public String getPhase() { return this.phase; } - public A withPhase(String phase) { - this.phase = phase; - return (A) this; + this.phase=phase; return (A) this; } - public Boolean hasPhase() { return this.phase != null; } - - public A addToVolumesAttached(Integer index, V1AttachedVolume item) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); - } - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables - .get("volumesAttached") - .add(index >= 0 ? index : _visitables.get("volumesAttached").size(), builder); - this.volumesAttached.add(index >= 0 ? index : volumesAttached.size(), builder); - return (A) this; + public A addToVolumesAttached(Integer index,V1AttachedVolume item) { + if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(index >= 0 ? index : _visitables.get("volumesAttached").size(), builder);this.volumesAttached.add(index >= 0 ? index : volumesAttached.size(), builder); return (A)this; } - - public A setToVolumesAttached(Integer index, V1AttachedVolume item) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); - } + public A setToVolumesAttached(Integer index,V1AttachedVolume item) { + if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= _visitables.get("volumesAttached").size()) { - _visitables.get("volumesAttached").add(builder); - } else { - _visitables.get("volumesAttached").set(index, builder); - } - if (index < 0 || index >= volumesAttached.size()) { - volumesAttached.add(builder); - } else { - volumesAttached.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumesAttached").size()) { _visitables.get("volumesAttached").add(builder); } else { _visitables.get("volumesAttached").set(index, builder);} + if (index < 0 || index >= volumesAttached.size()) { volumesAttached.add(builder); } else { volumesAttached.set(index, builder);} + return (A)this; } - public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); - } - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").add(builder); - this.volumesAttached.add(builder); - } - return (A) this; + if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} + for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(builder);this.volumesAttached.add(builder);} return (A)this; } - public A addAllToVolumesAttached(Collection items) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); - } - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").add(builder); - this.volumesAttached.add(builder); - } - return (A) this; + if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} + for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(builder);this.volumesAttached.add(builder);} return (A)this; } - - public A removeFromVolumesAttached( - io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").remove(builder); - if (this.volumesAttached != null) { - this.volumesAttached.remove(builder); - } - } - return (A) this; + public A removeFromVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { + for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").remove(builder);if (this.volumesAttached != null) {this.volumesAttached.remove(builder);}} return (A)this; } - public A removeAllFromVolumesAttached(Collection items) { - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").remove(builder); - if (this.volumesAttached != null) { - this.volumesAttached.remove(builder); - } - } - return (A) this; + for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").remove(builder);if (this.volumesAttached != null) {this.volumesAttached.remove(builder);}} return (A)this; } - public A removeMatchingFromVolumesAttached(Predicate predicate) { if (volumesAttached == null) return (A) this; final Iterator each = volumesAttached.iterator(); @@ -1069,503 +575,287 @@ public A removeMatchingFromVolumesAttached(Predicate pr each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumesAttached instead. - * * @return The buildable object. */ @Deprecated public List getVolumesAttached() { return volumesAttached != null ? build(volumesAttached) : null; } - public List buildVolumesAttached() { return volumesAttached != null ? build(volumesAttached) : null; } - public V1AttachedVolume buildVolumesAttached(Integer index) { return this.volumesAttached.get(index).build(); } - public V1AttachedVolume buildFirstVolumesAttached() { return this.volumesAttached.get(0).build(); } - public V1AttachedVolume buildLastVolumesAttached() { return this.volumesAttached.get(volumesAttached.size() - 1).build(); } - - public V1AttachedVolume buildMatchingVolumesAttached( - Predicate predicate) { - for (V1AttachedVolumeBuilder item : volumesAttached) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1AttachedVolume buildMatchingVolumesAttached(Predicate predicate) { + for (V1AttachedVolumeBuilder item: volumesAttached) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVolumesAttached(Predicate predicate) { - for (V1AttachedVolumeBuilder item : volumesAttached) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1AttachedVolumeBuilder item: volumesAttached) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumesAttached(List volumesAttached) { - if (this.volumesAttached != null) { - _visitables.get("volumesAttached").removeAll(this.volumesAttached); - } - if (volumesAttached != null) { - this.volumesAttached = new ArrayList(); - for (V1AttachedVolume item : volumesAttached) { - this.addToVolumesAttached(item); - } - } else { - this.volumesAttached = null; - } - return (A) this; + if (this.volumesAttached != null) { _visitables.get("volumesAttached").removeAll(this.volumesAttached);} + if (volumesAttached != null) {this.volumesAttached = new ArrayList(); for (V1AttachedVolume item : volumesAttached){this.addToVolumesAttached(item);}} else { this.volumesAttached = null;} return (A) this; } - - public A withVolumesAttached( - io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached) { - if (this.volumesAttached != null) { - this.volumesAttached.clear(); - } - if (volumesAttached != null) { - for (V1AttachedVolume item : volumesAttached) { - this.addToVolumesAttached(item); - } - } - return (A) this; + public A withVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached) { + if (this.volumesAttached != null) {this.volumesAttached.clear();} + if (volumesAttached != null) {for (V1AttachedVolume item :volumesAttached){ this.addToVolumesAttached(item);}} return (A) this; } - public Boolean hasVolumesAttached() { return volumesAttached != null && !volumesAttached.isEmpty(); } - public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttached() { return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(); } - - public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike( - V1AttachedVolume item) { + public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item) { return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(-1, item); } - - public V1NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike( - Integer index, V1AttachedVolume item) { + public V1NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike(Integer index,V1AttachedVolume item) { return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(index, item); } - public V1NodeStatusFluent.VolumesAttachedNested editVolumesAttached(Integer index) { - if (volumesAttached.size() <= index) - throw new RuntimeException("Can't edit volumesAttached. Index exceeds size."); + if (volumesAttached.size() <= index) throw new RuntimeException("Can't edit volumesAttached. Index exceeds size."); return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); } - public V1NodeStatusFluent.VolumesAttachedNested editFirstVolumesAttached() { - if (volumesAttached.size() == 0) - throw new RuntimeException("Can't edit first volumesAttached. The list is empty."); + if (volumesAttached.size() == 0) throw new RuntimeException("Can't edit first volumesAttached. The list is empty."); return setNewVolumesAttachedLike(0, buildVolumesAttached(0)); } - public V1NodeStatusFluent.VolumesAttachedNested editLastVolumesAttached() { int index = volumesAttached.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last volumesAttached. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last volumesAttached. The list is empty."); return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); } - - public V1NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached( - Predicate predicate) { + public V1NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate) { int index = -1; - for (int i = 0; i < volumesAttached.size(); i++) { - if (predicate.test(volumesAttached.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching volumesAttached. No match found."); + for (int i=0;i(); - } + public A addToVolumesInUse(Integer index,String item) { + if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} this.volumesInUse.add(index, item); - return (A) this; + return (A)this; } - - public A setToVolumesInUse(Integer index, String item) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - this.volumesInUse.set(index, item); - return (A) this; + public A setToVolumesInUse(Integer index,String item) { + if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} + this.volumesInUse.set(index, item); return (A)this; } - public A addToVolumesInUse(java.lang.String... items) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - for (String item : items) { - this.volumesInUse.add(item); - } - return (A) this; + if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} + for (String item : items) {this.volumesInUse.add(item);} return (A)this; } - public A addAllToVolumesInUse(Collection items) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - for (String item : items) { - this.volumesInUse.add(item); - } - return (A) this; + if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} + for (String item : items) {this.volumesInUse.add(item);} return (A)this; } - public A removeFromVolumesInUse(java.lang.String... items) { - for (String item : items) { - if (this.volumesInUse != null) { - this.volumesInUse.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.volumesInUse!= null){ this.volumesInUse.remove(item);}} return (A)this; } - public A removeAllFromVolumesInUse(Collection items) { - for (String item : items) { - if (this.volumesInUse != null) { - this.volumesInUse.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.volumesInUse!= null){ this.volumesInUse.remove(item);}} return (A)this; } - public List getVolumesInUse() { return this.volumesInUse; } - public String getVolumesInUse(Integer index) { return this.volumesInUse.get(index); } - public String getFirstVolumesInUse() { return this.volumesInUse.get(0); } - public String getLastVolumesInUse() { return this.volumesInUse.get(volumesInUse.size() - 1); } - public String getMatchingVolumesInUse(Predicate predicate) { - for (String item : volumesInUse) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: volumesInUse) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVolumesInUse(Predicate predicate) { - for (String item : volumesInUse) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: volumesInUse) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumesInUse(List volumesInUse) { - if (volumesInUse != null) { - this.volumesInUse = new ArrayList(); - for (String item : volumesInUse) { - this.addToVolumesInUse(item); - } - } else { - this.volumesInUse = null; - } - return (A) this; + if (volumesInUse != null) {this.volumesInUse = new ArrayList(); for (String item : volumesInUse){this.addToVolumesInUse(item);}} else { this.volumesInUse = null;} return (A) this; } - public A withVolumesInUse(java.lang.String... volumesInUse) { - if (this.volumesInUse != null) { - this.volumesInUse.clear(); - } - if (volumesInUse != null) { - for (String item : volumesInUse) { - this.addToVolumesInUse(item); - } - } - return (A) this; + if (this.volumesInUse != null) {this.volumesInUse.clear();} + if (volumesInUse != null) {for (String item :volumesInUse){ this.addToVolumesInUse(item);}} return (A) this; } - public Boolean hasVolumesInUse() { return volumesInUse != null && !volumesInUse.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeStatusFluentImpl that = (V1NodeStatusFluentImpl) o; - if (addresses != null ? !addresses.equals(that.addresses) : that.addresses != null) - return false; - if (allocatable != null ? !allocatable.equals(that.allocatable) : that.allocatable != null) - return false; - if (capacity != null ? !capacity.equals(that.capacity) : that.capacity != null) return false; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (config != null ? !config.equals(that.config) : that.config != null) return false; - if (daemonEndpoints != null - ? !daemonEndpoints.equals(that.daemonEndpoints) - : that.daemonEndpoints != null) return false; - if (images != null ? !images.equals(that.images) : that.images != null) return false; - if (nodeInfo != null ? !nodeInfo.equals(that.nodeInfo) : that.nodeInfo != null) return false; - if (phase != null ? !phase.equals(that.phase) : that.phase != null) return false; - if (volumesAttached != null - ? !volumesAttached.equals(that.volumesAttached) - : that.volumesAttached != null) return false; - if (volumesInUse != null ? !volumesInUse.equals(that.volumesInUse) : that.volumesInUse != null) - return false; + if (addresses != null ? !addresses.equals(that.addresses) :that.addresses != null) return false; + if (allocatable != null ? !allocatable.equals(that.allocatable) :that.allocatable != null) return false; + if (capacity != null ? !capacity.equals(that.capacity) :that.capacity != null) return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (config != null ? !config.equals(that.config) :that.config != null) return false; + if (daemonEndpoints != null ? !daemonEndpoints.equals(that.daemonEndpoints) :that.daemonEndpoints != null) return false; + if (images != null ? !images.equals(that.images) :that.images != null) return false; + if (nodeInfo != null ? !nodeInfo.equals(that.nodeInfo) :that.nodeInfo != null) return false; + if (phase != null ? !phase.equals(that.phase) :that.phase != null) return false; + if (volumesAttached != null ? !volumesAttached.equals(that.volumesAttached) :that.volumesAttached != null) return false; + if (volumesInUse != null ? !volumesInUse.equals(that.volumesInUse) :that.volumesInUse != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - addresses, - allocatable, - capacity, - conditions, - config, - daemonEndpoints, - images, - nodeInfo, - phase, - volumesAttached, - volumesInUse, - super.hashCode()); + return java.util.Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, images, nodeInfo, phase, volumesAttached, volumesInUse, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (addresses != null && !addresses.isEmpty()) { - sb.append("addresses:"); - sb.append(addresses + ","); - } - if (allocatable != null && !allocatable.isEmpty()) { - sb.append("allocatable:"); - sb.append(allocatable + ","); - } - if (capacity != null && !capacity.isEmpty()) { - sb.append("capacity:"); - sb.append(capacity + ","); - } - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (config != null) { - sb.append("config:"); - sb.append(config + ","); - } - if (daemonEndpoints != null) { - sb.append("daemonEndpoints:"); - sb.append(daemonEndpoints + ","); - } - if (images != null && !images.isEmpty()) { - sb.append("images:"); - sb.append(images + ","); - } - if (nodeInfo != null) { - sb.append("nodeInfo:"); - sb.append(nodeInfo + ","); - } - if (phase != null) { - sb.append("phase:"); - sb.append(phase + ","); - } - if (volumesAttached != null && !volumesAttached.isEmpty()) { - sb.append("volumesAttached:"); - sb.append(volumesAttached + ","); - } - if (volumesInUse != null && !volumesInUse.isEmpty()) { - sb.append("volumesInUse:"); - sb.append(volumesInUse); - } + if (addresses != null && !addresses.isEmpty()) { sb.append("addresses:"); sb.append(addresses + ","); } + if (allocatable != null && !allocatable.isEmpty()) { sb.append("allocatable:"); sb.append(allocatable + ","); } + if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (config != null) { sb.append("config:"); sb.append(config + ","); } + if (daemonEndpoints != null) { sb.append("daemonEndpoints:"); sb.append(daemonEndpoints + ","); } + if (images != null && !images.isEmpty()) { sb.append("images:"); sb.append(images + ","); } + if (nodeInfo != null) { sb.append("nodeInfo:"); sb.append(nodeInfo + ","); } + if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } + if (volumesAttached != null && !volumesAttached.isEmpty()) { sb.append("volumesAttached:"); sb.append(volumesAttached + ","); } + if (volumesInUse != null && !volumesInUse.isEmpty()) { sb.append("volumesInUse:"); sb.append(volumesInUse); } sb.append("}"); return sb.toString(); } - - class AddressesNestedImpl - extends V1NodeAddressFluentImpl> - implements V1NodeStatusFluent.AddressesNested, Nested { - AddressesNestedImpl(Integer index, V1NodeAddress item) { + class AddressesNestedImpl extends V1NodeAddressFluentImpl> implements V1NodeStatusFluent.AddressesNested,Nested{ + AddressesNestedImpl(Integer index,V1NodeAddress item) { this.index = index; this.builder = new V1NodeAddressBuilder(this, item); } - AddressesNestedImpl() { this.index = -1; this.builder = new V1NodeAddressBuilder(this); } - V1NodeAddressBuilder builder; Integer index; - public N and() { - return (N) V1NodeStatusFluentImpl.this.setToAddresses(index, builder.build()); + return (N) V1NodeStatusFluentImpl.this.setToAddresses(index,builder.build()); } - public N endAddress() { return and(); } + } - - class ConditionsNestedImpl - extends V1NodeConditionFluentImpl> - implements V1NodeStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1NodeCondition item) { + class ConditionsNestedImpl extends V1NodeConditionFluentImpl> implements V1NodeStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1NodeCondition item) { this.index = index; this.builder = new V1NodeConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1NodeConditionBuilder(this); } - V1NodeConditionBuilder builder; Integer index; - public N and() { - return (N) V1NodeStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1NodeStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class ConfigNestedImpl extends V1NodeConfigStatusFluentImpl> - implements V1NodeStatusFluent.ConfigNested, Nested { + class ConfigNestedImpl extends V1NodeConfigStatusFluentImpl> implements V1NodeStatusFluent.ConfigNested,Nested{ ConfigNestedImpl(V1NodeConfigStatus item) { this.builder = new V1NodeConfigStatusBuilder(this, item); } - ConfigNestedImpl() { this.builder = new V1NodeConfigStatusBuilder(this); } - V1NodeConfigStatusBuilder builder; - public N and() { return (N) V1NodeStatusFluentImpl.this.withConfig(builder.build()); } - public N endConfig() { return and(); } + } - - class DaemonEndpointsNestedImpl - extends V1NodeDaemonEndpointsFluentImpl> - implements V1NodeStatusFluent.DaemonEndpointsNested, Nested { + class DaemonEndpointsNestedImpl extends V1NodeDaemonEndpointsFluentImpl> implements V1NodeStatusFluent.DaemonEndpointsNested,Nested{ DaemonEndpointsNestedImpl(V1NodeDaemonEndpoints item) { this.builder = new V1NodeDaemonEndpointsBuilder(this, item); } - DaemonEndpointsNestedImpl() { this.builder = new V1NodeDaemonEndpointsBuilder(this); } - V1NodeDaemonEndpointsBuilder builder; - public N and() { return (N) V1NodeStatusFluentImpl.this.withDaemonEndpoints(builder.build()); } - public N endDaemonEndpoints() { return and(); } + } - - class ImagesNestedImpl extends V1ContainerImageFluentImpl> - implements V1NodeStatusFluent.ImagesNested, Nested { - ImagesNestedImpl(Integer index, V1ContainerImage item) { + class ImagesNestedImpl extends V1ContainerImageFluentImpl> implements V1NodeStatusFluent.ImagesNested,Nested{ + ImagesNestedImpl(Integer index,V1ContainerImage item) { this.index = index; this.builder = new V1ContainerImageBuilder(this, item); } - ImagesNestedImpl() { this.index = -1; this.builder = new V1ContainerImageBuilder(this); } - V1ContainerImageBuilder builder; Integer index; - public N and() { - return (N) V1NodeStatusFluentImpl.this.setToImages(index, builder.build()); + return (N) V1NodeStatusFluentImpl.this.setToImages(index,builder.build()); } - public N endImage() { return and(); } + } - - class NodeInfoNestedImpl - extends V1NodeSystemInfoFluentImpl> - implements V1NodeStatusFluent.NodeInfoNested, Nested { + class NodeInfoNestedImpl extends V1NodeSystemInfoFluentImpl> implements V1NodeStatusFluent.NodeInfoNested,Nested{ NodeInfoNestedImpl(V1NodeSystemInfo item) { this.builder = new V1NodeSystemInfoBuilder(this, item); } - NodeInfoNestedImpl() { this.builder = new V1NodeSystemInfoBuilder(this); } - V1NodeSystemInfoBuilder builder; - public N and() { return (N) V1NodeStatusFluentImpl.this.withNodeInfo(builder.build()); } - public N endNodeInfo() { return and(); } + } - - class VolumesAttachedNestedImpl - extends V1AttachedVolumeFluentImpl> - implements V1NodeStatusFluent.VolumesAttachedNested, Nested { - VolumesAttachedNestedImpl(Integer index, V1AttachedVolume item) { + class VolumesAttachedNestedImpl extends V1AttachedVolumeFluentImpl> implements V1NodeStatusFluent.VolumesAttachedNested,Nested{ + VolumesAttachedNestedImpl(Integer index,V1AttachedVolume item) { this.index = index; this.builder = new V1AttachedVolumeBuilder(this, item); } - VolumesAttachedNestedImpl() { this.index = -1; this.builder = new V1AttachedVolumeBuilder(this); } - V1AttachedVolumeBuilder builder; Integer index; - public N and() { - return (N) V1NodeStatusFluentImpl.this.setToVolumesAttached(index, builder.build()); + return (N) V1NodeStatusFluentImpl.this.setToVolumesAttached(index,builder.build()); } - public N endVolumesAttached() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java index c014b11e5c..2728557320 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluentImpl implements VisitableBuilder{ public V1NodeSystemInfoBuilder() { this(false); } - public V1NodeSystemInfoBuilder(Boolean validationEnabled) { this(new V1NodeSystemInfo(), validationEnabled); } - public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent) { this(fluent, false); } - - public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent, Boolean validationEnabled) { + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,Boolean validationEnabled) { this(fluent, new V1NodeSystemInfo(), validationEnabled); } - - public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent, V1NodeSystemInfo instance) { + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,V1NodeSystemInfo instance) { this(fluent, instance, false); } - - public V1NodeSystemInfoBuilder( - V1NodeSystemInfoFluent fluent, V1NodeSystemInfo instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,V1NodeSystemInfo instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withArchitecture(instance.getArchitecture()); fluent.withBootID(instance.getBootID()); @@ -59,15 +40,13 @@ public V1NodeSystemInfoBuilder( fluent.withSystemUUID(instance.getSystemUUID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance) { - this(instance, false); + this(instance,false); } - - public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance, Boolean validationEnabled) { - this.fluent = this; + public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance,Boolean validationEnabled) { + this.fluent = this; this.withArchitecture(instance.getArchitecture()); this.withBootID(instance.getBootID()); @@ -88,12 +67,10 @@ public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance, Boolean validationEnab this.withSystemUUID(instance.getSystemUUID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NodeSystemInfoFluent fluent; Boolean validationEnabled; - public V1NodeSystemInfo build() { V1NodeSystemInfo buildable = new V1NodeSystemInfo(); buildable.setArchitecture(fluent.getArchitecture()); @@ -108,4 +85,5 @@ public V1NodeSystemInfo build() { buildable.setSystemUUID(fluent.getSystemUUID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java index cab0292467..c8c2671f25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java @@ -1,78 +1,42 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NodeSystemInfoFluent> extends Fluent { + /** + * Generated + */ +public interface V1NodeSystemInfoFluent> extends Fluent{ public String getArchitecture(); - public A withArchitecture(String architecture); - public Boolean hasArchitecture(); - public String getBootID(); - public A withBootID(String bootID); - public Boolean hasBootID(); - public String getContainerRuntimeVersion(); - public A withContainerRuntimeVersion(String containerRuntimeVersion); - public Boolean hasContainerRuntimeVersion(); - public String getKernelVersion(); - public A withKernelVersion(String kernelVersion); - public Boolean hasKernelVersion(); - public String getKubeProxyVersion(); - public A withKubeProxyVersion(String kubeProxyVersion); - public Boolean hasKubeProxyVersion(); - public String getKubeletVersion(); - public A withKubeletVersion(String kubeletVersion); - public Boolean hasKubeletVersion(); - public String getMachineID(); - public A withMachineID(String machineID); - public Boolean hasMachineID(); - public String getOperatingSystem(); - public A withOperatingSystem(String operatingSystem); - public Boolean hasOperatingSystem(); - public String getOsImage(); - public A withOsImage(String osImage); - public Boolean hasOsImage(); - public String getSystemUUID(); - public A withSystemUUID(String systemUUID); - public Boolean hasSystemUUID(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java index 59f25d028b..3548297e33 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NodeSystemInfoFluentImpl> extends BaseFluent - implements V1NodeSystemInfoFluent { - public V1NodeSystemInfoFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NodeSystemInfoFluentImpl> extends BaseFluent implements V1NodeSystemInfoFluent{ + public V1NodeSystemInfoFluentImpl() { + } public V1NodeSystemInfoFluentImpl(V1NodeSystemInfo instance) { this.withArchitecture(instance.getArchitecture()); @@ -40,8 +33,8 @@ public V1NodeSystemInfoFluentImpl(V1NodeSystemInfo instance) { this.withOsImage(instance.getOsImage()); this.withSystemUUID(instance.getSystemUUID()); - } + } private String architecture; private String bootID; private String containerRuntimeVersion; @@ -52,226 +45,130 @@ public V1NodeSystemInfoFluentImpl(V1NodeSystemInfo instance) { private String operatingSystem; private String osImage; private String systemUUID; - public String getArchitecture() { return this.architecture; } - public A withArchitecture(String architecture) { - this.architecture = architecture; - return (A) this; + this.architecture=architecture; return (A) this; } - public Boolean hasArchitecture() { return this.architecture != null; } - public String getBootID() { return this.bootID; } - public A withBootID(String bootID) { - this.bootID = bootID; - return (A) this; + this.bootID=bootID; return (A) this; } - public Boolean hasBootID() { return this.bootID != null; } - public String getContainerRuntimeVersion() { return this.containerRuntimeVersion; } - public A withContainerRuntimeVersion(String containerRuntimeVersion) { - this.containerRuntimeVersion = containerRuntimeVersion; - return (A) this; + this.containerRuntimeVersion=containerRuntimeVersion; return (A) this; } - public Boolean hasContainerRuntimeVersion() { return this.containerRuntimeVersion != null; } - public String getKernelVersion() { return this.kernelVersion; } - public A withKernelVersion(String kernelVersion) { - this.kernelVersion = kernelVersion; - return (A) this; + this.kernelVersion=kernelVersion; return (A) this; } - public Boolean hasKernelVersion() { return this.kernelVersion != null; } - public String getKubeProxyVersion() { return this.kubeProxyVersion; } - public A withKubeProxyVersion(String kubeProxyVersion) { - this.kubeProxyVersion = kubeProxyVersion; - return (A) this; + this.kubeProxyVersion=kubeProxyVersion; return (A) this; } - public Boolean hasKubeProxyVersion() { return this.kubeProxyVersion != null; } - public String getKubeletVersion() { return this.kubeletVersion; } - public A withKubeletVersion(String kubeletVersion) { - this.kubeletVersion = kubeletVersion; - return (A) this; + this.kubeletVersion=kubeletVersion; return (A) this; } - public Boolean hasKubeletVersion() { return this.kubeletVersion != null; } - public String getMachineID() { return this.machineID; } - public A withMachineID(String machineID) { - this.machineID = machineID; - return (A) this; + this.machineID=machineID; return (A) this; } - public Boolean hasMachineID() { return this.machineID != null; } - public String getOperatingSystem() { return this.operatingSystem; } - public A withOperatingSystem(String operatingSystem) { - this.operatingSystem = operatingSystem; - return (A) this; + this.operatingSystem=operatingSystem; return (A) this; } - public Boolean hasOperatingSystem() { return this.operatingSystem != null; } - public String getOsImage() { return this.osImage; } - public A withOsImage(String osImage) { - this.osImage = osImage; - return (A) this; + this.osImage=osImage; return (A) this; } - public Boolean hasOsImage() { return this.osImage != null; } - public String getSystemUUID() { return this.systemUUID; } - public A withSystemUUID(String systemUUID) { - this.systemUUID = systemUUID; - return (A) this; + this.systemUUID=systemUUID; return (A) this; } - public Boolean hasSystemUUID() { return this.systemUUID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NodeSystemInfoFluentImpl that = (V1NodeSystemInfoFluentImpl) o; - if (architecture != null ? !architecture.equals(that.architecture) : that.architecture != null) - return false; - if (bootID != null ? !bootID.equals(that.bootID) : that.bootID != null) return false; - if (containerRuntimeVersion != null - ? !containerRuntimeVersion.equals(that.containerRuntimeVersion) - : that.containerRuntimeVersion != null) return false; - if (kernelVersion != null - ? !kernelVersion.equals(that.kernelVersion) - : that.kernelVersion != null) return false; - if (kubeProxyVersion != null - ? !kubeProxyVersion.equals(that.kubeProxyVersion) - : that.kubeProxyVersion != null) return false; - if (kubeletVersion != null - ? !kubeletVersion.equals(that.kubeletVersion) - : that.kubeletVersion != null) return false; - if (machineID != null ? !machineID.equals(that.machineID) : that.machineID != null) - return false; - if (operatingSystem != null - ? !operatingSystem.equals(that.operatingSystem) - : that.operatingSystem != null) return false; - if (osImage != null ? !osImage.equals(that.osImage) : that.osImage != null) return false; - if (systemUUID != null ? !systemUUID.equals(that.systemUUID) : that.systemUUID != null) - return false; + if (architecture != null ? !architecture.equals(that.architecture) :that.architecture != null) return false; + if (bootID != null ? !bootID.equals(that.bootID) :that.bootID != null) return false; + if (containerRuntimeVersion != null ? !containerRuntimeVersion.equals(that.containerRuntimeVersion) :that.containerRuntimeVersion != null) return false; + if (kernelVersion != null ? !kernelVersion.equals(that.kernelVersion) :that.kernelVersion != null) return false; + if (kubeProxyVersion != null ? !kubeProxyVersion.equals(that.kubeProxyVersion) :that.kubeProxyVersion != null) return false; + if (kubeletVersion != null ? !kubeletVersion.equals(that.kubeletVersion) :that.kubeletVersion != null) return false; + if (machineID != null ? !machineID.equals(that.machineID) :that.machineID != null) return false; + if (operatingSystem != null ? !operatingSystem.equals(that.operatingSystem) :that.operatingSystem != null) return false; + if (osImage != null ? !osImage.equals(that.osImage) :that.osImage != null) return false; + if (systemUUID != null ? !systemUUID.equals(that.systemUUID) :that.systemUUID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - architecture, - bootID, - containerRuntimeVersion, - kernelVersion, - kubeProxyVersion, - kubeletVersion, - machineID, - operatingSystem, - osImage, - systemUUID, - super.hashCode()); + return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (architecture != null) { - sb.append("architecture:"); - sb.append(architecture + ","); - } - if (bootID != null) { - sb.append("bootID:"); - sb.append(bootID + ","); - } - if (containerRuntimeVersion != null) { - sb.append("containerRuntimeVersion:"); - sb.append(containerRuntimeVersion + ","); - } - if (kernelVersion != null) { - sb.append("kernelVersion:"); - sb.append(kernelVersion + ","); - } - if (kubeProxyVersion != null) { - sb.append("kubeProxyVersion:"); - sb.append(kubeProxyVersion + ","); - } - if (kubeletVersion != null) { - sb.append("kubeletVersion:"); - sb.append(kubeletVersion + ","); - } - if (machineID != null) { - sb.append("machineID:"); - sb.append(machineID + ","); - } - if (operatingSystem != null) { - sb.append("operatingSystem:"); - sb.append(operatingSystem + ","); - } - if (osImage != null) { - sb.append("osImage:"); - sb.append(osImage + ","); - } - if (systemUUID != null) { - sb.append("systemUUID:"); - sb.append(systemUUID); - } + if (architecture != null) { sb.append("architecture:"); sb.append(architecture + ","); } + if (bootID != null) { sb.append("bootID:"); sb.append(bootID + ","); } + if (containerRuntimeVersion != null) { sb.append("containerRuntimeVersion:"); sb.append(containerRuntimeVersion + ","); } + if (kernelVersion != null) { sb.append("kernelVersion:"); sb.append(kernelVersion + ","); } + if (kubeProxyVersion != null) { sb.append("kubeProxyVersion:"); sb.append(kubeProxyVersion + ","); } + if (kubeletVersion != null) { sb.append("kubeletVersion:"); sb.append(kubeletVersion + ","); } + if (machineID != null) { sb.append("machineID:"); sb.append(machineID + ","); } + if (operatingSystem != null) { sb.append("operatingSystem:"); sb.append(operatingSystem + ","); } + if (osImage != null) { sb.append("osImage:"); sb.append(osImage + ","); } + if (systemUUID != null) { sb.append("systemUUID:"); sb.append(systemUUID); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java index 351fbd9401..0a302c5403 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NonResourceAttributesBuilder - extends V1NonResourceAttributesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NonResourceAttributesBuilder extends V1NonResourceAttributesFluentImpl implements VisitableBuilder{ public V1NonResourceAttributesBuilder() { this(false); } - public V1NonResourceAttributesBuilder(Boolean validationEnabled) { this(new V1NonResourceAttributes(), validationEnabled); } - public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent) { this(fluent, false); } - - public V1NonResourceAttributesBuilder( - V1NonResourceAttributesFluent fluent, Boolean validationEnabled) { + public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,Boolean validationEnabled) { this(fluent, new V1NonResourceAttributes(), validationEnabled); } - - public V1NonResourceAttributesBuilder( - V1NonResourceAttributesFluent fluent, V1NonResourceAttributes instance) { + public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,V1NonResourceAttributes instance) { this(fluent, instance, false); } - - public V1NonResourceAttributesBuilder( - V1NonResourceAttributesFluent fluent, - V1NonResourceAttributes instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,V1NonResourceAttributes instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPath(instance.getPath()); fluent.withVerb(instance.getVerb()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NonResourceAttributesBuilder(V1NonResourceAttributes instance) { - this(instance, false); + this(instance,false); } - - public V1NonResourceAttributesBuilder( - V1NonResourceAttributes instance, Boolean validationEnabled) { - this.fluent = this; + public V1NonResourceAttributesBuilder(V1NonResourceAttributes instance,Boolean validationEnabled) { + this.fluent = this; this.withPath(instance.getPath()); this.withVerb(instance.getVerb()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NonResourceAttributesFluent fluent; Boolean validationEnabled; - public V1NonResourceAttributes build() { V1NonResourceAttributes buildable = new V1NonResourceAttributes(); buildable.setPath(fluent.getPath()); buildable.setVerb(fluent.getVerb()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java index 26d77046e0..bb0e0a5b34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1NonResourceAttributesFluent> - extends Fluent { + /** + * Generated + */ +public interface V1NonResourceAttributesFluent> extends Fluent{ public String getPath(); - public A withPath(String path); - public Boolean hasPath(); - public String getVerb(); - public A withVerb(String verb); - public Boolean hasVerb(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java index 9eeaf18e91..b11bd2b798 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NonResourceAttributesFluentImpl> - extends BaseFluent implements V1NonResourceAttributesFluent { - public V1NonResourceAttributesFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NonResourceAttributesFluentImpl> extends BaseFluent implements V1NonResourceAttributesFluent{ + public V1NonResourceAttributesFluentImpl() { + } public V1NonResourceAttributesFluentImpl(V1NonResourceAttributes instance) { this.withPath(instance.getPath()); this.withVerb(instance.getVerb()); - } + } private String path; private String verb; - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public String getVerb() { return this.verb; } - public A withVerb(String verb) { - this.verb = verb; - return (A) this; + this.verb=verb; return (A) this; } - public Boolean hasVerb() { return this.verb != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NonResourceAttributesFluentImpl that = (V1NonResourceAttributesFluentImpl) o; - if (path != null ? !path.equals(that.path) : that.path != null) return false; - if (verb != null ? !verb.equals(that.verb) : that.verb != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; + if (verb != null ? !verb.equals(that.verb) :that.verb != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(path, verb, super.hashCode()); + return java.util.Objects.hash(path, verb, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { - sb.append("path:"); - sb.append(path + ","); - } - if (verb != null) { - sb.append("verb:"); - sb.append(verb); - } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (verb != null) { sb.append("verb:"); sb.append(verb); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java index 5e86c754b1..e7779768f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluentImpl implements VisitableBuilder{ public V1NonResourceRuleBuilder() { this(false); } - public V1NonResourceRuleBuilder(Boolean validationEnabled) { this(new V1NonResourceRule(), validationEnabled); } - public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent) { this(fluent, false); } - - public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent, Boolean validationEnabled) { + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1NonResourceRule(), validationEnabled); } - - public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent, V1NonResourceRule instance) { + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,V1NonResourceRule instance) { this(fluent, instance, false); } - - public V1NonResourceRuleBuilder( - V1NonResourceRuleFluent fluent, V1NonResourceRule instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,V1NonResourceRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNonResourceURLs(instance.getNonResourceURLs()); fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1NonResourceRuleBuilder(V1NonResourceRule instance) { - this(instance, false); + this(instance,false); } - - public V1NonResourceRuleBuilder(V1NonResourceRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1NonResourceRuleBuilder(V1NonResourceRule instance,Boolean validationEnabled) { + this.fluent = this; this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1NonResourceRuleFluent fluent; Boolean validationEnabled; - public V1NonResourceRule build() { V1NonResourceRule buildable = new V1NonResourceRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java index 95d5ad9df9..e44d311fdb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java @@ -1,81 +1,47 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1NonResourceRuleFluent> extends Fluent { - public A addToNonResourceURLs(Integer index, String item); - - public A setToNonResourceURLs(Integer index, String item); - + /** + * Generated + */ +public interface V1NonResourceRuleFluent> extends Fluent{ + public A addToNonResourceURLs(Integer index,String item); + public A setToNonResourceURLs(Integer index,String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); - public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); - public String getNonResourceURL(Integer index); - public String getFirstNonResourceURL(); - public String getLastNonResourceURL(); - public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(List nonResourceURLs); - public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public Boolean hasNonResourceURLs(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java index a684ede81b..e8bd0205c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java @@ -1,297 +1,151 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1NonResourceRuleFluentImpl> extends BaseFluent - implements V1NonResourceRuleFluent { - public V1NonResourceRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1NonResourceRuleFluentImpl> extends BaseFluent implements V1NonResourceRuleFluent{ + public V1NonResourceRuleFluentImpl() { + } public V1NonResourceRuleFluentImpl(V1NonResourceRule instance) { this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); - } + } private List nonResourceURLs; private List verbs; - - public A addToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } + public A addToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} this.nonResourceURLs.add(index, item); - return (A) this; + return (A)this; } - - public A setToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - this.nonResourceURLs.set(index, item); - return (A) this; + public A setToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + this.nonResourceURLs.set(index, item); return (A)this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public A removeAllFromNonResourceURLs(Collection items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public List getNonResourceURLs() { return this.nonResourceURLs; } - public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } else { - this.nonResourceURLs = null; - } - return (A) this; + if (nonResourceURLs != null) {this.nonResourceURLs = new ArrayList(); for (String item : nonResourceURLs){this.addToNonResourceURLs(item);}} else { this.nonResourceURLs = null;} return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } - return (A) this; + if (this.nonResourceURLs != null) {this.nonResourceURLs.clear();} + if (nonResourceURLs != null) {for (String item :nonResourceURLs){ this.addToNonResourceURLs(item);}} return (A) this; } - public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1NonResourceRuleFluentImpl that = (V1NonResourceRuleFluentImpl) o; - if (nonResourceURLs != null - ? !nonResourceURLs.equals(that.nonResourceURLs) - : that.nonResourceURLs != null) return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (nonResourceURLs != null ? !nonResourceURLs.equals(that.nonResourceURLs) :that.nonResourceURLs != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); + return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java index 52f04ce8dc..cfe36f8d10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ObjectFieldSelectorBuilder - extends V1ObjectFieldSelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ObjectFieldSelectorBuilder extends V1ObjectFieldSelectorFluentImpl implements VisitableBuilder{ public V1ObjectFieldSelectorBuilder() { this(false); } - public V1ObjectFieldSelectorBuilder(Boolean validationEnabled) { this(new V1ObjectFieldSelector(), validationEnabled); } - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent) { this(fluent, false); } - - public V1ObjectFieldSelectorBuilder( - V1ObjectFieldSelectorFluent fluent, Boolean validationEnabled) { + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1ObjectFieldSelector(), validationEnabled); } - - public V1ObjectFieldSelectorBuilder( - V1ObjectFieldSelectorFluent fluent, V1ObjectFieldSelector instance) { + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,V1ObjectFieldSelector instance) { this(fluent, instance, false); } - - public V1ObjectFieldSelectorBuilder( - V1ObjectFieldSelectorFluent fluent, - V1ObjectFieldSelector instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,V1ObjectFieldSelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withFieldPath(instance.getFieldPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance) { - this(instance, false); + this(instance,false); } - - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withFieldPath(instance.getFieldPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ObjectFieldSelectorFluent fluent; Boolean validationEnabled; - public V1ObjectFieldSelector build() { V1ObjectFieldSelector buildable = new V1ObjectFieldSelector(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setFieldPath(fluent.getFieldPath()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java index 62e3288fa5..cb2a63cda8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ObjectFieldSelectorFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ObjectFieldSelectorFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getFieldPath(); - public A withFieldPath(String fieldPath); - public Boolean hasFieldPath(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java index 0d9f200770..2b2a2bedd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java @@ -1,87 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ObjectFieldSelectorFluentImpl> - extends BaseFluent implements V1ObjectFieldSelectorFluent { - public V1ObjectFieldSelectorFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ObjectFieldSelectorFluentImpl> extends BaseFluent implements V1ObjectFieldSelectorFluent{ + public V1ObjectFieldSelectorFluentImpl() { + } public V1ObjectFieldSelectorFluentImpl(V1ObjectFieldSelector instance) { this.withApiVersion(instance.getApiVersion()); this.withFieldPath(instance.getFieldPath()); - } + } private String apiVersion; private String fieldPath; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; + this.fieldPath=fieldPath; return (A) this; } - public Boolean hasFieldPath() { return this.fieldPath != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ObjectFieldSelectorFluentImpl that = (V1ObjectFieldSelectorFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (fieldPath != null ? !fieldPath.equals(that.fieldPath) : that.fieldPath != null) - return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (fieldPath != null ? !fieldPath.equals(that.fieldPath) :that.fieldPath != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldPath, super.hashCode()); + return java.util.Objects.hash(apiVersion, fieldPath, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (fieldPath != null) { - sb.append("fieldPath:"); - sb.append(fieldPath); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java index 30141a2c2c..19f5a3f392 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ObjectMetaBuilder extends V1ObjectMetaFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ObjectMetaBuilder extends V1ObjectMetaFluentImpl implements VisitableBuilder{ public V1ObjectMetaBuilder() { this(false); } - public V1ObjectMetaBuilder(Boolean validationEnabled) { this(new V1ObjectMeta(), validationEnabled); } - public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent) { this(fluent, false); } - - public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent, Boolean validationEnabled) { + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,Boolean validationEnabled) { this(fluent, new V1ObjectMeta(), validationEnabled); } - - public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent, V1ObjectMeta instance) { + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,V1ObjectMeta instance) { this(fluent, instance, false); } - - public V1ObjectMetaBuilder( - V1ObjectMetaFluent fluent, V1ObjectMeta instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,V1ObjectMeta instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAnnotations(instance.getAnnotations()); fluent.withCreationTimestamp(instance.getCreationTimestamp()); @@ -69,15 +50,13 @@ public V1ObjectMetaBuilder( fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ObjectMetaBuilder(V1ObjectMeta instance) { - this(instance, false); + this(instance,false); } - - public V1ObjectMetaBuilder(V1ObjectMeta instance, Boolean validationEnabled) { - this.fluent = this; + public V1ObjectMetaBuilder(V1ObjectMeta instance,Boolean validationEnabled) { + this.fluent = this; this.withAnnotations(instance.getAnnotations()); this.withCreationTimestamp(instance.getCreationTimestamp()); @@ -108,12 +87,10 @@ public V1ObjectMetaBuilder(V1ObjectMeta instance, Boolean validationEnabled) { this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ObjectMetaFluent fluent; Boolean validationEnabled; - public V1ObjectMeta build() { V1ObjectMeta buildable = new V1ObjectMeta(); buildable.setAnnotations(fluent.getAnnotations()); @@ -133,4 +110,5 @@ public V1ObjectMeta build() { buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java index de10a2ace9..9cf52bcb05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java @@ -1,274 +1,154 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; +import java.lang.Long; import java.util.Collection; -import java.util.List; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ObjectMetaFluent> extends Fluent { - public A addToAnnotations(String key, String value); - - public A addToAnnotations(Map map); + /** + * Generated + */ +public interface V1ObjectMetaFluent> extends Fluent{ + public A addToAnnotations(String key,String value); + public A addToAnnotations(Map map); public A removeFromAnnotations(String key); - - public A removeFromAnnotations(Map map); - - public Map getAnnotations(); - - public A withAnnotations(Map annotations); - + public A removeFromAnnotations(Map map); + public Map getAnnotations(); + public A withAnnotations(Map annotations); public Boolean hasAnnotations(); - public OffsetDateTime getCreationTimestamp(); - public A withCreationTimestamp(OffsetDateTime creationTimestamp); - public Boolean hasCreationTimestamp(); - public Long getDeletionGracePeriodSeconds(); - public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds); - public Boolean hasDeletionGracePeriodSeconds(); - public OffsetDateTime getDeletionTimestamp(); - public A withDeletionTimestamp(OffsetDateTime deletionTimestamp); - public Boolean hasDeletionTimestamp(); - - public A addToFinalizers(Integer index, String item); - - public A setToFinalizers(Integer index, String item); - + public A addToFinalizers(Integer index,String item); + public A setToFinalizers(Integer index,String item); public A addToFinalizers(java.lang.String... items); - public A addAllToFinalizers(Collection items); - public A removeFromFinalizers(java.lang.String... items); - public A removeAllFromFinalizers(Collection items); - public List getFinalizers(); - public String getFinalizer(Integer index); - public String getFirstFinalizer(); - public String getLastFinalizer(); - public String getMatchingFinalizer(Predicate predicate); - public Boolean hasMatchingFinalizer(Predicate predicate); - public A withFinalizers(List finalizers); - public A withFinalizers(java.lang.String... finalizers); - public Boolean hasFinalizers(); - public String getGenerateName(); - public A withGenerateName(String generateName); - public Boolean hasGenerateName(); - public Long getGeneration(); - public A withGeneration(Long generation); - public Boolean hasGeneration(); - - public A addToLabels(String key, String value); - - public A addToLabels(Map map); - + public A addToLabels(String key,String value); + public A addToLabels(Map map); public A removeFromLabels(String key); - - public A removeFromLabels(Map map); - - public Map getLabels(); - - public A withLabels(Map labels); - + public A removeFromLabels(Map map); + public Map getLabels(); + public A withLabels(Map labels); public Boolean hasLabels(); - - public A addToManagedFields(Integer index, V1ManagedFieldsEntry item); - - public A setToManagedFields(Integer index, V1ManagedFieldsEntry item); - + public A addToManagedFields(Integer index,V1ManagedFieldsEntry item); + public A setToManagedFields(Integer index,V1ManagedFieldsEntry item); public A addToManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items); - public A addAllToManagedFields(Collection items); - - public A removeFromManagedFields( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items); - + public A removeFromManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items); public A removeAllFromManagedFields(Collection items); - public A removeMatchingFromManagedFields(Predicate predicate); - + /** * This method has been deprecated, please use method buildManagedFields instead. - * * @return The buildable object. */ @Deprecated public List getManagedFields(); - public List buildManagedFields(); - public V1ManagedFieldsEntry buildManagedField(Integer index); - public V1ManagedFieldsEntry buildFirstManagedField(); - public V1ManagedFieldsEntry buildLastManagedField(); - - public V1ManagedFieldsEntry buildMatchingManagedField( - Predicate predicate); - + public V1ManagedFieldsEntry buildMatchingManagedField(Predicate predicate); public Boolean hasMatchingManagedField(Predicate predicate); - public A withManagedFields(List managedFields); - - public A withManagedFields( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields); - + public A withManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields); public Boolean hasManagedFields(); - public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedField(); - - public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedFieldLike( - V1ManagedFieldsEntry item); - - public V1ObjectMetaFluent.ManagedFieldsNested setNewManagedFieldLike( - Integer index, V1ManagedFieldsEntry item); - + public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item); + public V1ObjectMetaFluent.ManagedFieldsNested setNewManagedFieldLike(Integer index,V1ManagedFieldsEntry item); public V1ObjectMetaFluent.ManagedFieldsNested editManagedField(Integer index); - public V1ObjectMetaFluent.ManagedFieldsNested editFirstManagedField(); - public V1ObjectMetaFluent.ManagedFieldsNested editLastManagedField(); - - public V1ObjectMetaFluent.ManagedFieldsNested editMatchingManagedField( - Predicate predicate); - + public V1ObjectMetaFluent.ManagedFieldsNested editMatchingManagedField(Predicate predicate); public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - - public A addToOwnerReferences(Integer index, V1OwnerReference item); - - public A setToOwnerReferences(Integer index, V1OwnerReference item); - + public A addToOwnerReferences(Integer index,V1OwnerReference item); + public A setToOwnerReferences(Integer index,V1OwnerReference item); public A addToOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items); - public A addAllToOwnerReferences(Collection items); - public A removeFromOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items); - public A removeAllFromOwnerReferences(Collection items); - public A removeMatchingFromOwnerReferences(Predicate predicate); - + /** * This method has been deprecated, please use method buildOwnerReferences instead. - * * @return The buildable object. */ @Deprecated public List getOwnerReferences(); - public List buildOwnerReferences(); - public V1OwnerReference buildOwnerReference(Integer index); - public V1OwnerReference buildFirstOwnerReference(); - public V1OwnerReference buildLastOwnerReference(); - public V1OwnerReference buildMatchingOwnerReference(Predicate predicate); - public Boolean hasMatchingOwnerReference(Predicate predicate); - public A withOwnerReferences(List ownerReferences); - - public A withOwnerReferences( - io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences); - + public A withOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences); public Boolean hasOwnerReferences(); - public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReference(); - - public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReferenceLike( - V1OwnerReference item); - - public V1ObjectMetaFluent.OwnerReferencesNested setNewOwnerReferenceLike( - Integer index, V1OwnerReference item); - + public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item); + public V1ObjectMetaFluent.OwnerReferencesNested setNewOwnerReferenceLike(Integer index,V1OwnerReference item); public V1ObjectMetaFluent.OwnerReferencesNested editOwnerReference(Integer index); - public V1ObjectMetaFluent.OwnerReferencesNested editFirstOwnerReference(); - public V1ObjectMetaFluent.OwnerReferencesNested editLastOwnerReference(); - - public V1ObjectMetaFluent.OwnerReferencesNested editMatchingOwnerReference( - Predicate predicate); - + public V1ObjectMetaFluent.OwnerReferencesNested editMatchingOwnerReference(Predicate predicate); public String getResourceVersion(); - public A withResourceVersion(String resourceVersion); - public Boolean hasResourceVersion(); - public String getSelfLink(); - public A withSelfLink(String selfLink); - public Boolean hasSelfLink(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); - - public interface ManagedFieldsNested - extends Nested, V1ManagedFieldsEntryFluent> { + public interface ManagedFieldsNested extends Nested,V1ManagedFieldsEntryFluent>{ public N and(); - public N endManagedField(); + } - - public interface OwnerReferencesNested - extends Nested, V1OwnerReferenceFluent> { + public interface OwnerReferencesNested extends Nested,V1OwnerReferenceFluent>{ public N and(); - public N endOwnerReference(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java index 3fa0cdb305..af3eca483b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java @@ -1,34 +1,31 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ObjectMetaFluentImpl> extends BaseFluent - implements V1ObjectMetaFluent { - public V1ObjectMetaFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ObjectMetaFluentImpl> extends BaseFluent implements V1ObjectMetaFluent{ + public V1ObjectMetaFluentImpl() { + } public V1ObjectMetaFluentImpl(V1ObjectMeta instance) { this.withAnnotations(instance.getAnnotations()); @@ -59,16 +56,16 @@ public V1ObjectMetaFluentImpl(V1ObjectMeta instance) { this.withSelfLink(instance.getSelfLink()); this.withUid(instance.getUid()); - } - private Map annotations; + } + private Map annotations; private OffsetDateTime creationTimestamp; private Long deletionGracePeriodSeconds; private OffsetDateTime deletionTimestamp; private List finalizers; private String generateName; private Long generation; - private Map labels; + private Map labels; private ArrayList managedFields; private String name; private String namespace; @@ -76,387 +73,177 @@ public V1ObjectMetaFluentImpl(V1ObjectMeta instance) { private String resourceVersion; private String selfLink; private String uid; - - public A addToAnnotations(String key, String value) { - if (this.annotations == null && key != null && value != null) { - this.annotations = new LinkedHashMap(); - } - if (key != null && value != null) { - this.annotations.put(key, value); - } - return (A) this; + public A addToAnnotations(String key,String value) { + if(this.annotations == null && key != null && value != null) { this.annotations = new LinkedHashMap(); } + if(key != null && value != null) {this.annotations.put(key, value);} return (A)this; } - - public A addToAnnotations(Map map) { - if (this.annotations == null && map != null) { - this.annotations = new LinkedHashMap(); - } - if (map != null) { - this.annotations.putAll(map); - } - return (A) this; + public A addToAnnotations(Map map) { + if(this.annotations == null && map != null) { this.annotations = new LinkedHashMap(); } + if(map != null) { this.annotations.putAll(map);} return (A)this; } - public A removeFromAnnotations(String key) { - if (this.annotations == null) { - return (A) this; - } - if (key != null && this.annotations != null) { - this.annotations.remove(key); - } - return (A) this; + if(this.annotations == null) { return (A) this; } + if(key != null && this.annotations != null) {this.annotations.remove(key);} return (A)this; } - - public A removeFromAnnotations(Map map) { - if (this.annotations == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.annotations != null) { - this.annotations.remove(key); - } - } - } - return (A) this; + public A removeFromAnnotations(Map map) { + if(this.annotations == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.annotations != null){this.annotations.remove(key);}}} return (A)this; } - - public Map getAnnotations() { + public Map getAnnotations() { return this.annotations; } - - public A withAnnotations(Map annotations) { - if (annotations == null) { - this.annotations = null; - } else { - this.annotations = new LinkedHashMap(annotations); - } - return (A) this; + public A withAnnotations(Map annotations) { + if (annotations == null) { this.annotations = null;} else {this.annotations = new LinkedHashMap(annotations);} return (A) this; } - public Boolean hasAnnotations() { return this.annotations != null; } - public OffsetDateTime getCreationTimestamp() { return this.creationTimestamp; } - public A withCreationTimestamp(OffsetDateTime creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return (A) this; + this.creationTimestamp=creationTimestamp; return (A) this; } - public Boolean hasCreationTimestamp() { return this.creationTimestamp != null; } - public Long getDeletionGracePeriodSeconds() { return this.deletionGracePeriodSeconds; } - public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { - this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; - return (A) this; + this.deletionGracePeriodSeconds=deletionGracePeriodSeconds; return (A) this; } - public Boolean hasDeletionGracePeriodSeconds() { return this.deletionGracePeriodSeconds != null; } - public OffsetDateTime getDeletionTimestamp() { return this.deletionTimestamp; } - public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { - this.deletionTimestamp = deletionTimestamp; - return (A) this; + this.deletionTimestamp=deletionTimestamp; return (A) this; } - public Boolean hasDeletionTimestamp() { return this.deletionTimestamp != null; } - - public A addToFinalizers(Integer index, String item) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } + public A addToFinalizers(Integer index,String item) { + if (this.finalizers == null) {this.finalizers = new ArrayList();} this.finalizers.add(index, item); - return (A) this; + return (A)this; } - - public A setToFinalizers(Integer index, String item) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } - this.finalizers.set(index, item); - return (A) this; + public A setToFinalizers(Integer index,String item) { + if (this.finalizers == null) {this.finalizers = new ArrayList();} + this.finalizers.set(index, item); return (A)this; } - public A addToFinalizers(java.lang.String... items) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } - for (String item : items) { - this.finalizers.add(item); - } - return (A) this; + if (this.finalizers == null) {this.finalizers = new ArrayList();} + for (String item : items) {this.finalizers.add(item);} return (A)this; } - public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); - } - for (String item : items) { - this.finalizers.add(item); - } - return (A) this; + if (this.finalizers == null) {this.finalizers = new ArrayList();} + for (String item : items) {this.finalizers.add(item);} return (A)this; } - public A removeFromFinalizers(java.lang.String... items) { - for (String item : items) { - if (this.finalizers != null) { - this.finalizers.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.finalizers!= null){ this.finalizers.remove(item);}} return (A)this; } - public A removeAllFromFinalizers(Collection items) { - for (String item : items) { - if (this.finalizers != null) { - this.finalizers.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.finalizers!= null){ this.finalizers.remove(item);}} return (A)this; } - public List getFinalizers() { return this.finalizers; } - public String getFinalizer(Integer index) { return this.finalizers.get(index); } - public String getFirstFinalizer() { return this.finalizers.get(0); } - public String getLastFinalizer() { return this.finalizers.get(finalizers.size() - 1); } - public String getMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: finalizers) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: finalizers) { if(predicate.test(item)){ return true;} } return false; } - public A withFinalizers(List finalizers) { - if (finalizers != null) { - this.finalizers = new ArrayList(); - for (String item : finalizers) { - this.addToFinalizers(item); - } - } else { - this.finalizers = null; - } - return (A) this; + if (finalizers != null) {this.finalizers = new ArrayList(); for (String item : finalizers){this.addToFinalizers(item);}} else { this.finalizers = null;} return (A) this; } - public A withFinalizers(java.lang.String... finalizers) { - if (this.finalizers != null) { - this.finalizers.clear(); - } - if (finalizers != null) { - for (String item : finalizers) { - this.addToFinalizers(item); - } - } - return (A) this; + if (this.finalizers != null) {this.finalizers.clear();} + if (finalizers != null) {for (String item :finalizers){ this.addToFinalizers(item);}} return (A) this; } - public Boolean hasFinalizers() { return finalizers != null && !finalizers.isEmpty(); } - public String getGenerateName() { return this.generateName; } - public A withGenerateName(String generateName) { - this.generateName = generateName; - return (A) this; + this.generateName=generateName; return (A) this; } - public Boolean hasGenerateName() { return this.generateName != null; } - public Long getGeneration() { return this.generation; } - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; + this.generation=generation; return (A) this; } - public Boolean hasGeneration() { return this.generation != null; } - - public A addToLabels(String key, String value) { - if (this.labels == null && key != null && value != null) { - this.labels = new LinkedHashMap(); - } - if (key != null && value != null) { - this.labels.put(key, value); - } - return (A) this; + public A addToLabels(String key,String value) { + if(this.labels == null && key != null && value != null) { this.labels = new LinkedHashMap(); } + if(key != null && value != null) {this.labels.put(key, value);} return (A)this; } - - public A addToLabels(Map map) { - if (this.labels == null && map != null) { - this.labels = new LinkedHashMap(); - } - if (map != null) { - this.labels.putAll(map); - } - return (A) this; + public A addToLabels(Map map) { + if(this.labels == null && map != null) { this.labels = new LinkedHashMap(); } + if(map != null) { this.labels.putAll(map);} return (A)this; } - public A removeFromLabels(String key) { - if (this.labels == null) { - return (A) this; - } - if (key != null && this.labels != null) { - this.labels.remove(key); - } - return (A) this; + if(this.labels == null) { return (A) this; } + if(key != null && this.labels != null) {this.labels.remove(key);} return (A)this; } - - public A removeFromLabels(Map map) { - if (this.labels == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.labels != null) { - this.labels.remove(key); - } - } - } - return (A) this; + public A removeFromLabels(Map map) { + if(this.labels == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.labels != null){this.labels.remove(key);}}} return (A)this; } - - public Map getLabels() { + public Map getLabels() { return this.labels; } - - public A withLabels(Map labels) { - if (labels == null) { - this.labels = null; - } else { - this.labels = new LinkedHashMap(labels); - } - return (A) this; + public A withLabels(Map labels) { + if (labels == null) { this.labels = null;} else {this.labels = new LinkedHashMap(labels);} return (A) this; } - public Boolean hasLabels() { return this.labels != null; } - - public A addToManagedFields(Integer index, V1ManagedFieldsEntry item) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables - .get("managedFields") - .add(index >= 0 ? index : _visitables.get("managedFields").size(), builder); - this.managedFields.add(index >= 0 ? index : managedFields.size(), builder); - return (A) this; + public A addToManagedFields(Integer index,V1ManagedFieldsEntry item) { + if (this.managedFields == null) {this.managedFields = new ArrayList();} + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(index >= 0 ? index : _visitables.get("managedFields").size(), builder);this.managedFields.add(index >= 0 ? index : managedFields.size(), builder); return (A)this; } - - public A setToManagedFields(Integer index, V1ManagedFieldsEntry item) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } + public A setToManagedFields(Integer index,V1ManagedFieldsEntry item) { + if (this.managedFields == null) {this.managedFields = new ArrayList();} V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= _visitables.get("managedFields").size()) { - _visitables.get("managedFields").add(builder); - } else { - _visitables.get("managedFields").set(index, builder); - } - if (index < 0 || index >= managedFields.size()) { - managedFields.add(builder); - } else { - managedFields.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("managedFields").size()) { _visitables.get("managedFields").add(builder); } else { _visitables.get("managedFields").set(index, builder);} + if (index < 0 || index >= managedFields.size()) { managedFields.add(builder); } else { managedFields.set(index, builder);} + return (A)this; } - public A addToManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").add(builder); - this.managedFields.add(builder); - } - return (A) this; + if (this.managedFields == null) {this.managedFields = new ArrayList();} + for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(builder);this.managedFields.add(builder);} return (A)this; } - public A addAllToManagedFields(Collection items) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").add(builder); - this.managedFields.add(builder); - } - return (A) this; + if (this.managedFields == null) {this.managedFields = new ArrayList();} + for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(builder);this.managedFields.add(builder);} return (A)this; } - - public A removeFromManagedFields( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").remove(builder); - if (this.managedFields != null) { - this.managedFields.remove(builder); - } - } - return (A) this; + public A removeFromManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { + for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").remove(builder);if (this.managedFields != null) {this.managedFields.remove(builder);}} return (A)this; } - public A removeAllFromManagedFields(Collection items) { - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").remove(builder); - if (this.managedFields != null) { - this.managedFields.remove(builder); - } - } - return (A) this; + for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").remove(builder);if (this.managedFields != null) {this.managedFields.remove(builder);}} return (A)this; } - public A removeMatchingFromManagedFields(Predicate predicate) { if (managedFields == null) return (A) this; final Iterator each = managedFields.iterator(); @@ -468,234 +255,119 @@ public A removeMatchingFromManagedFields(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildManagedFields instead. - * * @return The buildable object. */ @Deprecated public List getManagedFields() { return managedFields != null ? build(managedFields) : null; } - public List buildManagedFields() { return managedFields != null ? build(managedFields) : null; } - public V1ManagedFieldsEntry buildManagedField(Integer index) { return this.managedFields.get(index).build(); } - public V1ManagedFieldsEntry buildFirstManagedField() { return this.managedFields.get(0).build(); } - public V1ManagedFieldsEntry buildLastManagedField() { return this.managedFields.get(managedFields.size() - 1).build(); } - - public V1ManagedFieldsEntry buildMatchingManagedField( - Predicate predicate) { - for (V1ManagedFieldsEntryBuilder item : managedFields) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ManagedFieldsEntry buildMatchingManagedField(Predicate predicate) { + for (V1ManagedFieldsEntryBuilder item: managedFields) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingManagedField(Predicate predicate) { - for (V1ManagedFieldsEntryBuilder item : managedFields) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ManagedFieldsEntryBuilder item: managedFields) { if(predicate.test(item)){ return true;} } return false; } - public A withManagedFields(List managedFields) { - if (this.managedFields != null) { - _visitables.get("managedFields").removeAll(this.managedFields); - } - if (managedFields != null) { - this.managedFields = new ArrayList(); - for (V1ManagedFieldsEntry item : managedFields) { - this.addToManagedFields(item); - } - } else { - this.managedFields = null; - } - return (A) this; + if (this.managedFields != null) { _visitables.get("managedFields").removeAll(this.managedFields);} + if (managedFields != null) {this.managedFields = new ArrayList(); for (V1ManagedFieldsEntry item : managedFields){this.addToManagedFields(item);}} else { this.managedFields = null;} return (A) this; } - - public A withManagedFields( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields) { - if (this.managedFields != null) { - this.managedFields.clear(); - } - if (managedFields != null) { - for (V1ManagedFieldsEntry item : managedFields) { - this.addToManagedFields(item); - } - } - return (A) this; + public A withManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields) { + if (this.managedFields != null) {this.managedFields.clear();} + if (managedFields != null) {for (V1ManagedFieldsEntry item :managedFields){ this.addToManagedFields(item);}} return (A) this; } - public Boolean hasManagedFields() { return managedFields != null && !managedFields.isEmpty(); } - public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedField() { return new V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl(); } - - public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedFieldLike( - V1ManagedFieldsEntry item) { + public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item) { return new V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl(-1, item); } - - public V1ObjectMetaFluent.ManagedFieldsNested setNewManagedFieldLike( - Integer index, V1ManagedFieldsEntry item) { + public V1ObjectMetaFluent.ManagedFieldsNested setNewManagedFieldLike(Integer index,V1ManagedFieldsEntry item) { return new V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl(index, item); } - public V1ObjectMetaFluent.ManagedFieldsNested editManagedField(Integer index) { - if (managedFields.size() <= index) - throw new RuntimeException("Can't edit managedFields. Index exceeds size."); + if (managedFields.size() <= index) throw new RuntimeException("Can't edit managedFields. Index exceeds size."); return setNewManagedFieldLike(index, buildManagedField(index)); } - public V1ObjectMetaFluent.ManagedFieldsNested editFirstManagedField() { - if (managedFields.size() == 0) - throw new RuntimeException("Can't edit first managedFields. The list is empty."); + if (managedFields.size() == 0) throw new RuntimeException("Can't edit first managedFields. The list is empty."); return setNewManagedFieldLike(0, buildManagedField(0)); } - public V1ObjectMetaFluent.ManagedFieldsNested editLastManagedField() { int index = managedFields.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last managedFields. The list is empty."); return setNewManagedFieldLike(index, buildManagedField(index)); } - - public V1ObjectMetaFluent.ManagedFieldsNested editMatchingManagedField( - Predicate predicate) { + public V1ObjectMetaFluent.ManagedFieldsNested editMatchingManagedField(Predicate predicate) { int index = -1; - for (int i = 0; i < managedFields.size(); i++) { - if (predicate.test(managedFields.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables - .get("ownerReferences") - .add(index >= 0 ? index : _visitables.get("ownerReferences").size(), builder); - this.ownerReferences.add(index >= 0 ? index : ownerReferences.size(), builder); - return (A) this; + public A addToOwnerReferences(Integer index,V1OwnerReference item) { + if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(index >= 0 ? index : _visitables.get("ownerReferences").size(), builder);this.ownerReferences.add(index >= 0 ? index : ownerReferences.size(), builder); return (A)this; } - - public A setToOwnerReferences(Integer index, V1OwnerReference item) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } + public A setToOwnerReferences(Integer index,V1OwnerReference item) { + if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= _visitables.get("ownerReferences").size()) { - _visitables.get("ownerReferences").add(builder); - } else { - _visitables.get("ownerReferences").set(index, builder); - } - if (index < 0 || index >= ownerReferences.size()) { - ownerReferences.add(builder); - } else { - ownerReferences.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ownerReferences").size()) { _visitables.get("ownerReferences").add(builder); } else { _visitables.get("ownerReferences").set(index, builder);} + if (index < 0 || index >= ownerReferences.size()) { ownerReferences.add(builder); } else { ownerReferences.set(index, builder);} + return (A)this; } - public A addToOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").add(builder); - this.ownerReferences.add(builder); - } - return (A) this; + if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} + for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(builder);this.ownerReferences.add(builder);} return (A)this; } - public A addAllToOwnerReferences(Collection items) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").add(builder); - this.ownerReferences.add(builder); - } - return (A) this; + if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} + for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(builder);this.ownerReferences.add(builder);} return (A)this; } - - public A removeFromOwnerReferences( - io.kubernetes.client.openapi.models.V1OwnerReference... items) { - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").remove(builder); - if (this.ownerReferences != null) { - this.ownerReferences.remove(builder); - } - } - return (A) this; + public A removeFromOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { + for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").remove(builder);if (this.ownerReferences != null) {this.ownerReferences.remove(builder);}} return (A)this; } - public A removeAllFromOwnerReferences(Collection items) { - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").remove(builder); - if (this.ownerReferences != null) { - this.ownerReferences.remove(builder); - } - } - return (A) this; + for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").remove(builder);if (this.ownerReferences != null) {this.ownerReferences.remove(builder);}} return (A)this; } - public A removeMatchingFromOwnerReferences(Predicate predicate) { if (ownerReferences == null) return (A) this; final Iterator each = ownerReferences.iterator(); @@ -707,345 +379,185 @@ public A removeMatchingFromOwnerReferences(Predicate pr each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildOwnerReferences instead. - * * @return The buildable object. */ @Deprecated public List getOwnerReferences() { return ownerReferences != null ? build(ownerReferences) : null; } - public List buildOwnerReferences() { return ownerReferences != null ? build(ownerReferences) : null; } - public V1OwnerReference buildOwnerReference(Integer index) { return this.ownerReferences.get(index).build(); } - public V1OwnerReference buildFirstOwnerReference() { return this.ownerReferences.get(0).build(); } - public V1OwnerReference buildLastOwnerReference() { return this.ownerReferences.get(ownerReferences.size() - 1).build(); } - - public V1OwnerReference buildMatchingOwnerReference( - Predicate predicate) { - for (V1OwnerReferenceBuilder item : ownerReferences) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1OwnerReference buildMatchingOwnerReference(Predicate predicate) { + for (V1OwnerReferenceBuilder item: ownerReferences) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingOwnerReference(Predicate predicate) { - for (V1OwnerReferenceBuilder item : ownerReferences) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1OwnerReferenceBuilder item: ownerReferences) { if(predicate.test(item)){ return true;} } return false; } - public A withOwnerReferences(List ownerReferences) { - if (this.ownerReferences != null) { - _visitables.get("ownerReferences").removeAll(this.ownerReferences); - } - if (ownerReferences != null) { - this.ownerReferences = new ArrayList(); - for (V1OwnerReference item : ownerReferences) { - this.addToOwnerReferences(item); - } - } else { - this.ownerReferences = null; - } - return (A) this; + if (this.ownerReferences != null) { _visitables.get("ownerReferences").removeAll(this.ownerReferences);} + if (ownerReferences != null) {this.ownerReferences = new ArrayList(); for (V1OwnerReference item : ownerReferences){this.addToOwnerReferences(item);}} else { this.ownerReferences = null;} return (A) this; } - - public A withOwnerReferences( - io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences) { - if (this.ownerReferences != null) { - this.ownerReferences.clear(); - } - if (ownerReferences != null) { - for (V1OwnerReference item : ownerReferences) { - this.addToOwnerReferences(item); - } - } - return (A) this; + public A withOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences) { + if (this.ownerReferences != null) {this.ownerReferences.clear();} + if (ownerReferences != null) {for (V1OwnerReference item :ownerReferences){ this.addToOwnerReferences(item);}} return (A) this; } - public Boolean hasOwnerReferences() { return ownerReferences != null && !ownerReferences.isEmpty(); } - public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReference() { return new V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl(); } - - public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReferenceLike( - V1OwnerReference item) { + public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item) { return new V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl(-1, item); } - - public V1ObjectMetaFluent.OwnerReferencesNested setNewOwnerReferenceLike( - Integer index, V1OwnerReference item) { + public V1ObjectMetaFluent.OwnerReferencesNested setNewOwnerReferenceLike(Integer index,V1OwnerReference item) { return new V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl(index, item); } - public V1ObjectMetaFluent.OwnerReferencesNested editOwnerReference(Integer index) { - if (ownerReferences.size() <= index) - throw new RuntimeException("Can't edit ownerReferences. Index exceeds size."); + if (ownerReferences.size() <= index) throw new RuntimeException("Can't edit ownerReferences. Index exceeds size."); return setNewOwnerReferenceLike(index, buildOwnerReference(index)); } - public V1ObjectMetaFluent.OwnerReferencesNested editFirstOwnerReference() { - if (ownerReferences.size() == 0) - throw new RuntimeException("Can't edit first ownerReferences. The list is empty."); + if (ownerReferences.size() == 0) throw new RuntimeException("Can't edit first ownerReferences. The list is empty."); return setNewOwnerReferenceLike(0, buildOwnerReference(0)); } - public V1ObjectMetaFluent.OwnerReferencesNested editLastOwnerReference() { int index = ownerReferences.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last ownerReferences. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last ownerReferences. The list is empty."); return setNewOwnerReferenceLike(index, buildOwnerReference(index)); } - - public V1ObjectMetaFluent.OwnerReferencesNested editMatchingOwnerReference( - Predicate predicate) { + public V1ObjectMetaFluent.OwnerReferencesNested editMatchingOwnerReference(Predicate predicate) { int index = -1; - for (int i = 0; i < ownerReferences.size(); i++) { - if (predicate.test(ownerReferences.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching ownerReferences. No match found."); + for (int i=0;i - extends V1ManagedFieldsEntryFluentImpl> - implements V1ObjectMetaFluent.ManagedFieldsNested, Nested { - ManagedFieldsNestedImpl(Integer index, V1ManagedFieldsEntry item) { + class ManagedFieldsNestedImpl extends V1ManagedFieldsEntryFluentImpl> implements V1ObjectMetaFluent.ManagedFieldsNested,Nested{ + ManagedFieldsNestedImpl(Integer index,V1ManagedFieldsEntry item) { this.index = index; this.builder = new V1ManagedFieldsEntryBuilder(this, item); } - ManagedFieldsNestedImpl() { this.index = -1; this.builder = new V1ManagedFieldsEntryBuilder(this); } - V1ManagedFieldsEntryBuilder builder; Integer index; - public N and() { - return (N) V1ObjectMetaFluentImpl.this.setToManagedFields(index, builder.build()); + return (N) V1ObjectMetaFluentImpl.this.setToManagedFields(index,builder.build()); } - public N endManagedField() { return and(); } + } - - class OwnerReferencesNestedImpl - extends V1OwnerReferenceFluentImpl> - implements V1ObjectMetaFluent.OwnerReferencesNested, Nested { - OwnerReferencesNestedImpl(Integer index, V1OwnerReference item) { + class OwnerReferencesNestedImpl extends V1OwnerReferenceFluentImpl> implements V1ObjectMetaFluent.OwnerReferencesNested,Nested{ + OwnerReferencesNestedImpl(Integer index,V1OwnerReference item) { this.index = index; this.builder = new V1OwnerReferenceBuilder(this, item); } - OwnerReferencesNestedImpl() { this.index = -1; this.builder = new V1OwnerReferenceBuilder(this); } - V1OwnerReferenceBuilder builder; Integer index; - public N and() { - return (N) V1ObjectMetaFluentImpl.this.setToOwnerReferences(index, builder.build()); + return (N) V1ObjectMetaFluentImpl.this.setToOwnerReferences(index,builder.build()); } - public N endOwnerReference() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java index 0577dfd25c..b2402a1b73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ObjectReferenceBuilder extends V1ObjectReferenceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ObjectReferenceBuilder extends V1ObjectReferenceFluentImpl implements VisitableBuilder{ public V1ObjectReferenceBuilder() { this(false); } - public V1ObjectReferenceBuilder(Boolean validationEnabled) { this(new V1ObjectReference(), validationEnabled); } - public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent) { this(fluent, false); } - - public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent, Boolean validationEnabled) { + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ObjectReference(), validationEnabled); } - - public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent, V1ObjectReference instance) { + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,V1ObjectReference instance) { this(fluent, instance, false); } - - public V1ObjectReferenceBuilder( - V1ObjectReferenceFluent fluent, V1ObjectReference instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,V1ObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withFieldPath(instance.getFieldPath()); @@ -53,15 +34,13 @@ public V1ObjectReferenceBuilder( fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ObjectReferenceBuilder(V1ObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V1ObjectReferenceBuilder(V1ObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1ObjectReferenceBuilder(V1ObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withFieldPath(instance.getFieldPath()); @@ -76,12 +55,10 @@ public V1ObjectReferenceBuilder(V1ObjectReference instance, Boolean validationEn this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ObjectReferenceFluent fluent; Boolean validationEnabled; - public V1ObjectReference build() { V1ObjectReference buildable = new V1ObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -93,4 +70,5 @@ public V1ObjectReference build() { buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java index e7187bcfcf..0fcffb0e4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java @@ -1,60 +1,33 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ObjectReferenceFluent> extends Fluent { + /** + * Generated + */ +public interface V1ObjectReferenceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getFieldPath(); - public A withFieldPath(String fieldPath); - public Boolean hasFieldPath(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public String getResourceVersion(); - public A withResourceVersion(String resourceVersion); - public Boolean hasResourceVersion(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java index c0333b8d15..861ee51401 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ObjectReferenceFluentImpl> extends BaseFluent - implements V1ObjectReferenceFluent { - public V1ObjectReferenceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ObjectReferenceFluentImpl> extends BaseFluent implements V1ObjectReferenceFluent{ + public V1ObjectReferenceFluentImpl() { + } public V1ObjectReferenceFluentImpl(V1ObjectReference instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,8 +27,8 @@ public V1ObjectReferenceFluentImpl(V1ObjectReference instance) { this.withResourceVersion(instance.getResourceVersion()); this.withUid(instance.getUid()); - } + } private String apiVersion; private String fieldPath; private String kind; @@ -43,154 +36,97 @@ public V1ObjectReferenceFluentImpl(V1ObjectReference instance) { private String namespace; private String resourceVersion; private String uid; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; + this.fieldPath=fieldPath; return (A) this; } - public Boolean hasFieldPath() { return this.fieldPath != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + this.resourceVersion=resourceVersion; return (A) this; } - public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ObjectReferenceFluentImpl that = (V1ObjectReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (fieldPath != null ? !fieldPath.equals(that.fieldPath) : that.fieldPath != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (resourceVersion != null - ? !resourceVersion.equals(that.resourceVersion) - : that.resourceVersion != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (fieldPath != null ? !fieldPath.equals(that.fieldPath) :that.fieldPath != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (resourceVersion != null ? !resourceVersion.equals(that.resourceVersion) :that.resourceVersion != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid, super.hashCode()); + return java.util.Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (fieldPath != null) { - sb.append("fieldPath:"); - sb.append(fieldPath + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (resourceVersion != null) { - sb.append("resourceVersion:"); - sb.append(resourceVersion + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java index cfb88b5b11..33e32e93ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1OverheadBuilder extends V1OverheadFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1OverheadBuilder extends V1OverheadFluentImpl implements VisitableBuilder{ public V1OverheadBuilder() { this(false); } - public V1OverheadBuilder(Boolean validationEnabled) { this(new V1Overhead(), validationEnabled); } - public V1OverheadBuilder(V1OverheadFluent fluent) { this(fluent, false); } - - public V1OverheadBuilder(V1OverheadFluent fluent, Boolean validationEnabled) { + public V1OverheadBuilder(V1OverheadFluent fluent,Boolean validationEnabled) { this(fluent, new V1Overhead(), validationEnabled); } - - public V1OverheadBuilder(V1OverheadFluent fluent, V1Overhead instance) { + public V1OverheadBuilder(V1OverheadFluent fluent,V1Overhead instance) { this(fluent, instance, false); } - - public V1OverheadBuilder( - V1OverheadFluent fluent, V1Overhead instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1OverheadBuilder(V1OverheadFluent fluent,V1Overhead instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPodFixed(instance.getPodFixed()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1OverheadBuilder(V1Overhead instance) { - this(instance, false); + this(instance,false); } - - public V1OverheadBuilder(V1Overhead instance, Boolean validationEnabled) { - this.fluent = this; + public V1OverheadBuilder(V1Overhead instance,Boolean validationEnabled) { + this.fluent = this; this.withPodFixed(instance.getPodFixed()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1OverheadFluent fluent; Boolean validationEnabled; - public V1Overhead build() { V1Overhead buildable = new V1Overhead(); buildable.setPodFixed(fluent.getPodFixed()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java index 6fd4a96948..01a43b9147 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java @@ -1,34 +1,22 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; - -/** Generated */ -public interface V1OverheadFluent> extends Fluent { - public A addToPodFixed(String key, Quantity value); - - public A addToPodFixed(Map map); - +import java.util.LinkedHashMap; + + /** + * Generated + */ +public interface V1OverheadFluent> extends Fluent{ + public A addToPodFixed(String key,Quantity value); + public A addToPodFixed(Map map); public A removeFromPodFixed(String key); - - public A removeFromPodFixed(Map map); - - public Map getPodFixed(); - - public A withPodFixed(Map podFixed); - + public A removeFromPodFixed(Map map); + public Map getPodFixed(); + public A withPodFixed(Map podFixed); public Boolean hasPodFixed(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java index 7fb79ac74d..245c25414b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java @@ -1,115 +1,67 @@ -/* -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.custom.Quantity; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.LinkedHashMap; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1OverheadFluentImpl> extends BaseFluent - implements V1OverheadFluent { - public V1OverheadFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1OverheadFluentImpl> extends BaseFluent implements V1OverheadFluent{ + public V1OverheadFluentImpl() { + } public V1OverheadFluentImpl(V1Overhead instance) { this.withPodFixed(instance.getPodFixed()); - } - private Map podFixed; - - public A addToPodFixed(String key, Quantity value) { - if (this.podFixed == null && key != null && value != null) { - this.podFixed = new LinkedHashMap(); - } - if (key != null && value != null) { - this.podFixed.put(key, value); - } - return (A) this; } - - public A addToPodFixed(Map map) { - if (this.podFixed == null && map != null) { - this.podFixed = new LinkedHashMap(); - } - if (map != null) { - this.podFixed.putAll(map); - } - return (A) this; + private Map podFixed; + public A addToPodFixed(String key,Quantity value) { + if(this.podFixed == null && key != null && value != null) { this.podFixed = new LinkedHashMap(); } + if(key != null && value != null) {this.podFixed.put(key, value);} return (A)this; + } + public A addToPodFixed(Map map) { + if(this.podFixed == null && map != null) { this.podFixed = new LinkedHashMap(); } + if(map != null) { this.podFixed.putAll(map);} return (A)this; } - public A removeFromPodFixed(String key) { - if (this.podFixed == null) { - return (A) this; - } - if (key != null && this.podFixed != null) { - this.podFixed.remove(key); - } - return (A) this; + if(this.podFixed == null) { return (A) this; } + if(key != null && this.podFixed != null) {this.podFixed.remove(key);} return (A)this; } - - public A removeFromPodFixed(Map map) { - if (this.podFixed == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.podFixed != null) { - this.podFixed.remove(key); - } - } - } - return (A) this; + public A removeFromPodFixed(Map map) { + if(this.podFixed == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.podFixed != null){this.podFixed.remove(key);}}} return (A)this; } - - public Map getPodFixed() { + public Map getPodFixed() { return this.podFixed; } - - public A withPodFixed(Map podFixed) { - if (podFixed == null) { - this.podFixed = null; - } else { - this.podFixed = new LinkedHashMap(podFixed); - } - return (A) this; + public A withPodFixed(Map podFixed) { + if (podFixed == null) { this.podFixed = null;} else {this.podFixed = new LinkedHashMap(podFixed);} return (A) this; } - public Boolean hasPodFixed() { return this.podFixed != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1OverheadFluentImpl that = (V1OverheadFluentImpl) o; - if (podFixed != null ? !podFixed.equals(that.podFixed) : that.podFixed != null) return false; + if (podFixed != null ? !podFixed.equals(that.podFixed) :that.podFixed != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(podFixed, super.hashCode()); + return java.util.Objects.hash(podFixed, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (podFixed != null && !podFixed.isEmpty()) { - sb.append("podFixed:"); - sb.append(podFixed); - } + if (podFixed != null && !podFixed.isEmpty()) { sb.append("podFixed:"); sb.append(podFixed); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java index 799f5d7557..3a73f8fad3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluentImpl implements VisitableBuilder{ public V1OwnerReferenceBuilder() { this(false); } - public V1OwnerReferenceBuilder(Boolean validationEnabled) { this(new V1OwnerReference(), validationEnabled); } - public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent) { this(fluent, false); } - - public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent, Boolean validationEnabled) { + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1OwnerReference(), validationEnabled); } - - public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent, V1OwnerReference instance) { + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,V1OwnerReference instance) { this(fluent, instance, false); } - - public V1OwnerReferenceBuilder( - V1OwnerReferenceFluent fluent, V1OwnerReference instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,V1OwnerReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); @@ -51,15 +32,13 @@ public V1OwnerReferenceBuilder( fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1OwnerReferenceBuilder(V1OwnerReference instance) { - this(instance, false); + this(instance,false); } - - public V1OwnerReferenceBuilder(V1OwnerReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1OwnerReferenceBuilder(V1OwnerReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); @@ -72,12 +51,10 @@ public V1OwnerReferenceBuilder(V1OwnerReference instance, Boolean validationEnab this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1OwnerReferenceFluent fluent; Boolean validationEnabled; - public V1OwnerReference build() { V1OwnerReference buildable = new V1OwnerReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +65,5 @@ public V1OwnerReference build() { buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java index 596287f819..c006f15a86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java @@ -1,58 +1,32 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1OwnerReferenceFluent> extends Fluent { + /** + * Generated + */ +public interface V1OwnerReferenceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Boolean getBlockOwnerDeletion(); - public A withBlockOwnerDeletion(Boolean blockOwnerDeletion); - public Boolean hasBlockOwnerDeletion(); - public Boolean getController(); - public A withController(Boolean controller); - public Boolean hasController(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); - public A withBlockOwnerDeletion(); - public A withController(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java index 76b3a5084d..57c456aba4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1OwnerReferenceFluentImpl> extends BaseFluent - implements V1OwnerReferenceFluent { - public V1OwnerReferenceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1OwnerReferenceFluentImpl> extends BaseFluent implements V1OwnerReferenceFluent{ + public V1OwnerReferenceFluentImpl() { + } public V1OwnerReferenceFluentImpl(V1OwnerReference instance) { this.withApiVersion(instance.getApiVersion()); @@ -32,151 +25,100 @@ public V1OwnerReferenceFluentImpl(V1OwnerReference instance) { this.withName(instance.getName()); this.withUid(instance.getUid()); - } + } private String apiVersion; private Boolean blockOwnerDeletion; private Boolean controller; private String kind; private String name; private String uid; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Boolean getBlockOwnerDeletion() { return this.blockOwnerDeletion; } - public A withBlockOwnerDeletion(Boolean blockOwnerDeletion) { - this.blockOwnerDeletion = blockOwnerDeletion; - return (A) this; + this.blockOwnerDeletion=blockOwnerDeletion; return (A) this; } - public Boolean hasBlockOwnerDeletion() { return this.blockOwnerDeletion != null; } - public Boolean getController() { return this.controller; } - public A withController(Boolean controller) { - this.controller = controller; - return (A) this; + this.controller=controller; return (A) this; } - public Boolean hasController() { return this.controller != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1OwnerReferenceFluentImpl that = (V1OwnerReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (blockOwnerDeletion != null - ? !blockOwnerDeletion.equals(that.blockOwnerDeletion) - : that.blockOwnerDeletion != null) return false; - if (controller != null ? !controller.equals(that.controller) : that.controller != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (blockOwnerDeletion != null ? !blockOwnerDeletion.equals(that.blockOwnerDeletion) :that.blockOwnerDeletion != null) return false; + if (controller != null ? !controller.equals(that.controller) :that.controller != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, blockOwnerDeletion, controller, kind, name, uid, super.hashCode()); + return java.util.Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (blockOwnerDeletion != null) { - sb.append("blockOwnerDeletion:"); - sb.append(blockOwnerDeletion + ","); - } - if (controller != null) { - sb.append("controller:"); - sb.append(controller + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (blockOwnerDeletion != null) { sb.append("blockOwnerDeletion:"); sb.append(blockOwnerDeletion + ","); } + if (controller != null) { sb.append("controller:"); sb.append(controller + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } sb.append("}"); return sb.toString(); } - public A withBlockOwnerDeletion() { return withBlockOwnerDeletion(true); } - public A withController() { return withController(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java index 091aa5ef0c..3e390cab83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeBuilder - extends V1PersistentVolumeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeBuilder extends V1PersistentVolumeFluentImpl implements VisitableBuilder{ public V1PersistentVolumeBuilder() { this(false); } - public V1PersistentVolumeBuilder(Boolean validationEnabled) { this(new V1PersistentVolume(), validationEnabled); } - public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolume(), validationEnabled); } - - public V1PersistentVolumeBuilder( - V1PersistentVolumeFluent fluent, V1PersistentVolume instance) { + public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,V1PersistentVolume instance) { this(fluent, instance, false); } - - public V1PersistentVolumeBuilder( - V1PersistentVolumeFluent fluent, V1PersistentVolume instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,V1PersistentVolume instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -51,15 +30,13 @@ public V1PersistentVolumeBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeBuilder(V1PersistentVolume instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeBuilder(V1PersistentVolume instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeBuilder(V1PersistentVolume instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -70,12 +47,10 @@ public V1PersistentVolumeBuilder(V1PersistentVolume instance, Boolean validation this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeFluent fluent; Boolean validationEnabled; - public V1PersistentVolume build() { V1PersistentVolume buildable = new V1PersistentVolume(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +60,5 @@ public V1PersistentVolume build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java index 91a0369a1f..ccf24df171 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimBuilder - extends V1PersistentVolumeClaimFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeClaimBuilder extends V1PersistentVolumeClaimFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimBuilder() { this(false); } - public V1PersistentVolumeClaimBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaim(), validationEnabled); } - public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimBuilder( - V1PersistentVolumeClaimFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaim(), validationEnabled); } - - public V1PersistentVolumeClaimBuilder( - V1PersistentVolumeClaimFluent fluent, V1PersistentVolumeClaim instance) { + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,V1PersistentVolumeClaim instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimBuilder( - V1PersistentVolumeClaimFluent fluent, - V1PersistentVolumeClaim instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,V1PersistentVolumeClaim instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1PersistentVolumeClaimBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaim instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimBuilder( - V1PersistentVolumeClaim instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaim instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1PersistentVolumeClaimBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaim build() { V1PersistentVolumeClaim buildable = new V1PersistentVolumeClaim(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1PersistentVolumeClaim build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java index f3ca5388a3..04902ce7f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimConditionBuilder - extends V1PersistentVolumeClaimConditionFluentImpl - implements VisitableBuilder< - V1PersistentVolumeClaimCondition, V1PersistentVolumeClaimConditionBuilder> { +import java.lang.Boolean; +public class V1PersistentVolumeClaimConditionBuilder extends V1PersistentVolumeClaimConditionFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimConditionBuilder() { this(false); } - public V1PersistentVolumeClaimConditionBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimCondition(), validationEnabled); } - public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimConditionBuilder( - V1PersistentVolumeClaimConditionFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimCondition(), validationEnabled); } - - public V1PersistentVolumeClaimConditionBuilder( - V1PersistentVolumeClaimConditionFluent fluent, V1PersistentVolumeClaimCondition instance) { + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,V1PersistentVolumeClaimCondition instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimConditionBuilder( - V1PersistentVolumeClaimConditionFluent fluent, - V1PersistentVolumeClaimCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,V1PersistentVolumeClaimCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastProbeTime(instance.getLastProbeTime()); fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -57,16 +32,13 @@ public V1PersistentVolumeClaimConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimCondition instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimConditionBuilder( - V1PersistentVolumeClaimCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -79,12 +51,10 @@ public V1PersistentVolumeClaimConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimConditionFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaimCondition build() { V1PersistentVolumeClaimCondition buildable = new V1PersistentVolumeClaimCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -95,4 +65,5 @@ public V1PersistentVolumeClaimCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java index 3db1eb94e3..501008747d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java @@ -1,57 +1,31 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PersistentVolumeClaimConditionFluent< - A extends V1PersistentVolumeClaimConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PersistentVolumeClaimConditionFluent> extends Fluent{ public OffsetDateTime getLastProbeTime(); - public A withLastProbeTime(OffsetDateTime lastProbeTime); - public Boolean hasLastProbeTime(); - public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java index 93ab59d23f..590d9a0a77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java @@ -1,27 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimConditionFluentImpl< - A extends V1PersistentVolumeClaimConditionFluent> - extends BaseFluent implements V1PersistentVolumeClaimConditionFluent { - public V1PersistentVolumeClaimConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimConditionFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimConditionFluent{ + public V1PersistentVolumeClaimConditionFluentImpl() { + } public V1PersistentVolumeClaimConditionFluentImpl(V1PersistentVolumeClaimCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); @@ -34,144 +26,94 @@ public V1PersistentVolumeClaimConditionFluentImpl(V1PersistentVolumeClaimConditi this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + this.lastProbeTime=lastProbeTime; return (A) this; } - public Boolean hasLastProbeTime() { return this.lastProbeTime != null; } - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1PersistentVolumeClaimConditionFluentImpl that = - (V1PersistentVolumeClaimConditionFluentImpl) o; - if (lastProbeTime != null - ? !lastProbeTime.equals(that.lastProbeTime) - : that.lastProbeTime != null) return false; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1PersistentVolumeClaimConditionFluentImpl that = (V1PersistentVolumeClaimConditionFluentImpl) o; + if (lastProbeTime != null ? !lastProbeTime.equals(that.lastProbeTime) :that.lastProbeTime != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastProbeTime != null) { - sb.append("lastProbeTime:"); - sb.append(lastProbeTime + ","); - } - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java index 74773527e9..d94e478f85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java @@ -1,131 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1PersistentVolumeClaimFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PersistentVolumeClaimFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadata(); - public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PersistentVolumeClaimFluent.MetadataNested editMetadata(); - public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadata(); - public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimSpec getSpec(); - public V1PersistentVolumeClaimSpec buildSpec(); - public A withSpec(V1PersistentVolumeClaimSpec spec); - public Boolean hasSpec(); - public V1PersistentVolumeClaimFluent.SpecNested withNewSpec(); - - public V1PersistentVolumeClaimFluent.SpecNested withNewSpecLike( - V1PersistentVolumeClaimSpec item); - + public V1PersistentVolumeClaimFluent.SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item); public V1PersistentVolumeClaimFluent.SpecNested editSpec(); - public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpec(); - - public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpecLike( - V1PersistentVolumeClaimSpec item); - + public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimStatus getStatus(); - public V1PersistentVolumeClaimStatus buildStatus(); - public A withStatus(V1PersistentVolumeClaimStatus status); - public Boolean hasStatus(); - public V1PersistentVolumeClaimFluent.StatusNested withNewStatus(); - - public V1PersistentVolumeClaimFluent.StatusNested withNewStatusLike( - V1PersistentVolumeClaimStatus item); - + public V1PersistentVolumeClaimFluent.StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item); public V1PersistentVolumeClaimFluent.StatusNested editStatus(); - public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatus(); - - public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatusLike( - V1PersistentVolumeClaimStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1PersistentVolumeClaimSpecFluent> { + public interface SpecNested extends Nested,V1PersistentVolumeClaimSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1PersistentVolumeClaimStatusFluent> { + public interface StatusNested extends Nested,V1PersistentVolumeClaimStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java index bd550fd1ed..b80a6e59ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimFluentImpl> - extends BaseFluent implements V1PersistentVolumeClaimFluent { - public V1PersistentVolumeClaimFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimFluent{ + public V1PersistentVolumeClaimFluentImpl() { + } public V1PersistentVolumeClaimFluentImpl(V1PersistentVolumeClaim instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,304 +25,205 @@ public V1PersistentVolumeClaimFluentImpl(V1PersistentVolumeClaim instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PersistentVolumeClaimSpecBuilder spec; private V1PersistentVolumeClaimStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeClaimFluentImpl.MetadataNestedImpl(); } - public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PersistentVolumeClaimFluentImpl.MetadataNestedImpl(item); } - public V1PersistentVolumeClaimFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1PersistentVolumeClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1PersistentVolumeClaimSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1PersistentVolumeClaimSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1PersistentVolumeClaimFluent.SpecNested withNewSpec() { return new V1PersistentVolumeClaimFluentImpl.SpecNestedImpl(); } - - public V1PersistentVolumeClaimFluent.SpecNested withNewSpecLike( - V1PersistentVolumeClaimSpec item) { + public V1PersistentVolumeClaimFluent.SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { return new V1PersistentVolumeClaimFluentImpl.SpecNestedImpl(item); } - public V1PersistentVolumeClaimFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1PersistentVolumeClaimSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1PersistentVolumeClaimSpecBuilder().build()); } - - public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpecLike( - V1PersistentVolumeClaimSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1PersistentVolumeClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1PersistentVolumeClaimStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1PersistentVolumeClaimStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1PersistentVolumeClaimStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1PersistentVolumeClaimFluent.StatusNested withNewStatus() { return new V1PersistentVolumeClaimFluentImpl.StatusNestedImpl(); } - - public V1PersistentVolumeClaimFluent.StatusNested withNewStatusLike( - V1PersistentVolumeClaimStatus item) { + public V1PersistentVolumeClaimFluent.StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item) { return new V1PersistentVolumeClaimFluentImpl.StatusNestedImpl(item); } - public V1PersistentVolumeClaimFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1PersistentVolumeClaimStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1PersistentVolumeClaimStatusBuilder().build()); } - - public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatusLike( - V1PersistentVolumeClaimStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeClaimFluentImpl that = (V1PersistentVolumeClaimFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1PersistentVolumeClaimFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PersistentVolumeClaimFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1PersistentVolumeClaimSpecFluentImpl> - implements V1PersistentVolumeClaimFluent.SpecNested, Nested { + class SpecNestedImpl extends V1PersistentVolumeClaimSpecFluentImpl> implements V1PersistentVolumeClaimFluent.SpecNested,Nested{ SpecNestedImpl(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1PersistentVolumeClaimSpecBuilder(this); } - V1PersistentVolumeClaimSpecBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1PersistentVolumeClaimStatusFluentImpl> - implements V1PersistentVolumeClaimFluent.StatusNested, Nested { + class StatusNestedImpl extends V1PersistentVolumeClaimStatusFluentImpl> implements V1PersistentVolumeClaimFluent.StatusNested,Nested{ StatusNestedImpl(V1PersistentVolumeClaimStatus item) { this.builder = new V1PersistentVolumeClaimStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1PersistentVolumeClaimStatusBuilder(this); } - V1PersistentVolumeClaimStatusBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java index 9ff48b3efa..6509d3b07d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimListBuilder - extends V1PersistentVolumeClaimListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeClaimListBuilder extends V1PersistentVolumeClaimListFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimListBuilder() { this(false); } - public V1PersistentVolumeClaimListBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimList(), validationEnabled); } - public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimListBuilder( - V1PersistentVolumeClaimListFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimList(), validationEnabled); } - - public V1PersistentVolumeClaimListBuilder( - V1PersistentVolumeClaimListFluent fluent, V1PersistentVolumeClaimList instance) { + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,V1PersistentVolumeClaimList instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimListBuilder( - V1PersistentVolumeClaimListFluent fluent, - V1PersistentVolumeClaimList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,V1PersistentVolumeClaimList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1PersistentVolumeClaimListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimList instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimListBuilder( - V1PersistentVolumeClaimList instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1PersistentVolumeClaimListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimListFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaimList build() { V1PersistentVolumeClaimList buildable = new V1PersistentVolumeClaimList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1PersistentVolumeClaimList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java index 1e82c3fee0..a65a3802a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java @@ -1,132 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PersistentVolumeClaimListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PersistentVolumeClaimListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1PersistentVolumeClaim item); - - public A setToItems(Integer index, V1PersistentVolumeClaim item); - + public A addToItems(Integer index,V1PersistentVolumeClaim item); + public A setToItems(Integer index,V1PersistentVolumeClaim item); public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1PersistentVolumeClaim buildItem(Integer index); - public V1PersistentVolumeClaim buildFirstItem(); - public V1PersistentVolumeClaim buildLastItem(); - - public V1PersistentVolumeClaim buildMatchingItem( - Predicate predicate); - + public V1PersistentVolumeClaim buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public Boolean hasItems(); - public V1PersistentVolumeClaimListFluent.ItemsNested addNewItem(); - - public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike( - V1PersistentVolumeClaim item); - - public V1PersistentVolumeClaimListFluent.ItemsNested setNewItemLike( - Integer index, V1PersistentVolumeClaim item); - + public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike(V1PersistentVolumeClaim item); + public V1PersistentVolumeClaimListFluent.ItemsNested setNewItemLike(Integer index,V1PersistentVolumeClaim item); public V1PersistentVolumeClaimListFluent.ItemsNested editItem(Integer index); - public V1PersistentVolumeClaimListFluent.ItemsNested editFirstItem(); - public V1PersistentVolumeClaimListFluent.ItemsNested editLastItem(); - - public V1PersistentVolumeClaimListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1PersistentVolumeClaimListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadata(); - public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1PersistentVolumeClaimListFluent.MetadataNested editMetadata(); - public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadata(); - public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1PersistentVolumeClaimFluent> { + public interface ItemsNested extends Nested,V1PersistentVolumeClaimFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java index 10b5a24ae1..74f8eaf7fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimListFluentImpl> - extends BaseFluent implements V1PersistentVolumeClaimListFluent { - public V1PersistentVolumeClaimListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimListFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimListFluent{ + public V1PersistentVolumeClaimListFluentImpl() { + } public V1PersistentVolumeClaimListFluentImpl(V1PersistentVolumeClaimList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1PersistentVolumeClaimListFluentImpl(V1PersistentVolumeClaimList instanc this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1PersistentVolumeClaim item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1PersistentVolumeClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1PersistentVolumeClaim item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1PersistentVolumeClaim item) { + if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,276 +81,176 @@ public A removeMatchingFromItems(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1PersistentVolumeClaim buildItem(Integer index) { return this.items.get(index).build(); } - public V1PersistentVolumeClaim buildFirstItem() { return this.items.get(0).build(); } - public V1PersistentVolumeClaim buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1PersistentVolumeClaim buildMatchingItem( - Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PersistentVolumeClaim buildMatchingItem(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PersistentVolumeClaimBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PersistentVolumeClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1PersistentVolumeClaim item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1PersistentVolumeClaim item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1PersistentVolumeClaim item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1PersistentVolumeClaimListFluent.ItemsNested addNewItem() { return new V1PersistentVolumeClaimListFluentImpl.ItemsNestedImpl(); } - - public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike( - V1PersistentVolumeClaim item) { + public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike(V1PersistentVolumeClaim item) { return new V1PersistentVolumeClaimListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1PersistentVolumeClaimListFluent.ItemsNested setNewItemLike( - Integer index, V1PersistentVolumeClaim item) { + public V1PersistentVolumeClaimListFluent.ItemsNested setNewItemLike(Integer index,V1PersistentVolumeClaim item) { return new V1PersistentVolumeClaimListFluentImpl.ItemsNestedImpl(index, item); } - public V1PersistentVolumeClaimListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1PersistentVolumeClaimListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1PersistentVolumeClaimListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1PersistentVolumeClaimListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1PersistentVolumeClaimListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1PersistentVolumeClaimListFluentImpl.MetadataNestedImpl(); } - public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1PersistentVolumeClaimListFluentImpl.MetadataNestedImpl(item); } - public V1PersistentVolumeClaimListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeClaimListFluentImpl that = (V1PersistentVolumeClaimListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1PersistentVolumeClaimFluentImpl> - implements V1PersistentVolumeClaimListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1PersistentVolumeClaim item) { + class ItemsNestedImpl extends V1PersistentVolumeClaimFluentImpl> implements V1PersistentVolumeClaimListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1PersistentVolumeClaimBuilder(this); } - V1PersistentVolumeClaimBuilder builder; Integer index; - public N and() { - return (N) V1PersistentVolumeClaimListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1PersistentVolumeClaimListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1PersistentVolumeClaimListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1PersistentVolumeClaimListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java index 9b8d7d5dd0..6b42ec38b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimSpecBuilder - extends V1PersistentVolumeClaimSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeClaimSpecBuilder extends V1PersistentVolumeClaimSpecFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimSpecBuilder() { this(false); } - public V1PersistentVolumeClaimSpecBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimSpec(), validationEnabled); } - public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimSpecBuilder( - V1PersistentVolumeClaimSpecFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimSpec(), validationEnabled); } - - public V1PersistentVolumeClaimSpecBuilder( - V1PersistentVolumeClaimSpecFluent fluent, V1PersistentVolumeClaimSpec instance) { + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,V1PersistentVolumeClaimSpec instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimSpecBuilder( - V1PersistentVolumeClaimSpecFluent fluent, - V1PersistentVolumeClaimSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,V1PersistentVolumeClaimSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAccessModes(instance.getAccessModes()); fluent.withDataSource(instance.getDataSource()); @@ -60,16 +36,13 @@ public V1PersistentVolumeClaimSpecBuilder( fluent.withVolumeName(instance.getVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpec instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimSpecBuilder( - V1PersistentVolumeClaimSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAccessModes(instance.getAccessModes()); this.withDataSource(instance.getDataSource()); @@ -86,12 +59,10 @@ public V1PersistentVolumeClaimSpecBuilder( this.withVolumeName(instance.getVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimSpecFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaimSpec build() { V1PersistentVolumeClaimSpec buildable = new V1PersistentVolumeClaimSpec(); buildable.setAccessModes(fluent.getAccessModes()); @@ -104,4 +75,5 @@ public V1PersistentVolumeClaimSpec build() { buildable.setVolumeName(fluent.getVolumeName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java index 8a921299fd..2eddd5c578 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java @@ -1,208 +1,123 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PersistentVolumeClaimSpecFluent> - extends Fluent { - public A addToAccessModes(Integer index, String item); - - public A setToAccessModes(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PersistentVolumeClaimSpecFluent> extends Fluent{ + public A addToAccessModes(Integer index,String item); + public A setToAccessModes(Integer index,String item); public A addToAccessModes(java.lang.String... items); - public A addAllToAccessModes(Collection items); - public A removeFromAccessModes(java.lang.String... items); - public A removeAllFromAccessModes(Collection items); - public List getAccessModes(); - public String getAccessMode(Integer index); - public String getFirstAccessMode(); - public String getLastAccessMode(); - public String getMatchingAccessMode(Predicate predicate); - public Boolean hasMatchingAccessMode(Predicate predicate); - public A withAccessModes(List accessModes); - public A withAccessModes(java.lang.String... accessModes); - public Boolean hasAccessModes(); - + /** * This method has been deprecated, please use method buildDataSource instead. - * * @return The buildable object. */ @Deprecated public V1TypedLocalObjectReference getDataSource(); - public V1TypedLocalObjectReference buildDataSource(); - public A withDataSource(V1TypedLocalObjectReference dataSource); - public Boolean hasDataSource(); - public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSource(); - - public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSourceLike( - V1TypedLocalObjectReference item); - + public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item); public V1PersistentVolumeClaimSpecFluent.DataSourceNested editDataSource(); - public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSource(); - - public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSourceLike( - V1TypedLocalObjectReference item); - + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSourceLike(V1TypedLocalObjectReference item); + /** * This method has been deprecated, please use method buildDataSourceRef instead. - * * @return The buildable object. */ @Deprecated public V1TypedLocalObjectReference getDataSourceRef(); - public V1TypedLocalObjectReference buildDataSourceRef(); - public A withDataSourceRef(V1TypedLocalObjectReference dataSourceRef); - public Boolean hasDataSourceRef(); - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRef(); - - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRefLike( - V1TypedLocalObjectReference item); - + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRefLike(V1TypedLocalObjectReference item); public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editDataSourceRef(); - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRef(); - - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRefLike( - V1TypedLocalObjectReference item); - + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRefLike(V1TypedLocalObjectReference item); + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public V1ResourceRequirements getResources(); - public V1ResourceRequirements buildResources(); - public A withResources(V1ResourceRequirements resources); - public Boolean hasResources(); - public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResources(); - - public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResourcesLike( - V1ResourceRequirements item); - + public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item); public V1PersistentVolumeClaimSpecFluent.ResourcesNested editResources(); - public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResources(); - - public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResourcesLike( - V1ResourceRequirements item); - + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item); + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelector(); - - public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelectorLike( - V1LabelSelector item); - + public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); public V1PersistentVolumeClaimSpecFluent.SelectorNested editSelector(); - public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelector(); - - public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelectorLike( - V1LabelSelector item); - + public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); public String getStorageClassName(); - public A withStorageClassName(String storageClassName); - public Boolean hasStorageClassName(); - public String getVolumeMode(); - public A withVolumeMode(String volumeMode); - public Boolean hasVolumeMode(); - public String getVolumeName(); - public A withVolumeName(String volumeName); - public Boolean hasVolumeName(); - - public interface DataSourceNested - extends Nested, - V1TypedLocalObjectReferenceFluent> { + public interface DataSourceNested extends Nested,V1TypedLocalObjectReferenceFluent>{ public N and(); - public N endDataSource(); + } - - public interface DataSourceRefNested - extends Nested, - V1TypedLocalObjectReferenceFluent< - V1PersistentVolumeClaimSpecFluent.DataSourceRefNested> { + public interface DataSourceRefNested extends Nested,V1TypedLocalObjectReferenceFluent>{ public N and(); - public N endDataSourceRef(); + } - - public interface ResourcesNested - extends Nested, - V1ResourceRequirementsFluent> { + public interface ResourcesNested extends Nested,V1ResourceRequirementsFluent>{ public N and(); - public N endResources(); + } - - public interface SelectorNested - extends Nested, - V1LabelSelectorFluent> { + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java index 0e2ba54f14..0760cb63fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.List; +import java.lang.String; import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimSpecFluentImpl> - extends BaseFluent implements V1PersistentVolumeClaimSpecFluent { - public V1PersistentVolumeClaimSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimSpecFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimSpecFluent{ + public V1PersistentVolumeClaimSpecFluentImpl() { + } public V1PersistentVolumeClaimSpecFluentImpl(V1PersistentVolumeClaimSpec instance) { this.withAccessModes(instance.getAccessModes()); @@ -41,8 +36,8 @@ public V1PersistentVolumeClaimSpecFluentImpl(V1PersistentVolumeClaimSpec instanc this.withVolumeMode(instance.getVolumeMode()); this.withVolumeName(instance.getVolumeName()); - } + } private List accessModes; private V1TypedLocalObjectReferenceBuilder dataSource; private V1TypedLocalObjectReferenceBuilder dataSourceRef; @@ -51,541 +46,314 @@ public V1PersistentVolumeClaimSpecFluentImpl(V1PersistentVolumeClaimSpec instanc private String storageClassName; private String volumeMode; private String volumeName; - - public A addToAccessModes(Integer index, String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } + public A addToAccessModes(Integer index,String item) { + if (this.accessModes == null) {this.accessModes = new ArrayList();} this.accessModes.add(index, item); - return (A) this; + return (A)this; } - - public A setToAccessModes(Integer index, String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.set(index, item); - return (A) this; + public A setToAccessModes(Integer index,String item) { + if (this.accessModes == null) {this.accessModes = new ArrayList();} + this.accessModes.set(index, item); return (A)this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + if (this.accessModes == null) {this.accessModes = new ArrayList();} + for (String item : items) {this.accessModes.add(item);} return (A)this; } - public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + if (this.accessModes == null) {this.accessModes = new ArrayList();} + for (String item : items) {this.accessModes.add(item);} return (A)this; } - public A removeFromAccessModes(java.lang.String... items) { - for (String item : items) { - if (this.accessModes != null) { - this.accessModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this; } - public A removeAllFromAccessModes(Collection items) { - for (String item : items) { - if (this.accessModes != null) { - this.accessModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this; } - public List getAccessModes() { return this.accessModes; } - public String getAccessMode(Integer index) { return this.accessModes.get(index); } - public String getFirstAccessMode() { return this.accessModes.get(0); } - public String getLastAccessMode() { return this.accessModes.get(accessModes.size() - 1); } - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: accessModes) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: accessModes) { if(predicate.test(item)){ return true;} } return false; } - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; + if (accessModes != null) {this.accessModes = new ArrayList(); for (String item : accessModes){this.addToAccessModes(item);}} else { this.accessModes = null;} return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } - } - return (A) this; + if (this.accessModes != null) {this.accessModes.clear();} + if (accessModes != null) {for (String item :accessModes){ this.addToAccessModes(item);}} return (A) this; } - public Boolean hasAccessModes() { return accessModes != null && !accessModes.isEmpty(); } - + /** * This method has been deprecated, please use method buildDataSource instead. - * * @return The buildable object. */ @Deprecated public V1TypedLocalObjectReference getDataSource() { - return this.dataSource != null ? this.dataSource.build() : null; + return this.dataSource!=null ?this.dataSource.build():null; } - public V1TypedLocalObjectReference buildDataSource() { - return this.dataSource != null ? this.dataSource.build() : null; + return this.dataSource!=null ?this.dataSource.build():null; } - public A withDataSource(V1TypedLocalObjectReference dataSource) { _visitables.get("dataSource").remove(this.dataSource); - if (dataSource != null) { - this.dataSource = new V1TypedLocalObjectReferenceBuilder(dataSource); - _visitables.get("dataSource").add(this.dataSource); - } else { - this.dataSource = null; - _visitables.get("dataSource").remove(this.dataSource); - } - return (A) this; + if (dataSource!=null){ this.dataSource= new V1TypedLocalObjectReferenceBuilder(dataSource); _visitables.get("dataSource").add(this.dataSource);} else { this.dataSource = null; _visitables.get("dataSource").remove(this.dataSource); } return (A) this; } - public Boolean hasDataSource() { return this.dataSource != null; } - public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSource() { return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceNestedImpl(); } - - public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSourceLike( - V1TypedLocalObjectReference item) { + public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item) { return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceNestedImpl(item); } - public V1PersistentVolumeClaimSpecFluent.DataSourceNested editDataSource() { return withNewDataSourceLike(getDataSource()); } - public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSource() { - return withNewDataSourceLike( - getDataSource() != null - ? getDataSource() - : new V1TypedLocalObjectReferenceBuilder().build()); + return withNewDataSourceLike(getDataSource() != null ? getDataSource(): new V1TypedLocalObjectReferenceBuilder().build()); } - - public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSourceLike( - V1TypedLocalObjectReference item) { - return withNewDataSourceLike(getDataSource() != null ? getDataSource() : item); + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSourceLike(V1TypedLocalObjectReference item) { + return withNewDataSourceLike(getDataSource() != null ? getDataSource(): item); } - + /** * This method has been deprecated, please use method buildDataSourceRef instead. - * * @return The buildable object. */ @Deprecated public V1TypedLocalObjectReference getDataSourceRef() { - return this.dataSourceRef != null ? this.dataSourceRef.build() : null; + return this.dataSourceRef!=null ?this.dataSourceRef.build():null; } - public V1TypedLocalObjectReference buildDataSourceRef() { - return this.dataSourceRef != null ? this.dataSourceRef.build() : null; + return this.dataSourceRef!=null ?this.dataSourceRef.build():null; } - public A withDataSourceRef(V1TypedLocalObjectReference dataSourceRef) { _visitables.get("dataSourceRef").remove(this.dataSourceRef); - if (dataSourceRef != null) { - this.dataSourceRef = new V1TypedLocalObjectReferenceBuilder(dataSourceRef); - _visitables.get("dataSourceRef").add(this.dataSourceRef); - } else { - this.dataSourceRef = null; - _visitables.get("dataSourceRef").remove(this.dataSourceRef); - } - return (A) this; + if (dataSourceRef!=null){ this.dataSourceRef= new V1TypedLocalObjectReferenceBuilder(dataSourceRef); _visitables.get("dataSourceRef").add(this.dataSourceRef);} else { this.dataSourceRef = null; _visitables.get("dataSourceRef").remove(this.dataSourceRef); } return (A) this; } - public Boolean hasDataSourceRef() { return this.dataSourceRef != null; } - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRef() { return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceRefNestedImpl(); } - - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRefLike( - V1TypedLocalObjectReference item) { + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRefLike(V1TypedLocalObjectReference item) { return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceRefNestedImpl(item); } - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editDataSourceRef() { return withNewDataSourceRefLike(getDataSourceRef()); } - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRef() { - return withNewDataSourceRefLike( - getDataSourceRef() != null - ? getDataSourceRef() - : new V1TypedLocalObjectReferenceBuilder().build()); + return withNewDataSourceRefLike(getDataSourceRef() != null ? getDataSourceRef(): new V1TypedLocalObjectReferenceBuilder().build()); } - - public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRefLike( - V1TypedLocalObjectReference item) { - return withNewDataSourceRefLike(getDataSourceRef() != null ? getDataSourceRef() : item); + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRefLike(V1TypedLocalObjectReference item) { + return withNewDataSourceRefLike(getDataSourceRef() != null ? getDataSourceRef(): item); } - + /** * This method has been deprecated, please use method buildResources instead. - * * @return The buildable object. */ @Deprecated public V1ResourceRequirements getResources() { - return this.resources != null ? this.resources.build() : null; + return this.resources!=null ?this.resources.build():null; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + return this.resources!=null ?this.resources.build():null; } - public A withResources(V1ResourceRequirements resources) { _visitables.get("resources").remove(this.resources); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - _visitables.get("resources").add(this.resources); - } else { - this.resources = null; - _visitables.get("resources").remove(this.resources); - } - return (A) this; + if (resources!=null){ this.resources= new V1ResourceRequirementsBuilder(resources); _visitables.get("resources").add(this.resources);} else { this.resources = null; _visitables.get("resources").remove(this.resources); } return (A) this; } - public Boolean hasResources() { return this.resources != null; } - public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResources() { return new V1PersistentVolumeClaimSpecFluentImpl.ResourcesNestedImpl(); } - - public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResourcesLike( - V1ResourceRequirements item) { + public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { return new V1PersistentVolumeClaimSpecFluentImpl.ResourcesNestedImpl(item); } - public V1PersistentVolumeClaimSpecFluent.ResourcesNested editResources() { return withNewResourcesLike(getResources()); } - public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResources() { - return withNewResourcesLike( - getResources() != null ? getResources() : new V1ResourceRequirementsBuilder().build()); + return withNewResourcesLike(getResources() != null ? getResources(): new V1ResourceRequirementsBuilder().build()); } - - public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResourcesLike( - V1ResourceRequirements item) { - return withNewResourcesLike(getResources() != null ? getResources() : item); + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return withNewResourcesLike(getResources() != null ? getResources(): item); } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelector() { return new V1PersistentVolumeClaimSpecFluentImpl.SelectorNestedImpl(); } - - public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelectorLike( - V1LabelSelector item) { + public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1PersistentVolumeClaimSpecFluentImpl.SelectorNestedImpl(item); } - public V1PersistentVolumeClaimSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - - public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelectorLike( - V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; + this.storageClassName=storageClassName; return (A) this; } - public Boolean hasStorageClassName() { return this.storageClassName != null; } - public String getVolumeMode() { return this.volumeMode; } - public A withVolumeMode(String volumeMode) { - this.volumeMode = volumeMode; - return (A) this; + this.volumeMode=volumeMode; return (A) this; } - public Boolean hasVolumeMode() { return this.volumeMode != null; } - public String getVolumeName() { return this.volumeName; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + this.volumeName=volumeName; return (A) this; } - public Boolean hasVolumeName() { return this.volumeName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeClaimSpecFluentImpl that = (V1PersistentVolumeClaimSpecFluentImpl) o; - if (accessModes != null ? !accessModes.equals(that.accessModes) : that.accessModes != null) - return false; - if (dataSource != null ? !dataSource.equals(that.dataSource) : that.dataSource != null) - return false; - if (dataSourceRef != null - ? !dataSourceRef.equals(that.dataSourceRef) - : that.dataSourceRef != null) return false; - if (resources != null ? !resources.equals(that.resources) : that.resources != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (storageClassName != null - ? !storageClassName.equals(that.storageClassName) - : that.storageClassName != null) return false; - if (volumeMode != null ? !volumeMode.equals(that.volumeMode) : that.volumeMode != null) - return false; - if (volumeName != null ? !volumeName.equals(that.volumeName) : that.volumeName != null) - return false; + if (accessModes != null ? !accessModes.equals(that.accessModes) :that.accessModes != null) return false; + if (dataSource != null ? !dataSource.equals(that.dataSource) :that.dataSource != null) return false; + if (dataSourceRef != null ? !dataSourceRef.equals(that.dataSourceRef) :that.dataSourceRef != null) return false; + if (resources != null ? !resources.equals(that.resources) :that.resources != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (storageClassName != null ? !storageClassName.equals(that.storageClassName) :that.storageClassName != null) return false; + if (volumeMode != null ? !volumeMode.equals(that.volumeMode) :that.volumeMode != null) return false; + if (volumeName != null ? !volumeName.equals(that.volumeName) :that.volumeName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - accessModes, - dataSource, - dataSourceRef, - resources, - selector, - storageClassName, - volumeMode, - volumeName, - super.hashCode()); + return java.util.Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeMode, volumeName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { - sb.append("accessModes:"); - sb.append(accessModes + ","); - } - if (dataSource != null) { - sb.append("dataSource:"); - sb.append(dataSource + ","); - } - if (dataSourceRef != null) { - sb.append("dataSourceRef:"); - sb.append(dataSourceRef + ","); - } - if (resources != null) { - sb.append("resources:"); - sb.append(resources + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (storageClassName != null) { - sb.append("storageClassName:"); - sb.append(storageClassName + ","); - } - if (volumeMode != null) { - sb.append("volumeMode:"); - sb.append(volumeMode + ","); - } - if (volumeName != null) { - sb.append("volumeName:"); - sb.append(volumeName); - } + if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } + if (dataSource != null) { sb.append("dataSource:"); sb.append(dataSource + ","); } + if (dataSourceRef != null) { sb.append("dataSourceRef:"); sb.append(dataSourceRef + ","); } + if (resources != null) { sb.append("resources:"); sb.append(resources + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } + if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); } + if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); } + if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } sb.append("}"); return sb.toString(); } - - class DataSourceNestedImpl - extends V1TypedLocalObjectReferenceFluentImpl< - V1PersistentVolumeClaimSpecFluent.DataSourceNested> - implements V1PersistentVolumeClaimSpecFluent.DataSourceNested, Nested { + class DataSourceNestedImpl extends V1TypedLocalObjectReferenceFluentImpl> implements V1PersistentVolumeClaimSpecFluent.DataSourceNested,Nested{ DataSourceNestedImpl(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - DataSourceNestedImpl() { this.builder = new V1TypedLocalObjectReferenceBuilder(this); } - V1TypedLocalObjectReferenceBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withDataSource(builder.build()); } - public N endDataSource() { return and(); } + } - - class DataSourceRefNestedImpl - extends V1TypedLocalObjectReferenceFluentImpl< - V1PersistentVolumeClaimSpecFluent.DataSourceRefNested> - implements V1PersistentVolumeClaimSpecFluent.DataSourceRefNested, Nested { + class DataSourceRefNestedImpl extends V1TypedLocalObjectReferenceFluentImpl> implements V1PersistentVolumeClaimSpecFluent.DataSourceRefNested,Nested{ DataSourceRefNestedImpl(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - DataSourceRefNestedImpl() { this.builder = new V1TypedLocalObjectReferenceBuilder(this); } - V1TypedLocalObjectReferenceBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withDataSourceRef(builder.build()); } - public N endDataSourceRef() { return and(); } + } - - class ResourcesNestedImpl - extends V1ResourceRequirementsFluentImpl> - implements V1PersistentVolumeClaimSpecFluent.ResourcesNested, Nested { + class ResourcesNestedImpl extends V1ResourceRequirementsFluentImpl> implements V1PersistentVolumeClaimSpecFluent.ResourcesNested,Nested{ ResourcesNestedImpl(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - ResourcesNestedImpl() { this.builder = new V1ResourceRequirementsBuilder(this); } - V1ResourceRequirementsBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withResources(builder.build()); } - public N endResources() { return and(); } + } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1PersistentVolumeClaimSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1PersistentVolumeClaimSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java index 84b7969b20..3d97475a93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimStatusBuilder - extends V1PersistentVolumeClaimStatusFluentImpl - implements VisitableBuilder< - V1PersistentVolumeClaimStatus, V1PersistentVolumeClaimStatusBuilder> { +import java.lang.Boolean; +public class V1PersistentVolumeClaimStatusBuilder extends V1PersistentVolumeClaimStatusFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimStatusBuilder() { this(false); } - public V1PersistentVolumeClaimStatusBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimStatus(), validationEnabled); } - public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimStatusBuilder( - V1PersistentVolumeClaimStatusFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimStatus(), validationEnabled); } - - public V1PersistentVolumeClaimStatusBuilder( - V1PersistentVolumeClaimStatusFluent fluent, V1PersistentVolumeClaimStatus instance) { + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,V1PersistentVolumeClaimStatus instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimStatusBuilder( - V1PersistentVolumeClaimStatusFluent fluent, - V1PersistentVolumeClaimStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,V1PersistentVolumeClaimStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAccessModes(instance.getAccessModes()); fluent.withAllocatedResources(instance.getAllocatedResources()); @@ -57,16 +32,13 @@ public V1PersistentVolumeClaimStatusBuilder( fluent.withResizeStatus(instance.getResizeStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatus instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimStatusBuilder( - V1PersistentVolumeClaimStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAccessModes(instance.getAccessModes()); this.withAllocatedResources(instance.getAllocatedResources()); @@ -79,12 +51,10 @@ public V1PersistentVolumeClaimStatusBuilder( this.withResizeStatus(instance.getResizeStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimStatusFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaimStatus build() { V1PersistentVolumeClaimStatus buildable = new V1PersistentVolumeClaimStatus(); buildable.setAccessModes(fluent.getAccessModes()); @@ -95,4 +65,5 @@ public V1PersistentVolumeClaimStatus build() { buildable.setResizeStatus(fluent.getResizeStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java index 1f6b180418..1b3c92a187 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java @@ -1,167 +1,94 @@ -/* -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.custom.Quantity; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PersistentVolumeClaimStatusFluent< - A extends V1PersistentVolumeClaimStatusFluent> - extends Fluent { - public A addToAccessModes(Integer index, String item); - - public A setToAccessModes(Integer index, String item); + /** + * Generated + */ +public interface V1PersistentVolumeClaimStatusFluent> extends Fluent{ + public A addToAccessModes(Integer index,String item); + public A setToAccessModes(Integer index,String item); public A addToAccessModes(java.lang.String... items); - public A addAllToAccessModes(Collection items); - public A removeFromAccessModes(java.lang.String... items); - public A removeAllFromAccessModes(Collection items); - public List getAccessModes(); - public String getAccessMode(Integer index); - public String getFirstAccessMode(); - public String getLastAccessMode(); - public String getMatchingAccessMode(Predicate predicate); - public Boolean hasMatchingAccessMode(Predicate predicate); - public A withAccessModes(List accessModes); - public A withAccessModes(java.lang.String... accessModes); - public Boolean hasAccessModes(); - - public A addToAllocatedResources(String key, Quantity value); - - public A addToAllocatedResources(Map map); - + public A addToAllocatedResources(String key,Quantity value); + public A addToAllocatedResources(Map map); public A removeFromAllocatedResources(String key); - - public A removeFromAllocatedResources(Map map); - - public Map getAllocatedResources(); - - public A withAllocatedResources(Map allocatedResources); - + public A removeFromAllocatedResources(Map map); + public Map getAllocatedResources(); + public A withAllocatedResources(Map allocatedResources); public Boolean hasAllocatedResources(); - - public A addToCapacity(String key, Quantity value); - - public A addToCapacity(Map map); - + public A addToCapacity(String key,Quantity value); + public A addToCapacity(Map map); public A removeFromCapacity(String key); - - public A removeFromCapacity(Map map); - - public Map getCapacity(); - - public A withCapacity(Map capacity); - + public A removeFromCapacity(Map map); + public Map getCapacity(); + public A withCapacity(Map capacity); public Boolean hasCapacity(); - - public A addToConditions(Integer index, V1PersistentVolumeClaimCondition item); - - public A setToConditions(Integer index, V1PersistentVolumeClaimCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items); - + public A addToConditions(Integer index,V1PersistentVolumeClaimCondition item); + public A setToConditions(Integer index,V1PersistentVolumeClaimCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1PersistentVolumeClaimCondition buildCondition(Integer index); - public V1PersistentVolumeClaimCondition buildFirstCondition(); - public V1PersistentVolumeClaimCondition buildLastCondition(); - - public V1PersistentVolumeClaimCondition buildMatchingCondition( - Predicate predicate); - + public V1PersistentVolumeClaimCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions); public Boolean hasConditions(); - public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewCondition(); - - public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewConditionLike( - V1PersistentVolumeClaimCondition item); - - public V1PersistentVolumeClaimStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1PersistentVolumeClaimCondition item); - + public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1PersistentVolumeClaimCondition item); public V1PersistentVolumeClaimStatusFluent.ConditionsNested editCondition(Integer index); - public V1PersistentVolumeClaimStatusFluent.ConditionsNested editFirstCondition(); - public V1PersistentVolumeClaimStatusFluent.ConditionsNested editLastCondition(); - - public V1PersistentVolumeClaimStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public String getPhase(); - public A withPhase(String phase); - public Boolean hasPhase(); - public String getResizeStatus(); - public A withResizeStatus(String resizeStatus); - public Boolean hasResizeStatus(); - - public interface ConditionsNested - extends Nested, - V1PersistentVolumeClaimConditionFluent< - V1PersistentVolumeClaimStatusFluent.ConditionsNested> { + public interface ConditionsNested extends Nested,V1PersistentVolumeClaimConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java index c32ed5ac36..e57f78e00d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java @@ -1,35 +1,30 @@ -/* -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.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimStatusFluentImpl< - A extends V1PersistentVolumeClaimStatusFluent> - extends BaseFluent implements V1PersistentVolumeClaimStatusFluent { - public V1PersistentVolumeClaimStatusFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimStatusFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimStatusFluent{ + public V1PersistentVolumeClaimStatusFluentImpl() { + } public V1PersistentVolumeClaimStatusFluentImpl(V1PersistentVolumeClaimStatus instance) { this.withAccessModes(instance.getAccessModes()); @@ -42,339 +37,141 @@ public V1PersistentVolumeClaimStatusFluentImpl(V1PersistentVolumeClaimStatus ins this.withPhase(instance.getPhase()); this.withResizeStatus(instance.getResizeStatus()); - } + } private List accessModes; - private Map allocatedResources; - private Map capacity; + private Map allocatedResources; + private Map capacity; private ArrayList conditions; private String phase; private String resizeStatus; - - public A addToAccessModes(Integer index, String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } + public A addToAccessModes(Integer index,String item) { + if (this.accessModes == null) {this.accessModes = new ArrayList();} this.accessModes.add(index, item); - return (A) this; + return (A)this; } - - public A setToAccessModes(Integer index, String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.set(index, item); - return (A) this; + public A setToAccessModes(Integer index,String item) { + if (this.accessModes == null) {this.accessModes = new ArrayList();} + this.accessModes.set(index, item); return (A)this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + if (this.accessModes == null) {this.accessModes = new ArrayList();} + for (String item : items) {this.accessModes.add(item);} return (A)this; } - public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + if (this.accessModes == null) {this.accessModes = new ArrayList();} + for (String item : items) {this.accessModes.add(item);} return (A)this; } - public A removeFromAccessModes(java.lang.String... items) { - for (String item : items) { - if (this.accessModes != null) { - this.accessModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this; } - public A removeAllFromAccessModes(Collection items) { - for (String item : items) { - if (this.accessModes != null) { - this.accessModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this; } - public List getAccessModes() { return this.accessModes; } - public String getAccessMode(Integer index) { return this.accessModes.get(index); } - public String getFirstAccessMode() { return this.accessModes.get(0); } - public String getLastAccessMode() { return this.accessModes.get(accessModes.size() - 1); } - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: accessModes) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: accessModes) { if(predicate.test(item)){ return true;} } return false; } - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; + if (accessModes != null) {this.accessModes = new ArrayList(); for (String item : accessModes){this.addToAccessModes(item);}} else { this.accessModes = null;} return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } - } - return (A) this; + if (this.accessModes != null) {this.accessModes.clear();} + if (accessModes != null) {for (String item :accessModes){ this.addToAccessModes(item);}} return (A) this; } - public Boolean hasAccessModes() { return accessModes != null && !accessModes.isEmpty(); } - - public A addToAllocatedResources(String key, Quantity value) { - if (this.allocatedResources == null && key != null && value != null) { - this.allocatedResources = new LinkedHashMap(); - } - if (key != null && value != null) { - this.allocatedResources.put(key, value); - } - return (A) this; + public A addToAllocatedResources(String key,Quantity value) { + if(this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); } + if(key != null && value != null) {this.allocatedResources.put(key, value);} return (A)this; } - - public A addToAllocatedResources(Map map) { - if (this.allocatedResources == null && map != null) { - this.allocatedResources = new LinkedHashMap(); - } - if (map != null) { - this.allocatedResources.putAll(map); - } - return (A) this; + public A addToAllocatedResources(Map map) { + if(this.allocatedResources == null && map != null) { this.allocatedResources = new LinkedHashMap(); } + if(map != null) { this.allocatedResources.putAll(map);} return (A)this; } - public A removeFromAllocatedResources(String key) { - if (this.allocatedResources == null) { - return (A) this; - } - if (key != null && this.allocatedResources != null) { - this.allocatedResources.remove(key); - } - return (A) this; + if(this.allocatedResources == null) { return (A) this; } + if(key != null && this.allocatedResources != null) {this.allocatedResources.remove(key);} return (A)this; } - - public A removeFromAllocatedResources(Map map) { - if (this.allocatedResources == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.allocatedResources != null) { - this.allocatedResources.remove(key); - } - } - } - return (A) this; + public A removeFromAllocatedResources(Map map) { + if(this.allocatedResources == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResources != null){this.allocatedResources.remove(key);}}} return (A)this; } - - public Map getAllocatedResources() { + public Map getAllocatedResources() { return this.allocatedResources; } - - public A withAllocatedResources(Map allocatedResources) { - if (allocatedResources == null) { - this.allocatedResources = null; - } else { - this.allocatedResources = new LinkedHashMap(allocatedResources); - } - return (A) this; + public A withAllocatedResources(Map allocatedResources) { + if (allocatedResources == null) { this.allocatedResources = null;} else {this.allocatedResources = new LinkedHashMap(allocatedResources);} return (A) this; } - public Boolean hasAllocatedResources() { return this.allocatedResources != null; } - - public A addToCapacity(String key, Quantity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); - } - return (A) this; + public A addToCapacity(String key,Quantity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; } - - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); - } - if (map != null) { - this.capacity.putAll(map); - } - return (A) this; + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; } - - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; } - - public Map getCapacity() { + public Map getCapacity() { return this.capacity; } - - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public A withCapacity(Map capacity) { + if (capacity == null) { this.capacity = null;} else {this.capacity = new LinkedHashMap(capacity);} return (A) this; } - public Boolean hasCapacity() { return this.capacity != null; } - - public A addToConditions(Integer index, V1PersistentVolumeClaimCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1PersistentVolumeClaimConditionBuilder builder = - new V1PersistentVolumeClaimConditionBuilder(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 addToConditions(Integer index,V1PersistentVolumeClaimCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(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(Integer index, V1PersistentVolumeClaimCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1PersistentVolumeClaimConditionBuilder builder = - new V1PersistentVolumeClaimConditionBuilder(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 setToConditions(Integer index,V1PersistentVolumeClaimCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(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.V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = - new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(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 ArrayList(); - } - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = - new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = - new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { + for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = - new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -385,242 +182,139 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1PersistentVolumeClaimCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1PersistentVolumeClaimCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1PersistentVolumeClaimCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1PersistentVolumeClaimCondition buildMatchingCondition( - Predicate predicate) { - for (V1PersistentVolumeClaimConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PersistentVolumeClaimCondition buildMatchingCondition(Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V1PersistentVolumeClaimConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1PersistentVolumeClaimCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1PersistentVolumeClaimCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1PersistentVolumeClaimCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1PersistentVolumeClaimCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewCondition() { return new V1PersistentVolumeClaimStatusFluentImpl.ConditionsNestedImpl(); } - - public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewConditionLike( - V1PersistentVolumeClaimCondition item) { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item) { return new V1PersistentVolumeClaimStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1PersistentVolumeClaimStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1PersistentVolumeClaimCondition item) { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1PersistentVolumeClaimCondition item) { return new V1PersistentVolumeClaimStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1PersistentVolumeClaimStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1PersistentVolumeClaimStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1PersistentVolumeClaimStatusFluent.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 V1PersistentVolumeClaimStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1PersistentVolumeClaimConditionFluentImpl< - V1PersistentVolumeClaimStatusFluent.ConditionsNested> - implements V1PersistentVolumeClaimStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1PersistentVolumeClaimCondition item) { + class ConditionsNestedImpl extends V1PersistentVolumeClaimConditionFluentImpl> implements V1PersistentVolumeClaimStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1PersistentVolumeClaimCondition item) { this.index = index; this.builder = new V1PersistentVolumeClaimConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1PersistentVolumeClaimConditionBuilder(this); } - V1PersistentVolumeClaimConditionBuilder builder; Integer index; - public N and() { - return (N) - V1PersistentVolumeClaimStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1PersistentVolumeClaimStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java index 1da20633df..5447a88579 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java @@ -1,78 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimTemplateBuilder - extends V1PersistentVolumeClaimTemplateFluentImpl - implements VisitableBuilder< - V1PersistentVolumeClaimTemplate, V1PersistentVolumeClaimTemplateBuilder> { +import java.lang.Boolean; +public class V1PersistentVolumeClaimTemplateBuilder extends V1PersistentVolumeClaimTemplateFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimTemplateBuilder() { this(false); } - public V1PersistentVolumeClaimTemplateBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimTemplate(), validationEnabled); } - public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimTemplateBuilder( - V1PersistentVolumeClaimTemplateFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimTemplate(), validationEnabled); } - - public V1PersistentVolumeClaimTemplateBuilder( - V1PersistentVolumeClaimTemplateFluent fluent, V1PersistentVolumeClaimTemplate instance) { + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,V1PersistentVolumeClaimTemplate instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimTemplateBuilder( - V1PersistentVolumeClaimTemplateFluent fluent, - V1PersistentVolumeClaimTemplate instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,V1PersistentVolumeClaimTemplate instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplate instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimTemplateBuilder( - V1PersistentVolumeClaimTemplate instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplate instance,Boolean validationEnabled) { + this.fluent = this; this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimTemplateFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaimTemplate build() { V1PersistentVolumeClaimTemplate buildable = new V1PersistentVolumeClaimTemplate(); buildable.setMetadata(fluent.getMetadata()); buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java index 2e143931a5..bce5c405ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java @@ -1,90 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1PersistentVolumeClaimTemplateFluent< - A extends V1PersistentVolumeClaimTemplateFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1PersistentVolumeClaimTemplateFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadata(); - - public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public V1PersistentVolumeClaimTemplateFluent.MetadataNested editMetadata(); - public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadata(); - - public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimSpec getSpec(); - public V1PersistentVolumeClaimSpec buildSpec(); - public A withSpec(V1PersistentVolumeClaimSpec spec); - public Boolean hasSpec(); - public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpec(); - - public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpecLike( - V1PersistentVolumeClaimSpec item); - + public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item); public V1PersistentVolumeClaimTemplateFluent.SpecNested editSpec(); - public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpec(); - - public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpecLike( - V1PersistentVolumeClaimSpec item); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { + public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1PersistentVolumeClaimSpecFluent> { + public interface SpecNested extends Nested,V1PersistentVolumeClaimSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java index 1eaf309216..fd3dccdbc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java @@ -1,212 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimTemplateFluentImpl< - A extends V1PersistentVolumeClaimTemplateFluent> - extends BaseFluent implements V1PersistentVolumeClaimTemplateFluent { - public V1PersistentVolumeClaimTemplateFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimTemplateFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimTemplateFluent{ + public V1PersistentVolumeClaimTemplateFluentImpl() { + } public V1PersistentVolumeClaimTemplateFluentImpl(V1PersistentVolumeClaimTemplate instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private V1ObjectMetaBuilder metadata; private V1PersistentVolumeClaimSpecBuilder spec; - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeClaimTemplateFluentImpl.MetadataNestedImpl(); } - - public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PersistentVolumeClaimTemplateFluentImpl.MetadataNestedImpl(item); } - public V1PersistentVolumeClaimTemplateFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1PersistentVolumeClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1PersistentVolumeClaimSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1PersistentVolumeClaimSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpec() { return new V1PersistentVolumeClaimTemplateFluentImpl.SpecNestedImpl(); } - - public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpecLike( - V1PersistentVolumeClaimSpec item) { + public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { return new V1PersistentVolumeClaimTemplateFluentImpl.SpecNestedImpl(item); } - public V1PersistentVolumeClaimTemplateFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1PersistentVolumeClaimSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1PersistentVolumeClaimSpecBuilder().build()); } - - public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpecLike( - V1PersistentVolumeClaimSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeClaimTemplateFluentImpl that = (V1PersistentVolumeClaimTemplateFluentImpl) o; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return java.util.Objects.hash(metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1PersistentVolumeClaimTemplateFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PersistentVolumeClaimTemplateFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimTemplateFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1PersistentVolumeClaimSpecFluentImpl< - V1PersistentVolumeClaimTemplateFluent.SpecNested> - implements V1PersistentVolumeClaimTemplateFluent.SpecNested, Nested { + class SpecNestedImpl extends V1PersistentVolumeClaimSpecFluentImpl> implements V1PersistentVolumeClaimTemplateFluent.SpecNested,Nested{ SpecNestedImpl(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1PersistentVolumeClaimSpecBuilder(this); } - V1PersistentVolumeClaimSpecBuilder builder; - public N and() { return (N) V1PersistentVolumeClaimTemplateFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java index b9dd355210..1bfd9ccb30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java @@ -1,81 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeClaimVolumeSourceBuilder - extends V1PersistentVolumeClaimVolumeSourceFluentImpl< - V1PersistentVolumeClaimVolumeSourceBuilder> - implements VisitableBuilder< - V1PersistentVolumeClaimVolumeSource, V1PersistentVolumeClaimVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1PersistentVolumeClaimVolumeSourceBuilder extends V1PersistentVolumeClaimVolumeSourceFluentImpl implements VisitableBuilder{ public V1PersistentVolumeClaimVolumeSourceBuilder() { this(false); } - public V1PersistentVolumeClaimVolumeSourceBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimVolumeSource(), validationEnabled); } - - public V1PersistentVolumeClaimVolumeSourceBuilder( - V1PersistentVolumeClaimVolumeSourceFluent fluent) { + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeClaimVolumeSourceBuilder( - V1PersistentVolumeClaimVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimVolumeSource(), validationEnabled); } - - public V1PersistentVolumeClaimVolumeSourceBuilder( - V1PersistentVolumeClaimVolumeSourceFluent fluent, - V1PersistentVolumeClaimVolumeSource instance) { + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,V1PersistentVolumeClaimVolumeSource instance) { this(fluent, instance, false); } - - public V1PersistentVolumeClaimVolumeSourceBuilder( - V1PersistentVolumeClaimVolumeSourceFluent fluent, - V1PersistentVolumeClaimVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,V1PersistentVolumeClaimVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withClaimName(instance.getClaimName()); fluent.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeClaimVolumeSourceBuilder( - V1PersistentVolumeClaimVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withClaimName(instance.getClaimName()); this.withReadOnly(instance.getReadOnly()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeClaimVolumeSourceFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeClaimVolumeSource build() { V1PersistentVolumeClaimVolumeSource buildable = new V1PersistentVolumeClaimVolumeSource(); buildable.setClaimName(fluent.getClaimName()); buildable.setReadOnly(fluent.getReadOnly()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java index f1094591ad..3f9ac9941c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java @@ -1,34 +1,19 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PersistentVolumeClaimVolumeSourceFluent< - A extends V1PersistentVolumeClaimVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PersistentVolumeClaimVolumeSourceFluent> extends Fluent{ public String getClaimName(); - public A withClaimName(String claimName); - public Boolean hasClaimName(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java index bca273b55f..91ff332ce5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java @@ -1,93 +1,65 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeClaimVolumeSourceFluentImpl< - A extends V1PersistentVolumeClaimVolumeSourceFluent> - extends BaseFluent implements V1PersistentVolumeClaimVolumeSourceFluent { - public V1PersistentVolumeClaimVolumeSourceFluentImpl() {} - - public V1PersistentVolumeClaimVolumeSourceFluentImpl( - V1PersistentVolumeClaimVolumeSource instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeClaimVolumeSourceFluentImpl> extends BaseFluent implements V1PersistentVolumeClaimVolumeSourceFluent{ + public V1PersistentVolumeClaimVolumeSourceFluentImpl() { + } + public V1PersistentVolumeClaimVolumeSourceFluentImpl(V1PersistentVolumeClaimVolumeSource instance) { this.withClaimName(instance.getClaimName()); this.withReadOnly(instance.getReadOnly()); - } + } private String claimName; private Boolean readOnly; - public String getClaimName() { return this.claimName; } - public A withClaimName(String claimName) { - this.claimName = claimName; - return (A) this; + this.claimName=claimName; return (A) this; } - public Boolean hasClaimName() { return this.claimName != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1PersistentVolumeClaimVolumeSourceFluentImpl that = - (V1PersistentVolumeClaimVolumeSourceFluentImpl) o; - if (claimName != null ? !claimName.equals(that.claimName) : that.claimName != null) - return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; + V1PersistentVolumeClaimVolumeSourceFluentImpl that = (V1PersistentVolumeClaimVolumeSourceFluentImpl) o; + if (claimName != null ? !claimName.equals(that.claimName) :that.claimName != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(claimName, readOnly, super.hashCode()); + return java.util.Objects.hash(claimName, readOnly, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (claimName != null) { - sb.append("claimName:"); - sb.append(claimName + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly); - } + if (claimName != null) { sb.append("claimName:"); sb.append(claimName + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java index abb242a128..bbbc467acd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java @@ -1,125 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1PersistentVolumeFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PersistentVolumeFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PersistentVolumeFluent.MetadataNested withNewMetadata(); - public V1PersistentVolumeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PersistentVolumeFluent.MetadataNested editMetadata(); - public V1PersistentVolumeFluent.MetadataNested editOrNewMetadata(); - public V1PersistentVolumeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeSpec getSpec(); - public V1PersistentVolumeSpec buildSpec(); - public A withSpec(V1PersistentVolumeSpec spec); - public Boolean hasSpec(); - public V1PersistentVolumeFluent.SpecNested withNewSpec(); - public V1PersistentVolumeFluent.SpecNested withNewSpecLike(V1PersistentVolumeSpec item); - public V1PersistentVolumeFluent.SpecNested editSpec(); - public V1PersistentVolumeFluent.SpecNested editOrNewSpec(); - public V1PersistentVolumeFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeStatus getStatus(); - public V1PersistentVolumeStatus buildStatus(); - public A withStatus(V1PersistentVolumeStatus status); - public Boolean hasStatus(); - public V1PersistentVolumeFluent.StatusNested withNewStatus(); - public V1PersistentVolumeFluent.StatusNested withNewStatusLike(V1PersistentVolumeStatus item); - public V1PersistentVolumeFluent.StatusNested editStatus(); - public V1PersistentVolumeFluent.StatusNested editOrNewStatus(); - - public V1PersistentVolumeFluent.StatusNested editOrNewStatusLike( - V1PersistentVolumeStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1PersistentVolumeFluent.StatusNested editOrNewStatusLike(V1PersistentVolumeStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1PersistentVolumeSpecFluent> { + public interface SpecNested extends Nested,V1PersistentVolumeSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1PersistentVolumeStatusFluent> { + public interface StatusNested extends Nested,V1PersistentVolumeStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java index 542a96507d..280d4ff43c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeFluentImpl> - extends BaseFluent implements V1PersistentVolumeFluent { - public V1PersistentVolumeFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeFluentImpl> extends BaseFluent implements V1PersistentVolumeFluent{ + public V1PersistentVolumeFluentImpl() { + } public V1PersistentVolumeFluentImpl(V1PersistentVolume instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,301 +25,205 @@ public V1PersistentVolumeFluentImpl(V1PersistentVolume instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PersistentVolumeSpecBuilder spec; private V1PersistentVolumeStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PersistentVolumeFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeFluentImpl.MetadataNestedImpl(); } - public V1PersistentVolumeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PersistentVolumeFluentImpl.MetadataNestedImpl(item); } - public V1PersistentVolumeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PersistentVolumeFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PersistentVolumeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1PersistentVolumeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1PersistentVolumeSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1PersistentVolumeSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1PersistentVolumeSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1PersistentVolumeFluent.SpecNested withNewSpec() { return new V1PersistentVolumeFluentImpl.SpecNestedImpl(); } - public V1PersistentVolumeFluent.SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { return new V1PersistentVolumeFluentImpl.SpecNestedImpl(item); } - public V1PersistentVolumeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1PersistentVolumeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1PersistentVolumeSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1PersistentVolumeSpecBuilder().build()); } - public V1PersistentVolumeFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1PersistentVolumeStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1PersistentVolumeStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1PersistentVolumeStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1PersistentVolumeStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1PersistentVolumeFluent.StatusNested withNewStatus() { return new V1PersistentVolumeFluentImpl.StatusNestedImpl(); } - public V1PersistentVolumeFluent.StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { return new V1PersistentVolumeFluentImpl.StatusNestedImpl(item); } - public V1PersistentVolumeFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1PersistentVolumeFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1PersistentVolumeStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1PersistentVolumeStatusBuilder().build()); } - - public V1PersistentVolumeFluent.StatusNested editOrNewStatusLike( - V1PersistentVolumeStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1PersistentVolumeFluent.StatusNested editOrNewStatusLike(V1PersistentVolumeStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeFluentImpl that = (V1PersistentVolumeFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1PersistentVolumeFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PersistentVolumeFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PersistentVolumeFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1PersistentVolumeSpecFluentImpl> - implements V1PersistentVolumeFluent.SpecNested, Nested { + class SpecNestedImpl extends V1PersistentVolumeSpecFluentImpl> implements V1PersistentVolumeFluent.SpecNested,Nested{ SpecNestedImpl(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1PersistentVolumeSpecBuilder(this); } - V1PersistentVolumeSpecBuilder builder; - public N and() { return (N) V1PersistentVolumeFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1PersistentVolumeStatusFluentImpl> - implements V1PersistentVolumeFluent.StatusNested, Nested { + class StatusNestedImpl extends V1PersistentVolumeStatusFluentImpl> implements V1PersistentVolumeFluent.StatusNested,Nested{ StatusNestedImpl(V1PersistentVolumeStatus item) { this.builder = new V1PersistentVolumeStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1PersistentVolumeStatusBuilder(this); } - V1PersistentVolumeStatusBuilder builder; - public N and() { return (N) V1PersistentVolumeFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java index 25e0e2996b..84d205aee7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeListBuilder - extends V1PersistentVolumeListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeListBuilder extends V1PersistentVolumeListFluentImpl implements VisitableBuilder{ public V1PersistentVolumeListBuilder() { this(false); } - public V1PersistentVolumeListBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeList(), validationEnabled); } - public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeListBuilder( - V1PersistentVolumeListFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeList(), validationEnabled); } - - public V1PersistentVolumeListBuilder( - V1PersistentVolumeListFluent fluent, V1PersistentVolumeList instance) { + public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,V1PersistentVolumeList instance) { this(fluent, instance, false); } - - public V1PersistentVolumeListBuilder( - V1PersistentVolumeListFluent fluent, - V1PersistentVolumeList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,V1PersistentVolumeList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1PersistentVolumeListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance, Boolean va this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeListFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeList build() { V1PersistentVolumeList buildable = new V1PersistentVolumeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1PersistentVolumeList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java index a91b3f5b9c..d846ea8305 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PersistentVolumeListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PersistentVolumeListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1PersistentVolume item); - - public A setToItems(Integer index, V1PersistentVolume item); - + public A addToItems(Integer index,V1PersistentVolume item); + public A setToItems(Integer index,V1PersistentVolume item); public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1PersistentVolume buildItem(Integer index); - public V1PersistentVolume buildFirstItem(); - public V1PersistentVolume buildLastItem(); - public V1PersistentVolume buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items); - public Boolean hasItems(); - public V1PersistentVolumeListFluent.ItemsNested addNewItem(); - public V1PersistentVolumeListFluent.ItemsNested addNewItemLike(V1PersistentVolume item); - - public V1PersistentVolumeListFluent.ItemsNested setNewItemLike( - Integer index, V1PersistentVolume item); - + public V1PersistentVolumeListFluent.ItemsNested setNewItemLike(Integer index,V1PersistentVolume item); public V1PersistentVolumeListFluent.ItemsNested editItem(Integer index); - public V1PersistentVolumeListFluent.ItemsNested editFirstItem(); - public V1PersistentVolumeListFluent.ItemsNested editLastItem(); - - public V1PersistentVolumeListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1PersistentVolumeListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1PersistentVolumeListFluent.MetadataNested withNewMetadata(); - public V1PersistentVolumeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1PersistentVolumeListFluent.MetadataNested editMetadata(); - public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadata(); - public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1PersistentVolumeFluent> { + public interface ItemsNested extends Nested,V1PersistentVolumeFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java index 2fe97b3dcb..f903154315 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeListFluentImpl> - extends BaseFluent implements V1PersistentVolumeListFluent { - public V1PersistentVolumeListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeListFluentImpl> extends BaseFluent implements V1PersistentVolumeListFluent{ + public V1PersistentVolumeListFluentImpl() { + } public V1PersistentVolumeListFluentImpl(V1PersistentVolumeList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1PersistentVolumeListFluentImpl(V1PersistentVolumeList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1PersistentVolume item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1PersistentVolume item) { + if (this.items == null) {this.items = new ArrayList();} + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1PersistentVolume item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1PersistentVolume item) { + if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1PersistentVolume buildItem(Integer index) { return this.items.get(index).build(); } - public V1PersistentVolume buildFirstItem() { return this.items.get(0).build(); } - public V1PersistentVolume buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1PersistentVolume buildMatchingItem(Predicate predicate) { - for (V1PersistentVolumeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PersistentVolumeBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1PersistentVolumeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PersistentVolumeBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PersistentVolume item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1PersistentVolume item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1PersistentVolume item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1PersistentVolume item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1PersistentVolumeListFluent.ItemsNested addNewItem() { return new V1PersistentVolumeListFluentImpl.ItemsNestedImpl(); } - public V1PersistentVolumeListFluent.ItemsNested addNewItemLike(V1PersistentVolume item) { return new V1PersistentVolumeListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1PersistentVolumeListFluent.ItemsNested setNewItemLike( - Integer index, V1PersistentVolume item) { + public V1PersistentVolumeListFluent.ItemsNested setNewItemLike(Integer index,V1PersistentVolume item) { return new V1PersistentVolumeListFluentImpl.ItemsNestedImpl(index, item); } - public V1PersistentVolumeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1PersistentVolumeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1PersistentVolumeListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1PersistentVolumeListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1PersistentVolumeListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1PersistentVolumeListFluentImpl.MetadataNestedImpl(); } - public V1PersistentVolumeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1PersistentVolumeListFluentImpl.MetadataNestedImpl(item); } - public V1PersistentVolumeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeListFluentImpl that = (V1PersistentVolumeListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1PersistentVolumeFluentImpl> - implements V1PersistentVolumeListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1PersistentVolume item) { + class ItemsNestedImpl extends V1PersistentVolumeFluentImpl> implements V1PersistentVolumeListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1PersistentVolume item) { this.index = index; this.builder = new V1PersistentVolumeBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1PersistentVolumeBuilder(this); } - V1PersistentVolumeBuilder builder; Integer index; - public N and() { - return (N) V1PersistentVolumeListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1PersistentVolumeListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1PersistentVolumeListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1PersistentVolumeListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1PersistentVolumeListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java index 8d65004c08..c41611424b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeSpecBuilder - extends V1PersistentVolumeSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeSpecBuilder extends V1PersistentVolumeSpecFluentImpl implements VisitableBuilder{ public V1PersistentVolumeSpecBuilder() { this(false); } - public V1PersistentVolumeSpecBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeSpec(), validationEnabled); } - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeSpecBuilder( - V1PersistentVolumeSpecFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeSpec(), validationEnabled); } - - public V1PersistentVolumeSpecBuilder( - V1PersistentVolumeSpecFluent fluent, V1PersistentVolumeSpec instance) { + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,V1PersistentVolumeSpec instance) { this(fluent, instance, false); } - - public V1PersistentVolumeSpecBuilder( - V1PersistentVolumeSpecFluent fluent, - V1PersistentVolumeSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,V1PersistentVolumeSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAccessModes(instance.getAccessModes()); fluent.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); @@ -104,15 +80,13 @@ public V1PersistentVolumeSpecBuilder( fluent.withVsphereVolume(instance.getVsphereVolume()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAccessModes(instance.getAccessModes()); this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); @@ -173,12 +147,10 @@ public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance, Boolean va this.withVsphereVolume(instance.getVsphereVolume()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeSpecFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeSpec build() { V1PersistentVolumeSpec buildable = new V1PersistentVolumeSpec(); buildable.setAccessModes(fluent.getAccessModes()); @@ -213,4 +185,5 @@ public V1PersistentVolumeSpec build() { buildable.setVsphereVolume(fluent.getVsphereVolume()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java index e37632c117..f69a6ebaca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java @@ -1,924 +1,548 @@ -/* -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.custom.Quantity; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.util.List; +import java.lang.Boolean; import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; import java.util.Collection; -import java.util.List; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PersistentVolumeSpecFluent> - extends Fluent { - public A addToAccessModes(Integer index, String item); - - public A setToAccessModes(Integer index, String item); - +import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; + + /** + * Generated + */ +public interface V1PersistentVolumeSpecFluent> extends Fluent{ + public A addToAccessModes(Integer index,String item); + public A setToAccessModes(Integer index,String item); public A addToAccessModes(java.lang.String... items); - public A addAllToAccessModes(Collection items); - public A removeFromAccessModes(java.lang.String... items); - public A removeAllFromAccessModes(Collection items); - public List getAccessModes(); - public String getAccessMode(Integer index); - public String getFirstAccessMode(); - public String getLastAccessMode(); - public String getMatchingAccessMode(Predicate predicate); - public Boolean hasMatchingAccessMode(Predicate predicate); - public A withAccessModes(List accessModes); - public A withAccessModes(java.lang.String... accessModes); - public Boolean hasAccessModes(); - + /** * This method has been deprecated, please use method buildAwsElasticBlockStore instead. - * * @return The buildable object. */ @Deprecated public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore(); - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore(); - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore); - public Boolean hasAwsElasticBlockStore(); - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore(); - - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( - V1AWSElasticBlockStoreVolumeSource item); - + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item); public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore(); - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore(); - - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item); - + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item); + /** * This method has been deprecated, please use method buildAzureDisk instead. - * * @return The buildable object. */ @Deprecated public V1AzureDiskVolumeSource getAzureDisk(); - public V1AzureDiskVolumeSource buildAzureDisk(); - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk); - public Boolean hasAzureDisk(); - public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDisk(); - - public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDiskLike( - V1AzureDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item); public V1PersistentVolumeSpecFluent.AzureDiskNested editAzureDisk(); - public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDisk(); - - public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDiskLike( - V1AzureDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item); + /** * This method has been deprecated, please use method buildAzureFile instead. - * * @return The buildable object. */ @Deprecated public V1AzureFilePersistentVolumeSource getAzureFile(); - public V1AzureFilePersistentVolumeSource buildAzureFile(); - public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile); - public Boolean hasAzureFile(); - public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFile(); - - public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFileLike( - V1AzureFilePersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item); public V1PersistentVolumeSpecFluent.AzureFileNested editAzureFile(); - public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFile(); - - public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFileLike( - V1AzureFilePersistentVolumeSource item); - - public A addToCapacity(String key, Quantity value); - - public A addToCapacity(Map map); - + public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item); + public A addToCapacity(String key,Quantity value); + public A addToCapacity(Map map); public A removeFromCapacity(String key); - - public A removeFromCapacity(Map map); - - public Map getCapacity(); - - public A withCapacity(Map capacity); - + public A removeFromCapacity(Map map); + public Map getCapacity(); + public A withCapacity(Map capacity); public Boolean hasCapacity(); - + /** * This method has been deprecated, please use method buildCephfs instead. - * * @return The buildable object. */ @Deprecated public V1CephFSPersistentVolumeSource getCephfs(); - public V1CephFSPersistentVolumeSource buildCephfs(); - public A withCephfs(V1CephFSPersistentVolumeSource cephfs); - public Boolean hasCephfs(); - public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfs(); - - public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfsLike( - V1CephFSPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.CephfsNested editCephfs(); - public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfs(); - - public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfsLike( - V1CephFSPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildCinder instead. - * * @return The buildable object. */ @Deprecated public V1CinderPersistentVolumeSource getCinder(); - public V1CinderPersistentVolumeSource buildCinder(); - public A withCinder(V1CinderPersistentVolumeSource cinder); - public Boolean hasCinder(); - public V1PersistentVolumeSpecFluent.CinderNested withNewCinder(); - - public V1PersistentVolumeSpecFluent.CinderNested withNewCinderLike( - V1CinderPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.CinderNested editCinder(); - public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinder(); - - public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinderLike( - V1CinderPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinderLike(V1CinderPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildClaimRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getClaimRef(); - public V1ObjectReference buildClaimRef(); - public A withClaimRef(V1ObjectReference claimRef); - public Boolean hasClaimRef(); - public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRef(); - public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRefLike(V1ObjectReference item); - public V1PersistentVolumeSpecFluent.ClaimRefNested editClaimRef(); - public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRef(); - - public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRefLike( - V1ObjectReference item); - + public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item); + /** * This method has been deprecated, please use method buildCsi instead. - * * @return The buildable object. */ @Deprecated public V1CSIPersistentVolumeSource getCsi(); - public V1CSIPersistentVolumeSource buildCsi(); - public A withCsi(V1CSIPersistentVolumeSource csi); - public Boolean hasCsi(); - public V1PersistentVolumeSpecFluent.CsiNested withNewCsi(); - public V1PersistentVolumeSpecFluent.CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item); - public V1PersistentVolumeSpecFluent.CsiNested editCsi(); - public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsi(); - - public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsiLike( - V1CSIPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildFc instead. - * * @return The buildable object. */ @Deprecated public V1FCVolumeSource getFc(); - public V1FCVolumeSource buildFc(); - public A withFc(V1FCVolumeSource fc); - public Boolean hasFc(); - public V1PersistentVolumeSpecFluent.FcNested withNewFc(); - public V1PersistentVolumeSpecFluent.FcNested withNewFcLike(V1FCVolumeSource item); - public V1PersistentVolumeSpecFluent.FcNested editFc(); - public V1PersistentVolumeSpecFluent.FcNested editOrNewFc(); - public V1PersistentVolumeSpecFluent.FcNested editOrNewFcLike(V1FCVolumeSource item); - + /** * This method has been deprecated, please use method buildFlexVolume instead. - * * @return The buildable object. */ @Deprecated public V1FlexPersistentVolumeSource getFlexVolume(); - public V1FlexPersistentVolumeSource buildFlexVolume(); - public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume); - public Boolean hasFlexVolume(); - public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolume(); - - public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolumeLike( - V1FlexPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.FlexVolumeNested editFlexVolume(); - public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolume(); - - public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolumeLike( - V1FlexPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildFlocker instead. - * * @return The buildable object. */ @Deprecated public V1FlockerVolumeSource getFlocker(); - public V1FlockerVolumeSource buildFlocker(); - public A withFlocker(V1FlockerVolumeSource flocker); - public Boolean hasFlocker(); - public V1PersistentVolumeSpecFluent.FlockerNested withNewFlocker(); - - public V1PersistentVolumeSpecFluent.FlockerNested withNewFlockerLike( - V1FlockerVolumeSource item); - + public V1PersistentVolumeSpecFluent.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item); public V1PersistentVolumeSpecFluent.FlockerNested editFlocker(); - public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlocker(); - - public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlockerLike( - V1FlockerVolumeSource item); - + public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item); + /** * This method has been deprecated, please use method buildGcePersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1GCEPersistentDiskVolumeSource getGcePersistentDisk(); - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk(); - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk); - public Boolean hasGcePersistentDisk(); - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDisk(); - - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item); public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editGcePersistentDisk(); - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDisk(); - - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item); + /** * This method has been deprecated, please use method buildGlusterfs instead. - * * @return The buildable object. */ @Deprecated public V1GlusterfsPersistentVolumeSource getGlusterfs(); - public V1GlusterfsPersistentVolumeSource buildGlusterfs(); - public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs); - public Boolean hasGlusterfs(); - public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfs(); - - public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfsLike( - V1GlusterfsPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.GlusterfsNested editGlusterfs(); - public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfs(); - - public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfsLike( - V1GlusterfsPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildHostPath instead. - * * @return The buildable object. */ @Deprecated public V1HostPathVolumeSource getHostPath(); - public V1HostPathVolumeSource buildHostPath(); - public A withHostPath(V1HostPathVolumeSource hostPath); - public Boolean hasHostPath(); - public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPath(); - - public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPathLike( - V1HostPathVolumeSource item); - + public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item); public V1PersistentVolumeSpecFluent.HostPathNested editHostPath(); - public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPath(); - - public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPathLike( - V1HostPathVolumeSource item); - + public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item); + /** * This method has been deprecated, please use method buildIscsi instead. - * * @return The buildable object. */ @Deprecated public V1ISCSIPersistentVolumeSource getIscsi(); - public V1ISCSIPersistentVolumeSource buildIscsi(); - public A withIscsi(V1ISCSIPersistentVolumeSource iscsi); - public Boolean hasIscsi(); - public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsi(); - - public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsiLike( - V1ISCSIPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.IscsiNested editIscsi(); - public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsi(); - - public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsiLike( - V1ISCSIPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildLocal instead. - * * @return The buildable object. */ @Deprecated public V1LocalVolumeSource getLocal(); - public V1LocalVolumeSource buildLocal(); - public A withLocal(V1LocalVolumeSource local); - public Boolean hasLocal(); - public V1PersistentVolumeSpecFluent.LocalNested withNewLocal(); - public V1PersistentVolumeSpecFluent.LocalNested withNewLocalLike(V1LocalVolumeSource item); - public V1PersistentVolumeSpecFluent.LocalNested editLocal(); - public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocal(); - public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocalLike(V1LocalVolumeSource item); - - public A addToMountOptions(Integer index, String item); - - public A setToMountOptions(Integer index, String item); - + public A addToMountOptions(Integer index,String item); + public A setToMountOptions(Integer index,String item); public A addToMountOptions(java.lang.String... items); - public A addAllToMountOptions(Collection items); - public A removeFromMountOptions(java.lang.String... items); - public A removeAllFromMountOptions(Collection items); - public List getMountOptions(); - public String getMountOption(Integer index); - public String getFirstMountOption(); - public String getLastMountOption(); - public String getMatchingMountOption(Predicate predicate); - public Boolean hasMatchingMountOption(Predicate predicate); - public A withMountOptions(List mountOptions); - public A withMountOptions(java.lang.String... mountOptions); - public Boolean hasMountOptions(); - + /** * This method has been deprecated, please use method buildNfs instead. - * * @return The buildable object. */ @Deprecated public V1NFSVolumeSource getNfs(); - public V1NFSVolumeSource buildNfs(); - public A withNfs(V1NFSVolumeSource nfs); - public Boolean hasNfs(); - public V1PersistentVolumeSpecFluent.NfsNested withNewNfs(); - public V1PersistentVolumeSpecFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item); - public V1PersistentVolumeSpecFluent.NfsNested editNfs(); - public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfs(); - public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item); - + /** * This method has been deprecated, please use method buildNodeAffinity instead. - * * @return The buildable object. */ @Deprecated public V1VolumeNodeAffinity getNodeAffinity(); - public V1VolumeNodeAffinity buildNodeAffinity(); - public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity); - public Boolean hasNodeAffinity(); - public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinity(); - - public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinityLike( - V1VolumeNodeAffinity item); - + public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item); public V1PersistentVolumeSpecFluent.NodeAffinityNested editNodeAffinity(); - public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinity(); - - public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinityLike( - V1VolumeNodeAffinity item); - + public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item); public String getPersistentVolumeReclaimPolicy(); - public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy); - public Boolean hasPersistentVolumeReclaimPolicy(); - + /** * This method has been deprecated, please use method buildPhotonPersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk(); - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk(); - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk); - public Boolean hasPhotonPersistentDisk(); - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk(); - - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( - V1PhotonPersistentDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item); public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editPhotonPersistentDisk(); - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk(); - - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item); + /** * This method has been deprecated, please use method buildPortworxVolume instead. - * * @return The buildable object. */ @Deprecated public V1PortworxVolumeSource getPortworxVolume(); - public V1PortworxVolumeSource buildPortworxVolume(); - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume); - public Boolean hasPortworxVolume(); - public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolume(); - - public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolumeLike( - V1PortworxVolumeSource item); - + public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item); public V1PersistentVolumeSpecFluent.PortworxVolumeNested editPortworxVolume(); - public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolume(); - - public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( - V1PortworxVolumeSource item); - + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item); + /** * This method has been deprecated, please use method buildQuobyte instead. - * * @return The buildable object. */ @Deprecated public V1QuobyteVolumeSource getQuobyte(); - public V1QuobyteVolumeSource buildQuobyte(); - public A withQuobyte(V1QuobyteVolumeSource quobyte); - public Boolean hasQuobyte(); - public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyte(); - - public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyteLike( - V1QuobyteVolumeSource item); - + public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item); public V1PersistentVolumeSpecFluent.QuobyteNested editQuobyte(); - public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyte(); - - public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyteLike( - V1QuobyteVolumeSource item); - + public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item); + /** * This method has been deprecated, please use method buildRbd instead. - * * @return The buildable object. */ @Deprecated public V1RBDPersistentVolumeSource getRbd(); - public V1RBDPersistentVolumeSource buildRbd(); - public A withRbd(V1RBDPersistentVolumeSource rbd); - public Boolean hasRbd(); - public V1PersistentVolumeSpecFluent.RbdNested withNewRbd(); - public V1PersistentVolumeSpecFluent.RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item); - public V1PersistentVolumeSpecFluent.RbdNested editRbd(); - public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbd(); - - public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbdLike( - V1RBDPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item); + /** * This method has been deprecated, please use method buildScaleIO instead. - * * @return The buildable object. */ @Deprecated public V1ScaleIOPersistentVolumeSource getScaleIO(); - public V1ScaleIOPersistentVolumeSource buildScaleIO(); - public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO); - public Boolean hasScaleIO(); - public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIO(); - - public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIOLike( - V1ScaleIOPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.ScaleIONested editScaleIO(); - public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIO(); - - public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIOLike( - V1ScaleIOPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item); public String getStorageClassName(); - public A withStorageClassName(String storageClassName); - public Boolean hasStorageClassName(); - + /** * This method has been deprecated, please use method buildStorageos instead. - * * @return The buildable object. */ @Deprecated public V1StorageOSPersistentVolumeSource getStorageos(); - public V1StorageOSPersistentVolumeSource buildStorageos(); - public A withStorageos(V1StorageOSPersistentVolumeSource storageos); - public Boolean hasStorageos(); - public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageos(); - - public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageosLike( - V1StorageOSPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item); public V1PersistentVolumeSpecFluent.StorageosNested editStorageos(); - public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageos(); - - public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageosLike( - V1StorageOSPersistentVolumeSource item); - + public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item); public String getVolumeMode(); - public A withVolumeMode(String volumeMode); - public Boolean hasVolumeMode(); - + /** * This method has been deprecated, please use method buildVsphereVolume instead. - * * @return The buildable object. */ @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume(); - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume(); - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume); - public Boolean hasVsphereVolume(); - public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolume(); - - public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item); - + public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item); public V1PersistentVolumeSpecFluent.VsphereVolumeNested editVsphereVolume(); - public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolume(); - - public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item); - - public interface AwsElasticBlockStoreNested - extends Nested, - V1AWSElasticBlockStoreVolumeSourceFluent< - V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested> { + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item); + public interface AwsElasticBlockStoreNested extends Nested,V1AWSElasticBlockStoreVolumeSourceFluent>{ public N and(); - public N endAwsElasticBlockStore(); + } - - public interface AzureDiskNested - extends Nested, - V1AzureDiskVolumeSourceFluent> { + public interface AzureDiskNested extends Nested,V1AzureDiskVolumeSourceFluent>{ public N and(); - public N endAzureDisk(); + } - - public interface AzureFileNested - extends Nested, - V1AzureFilePersistentVolumeSourceFluent> { + public interface AzureFileNested extends Nested,V1AzureFilePersistentVolumeSourceFluent>{ public N and(); - public N endAzureFile(); + } - - public interface CephfsNested - extends Nested, - V1CephFSPersistentVolumeSourceFluent> { + public interface CephfsNested extends Nested,V1CephFSPersistentVolumeSourceFluent>{ public N and(); - public N endCephfs(); + } - - public interface CinderNested - extends Nested, - V1CinderPersistentVolumeSourceFluent> { + public interface CinderNested extends Nested,V1CinderPersistentVolumeSourceFluent>{ public N and(); - public N endCinder(); + } - - public interface ClaimRefNested - extends Nested, V1ObjectReferenceFluent> { + public interface ClaimRefNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endClaimRef(); + } - - public interface CsiNested - extends Nested, - V1CSIPersistentVolumeSourceFluent> { + public interface CsiNested extends Nested,V1CSIPersistentVolumeSourceFluent>{ public N and(); - public N endCsi(); + } - - public interface FcNested - extends Nested, V1FCVolumeSourceFluent> { + public interface FcNested extends Nested,V1FCVolumeSourceFluent>{ public N and(); - public N endFc(); + } - - public interface FlexVolumeNested - extends Nested, - V1FlexPersistentVolumeSourceFluent> { + public interface FlexVolumeNested extends Nested,V1FlexPersistentVolumeSourceFluent>{ public N and(); - public N endFlexVolume(); + } - - public interface FlockerNested - extends Nested, - V1FlockerVolumeSourceFluent> { + public interface FlockerNested extends Nested,V1FlockerVolumeSourceFluent>{ public N and(); - public N endFlocker(); + } - - public interface GcePersistentDiskNested - extends Nested, - V1GCEPersistentDiskVolumeSourceFluent< - V1PersistentVolumeSpecFluent.GcePersistentDiskNested> { + public interface GcePersistentDiskNested extends Nested,V1GCEPersistentDiskVolumeSourceFluent>{ public N and(); - public N endGcePersistentDisk(); + } - - public interface GlusterfsNested - extends Nested, - V1GlusterfsPersistentVolumeSourceFluent> { + public interface GlusterfsNested extends Nested,V1GlusterfsPersistentVolumeSourceFluent>{ public N and(); - public N endGlusterfs(); + } - - public interface HostPathNested - extends Nested, - V1HostPathVolumeSourceFluent> { + public interface HostPathNested extends Nested,V1HostPathVolumeSourceFluent>{ public N and(); - public N endHostPath(); + } - - public interface IscsiNested - extends Nested, - V1ISCSIPersistentVolumeSourceFluent> { + public interface IscsiNested extends Nested,V1ISCSIPersistentVolumeSourceFluent>{ public N and(); - public N endIscsi(); + } - - public interface LocalNested - extends Nested, V1LocalVolumeSourceFluent> { + public interface LocalNested extends Nested,V1LocalVolumeSourceFluent>{ public N and(); - public N endLocal(); + } - - public interface NfsNested - extends Nested, V1NFSVolumeSourceFluent> { + public interface NfsNested extends Nested,V1NFSVolumeSourceFluent>{ public N and(); - public N endNfs(); + } - - public interface NodeAffinityNested - extends Nested, - V1VolumeNodeAffinityFluent> { + public interface NodeAffinityNested extends Nested,V1VolumeNodeAffinityFluent>{ public N and(); - public N endNodeAffinity(); + } - - public interface PhotonPersistentDiskNested - extends Nested, - V1PhotonPersistentDiskVolumeSourceFluent< - V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested> { + public interface PhotonPersistentDiskNested extends Nested,V1PhotonPersistentDiskVolumeSourceFluent>{ public N and(); - public N endPhotonPersistentDisk(); + } - - public interface PortworxVolumeNested - extends Nested, - V1PortworxVolumeSourceFluent> { + public interface PortworxVolumeNested extends Nested,V1PortworxVolumeSourceFluent>{ public N and(); - public N endPortworxVolume(); + } - - public interface QuobyteNested - extends Nested, - V1QuobyteVolumeSourceFluent> { + public interface QuobyteNested extends Nested,V1QuobyteVolumeSourceFluent>{ public N and(); - public N endQuobyte(); + } - - public interface RbdNested - extends Nested, - V1RBDPersistentVolumeSourceFluent> { + public interface RbdNested extends Nested,V1RBDPersistentVolumeSourceFluent>{ public N and(); - public N endRbd(); + } - - public interface ScaleIONested - extends Nested, - V1ScaleIOPersistentVolumeSourceFluent> { + public interface ScaleIONested extends Nested,V1ScaleIOPersistentVolumeSourceFluent>{ public N and(); - public N endScaleIO(); + } - - public interface StorageosNested - extends Nested, - V1StorageOSPersistentVolumeSourceFluent> { + public interface StorageosNested extends Nested,V1StorageOSPersistentVolumeSourceFluent>{ public N and(); - public N endStorageos(); + } - - public interface VsphereVolumeNested - extends Nested, - V1VsphereVirtualDiskVolumeSourceFluent< - V1PersistentVolumeSpecFluent.VsphereVolumeNested> { + public interface VsphereVolumeNested extends Nested,V1VsphereVirtualDiskVolumeSourceFluent>{ public N and(); - public N endVsphereVolume(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java index e8d5c3f116..46a63f3ea8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java @@ -1,33 +1,28 @@ -/* -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.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.LinkedHashMap; -import java.util.List; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; import java.util.Map; +import java.lang.Deprecated; +import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.util.List; +import java.util.Collection; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeSpecFluentImpl> - extends BaseFluent implements V1PersistentVolumeSpecFluent { - public V1PersistentVolumeSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeSpecFluentImpl> extends BaseFluent implements V1PersistentVolumeSpecFluent{ + public V1PersistentVolumeSpecFluentImpl() { + } public V1PersistentVolumeSpecFluentImpl(V1PersistentVolumeSpec instance) { this.withAccessModes(instance.getAccessModes()); @@ -88,13 +83,13 @@ public V1PersistentVolumeSpecFluentImpl(V1PersistentVolumeSpec instance) { this.withVolumeMode(instance.getVolumeMode()); this.withVsphereVolume(instance.getVsphereVolume()); - } + } private List accessModes; private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; private V1AzureFilePersistentVolumeSourceBuilder azureFile; - private Map capacity; + private Map capacity; private V1CephFSPersistentVolumeSourceBuilder cephfs; private V1CinderPersistentVolumeSourceBuilder cinder; private V1ObjectReferenceBuilder claimRef; @@ -120,2383 +115,1434 @@ public V1PersistentVolumeSpecFluentImpl(V1PersistentVolumeSpec instance) { private V1StorageOSPersistentVolumeSourceBuilder storageos; private String volumeMode; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; - - public A addToAccessModes(Integer index, String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } + public A addToAccessModes(Integer index,String item) { + if (this.accessModes == null) {this.accessModes = new ArrayList();} this.accessModes.add(index, item); - return (A) this; + return (A)this; } - - public A setToAccessModes(Integer index, String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.set(index, item); - return (A) this; + public A setToAccessModes(Integer index,String item) { + if (this.accessModes == null) {this.accessModes = new ArrayList();} + this.accessModes.set(index, item); return (A)this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + if (this.accessModes == null) {this.accessModes = new ArrayList();} + for (String item : items) {this.accessModes.add(item);} return (A)this; } - public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + if (this.accessModes == null) {this.accessModes = new ArrayList();} + for (String item : items) {this.accessModes.add(item);} return (A)this; } - public A removeFromAccessModes(java.lang.String... items) { - for (String item : items) { - if (this.accessModes != null) { - this.accessModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this; } - public A removeAllFromAccessModes(Collection items) { - for (String item : items) { - if (this.accessModes != null) { - this.accessModes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.accessModes!= null){ this.accessModes.remove(item);}} return (A)this; } - public List getAccessModes() { return this.accessModes; } - public String getAccessMode(Integer index) { return this.accessModes.get(index); } - public String getFirstAccessMode() { return this.accessModes.get(0); } - public String getLastAccessMode() { return this.accessModes.get(accessModes.size() - 1); } - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: accessModes) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: accessModes) { if(predicate.test(item)){ return true;} } return false; } - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; + if (accessModes != null) {this.accessModes = new ArrayList(); for (String item : accessModes){this.addToAccessModes(item);}} else { this.accessModes = null;} return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } - } - return (A) this; + if (this.accessModes != null) {this.accessModes.clear();} + if (accessModes != null) {for (String item :accessModes){ this.addToAccessModes(item);}} return (A) this; } - public Boolean hasAccessModes() { return accessModes != null && !accessModes.isEmpty(); } - + /** * This method has been deprecated, please use method buildAwsElasticBlockStore instead. - * * @return The buildable object. */ @Deprecated public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + return this.awsElasticBlockStore!=null ?this.awsElasticBlockStore.build():null; } - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + return this.awsElasticBlockStore!=null ?this.awsElasticBlockStore.build():null; } - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - if (awsElasticBlockStore != null) { - this.awsElasticBlockStore = - new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); - _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); - } else { - this.awsElasticBlockStore = null; - _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - } - return (A) this; + if (awsElasticBlockStore!=null){ this.awsElasticBlockStore= new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore);} else { this.awsElasticBlockStore = null; _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); } return (A) this; } - public Boolean hasAwsElasticBlockStore() { return this.awsElasticBlockStore != null; } - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { return new V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNestedImpl(); } - - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( - V1AWSElasticBlockStoreVolumeSource item) { + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNestedImpl(item); } - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore() { return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore()); } - - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike( - getAwsElasticBlockStore() != null - ? getAwsElasticBlockStore() - : new V1AWSElasticBlockStoreVolumeSourceBuilder().build()); + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { + return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore() != null ? getAwsElasticBlockStore(): new V1AWSElasticBlockStoreVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return withNewAwsElasticBlockStoreLike( - getAwsElasticBlockStore() != null ? getAwsElasticBlockStore() : item); + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore() != null ? getAwsElasticBlockStore(): item); } - + /** * This method has been deprecated, please use method buildAzureDisk instead. - * * @return The buildable object. */ @Deprecated public V1AzureDiskVolumeSource getAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + return this.azureDisk!=null ?this.azureDisk.build():null; } - public V1AzureDiskVolumeSource buildAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + return this.azureDisk!=null ?this.azureDisk.build():null; } - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { _visitables.get("azureDisk").remove(this.azureDisk); - if (azureDisk != null) { - this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); - _visitables.get("azureDisk").add(this.azureDisk); - } else { - this.azureDisk = null; - _visitables.get("azureDisk").remove(this.azureDisk); - } - return (A) this; + if (azureDisk!=null){ this.azureDisk= new V1AzureDiskVolumeSourceBuilder(azureDisk); _visitables.get("azureDisk").add(this.azureDisk);} else { this.azureDisk = null; _visitables.get("azureDisk").remove(this.azureDisk); } return (A) this; } - public Boolean hasAzureDisk() { return this.azureDisk != null; } - public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDisk() { return new V1PersistentVolumeSpecFluentImpl.AzureDiskNestedImpl(); } - - public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDiskLike( - V1AzureDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.AzureDiskNestedImpl(item); } - public V1PersistentVolumeSpecFluent.AzureDiskNested editAzureDisk() { return withNewAzureDiskLike(getAzureDisk()); } - public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDisk() { - return withNewAzureDiskLike( - getAzureDisk() != null ? getAzureDisk() : new V1AzureDiskVolumeSourceBuilder().build()); + return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk(): new V1AzureDiskVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDiskLike( - V1AzureDiskVolumeSource item) { - return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk() : item); + public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk(): item); } - + /** * This method has been deprecated, please use method buildAzureFile instead. - * * @return The buildable object. */ @Deprecated public V1AzureFilePersistentVolumeSource getAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + return this.azureFile!=null ?this.azureFile.build():null; } - public V1AzureFilePersistentVolumeSource buildAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + return this.azureFile!=null ?this.azureFile.build():null; } - public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { _visitables.get("azureFile").remove(this.azureFile); - if (azureFile != null) { - this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); - _visitables.get("azureFile").add(this.azureFile); - } else { - this.azureFile = null; - _visitables.get("azureFile").remove(this.azureFile); - } - return (A) this; + if (azureFile!=null){ this.azureFile= new V1AzureFilePersistentVolumeSourceBuilder(azureFile); _visitables.get("azureFile").add(this.azureFile);} else { this.azureFile = null; _visitables.get("azureFile").remove(this.azureFile); } return (A) this; } - public Boolean hasAzureFile() { return this.azureFile != null; } - public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFile() { return new V1PersistentVolumeSpecFluentImpl.AzureFileNestedImpl(); } - - public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFileLike( - V1AzureFilePersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.AzureFileNestedImpl(item); } - public V1PersistentVolumeSpecFluent.AzureFileNested editAzureFile() { return withNewAzureFileLike(getAzureFile()); } - public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFile() { - return withNewAzureFileLike( - getAzureFile() != null - ? getAzureFile() - : new V1AzureFilePersistentVolumeSourceBuilder().build()); + return withNewAzureFileLike(getAzureFile() != null ? getAzureFile(): new V1AzureFilePersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFileLike( - V1AzureFilePersistentVolumeSource item) { - return withNewAzureFileLike(getAzureFile() != null ? getAzureFile() : item); + public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { + return withNewAzureFileLike(getAzureFile() != null ? getAzureFile(): item); } - - public A addToCapacity(String key, Quantity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); - } - return (A) this; + public A addToCapacity(String key,Quantity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; } - - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); - } - if (map != null) { - this.capacity.putAll(map); - } - return (A) this; + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; } - - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; } - - public Map getCapacity() { + public Map getCapacity() { return this.capacity; } - - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public A withCapacity(Map capacity) { + if (capacity == null) { this.capacity = null;} else {this.capacity = new LinkedHashMap(capacity);} return (A) this; } - public Boolean hasCapacity() { return this.capacity != null; } - + /** * This method has been deprecated, please use method buildCephfs instead. - * * @return The buildable object. */ @Deprecated public V1CephFSPersistentVolumeSource getCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + return this.cephfs!=null ?this.cephfs.build():null; } - public V1CephFSPersistentVolumeSource buildCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + return this.cephfs!=null ?this.cephfs.build():null; } - public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { _visitables.get("cephfs").remove(this.cephfs); - if (cephfs != null) { - this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); - _visitables.get("cephfs").add(this.cephfs); - } else { - this.cephfs = null; - _visitables.get("cephfs").remove(this.cephfs); - } - return (A) this; + if (cephfs!=null){ this.cephfs= new V1CephFSPersistentVolumeSourceBuilder(cephfs); _visitables.get("cephfs").add(this.cephfs);} else { this.cephfs = null; _visitables.get("cephfs").remove(this.cephfs); } return (A) this; } - public Boolean hasCephfs() { return this.cephfs != null; } - public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfs() { return new V1PersistentVolumeSpecFluentImpl.CephfsNestedImpl(); } - - public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfsLike( - V1CephFSPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.CephfsNestedImpl(item); } - public V1PersistentVolumeSpecFluent.CephfsNested editCephfs() { return withNewCephfsLike(getCephfs()); } - public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfs() { - return withNewCephfsLike( - getCephfs() != null ? getCephfs() : new V1CephFSPersistentVolumeSourceBuilder().build()); + return withNewCephfsLike(getCephfs() != null ? getCephfs(): new V1CephFSPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfsLike( - V1CephFSPersistentVolumeSource item) { - return withNewCephfsLike(getCephfs() != null ? getCephfs() : item); + public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) { + return withNewCephfsLike(getCephfs() != null ? getCephfs(): item); } - + /** * This method has been deprecated, please use method buildCinder instead. - * * @return The buildable object. */ @Deprecated public V1CinderPersistentVolumeSource getCinder() { - return this.cinder != null ? this.cinder.build() : null; + return this.cinder!=null ?this.cinder.build():null; } - public V1CinderPersistentVolumeSource buildCinder() { - return this.cinder != null ? this.cinder.build() : null; + return this.cinder!=null ?this.cinder.build():null; } - public A withCinder(V1CinderPersistentVolumeSource cinder) { _visitables.get("cinder").remove(this.cinder); - if (cinder != null) { - this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); - _visitables.get("cinder").add(this.cinder); - } else { - this.cinder = null; - _visitables.get("cinder").remove(this.cinder); - } - return (A) this; + if (cinder!=null){ this.cinder= new V1CinderPersistentVolumeSourceBuilder(cinder); _visitables.get("cinder").add(this.cinder);} else { this.cinder = null; _visitables.get("cinder").remove(this.cinder); } return (A) this; } - public Boolean hasCinder() { return this.cinder != null; } - public V1PersistentVolumeSpecFluent.CinderNested withNewCinder() { return new V1PersistentVolumeSpecFluentImpl.CinderNestedImpl(); } - - public V1PersistentVolumeSpecFluent.CinderNested withNewCinderLike( - V1CinderPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.CinderNestedImpl(item); } - public V1PersistentVolumeSpecFluent.CinderNested editCinder() { return withNewCinderLike(getCinder()); } - public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinder() { - return withNewCinderLike( - getCinder() != null ? getCinder() : new V1CinderPersistentVolumeSourceBuilder().build()); + return withNewCinderLike(getCinder() != null ? getCinder(): new V1CinderPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinderLike( - V1CinderPersistentVolumeSource item) { - return withNewCinderLike(getCinder() != null ? getCinder() : item); + public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinderLike(V1CinderPersistentVolumeSource item) { + return withNewCinderLike(getCinder() != null ? getCinder(): item); } - + /** * This method has been deprecated, please use method buildClaimRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getClaimRef() { - return this.claimRef != null ? this.claimRef.build() : null; + return this.claimRef!=null ?this.claimRef.build():null; } - public V1ObjectReference buildClaimRef() { - return this.claimRef != null ? this.claimRef.build() : null; + return this.claimRef!=null ?this.claimRef.build():null; } - public A withClaimRef(V1ObjectReference claimRef) { _visitables.get("claimRef").remove(this.claimRef); - if (claimRef != null) { - this.claimRef = new V1ObjectReferenceBuilder(claimRef); - _visitables.get("claimRef").add(this.claimRef); - } else { - this.claimRef = null; - _visitables.get("claimRef").remove(this.claimRef); - } - return (A) this; + if (claimRef!=null){ this.claimRef= new V1ObjectReferenceBuilder(claimRef); _visitables.get("claimRef").add(this.claimRef);} else { this.claimRef = null; _visitables.get("claimRef").remove(this.claimRef); } return (A) this; } - public Boolean hasClaimRef() { return this.claimRef != null; } - public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRef() { return new V1PersistentVolumeSpecFluentImpl.ClaimRefNestedImpl(); } - - public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRefLike( - V1ObjectReference item) { + public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { return new V1PersistentVolumeSpecFluentImpl.ClaimRefNestedImpl(item); } - public V1PersistentVolumeSpecFluent.ClaimRefNested editClaimRef() { return withNewClaimRefLike(getClaimRef()); } - public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRef() { - return withNewClaimRefLike( - getClaimRef() != null ? getClaimRef() : new V1ObjectReferenceBuilder().build()); + return withNewClaimRefLike(getClaimRef() != null ? getClaimRef(): new V1ObjectReferenceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRefLike( - V1ObjectReference item) { - return withNewClaimRefLike(getClaimRef() != null ? getClaimRef() : item); + public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item) { + return withNewClaimRefLike(getClaimRef() != null ? getClaimRef(): item); } - + /** * This method has been deprecated, please use method buildCsi instead. - * * @return The buildable object. */ @Deprecated public V1CSIPersistentVolumeSource getCsi() { - return this.csi != null ? this.csi.build() : null; + return this.csi!=null ?this.csi.build():null; } - public V1CSIPersistentVolumeSource buildCsi() { - return this.csi != null ? this.csi.build() : null; + return this.csi!=null ?this.csi.build():null; } - public A withCsi(V1CSIPersistentVolumeSource csi) { _visitables.get("csi").remove(this.csi); - if (csi != null) { - this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); - _visitables.get("csi").add(this.csi); - } else { - this.csi = null; - _visitables.get("csi").remove(this.csi); - } - return (A) this; + if (csi!=null){ this.csi= new V1CSIPersistentVolumeSourceBuilder(csi); _visitables.get("csi").add(this.csi);} else { this.csi = null; _visitables.get("csi").remove(this.csi); } return (A) this; } - public Boolean hasCsi() { return this.csi != null; } - public V1PersistentVolumeSpecFluent.CsiNested withNewCsi() { return new V1PersistentVolumeSpecFluentImpl.CsiNestedImpl(); } - - public V1PersistentVolumeSpecFluent.CsiNested withNewCsiLike( - V1CSIPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.CsiNestedImpl(item); } - public V1PersistentVolumeSpecFluent.CsiNested editCsi() { return withNewCsiLike(getCsi()); } - public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsi() { - return withNewCsiLike( - getCsi() != null ? getCsi() : new V1CSIPersistentVolumeSourceBuilder().build()); + return withNewCsiLike(getCsi() != null ? getCsi(): new V1CSIPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsiLike( - V1CSIPersistentVolumeSource item) { - return withNewCsiLike(getCsi() != null ? getCsi() : item); + public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) { + return withNewCsiLike(getCsi() != null ? getCsi(): item); } - + /** * This method has been deprecated, please use method buildFc instead. - * * @return The buildable object. */ @Deprecated public V1FCVolumeSource getFc() { - return this.fc != null ? this.fc.build() : null; + return this.fc!=null ?this.fc.build():null; } - public V1FCVolumeSource buildFc() { - return this.fc != null ? this.fc.build() : null; + return this.fc!=null ?this.fc.build():null; } - public A withFc(V1FCVolumeSource fc) { _visitables.get("fc").remove(this.fc); - if (fc != null) { - this.fc = new V1FCVolumeSourceBuilder(fc); - _visitables.get("fc").add(this.fc); - } else { - this.fc = null; - _visitables.get("fc").remove(this.fc); - } - return (A) this; + if (fc!=null){ this.fc= new V1FCVolumeSourceBuilder(fc); _visitables.get("fc").add(this.fc);} else { this.fc = null; _visitables.get("fc").remove(this.fc); } return (A) this; } - public Boolean hasFc() { return this.fc != null; } - public V1PersistentVolumeSpecFluent.FcNested withNewFc() { return new V1PersistentVolumeSpecFluentImpl.FcNestedImpl(); } - public V1PersistentVolumeSpecFluent.FcNested withNewFcLike(V1FCVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.FcNestedImpl(item); } - public V1PersistentVolumeSpecFluent.FcNested editFc() { return withNewFcLike(getFc()); } - public V1PersistentVolumeSpecFluent.FcNested editOrNewFc() { - return withNewFcLike(getFc() != null ? getFc() : new V1FCVolumeSourceBuilder().build()); + return withNewFcLike(getFc() != null ? getFc(): new V1FCVolumeSourceBuilder().build()); } - public V1PersistentVolumeSpecFluent.FcNested editOrNewFcLike(V1FCVolumeSource item) { - return withNewFcLike(getFc() != null ? getFc() : item); + return withNewFcLike(getFc() != null ? getFc(): item); } - + /** * This method has been deprecated, please use method buildFlexVolume instead. - * * @return The buildable object. */ @Deprecated public V1FlexPersistentVolumeSource getFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + return this.flexVolume!=null ?this.flexVolume.build():null; } - public V1FlexPersistentVolumeSource buildFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + return this.flexVolume!=null ?this.flexVolume.build():null; } - public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { _visitables.get("flexVolume").remove(this.flexVolume); - if (flexVolume != null) { - this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); - _visitables.get("flexVolume").add(this.flexVolume); - } else { - this.flexVolume = null; - _visitables.get("flexVolume").remove(this.flexVolume); - } - return (A) this; + if (flexVolume!=null){ this.flexVolume= new V1FlexPersistentVolumeSourceBuilder(flexVolume); _visitables.get("flexVolume").add(this.flexVolume);} else { this.flexVolume = null; _visitables.get("flexVolume").remove(this.flexVolume); } return (A) this; } - public Boolean hasFlexVolume() { return this.flexVolume != null; } - public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolume() { return new V1PersistentVolumeSpecFluentImpl.FlexVolumeNestedImpl(); } - - public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolumeLike( - V1FlexPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.FlexVolumeNestedImpl(item); } - public V1PersistentVolumeSpecFluent.FlexVolumeNested editFlexVolume() { return withNewFlexVolumeLike(getFlexVolume()); } - public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolume() { - return withNewFlexVolumeLike( - getFlexVolume() != null - ? getFlexVolume() - : new V1FlexPersistentVolumeSourceBuilder().build()); + return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume(): new V1FlexPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolumeLike( - V1FlexPersistentVolumeSource item) { - return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume() : item); + public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { + return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume(): item); } - + /** * This method has been deprecated, please use method buildFlocker instead. - * * @return The buildable object. */ @Deprecated public V1FlockerVolumeSource getFlocker() { - return this.flocker != null ? this.flocker.build() : null; + return this.flocker!=null ?this.flocker.build():null; } - public V1FlockerVolumeSource buildFlocker() { - return this.flocker != null ? this.flocker.build() : null; + return this.flocker!=null ?this.flocker.build():null; } - public A withFlocker(V1FlockerVolumeSource flocker) { _visitables.get("flocker").remove(this.flocker); - if (flocker != null) { - this.flocker = new V1FlockerVolumeSourceBuilder(flocker); - _visitables.get("flocker").add(this.flocker); - } else { - this.flocker = null; - _visitables.get("flocker").remove(this.flocker); - } - return (A) this; + if (flocker!=null){ this.flocker= new V1FlockerVolumeSourceBuilder(flocker); _visitables.get("flocker").add(this.flocker);} else { this.flocker = null; _visitables.get("flocker").remove(this.flocker); } return (A) this; } - public Boolean hasFlocker() { return this.flocker != null; } - public V1PersistentVolumeSpecFluent.FlockerNested withNewFlocker() { return new V1PersistentVolumeSpecFluentImpl.FlockerNestedImpl(); } - - public V1PersistentVolumeSpecFluent.FlockerNested withNewFlockerLike( - V1FlockerVolumeSource item) { + public V1PersistentVolumeSpecFluent.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.FlockerNestedImpl(item); } - public V1PersistentVolumeSpecFluent.FlockerNested editFlocker() { return withNewFlockerLike(getFlocker()); } - public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlocker() { - return withNewFlockerLike( - getFlocker() != null ? getFlocker() : new V1FlockerVolumeSourceBuilder().build()); + return withNewFlockerLike(getFlocker() != null ? getFlocker(): new V1FlockerVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlockerLike( - V1FlockerVolumeSource item) { - return withNewFlockerLike(getFlocker() != null ? getFlocker() : item); + public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { + return withNewFlockerLike(getFlocker() != null ? getFlocker(): item); } - + /** * This method has been deprecated, please use method buildGcePersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + return this.gcePersistentDisk!=null ?this.gcePersistentDisk.build():null; } - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + return this.gcePersistentDisk!=null ?this.gcePersistentDisk.build():null; } - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - if (gcePersistentDisk != null) { - this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); - _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); - } else { - this.gcePersistentDisk = null; - _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - } - return (A) this; + if (gcePersistentDisk!=null){ this.gcePersistentDisk= new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk);} else { this.gcePersistentDisk = null; _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); } return (A) this; } - public Boolean hasGcePersistentDisk() { return this.gcePersistentDisk != null; } - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDisk() { return new V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNestedImpl(); } - - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNestedImpl(item); } - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editGcePersistentDisk() { return withNewGcePersistentDiskLike(getGcePersistentDisk()); } - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDisk() { - return withNewGcePersistentDiskLike( - getGcePersistentDisk() != null - ? getGcePersistentDisk() - : new V1GCEPersistentDiskVolumeSourceBuilder().build()); + return withNewGcePersistentDiskLike(getGcePersistentDisk() != null ? getGcePersistentDisk(): new V1GCEPersistentDiskVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item) { - return withNewGcePersistentDiskLike( - getGcePersistentDisk() != null ? getGcePersistentDisk() : item); + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return withNewGcePersistentDiskLike(getGcePersistentDisk() != null ? getGcePersistentDisk(): item); } - + /** * This method has been deprecated, please use method buildGlusterfs instead. - * * @return The buildable object. */ @Deprecated public V1GlusterfsPersistentVolumeSource getGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + return this.glusterfs!=null ?this.glusterfs.build():null; } - public V1GlusterfsPersistentVolumeSource buildGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + return this.glusterfs!=null ?this.glusterfs.build():null; } - public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { _visitables.get("glusterfs").remove(this.glusterfs); - if (glusterfs != null) { - this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); - _visitables.get("glusterfs").add(this.glusterfs); - } else { - this.glusterfs = null; - _visitables.get("glusterfs").remove(this.glusterfs); - } - return (A) this; + if (glusterfs!=null){ this.glusterfs= new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); _visitables.get("glusterfs").add(this.glusterfs);} else { this.glusterfs = null; _visitables.get("glusterfs").remove(this.glusterfs); } return (A) this; } - public Boolean hasGlusterfs() { return this.glusterfs != null; } - public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfs() { return new V1PersistentVolumeSpecFluentImpl.GlusterfsNestedImpl(); } - - public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfsLike( - V1GlusterfsPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.GlusterfsNestedImpl(item); } - public V1PersistentVolumeSpecFluent.GlusterfsNested editGlusterfs() { return withNewGlusterfsLike(getGlusterfs()); } - public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfs() { - return withNewGlusterfsLike( - getGlusterfs() != null - ? getGlusterfs() - : new V1GlusterfsPersistentVolumeSourceBuilder().build()); + return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs(): new V1GlusterfsPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfsLike( - V1GlusterfsPersistentVolumeSource item) { - return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs() : item); + public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { + return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs(): item); } - + /** * This method has been deprecated, please use method buildHostPath instead. - * * @return The buildable object. */ @Deprecated public V1HostPathVolumeSource getHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; + return this.hostPath!=null ?this.hostPath.build():null; } - public V1HostPathVolumeSource buildHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; + return this.hostPath!=null ?this.hostPath.build():null; } - public A withHostPath(V1HostPathVolumeSource hostPath) { _visitables.get("hostPath").remove(this.hostPath); - if (hostPath != null) { - this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); - _visitables.get("hostPath").add(this.hostPath); - } else { - this.hostPath = null; - _visitables.get("hostPath").remove(this.hostPath); - } - return (A) this; + if (hostPath!=null){ this.hostPath= new V1HostPathVolumeSourceBuilder(hostPath); _visitables.get("hostPath").add(this.hostPath);} else { this.hostPath = null; _visitables.get("hostPath").remove(this.hostPath); } return (A) this; } - public Boolean hasHostPath() { return this.hostPath != null; } - public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPath() { return new V1PersistentVolumeSpecFluentImpl.HostPathNestedImpl(); } - - public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPathLike( - V1HostPathVolumeSource item) { + public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.HostPathNestedImpl(item); } - public V1PersistentVolumeSpecFluent.HostPathNested editHostPath() { return withNewHostPathLike(getHostPath()); } - public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPath() { - return withNewHostPathLike( - getHostPath() != null ? getHostPath() : new V1HostPathVolumeSourceBuilder().build()); + return withNewHostPathLike(getHostPath() != null ? getHostPath(): new V1HostPathVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPathLike( - V1HostPathVolumeSource item) { - return withNewHostPathLike(getHostPath() != null ? getHostPath() : item); + public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { + return withNewHostPathLike(getHostPath() != null ? getHostPath(): item); } - + /** * This method has been deprecated, please use method buildIscsi instead. - * * @return The buildable object. */ @Deprecated public V1ISCSIPersistentVolumeSource getIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + return this.iscsi!=null ?this.iscsi.build():null; } - public V1ISCSIPersistentVolumeSource buildIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + return this.iscsi!=null ?this.iscsi.build():null; } - public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { _visitables.get("iscsi").remove(this.iscsi); - if (iscsi != null) { - this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); - _visitables.get("iscsi").add(this.iscsi); - } else { - this.iscsi = null; - _visitables.get("iscsi").remove(this.iscsi); - } - return (A) this; + if (iscsi!=null){ this.iscsi= new V1ISCSIPersistentVolumeSourceBuilder(iscsi); _visitables.get("iscsi").add(this.iscsi);} else { this.iscsi = null; _visitables.get("iscsi").remove(this.iscsi); } return (A) this; } - public Boolean hasIscsi() { return this.iscsi != null; } - public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsi() { return new V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl(); } - - public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsiLike( - V1ISCSIPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl(item); } - public V1PersistentVolumeSpecFluent.IscsiNested editIscsi() { return withNewIscsiLike(getIscsi()); } - public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsi() { - return withNewIscsiLike( - getIscsi() != null ? getIscsi() : new V1ISCSIPersistentVolumeSourceBuilder().build()); + return withNewIscsiLike(getIscsi() != null ? getIscsi(): new V1ISCSIPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsiLike( - V1ISCSIPersistentVolumeSource item) { - return withNewIscsiLike(getIscsi() != null ? getIscsi() : item); + public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) { + return withNewIscsiLike(getIscsi() != null ? getIscsi(): item); } - + /** * This method has been deprecated, please use method buildLocal instead. - * * @return The buildable object. */ @Deprecated public V1LocalVolumeSource getLocal() { - return this.local != null ? this.local.build() : null; + return this.local!=null ?this.local.build():null; } - public V1LocalVolumeSource buildLocal() { - return this.local != null ? this.local.build() : null; + return this.local!=null ?this.local.build():null; } - public A withLocal(V1LocalVolumeSource local) { _visitables.get("local").remove(this.local); - if (local != null) { - this.local = new V1LocalVolumeSourceBuilder(local); - _visitables.get("local").add(this.local); - } else { - this.local = null; - _visitables.get("local").remove(this.local); - } - return (A) this; + if (local!=null){ this.local= new V1LocalVolumeSourceBuilder(local); _visitables.get("local").add(this.local);} else { this.local = null; _visitables.get("local").remove(this.local); } return (A) this; } - public Boolean hasLocal() { return this.local != null; } - public V1PersistentVolumeSpecFluent.LocalNested withNewLocal() { return new V1PersistentVolumeSpecFluentImpl.LocalNestedImpl(); } - public V1PersistentVolumeSpecFluent.LocalNested withNewLocalLike(V1LocalVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.LocalNestedImpl(item); } - public V1PersistentVolumeSpecFluent.LocalNested editLocal() { return withNewLocalLike(getLocal()); } - public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocal() { - return withNewLocalLike( - getLocal() != null ? getLocal() : new V1LocalVolumeSourceBuilder().build()); + return withNewLocalLike(getLocal() != null ? getLocal(): new V1LocalVolumeSourceBuilder().build()); } - public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { - return withNewLocalLike(getLocal() != null ? getLocal() : item); + return withNewLocalLike(getLocal() != null ? getLocal(): item); } - - public A addToMountOptions(Integer index, String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } + public A addToMountOptions(Integer index,String item) { + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} this.mountOptions.add(index, item); - return (A) this; + return (A)this; } - - public A setToMountOptions(Integer index, String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - this.mountOptions.set(index, item); - return (A) this; + public A setToMountOptions(Integer index,String item) { + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + this.mountOptions.set(index, item); return (A)this; } - public A addToMountOptions(java.lang.String... items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + for (String item : items) {this.mountOptions.add(item);} return (A)this; } - public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + for (String item : items) {this.mountOptions.add(item);} return (A)this; } - public A removeFromMountOptions(java.lang.String... items) { - for (String item : items) { - if (this.mountOptions != null) { - this.mountOptions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.mountOptions!= null){ this.mountOptions.remove(item);}} return (A)this; } - public A removeAllFromMountOptions(Collection items) { - for (String item : items) { - if (this.mountOptions != null) { - this.mountOptions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.mountOptions!= null){ this.mountOptions.remove(item);}} return (A)this; } - public List getMountOptions() { return this.mountOptions; } - public String getMountOption(Integer index) { return this.mountOptions.get(index); } - public String getFirstMountOption() { return this.mountOptions.get(0); } - public String getLastMountOption() { return this.mountOptions.get(mountOptions.size() - 1); } - public String getMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: mountOptions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: mountOptions) { if(predicate.test(item)){ return true;} } return false; } - public A withMountOptions(List mountOptions) { - if (mountOptions != null) { - this.mountOptions = new ArrayList(); - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } else { - this.mountOptions = null; - } - return (A) this; + if (mountOptions != null) {this.mountOptions = new ArrayList(); for (String item : mountOptions){this.addToMountOptions(item);}} else { this.mountOptions = null;} return (A) this; } - public A withMountOptions(java.lang.String... mountOptions) { - if (this.mountOptions != null) { - this.mountOptions.clear(); - } - if (mountOptions != null) { - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } - return (A) this; + if (this.mountOptions != null) {this.mountOptions.clear();} + if (mountOptions != null) {for (String item :mountOptions){ this.addToMountOptions(item);}} return (A) this; } - public Boolean hasMountOptions() { return mountOptions != null && !mountOptions.isEmpty(); } - + /** * This method has been deprecated, please use method buildNfs instead. - * * @return The buildable object. */ @Deprecated public V1NFSVolumeSource getNfs() { - return this.nfs != null ? this.nfs.build() : null; + return this.nfs!=null ?this.nfs.build():null; } - public V1NFSVolumeSource buildNfs() { - return this.nfs != null ? this.nfs.build() : null; + return this.nfs!=null ?this.nfs.build():null; } - public A withNfs(V1NFSVolumeSource nfs) { _visitables.get("nfs").remove(this.nfs); - if (nfs != null) { - this.nfs = new V1NFSVolumeSourceBuilder(nfs); - _visitables.get("nfs").add(this.nfs); - } else { - this.nfs = null; - _visitables.get("nfs").remove(this.nfs); - } - return (A) this; + if (nfs!=null){ this.nfs= new V1NFSVolumeSourceBuilder(nfs); _visitables.get("nfs").add(this.nfs);} else { this.nfs = null; _visitables.get("nfs").remove(this.nfs); } return (A) this; } - public Boolean hasNfs() { return this.nfs != null; } - public V1PersistentVolumeSpecFluent.NfsNested withNewNfs() { return new V1PersistentVolumeSpecFluentImpl.NfsNestedImpl(); } - public V1PersistentVolumeSpecFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.NfsNestedImpl(item); } - public V1PersistentVolumeSpecFluent.NfsNested editNfs() { return withNewNfsLike(getNfs()); } - public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfs() { - return withNewNfsLike(getNfs() != null ? getNfs() : new V1NFSVolumeSourceBuilder().build()); + return withNewNfsLike(getNfs() != null ? getNfs(): new V1NFSVolumeSourceBuilder().build()); } - public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return withNewNfsLike(getNfs() != null ? getNfs() : item); + return withNewNfsLike(getNfs() != null ? getNfs(): item); } - + /** * This method has been deprecated, please use method buildNodeAffinity instead. - * * @return The buildable object. */ @Deprecated public V1VolumeNodeAffinity getNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + return this.nodeAffinity!=null ?this.nodeAffinity.build():null; } - public V1VolumeNodeAffinity buildNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + return this.nodeAffinity!=null ?this.nodeAffinity.build():null; } - public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { _visitables.get("nodeAffinity").remove(this.nodeAffinity); - if (nodeAffinity != null) { - this.nodeAffinity = new V1VolumeNodeAffinityBuilder(nodeAffinity); - _visitables.get("nodeAffinity").add(this.nodeAffinity); - } else { - this.nodeAffinity = null; - _visitables.get("nodeAffinity").remove(this.nodeAffinity); - } - return (A) this; + if (nodeAffinity!=null){ this.nodeAffinity= new V1VolumeNodeAffinityBuilder(nodeAffinity); _visitables.get("nodeAffinity").add(this.nodeAffinity);} else { this.nodeAffinity = null; _visitables.get("nodeAffinity").remove(this.nodeAffinity); } return (A) this; } - public Boolean hasNodeAffinity() { return this.nodeAffinity != null; } - public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinity() { return new V1PersistentVolumeSpecFluentImpl.NodeAffinityNestedImpl(); } - - public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinityLike( - V1VolumeNodeAffinity item) { + public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) { return new V1PersistentVolumeSpecFluentImpl.NodeAffinityNestedImpl(item); } - public V1PersistentVolumeSpecFluent.NodeAffinityNested editNodeAffinity() { return withNewNodeAffinityLike(getNodeAffinity()); } - public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinity() { - return withNewNodeAffinityLike( - getNodeAffinity() != null ? getNodeAffinity() : new V1VolumeNodeAffinityBuilder().build()); + return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity(): new V1VolumeNodeAffinityBuilder().build()); } - - public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinityLike( - V1VolumeNodeAffinity item) { - return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity() : item); + public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) { + return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity(): item); } - public String getPersistentVolumeReclaimPolicy() { return this.persistentVolumeReclaimPolicy; } - public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { - this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; - return (A) this; + this.persistentVolumeReclaimPolicy=persistentVolumeReclaimPolicy; return (A) this; } - public Boolean hasPersistentVolumeReclaimPolicy() { return this.persistentVolumeReclaimPolicy != null; } - + /** * This method has been deprecated, please use method buildPhotonPersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; + return this.photonPersistentDisk!=null ?this.photonPersistentDisk.build():null; } - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; + return this.photonPersistentDisk!=null ?this.photonPersistentDisk.build():null; } - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); - if (photonPersistentDisk != null) { - this.photonPersistentDisk = - new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); - _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); - } else { - this.photonPersistentDisk = null; - _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); - } - return (A) this; + if (photonPersistentDisk!=null){ this.photonPersistentDisk= new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk);} else { this.photonPersistentDisk = null; _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); } return (A) this; } - public Boolean hasPhotonPersistentDisk() { return this.photonPersistentDisk != null; } - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk() { return new V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNestedImpl(); } - - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( - V1PhotonPersistentDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNestedImpl(item); } - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editPhotonPersistentDisk() { return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk()); } - - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike( - getPhotonPersistentDisk() != null - ? getPhotonPersistentDisk() - : new V1PhotonPersistentDiskVolumeSourceBuilder().build()); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { + return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk() != null ? getPhotonPersistentDisk(): new V1PhotonPersistentDiskVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return withNewPhotonPersistentDiskLike( - getPhotonPersistentDisk() != null ? getPhotonPersistentDisk() : item); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk() != null ? getPhotonPersistentDisk(): item); } - + /** * This method has been deprecated, please use method buildPortworxVolume instead. - * * @return The buildable object. */ @Deprecated public V1PortworxVolumeSource getPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; + return this.portworxVolume!=null ?this.portworxVolume.build():null; } - public V1PortworxVolumeSource buildPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; + return this.portworxVolume!=null ?this.portworxVolume.build():null; } - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { _visitables.get("portworxVolume").remove(this.portworxVolume); - if (portworxVolume != null) { - this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); - _visitables.get("portworxVolume").add(this.portworxVolume); - } else { - this.portworxVolume = null; - _visitables.get("portworxVolume").remove(this.portworxVolume); - } - return (A) this; + if (portworxVolume!=null){ this.portworxVolume= new V1PortworxVolumeSourceBuilder(portworxVolume); _visitables.get("portworxVolume").add(this.portworxVolume);} else { this.portworxVolume = null; _visitables.get("portworxVolume").remove(this.portworxVolume); } return (A) this; } - public Boolean hasPortworxVolume() { return this.portworxVolume != null; } - public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolume() { return new V1PersistentVolumeSpecFluentImpl.PortworxVolumeNestedImpl(); } - - public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolumeLike( - V1PortworxVolumeSource item) { + public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.PortworxVolumeNestedImpl(item); } - public V1PersistentVolumeSpecFluent.PortworxVolumeNested editPortworxVolume() { return withNewPortworxVolumeLike(getPortworxVolume()); } - public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolume() { - return withNewPortworxVolumeLike( - getPortworxVolume() != null - ? getPortworxVolume() - : new V1PortworxVolumeSourceBuilder().build()); + return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume(): new V1PortworxVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( - V1PortworxVolumeSource item) { - return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume() : item); + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume(): item); } - + /** * This method has been deprecated, please use method buildQuobyte instead. - * * @return The buildable object. */ @Deprecated public V1QuobyteVolumeSource getQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; + return this.quobyte!=null ?this.quobyte.build():null; } - public V1QuobyteVolumeSource buildQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; + return this.quobyte!=null ?this.quobyte.build():null; } - public A withQuobyte(V1QuobyteVolumeSource quobyte) { _visitables.get("quobyte").remove(this.quobyte); - if (quobyte != null) { - this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); - _visitables.get("quobyte").add(this.quobyte); - } else { - this.quobyte = null; - _visitables.get("quobyte").remove(this.quobyte); - } - return (A) this; + if (quobyte!=null){ this.quobyte= new V1QuobyteVolumeSourceBuilder(quobyte); _visitables.get("quobyte").add(this.quobyte);} else { this.quobyte = null; _visitables.get("quobyte").remove(this.quobyte); } return (A) this; } - public Boolean hasQuobyte() { return this.quobyte != null; } - public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyte() { return new V1PersistentVolumeSpecFluentImpl.QuobyteNestedImpl(); } - - public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyteLike( - V1QuobyteVolumeSource item) { + public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.QuobyteNestedImpl(item); } - public V1PersistentVolumeSpecFluent.QuobyteNested editQuobyte() { return withNewQuobyteLike(getQuobyte()); } - public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyte() { - return withNewQuobyteLike( - getQuobyte() != null ? getQuobyte() : new V1QuobyteVolumeSourceBuilder().build()); + return withNewQuobyteLike(getQuobyte() != null ? getQuobyte(): new V1QuobyteVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyteLike( - V1QuobyteVolumeSource item) { - return withNewQuobyteLike(getQuobyte() != null ? getQuobyte() : item); + public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { + return withNewQuobyteLike(getQuobyte() != null ? getQuobyte(): item); } - + /** * This method has been deprecated, please use method buildRbd instead. - * * @return The buildable object. */ @Deprecated public V1RBDPersistentVolumeSource getRbd() { - return this.rbd != null ? this.rbd.build() : null; + return this.rbd!=null ?this.rbd.build():null; } - public V1RBDPersistentVolumeSource buildRbd() { - return this.rbd != null ? this.rbd.build() : null; + return this.rbd!=null ?this.rbd.build():null; } - public A withRbd(V1RBDPersistentVolumeSource rbd) { _visitables.get("rbd").remove(this.rbd); - if (rbd != null) { - this.rbd = new V1RBDPersistentVolumeSourceBuilder(rbd); - _visitables.get("rbd").add(this.rbd); - } else { - this.rbd = null; - _visitables.get("rbd").remove(this.rbd); - } - return (A) this; + if (rbd!=null){ this.rbd= new V1RBDPersistentVolumeSourceBuilder(rbd); _visitables.get("rbd").add(this.rbd);} else { this.rbd = null; _visitables.get("rbd").remove(this.rbd); } return (A) this; } - public Boolean hasRbd() { return this.rbd != null; } - public V1PersistentVolumeSpecFluent.RbdNested withNewRbd() { return new V1PersistentVolumeSpecFluentImpl.RbdNestedImpl(); } - - public V1PersistentVolumeSpecFluent.RbdNested withNewRbdLike( - V1RBDPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.RbdNestedImpl(item); } - public V1PersistentVolumeSpecFluent.RbdNested editRbd() { return withNewRbdLike(getRbd()); } - public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbd() { - return withNewRbdLike( - getRbd() != null ? getRbd() : new V1RBDPersistentVolumeSourceBuilder().build()); + return withNewRbdLike(getRbd() != null ? getRbd(): new V1RBDPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbdLike( - V1RBDPersistentVolumeSource item) { - return withNewRbdLike(getRbd() != null ? getRbd() : item); + public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) { + return withNewRbdLike(getRbd() != null ? getRbd(): item); } - + /** * This method has been deprecated, please use method buildScaleIO instead. - * * @return The buildable object. */ @Deprecated public V1ScaleIOPersistentVolumeSource getScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; + return this.scaleIO!=null ?this.scaleIO.build():null; } - public V1ScaleIOPersistentVolumeSource buildScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; + return this.scaleIO!=null ?this.scaleIO.build():null; } - public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { _visitables.get("scaleIO").remove(this.scaleIO); - if (scaleIO != null) { - this.scaleIO = new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); - _visitables.get("scaleIO").add(this.scaleIO); - } else { - this.scaleIO = null; - _visitables.get("scaleIO").remove(this.scaleIO); - } - return (A) this; + if (scaleIO!=null){ this.scaleIO= new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); _visitables.get("scaleIO").add(this.scaleIO);} else { this.scaleIO = null; _visitables.get("scaleIO").remove(this.scaleIO); } return (A) this; } - public Boolean hasScaleIO() { return this.scaleIO != null; } - public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIO() { return new V1PersistentVolumeSpecFluentImpl.ScaleIONestedImpl(); } - - public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIOLike( - V1ScaleIOPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.ScaleIONestedImpl(item); } - public V1PersistentVolumeSpecFluent.ScaleIONested editScaleIO() { return withNewScaleIOLike(getScaleIO()); } - public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIO() { - return withNewScaleIOLike( - getScaleIO() != null ? getScaleIO() : new V1ScaleIOPersistentVolumeSourceBuilder().build()); + return withNewScaleIOLike(getScaleIO() != null ? getScaleIO(): new V1ScaleIOPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIOLike( - V1ScaleIOPersistentVolumeSource item) { - return withNewScaleIOLike(getScaleIO() != null ? getScaleIO() : item); + public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { + return withNewScaleIOLike(getScaleIO() != null ? getScaleIO(): item); } - public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; + this.storageClassName=storageClassName; return (A) this; } - public Boolean hasStorageClassName() { return this.storageClassName != null; } - + /** * This method has been deprecated, please use method buildStorageos instead. - * * @return The buildable object. */ @Deprecated public V1StorageOSPersistentVolumeSource getStorageos() { - return this.storageos != null ? this.storageos.build() : null; + return this.storageos!=null ?this.storageos.build():null; } - public V1StorageOSPersistentVolumeSource buildStorageos() { - return this.storageos != null ? this.storageos.build() : null; + return this.storageos!=null ?this.storageos.build():null; } - public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { _visitables.get("storageos").remove(this.storageos); - if (storageos != null) { - this.storageos = new V1StorageOSPersistentVolumeSourceBuilder(storageos); - _visitables.get("storageos").add(this.storageos); - } else { - this.storageos = null; - _visitables.get("storageos").remove(this.storageos); - } - return (A) this; + if (storageos!=null){ this.storageos= new V1StorageOSPersistentVolumeSourceBuilder(storageos); _visitables.get("storageos").add(this.storageos);} else { this.storageos = null; _visitables.get("storageos").remove(this.storageos); } return (A) this; } - public Boolean hasStorageos() { return this.storageos != null; } - public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageos() { return new V1PersistentVolumeSpecFluentImpl.StorageosNestedImpl(); } - - public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageosLike( - V1StorageOSPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.StorageosNestedImpl(item); } - public V1PersistentVolumeSpecFluent.StorageosNested editStorageos() { return withNewStorageosLike(getStorageos()); } - public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageos() { - return withNewStorageosLike( - getStorageos() != null - ? getStorageos() - : new V1StorageOSPersistentVolumeSourceBuilder().build()); + return withNewStorageosLike(getStorageos() != null ? getStorageos(): new V1StorageOSPersistentVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageosLike( - V1StorageOSPersistentVolumeSource item) { - return withNewStorageosLike(getStorageos() != null ? getStorageos() : item); + public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) { + return withNewStorageosLike(getStorageos() != null ? getStorageos(): item); } - public String getVolumeMode() { return this.volumeMode; } - public A withVolumeMode(String volumeMode) { - this.volumeMode = volumeMode; - return (A) this; + this.volumeMode=volumeMode; return (A) this; } - public Boolean hasVolumeMode() { return this.volumeMode != null; } - + /** * This method has been deprecated, please use method buildVsphereVolume instead. - * * @return The buildable object. */ @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + return this.vsphereVolume!=null ?this.vsphereVolume.build():null; } - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + return this.vsphereVolume!=null ?this.vsphereVolume.build():null; } - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { _visitables.get("vsphereVolume").remove(this.vsphereVolume); - if (vsphereVolume != null) { - this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); - _visitables.get("vsphereVolume").add(this.vsphereVolume); - } else { - this.vsphereVolume = null; - _visitables.get("vsphereVolume").remove(this.vsphereVolume); - } - return (A) this; + if (vsphereVolume!=null){ this.vsphereVolume= new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); _visitables.get("vsphereVolume").add(this.vsphereVolume);} else { this.vsphereVolume = null; _visitables.get("vsphereVolume").remove(this.vsphereVolume); } return (A) this; } - public Boolean hasVsphereVolume() { return this.vsphereVolume != null; } - public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolume() { return new V1PersistentVolumeSpecFluentImpl.VsphereVolumeNestedImpl(); } - - public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.VsphereVolumeNestedImpl(item); } - public V1PersistentVolumeSpecFluent.VsphereVolumeNested editVsphereVolume() { return withNewVsphereVolumeLike(getVsphereVolume()); } - public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolume() { - return withNewVsphereVolumeLike( - getVsphereVolume() != null - ? getVsphereVolume() - : new V1VsphereVirtualDiskVolumeSourceBuilder().build()); + return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume(): new V1VsphereVirtualDiskVolumeSourceBuilder().build()); } - - public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item) { - return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume() : item); + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeSpecFluentImpl that = (V1PersistentVolumeSpecFluentImpl) o; - if (accessModes != null ? !accessModes.equals(that.accessModes) : that.accessModes != null) - return false; - if (awsElasticBlockStore != null - ? !awsElasticBlockStore.equals(that.awsElasticBlockStore) - : that.awsElasticBlockStore != null) return false; - if (azureDisk != null ? !azureDisk.equals(that.azureDisk) : that.azureDisk != null) - return false; - if (azureFile != null ? !azureFile.equals(that.azureFile) : that.azureFile != null) - return false; - if (capacity != null ? !capacity.equals(that.capacity) : that.capacity != null) return false; - if (cephfs != null ? !cephfs.equals(that.cephfs) : that.cephfs != null) return false; - if (cinder != null ? !cinder.equals(that.cinder) : that.cinder != null) return false; - if (claimRef != null ? !claimRef.equals(that.claimRef) : that.claimRef != null) return false; - if (csi != null ? !csi.equals(that.csi) : that.csi != null) return false; - if (fc != null ? !fc.equals(that.fc) : that.fc != null) return false; - if (flexVolume != null ? !flexVolume.equals(that.flexVolume) : that.flexVolume != null) - return false; - if (flocker != null ? !flocker.equals(that.flocker) : that.flocker != null) return false; - if (gcePersistentDisk != null - ? !gcePersistentDisk.equals(that.gcePersistentDisk) - : that.gcePersistentDisk != null) return false; - if (glusterfs != null ? !glusterfs.equals(that.glusterfs) : that.glusterfs != null) - return false; - if (hostPath != null ? !hostPath.equals(that.hostPath) : that.hostPath != null) return false; - if (iscsi != null ? !iscsi.equals(that.iscsi) : that.iscsi != null) return false; - if (local != null ? !local.equals(that.local) : that.local != null) return false; - if (mountOptions != null ? !mountOptions.equals(that.mountOptions) : that.mountOptions != null) - return false; - if (nfs != null ? !nfs.equals(that.nfs) : that.nfs != null) return false; - if (nodeAffinity != null ? !nodeAffinity.equals(that.nodeAffinity) : that.nodeAffinity != null) - return false; - if (persistentVolumeReclaimPolicy != null - ? !persistentVolumeReclaimPolicy.equals(that.persistentVolumeReclaimPolicy) - : that.persistentVolumeReclaimPolicy != null) return false; - if (photonPersistentDisk != null - ? !photonPersistentDisk.equals(that.photonPersistentDisk) - : that.photonPersistentDisk != null) return false; - if (portworxVolume != null - ? !portworxVolume.equals(that.portworxVolume) - : that.portworxVolume != null) return false; - if (quobyte != null ? !quobyte.equals(that.quobyte) : that.quobyte != null) return false; - if (rbd != null ? !rbd.equals(that.rbd) : that.rbd != null) return false; - if (scaleIO != null ? !scaleIO.equals(that.scaleIO) : that.scaleIO != null) return false; - if (storageClassName != null - ? !storageClassName.equals(that.storageClassName) - : that.storageClassName != null) return false; - if (storageos != null ? !storageos.equals(that.storageos) : that.storageos != null) - return false; - if (volumeMode != null ? !volumeMode.equals(that.volumeMode) : that.volumeMode != null) - return false; - if (vsphereVolume != null - ? !vsphereVolume.equals(that.vsphereVolume) - : that.vsphereVolume != null) return false; + if (accessModes != null ? !accessModes.equals(that.accessModes) :that.accessModes != null) return false; + if (awsElasticBlockStore != null ? !awsElasticBlockStore.equals(that.awsElasticBlockStore) :that.awsElasticBlockStore != null) return false; + if (azureDisk != null ? !azureDisk.equals(that.azureDisk) :that.azureDisk != null) return false; + if (azureFile != null ? !azureFile.equals(that.azureFile) :that.azureFile != null) return false; + if (capacity != null ? !capacity.equals(that.capacity) :that.capacity != null) return false; + if (cephfs != null ? !cephfs.equals(that.cephfs) :that.cephfs != null) return false; + if (cinder != null ? !cinder.equals(that.cinder) :that.cinder != null) return false; + if (claimRef != null ? !claimRef.equals(that.claimRef) :that.claimRef != null) return false; + if (csi != null ? !csi.equals(that.csi) :that.csi != null) return false; + if (fc != null ? !fc.equals(that.fc) :that.fc != null) return false; + if (flexVolume != null ? !flexVolume.equals(that.flexVolume) :that.flexVolume != null) return false; + if (flocker != null ? !flocker.equals(that.flocker) :that.flocker != null) return false; + if (gcePersistentDisk != null ? !gcePersistentDisk.equals(that.gcePersistentDisk) :that.gcePersistentDisk != null) return false; + if (glusterfs != null ? !glusterfs.equals(that.glusterfs) :that.glusterfs != null) return false; + if (hostPath != null ? !hostPath.equals(that.hostPath) :that.hostPath != null) return false; + if (iscsi != null ? !iscsi.equals(that.iscsi) :that.iscsi != null) return false; + if (local != null ? !local.equals(that.local) :that.local != null) return false; + if (mountOptions != null ? !mountOptions.equals(that.mountOptions) :that.mountOptions != null) return false; + if (nfs != null ? !nfs.equals(that.nfs) :that.nfs != null) return false; + if (nodeAffinity != null ? !nodeAffinity.equals(that.nodeAffinity) :that.nodeAffinity != null) return false; + if (persistentVolumeReclaimPolicy != null ? !persistentVolumeReclaimPolicy.equals(that.persistentVolumeReclaimPolicy) :that.persistentVolumeReclaimPolicy != null) return false; + if (photonPersistentDisk != null ? !photonPersistentDisk.equals(that.photonPersistentDisk) :that.photonPersistentDisk != null) return false; + if (portworxVolume != null ? !portworxVolume.equals(that.portworxVolume) :that.portworxVolume != null) return false; + if (quobyte != null ? !quobyte.equals(that.quobyte) :that.quobyte != null) return false; + if (rbd != null ? !rbd.equals(that.rbd) :that.rbd != null) return false; + if (scaleIO != null ? !scaleIO.equals(that.scaleIO) :that.scaleIO != null) return false; + if (storageClassName != null ? !storageClassName.equals(that.storageClassName) :that.storageClassName != null) return false; + if (storageos != null ? !storageos.equals(that.storageos) :that.storageos != null) return false; + if (volumeMode != null ? !volumeMode.equals(that.volumeMode) :that.volumeMode != null) return false; + if (vsphereVolume != null ? !vsphereVolume.equals(that.vsphereVolume) :that.vsphereVolume != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - accessModes, - awsElasticBlockStore, - azureDisk, - azureFile, - capacity, - cephfs, - cinder, - claimRef, - csi, - fc, - flexVolume, - flocker, - gcePersistentDisk, - glusterfs, - hostPath, - iscsi, - local, - mountOptions, - nfs, - nodeAffinity, - persistentVolumeReclaimPolicy, - photonPersistentDisk, - portworxVolume, - quobyte, - rbd, - scaleIO, - storageClassName, - storageos, - volumeMode, - vsphereVolume, - super.hashCode()); + return java.util.Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeMode, vsphereVolume, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { - sb.append("accessModes:"); - sb.append(accessModes + ","); - } - if (awsElasticBlockStore != null) { - sb.append("awsElasticBlockStore:"); - sb.append(awsElasticBlockStore + ","); - } - if (azureDisk != null) { - sb.append("azureDisk:"); - sb.append(azureDisk + ","); - } - if (azureFile != null) { - sb.append("azureFile:"); - sb.append(azureFile + ","); - } - if (capacity != null && !capacity.isEmpty()) { - sb.append("capacity:"); - sb.append(capacity + ","); - } - if (cephfs != null) { - sb.append("cephfs:"); - sb.append(cephfs + ","); - } - if (cinder != null) { - sb.append("cinder:"); - sb.append(cinder + ","); - } - if (claimRef != null) { - sb.append("claimRef:"); - sb.append(claimRef + ","); - } - if (csi != null) { - sb.append("csi:"); - sb.append(csi + ","); - } - if (fc != null) { - sb.append("fc:"); - sb.append(fc + ","); - } - if (flexVolume != null) { - sb.append("flexVolume:"); - sb.append(flexVolume + ","); - } - if (flocker != null) { - sb.append("flocker:"); - sb.append(flocker + ","); - } - if (gcePersistentDisk != null) { - sb.append("gcePersistentDisk:"); - sb.append(gcePersistentDisk + ","); - } - if (glusterfs != null) { - sb.append("glusterfs:"); - sb.append(glusterfs + ","); - } - if (hostPath != null) { - sb.append("hostPath:"); - sb.append(hostPath + ","); - } - if (iscsi != null) { - sb.append("iscsi:"); - sb.append(iscsi + ","); - } - if (local != null) { - sb.append("local:"); - sb.append(local + ","); - } - if (mountOptions != null && !mountOptions.isEmpty()) { - sb.append("mountOptions:"); - sb.append(mountOptions + ","); - } - if (nfs != null) { - sb.append("nfs:"); - sb.append(nfs + ","); - } - if (nodeAffinity != null) { - sb.append("nodeAffinity:"); - sb.append(nodeAffinity + ","); - } - if (persistentVolumeReclaimPolicy != null) { - sb.append("persistentVolumeReclaimPolicy:"); - sb.append(persistentVolumeReclaimPolicy + ","); - } - if (photonPersistentDisk != null) { - sb.append("photonPersistentDisk:"); - sb.append(photonPersistentDisk + ","); - } - if (portworxVolume != null) { - sb.append("portworxVolume:"); - sb.append(portworxVolume + ","); - } - if (quobyte != null) { - sb.append("quobyte:"); - sb.append(quobyte + ","); - } - if (rbd != null) { - sb.append("rbd:"); - sb.append(rbd + ","); - } - if (scaleIO != null) { - sb.append("scaleIO:"); - sb.append(scaleIO + ","); - } - if (storageClassName != null) { - sb.append("storageClassName:"); - sb.append(storageClassName + ","); - } - if (storageos != null) { - sb.append("storageos:"); - sb.append(storageos + ","); - } - if (volumeMode != null) { - sb.append("volumeMode:"); - sb.append(volumeMode + ","); - } - if (vsphereVolume != null) { - sb.append("vsphereVolume:"); - sb.append(vsphereVolume); - } + if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } + if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); } + if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); } + if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); } + if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } + if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); } + if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); } + if (claimRef != null) { sb.append("claimRef:"); sb.append(claimRef + ","); } + if (csi != null) { sb.append("csi:"); sb.append(csi + ","); } + if (fc != null) { sb.append("fc:"); sb.append(fc + ","); } + if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); } + if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); } + if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); } + if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); } + if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); } + if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); } + if (local != null) { sb.append("local:"); sb.append(local + ","); } + if (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); } + if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); } + if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); } + if (persistentVolumeReclaimPolicy != null) { sb.append("persistentVolumeReclaimPolicy:"); sb.append(persistentVolumeReclaimPolicy + ","); } + if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); } + if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); } + if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); } + if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); } + if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); } + if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); } + if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); } + if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); } + if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); } sb.append("}"); return sb.toString(); } - - class AwsElasticBlockStoreNestedImpl - extends V1AWSElasticBlockStoreVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested> - implements V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested, Nested { + class AwsElasticBlockStoreNestedImpl extends V1AWSElasticBlockStoreVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested,Nested{ AwsElasticBlockStoreNestedImpl(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } - AwsElasticBlockStoreNestedImpl() { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this); } - V1AWSElasticBlockStoreVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withAwsElasticBlockStore(builder.build()); } - public N endAwsElasticBlockStore() { return and(); } + } - - class AzureDiskNestedImpl - extends V1AzureDiskVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.AzureDiskNested, Nested { + class AzureDiskNestedImpl extends V1AzureDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.AzureDiskNested,Nested{ AzureDiskNestedImpl(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } - AzureDiskNestedImpl() { this.builder = new V1AzureDiskVolumeSourceBuilder(this); } - V1AzureDiskVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withAzureDisk(builder.build()); } - public N endAzureDisk() { return and(); } + } - - class AzureFileNestedImpl - extends V1AzureFilePersistentVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.AzureFileNested> - implements V1PersistentVolumeSpecFluent.AzureFileNested, Nested { + class AzureFileNestedImpl extends V1AzureFilePersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.AzureFileNested,Nested{ AzureFileNestedImpl(V1AzureFilePersistentVolumeSource item) { this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this, item); } - AzureFileNestedImpl() { this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this); } - V1AzureFilePersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withAzureFile(builder.build()); } - public N endAzureFile() { return and(); } + } - - class CephfsNestedImpl - extends V1CephFSPersistentVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.CephfsNested, Nested { + class CephfsNestedImpl extends V1CephFSPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.CephfsNested,Nested{ CephfsNestedImpl(V1CephFSPersistentVolumeSource item) { this.builder = new V1CephFSPersistentVolumeSourceBuilder(this, item); } - CephfsNestedImpl() { this.builder = new V1CephFSPersistentVolumeSourceBuilder(this); } - V1CephFSPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withCephfs(builder.build()); } - public N endCephfs() { return and(); } + } - - class CinderNestedImpl - extends V1CinderPersistentVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.CinderNested, Nested { + class CinderNestedImpl extends V1CinderPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.CinderNested,Nested{ CinderNestedImpl(V1CinderPersistentVolumeSource item) { this.builder = new V1CinderPersistentVolumeSourceBuilder(this, item); } - CinderNestedImpl() { this.builder = new V1CinderPersistentVolumeSourceBuilder(this); } - V1CinderPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withCinder(builder.build()); } - public N endCinder() { return and(); } + } - - class ClaimRefNestedImpl - extends V1ObjectReferenceFluentImpl> - implements V1PersistentVolumeSpecFluent.ClaimRefNested, Nested { + class ClaimRefNestedImpl extends V1ObjectReferenceFluentImpl> implements V1PersistentVolumeSpecFluent.ClaimRefNested,Nested{ ClaimRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - ClaimRefNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withClaimRef(builder.build()); } - public N endClaimRef() { return and(); } + } - - class CsiNestedImpl - extends V1CSIPersistentVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.CsiNested, Nested { + class CsiNestedImpl extends V1CSIPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.CsiNested,Nested{ CsiNestedImpl(V1CSIPersistentVolumeSource item) { this.builder = new V1CSIPersistentVolumeSourceBuilder(this, item); } - CsiNestedImpl() { this.builder = new V1CSIPersistentVolumeSourceBuilder(this); } - V1CSIPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withCsi(builder.build()); } - public N endCsi() { return and(); } + } - - class FcNestedImpl extends V1FCVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.FcNested, Nested { + class FcNestedImpl extends V1FCVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.FcNested,Nested{ FcNestedImpl(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } - FcNestedImpl() { this.builder = new V1FCVolumeSourceBuilder(this); } - V1FCVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withFc(builder.build()); } - public N endFc() { return and(); } + } - - class FlexVolumeNestedImpl - extends V1FlexPersistentVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.FlexVolumeNested> - implements V1PersistentVolumeSpecFluent.FlexVolumeNested, Nested { + class FlexVolumeNestedImpl extends V1FlexPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.FlexVolumeNested,Nested{ FlexVolumeNestedImpl(V1FlexPersistentVolumeSource item) { this.builder = new V1FlexPersistentVolumeSourceBuilder(this, item); } - FlexVolumeNestedImpl() { this.builder = new V1FlexPersistentVolumeSourceBuilder(this); } - V1FlexPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withFlexVolume(builder.build()); } - public N endFlexVolume() { return and(); } + } - - class FlockerNestedImpl - extends V1FlockerVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.FlockerNested, Nested { + class FlockerNestedImpl extends V1FlockerVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.FlockerNested,Nested{ FlockerNestedImpl(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } - FlockerNestedImpl() { this.builder = new V1FlockerVolumeSourceBuilder(this); } - V1FlockerVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withFlocker(builder.build()); } - public N endFlocker() { return and(); } + } - - class GcePersistentDiskNestedImpl - extends V1GCEPersistentDiskVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.GcePersistentDiskNested> - implements V1PersistentVolumeSpecFluent.GcePersistentDiskNested, Nested { + class GcePersistentDiskNestedImpl extends V1GCEPersistentDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.GcePersistentDiskNested,Nested{ GcePersistentDiskNestedImpl(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } - GcePersistentDiskNestedImpl() { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this); } - V1GCEPersistentDiskVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withGcePersistentDisk(builder.build()); } - public N endGcePersistentDisk() { return and(); } + } - - class GlusterfsNestedImpl - extends V1GlusterfsPersistentVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.GlusterfsNested> - implements V1PersistentVolumeSpecFluent.GlusterfsNested, Nested { + class GlusterfsNestedImpl extends V1GlusterfsPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.GlusterfsNested,Nested{ GlusterfsNestedImpl(V1GlusterfsPersistentVolumeSource item) { this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this, item); } - GlusterfsNestedImpl() { this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this); } - V1GlusterfsPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withGlusterfs(builder.build()); } - public N endGlusterfs() { return and(); } + } - - class HostPathNestedImpl - extends V1HostPathVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.HostPathNested, Nested { + class HostPathNestedImpl extends V1HostPathVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.HostPathNested,Nested{ HostPathNestedImpl(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } - HostPathNestedImpl() { this.builder = new V1HostPathVolumeSourceBuilder(this); } - V1HostPathVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withHostPath(builder.build()); } - public N endHostPath() { return and(); } + } - - class IscsiNestedImpl - extends V1ISCSIPersistentVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.IscsiNested, Nested { + class IscsiNestedImpl extends V1ISCSIPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.IscsiNested,Nested{ IscsiNestedImpl(V1ISCSIPersistentVolumeSource item) { this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this, item); } - IscsiNestedImpl() { this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this); } - V1ISCSIPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withIscsi(builder.build()); } - public N endIscsi() { return and(); } + } - - class LocalNestedImpl - extends V1LocalVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.LocalNested, Nested { + class LocalNestedImpl extends V1LocalVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.LocalNested,Nested{ LocalNestedImpl(V1LocalVolumeSource item) { this.builder = new V1LocalVolumeSourceBuilder(this, item); } - LocalNestedImpl() { this.builder = new V1LocalVolumeSourceBuilder(this); } - V1LocalVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withLocal(builder.build()); } - public N endLocal() { return and(); } + } - - class NfsNestedImpl - extends V1NFSVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.NfsNested, Nested { + class NfsNestedImpl extends V1NFSVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.NfsNested,Nested{ NfsNestedImpl(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } - NfsNestedImpl() { this.builder = new V1NFSVolumeSourceBuilder(this); } - V1NFSVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withNfs(builder.build()); } - public N endNfs() { return and(); } + } - - class NodeAffinityNestedImpl - extends V1VolumeNodeAffinityFluentImpl> - implements V1PersistentVolumeSpecFluent.NodeAffinityNested, Nested { + class NodeAffinityNestedImpl extends V1VolumeNodeAffinityFluentImpl> implements V1PersistentVolumeSpecFluent.NodeAffinityNested,Nested{ NodeAffinityNestedImpl(V1VolumeNodeAffinity item) { this.builder = new V1VolumeNodeAffinityBuilder(this, item); } - NodeAffinityNestedImpl() { this.builder = new V1VolumeNodeAffinityBuilder(this); } - V1VolumeNodeAffinityBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withNodeAffinity(builder.build()); } - public N endNodeAffinity() { return and(); } + } - - class PhotonPersistentDiskNestedImpl - extends V1PhotonPersistentDiskVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested> - implements V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested, Nested { + class PhotonPersistentDiskNestedImpl extends V1PhotonPersistentDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested,Nested{ PhotonPersistentDiskNestedImpl(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } - PhotonPersistentDiskNestedImpl() { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this); } - V1PhotonPersistentDiskVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withPhotonPersistentDisk(builder.build()); } - public N endPhotonPersistentDisk() { return and(); } + } - - class PortworxVolumeNestedImpl - extends V1PortworxVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.PortworxVolumeNested, Nested { + class PortworxVolumeNestedImpl extends V1PortworxVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.PortworxVolumeNested,Nested{ PortworxVolumeNestedImpl(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } - PortworxVolumeNestedImpl() { this.builder = new V1PortworxVolumeSourceBuilder(this); } - V1PortworxVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withPortworxVolume(builder.build()); } - public N endPortworxVolume() { return and(); } + } - - class QuobyteNestedImpl - extends V1QuobyteVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.QuobyteNested, Nested { + class QuobyteNestedImpl extends V1QuobyteVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.QuobyteNested,Nested{ QuobyteNestedImpl(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } - QuobyteNestedImpl() { this.builder = new V1QuobyteVolumeSourceBuilder(this); } - V1QuobyteVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withQuobyte(builder.build()); } - public N endQuobyte() { return and(); } + } - - class RbdNestedImpl - extends V1RBDPersistentVolumeSourceFluentImpl> - implements V1PersistentVolumeSpecFluent.RbdNested, Nested { + class RbdNestedImpl extends V1RBDPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.RbdNested,Nested{ RbdNestedImpl(V1RBDPersistentVolumeSource item) { this.builder = new V1RBDPersistentVolumeSourceBuilder(this, item); } - RbdNestedImpl() { this.builder = new V1RBDPersistentVolumeSourceBuilder(this); } - V1RBDPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withRbd(builder.build()); } - public N endRbd() { return and(); } + } - - class ScaleIONestedImpl - extends V1ScaleIOPersistentVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.ScaleIONested> - implements V1PersistentVolumeSpecFluent.ScaleIONested, Nested { + class ScaleIONestedImpl extends V1ScaleIOPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.ScaleIONested,Nested{ ScaleIONestedImpl(V1ScaleIOPersistentVolumeSource item) { this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this, item); } - ScaleIONestedImpl() { this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this); } - V1ScaleIOPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withScaleIO(builder.build()); } - public N endScaleIO() { return and(); } + } - - class StorageosNestedImpl - extends V1StorageOSPersistentVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.StorageosNested> - implements V1PersistentVolumeSpecFluent.StorageosNested, Nested { + class StorageosNestedImpl extends V1StorageOSPersistentVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.StorageosNested,Nested{ StorageosNestedImpl(V1StorageOSPersistentVolumeSource item) { this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this, item); } - StorageosNestedImpl() { this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this); } - V1StorageOSPersistentVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withStorageos(builder.build()); } - public N endStorageos() { return and(); } + } - - class VsphereVolumeNestedImpl - extends V1VsphereVirtualDiskVolumeSourceFluentImpl< - V1PersistentVolumeSpecFluent.VsphereVolumeNested> - implements V1PersistentVolumeSpecFluent.VsphereVolumeNested, Nested { + class VsphereVolumeNestedImpl extends V1VsphereVirtualDiskVolumeSourceFluentImpl> implements V1PersistentVolumeSpecFluent.VsphereVolumeNested,Nested{ VsphereVolumeNestedImpl(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } - VsphereVolumeNestedImpl() { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this); } - V1VsphereVirtualDiskVolumeSourceBuilder builder; - public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withVsphereVolume(builder.build()); } - public N endVsphereVolume() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java index e332cb3a56..6a03dba5a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1PersistentVolumeStatusBuilder - extends V1PersistentVolumeStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PersistentVolumeStatusBuilder extends V1PersistentVolumeStatusFluentImpl implements VisitableBuilder{ public V1PersistentVolumeStatusBuilder() { this(false); } - public V1PersistentVolumeStatusBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeStatus(), validationEnabled); } - public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent) { this(fluent, false); } - - public V1PersistentVolumeStatusBuilder( - V1PersistentVolumeStatusFluent fluent, Boolean validationEnabled) { + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1PersistentVolumeStatus(), validationEnabled); } - - public V1PersistentVolumeStatusBuilder( - V1PersistentVolumeStatusFluent fluent, V1PersistentVolumeStatus instance) { + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,V1PersistentVolumeStatus instance) { this(fluent, instance, false); } - - public V1PersistentVolumeStatusBuilder( - V1PersistentVolumeStatusFluent fluent, - V1PersistentVolumeStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,V1PersistentVolumeStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMessage(instance.getMessage()); fluent.withPhase(instance.getPhase()); fluent.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatus instance) { - this(instance, false); + this(instance,false); } - - public V1PersistentVolumeStatusBuilder( - V1PersistentVolumeStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withMessage(instance.getMessage()); this.withPhase(instance.getPhase()); this.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PersistentVolumeStatusFluent fluent; Boolean validationEnabled; - public V1PersistentVolumeStatus build() { V1PersistentVolumeStatus buildable = new V1PersistentVolumeStatus(); buildable.setMessage(fluent.getMessage()); @@ -79,4 +50,5 @@ public V1PersistentVolumeStatus build() { buildable.setReason(fluent.getReason()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java index bf04512a5c..c46a6b78be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java @@ -1,37 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PersistentVolumeStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PersistentVolumeStatusFluent> extends Fluent{ public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getPhase(); - public A withPhase(String phase); - public Boolean hasPhase(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java index 1884b3fb68..37fc517e4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java @@ -1,106 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PersistentVolumeStatusFluentImpl> - extends BaseFluent implements V1PersistentVolumeStatusFluent { - public V1PersistentVolumeStatusFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PersistentVolumeStatusFluentImpl> extends BaseFluent implements V1PersistentVolumeStatusFluent{ + public V1PersistentVolumeStatusFluentImpl() { + } public V1PersistentVolumeStatusFluentImpl(V1PersistentVolumeStatus instance) { this.withMessage(instance.getMessage()); this.withPhase(instance.getPhase()); this.withReason(instance.getReason()); - } + } private String message; private String phase; private String reason; - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getPhase() { return this.phase; } - public A withPhase(String phase) { - this.phase = phase; - return (A) this; + this.phase=phase; return (A) this; } - public Boolean hasPhase() { return this.phase != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PersistentVolumeStatusFluentImpl that = (V1PersistentVolumeStatusFluentImpl) o; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (phase != null ? !phase.equals(that.phase) : that.phase != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (phase != null ? !phase.equals(that.phase) :that.phase != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(message, phase, reason, super.hashCode()); + return java.util.Objects.hash(message, phase, reason, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (phase != null) { - sb.append("phase:"); - sb.append(phase + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason); - } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java index ba560f6591..ee2aeaac53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java @@ -1,80 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PhotonPersistentDiskVolumeSourceBuilder - extends V1PhotonPersistentDiskVolumeSourceFluentImpl - implements VisitableBuilder< - V1PhotonPersistentDiskVolumeSource, V1PhotonPersistentDiskVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1PhotonPersistentDiskVolumeSourceBuilder extends V1PhotonPersistentDiskVolumeSourceFluentImpl implements VisitableBuilder{ public V1PhotonPersistentDiskVolumeSourceBuilder() { this(false); } - public V1PhotonPersistentDiskVolumeSourceBuilder(Boolean validationEnabled) { this(new V1PhotonPersistentDiskVolumeSource(), validationEnabled); } - - public V1PhotonPersistentDiskVolumeSourceBuilder( - V1PhotonPersistentDiskVolumeSourceFluent fluent) { + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent) { this(fluent, false); } - - public V1PhotonPersistentDiskVolumeSourceBuilder( - V1PhotonPersistentDiskVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1PhotonPersistentDiskVolumeSource(), validationEnabled); } - - public V1PhotonPersistentDiskVolumeSourceBuilder( - V1PhotonPersistentDiskVolumeSourceFluent fluent, - V1PhotonPersistentDiskVolumeSource instance) { + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,V1PhotonPersistentDiskVolumeSource instance) { this(fluent, instance, false); } - - public V1PhotonPersistentDiskVolumeSourceBuilder( - V1PhotonPersistentDiskVolumeSourceFluent fluent, - V1PhotonPersistentDiskVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,V1PhotonPersistentDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withPdID(instance.getPdID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1PhotonPersistentDiskVolumeSourceBuilder( - V1PhotonPersistentDiskVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withPdID(instance.getPdID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PhotonPersistentDiskVolumeSourceFluent fluent; Boolean validationEnabled; - public V1PhotonPersistentDiskVolumeSource build() { V1PhotonPersistentDiskVolumeSource buildable = new V1PhotonPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setPdID(fluent.getPdID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java index b79d802ad2..ce42db1d38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java @@ -1,32 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PhotonPersistentDiskVolumeSourceFluent< - A extends V1PhotonPersistentDiskVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PhotonPersistentDiskVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getPdID(); - public A withPdID(String pdID); - public Boolean hasPdID(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java index 24a12ff864..67febb8694 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java @@ -1,87 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PhotonPersistentDiskVolumeSourceFluentImpl< - A extends V1PhotonPersistentDiskVolumeSourceFluent> - extends BaseFluent implements V1PhotonPersistentDiskVolumeSourceFluent { - public V1PhotonPersistentDiskVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PhotonPersistentDiskVolumeSourceFluentImpl> extends BaseFluent implements V1PhotonPersistentDiskVolumeSourceFluent{ + public V1PhotonPersistentDiskVolumeSourceFluentImpl() { + } public V1PhotonPersistentDiskVolumeSourceFluentImpl(V1PhotonPersistentDiskVolumeSource instance) { this.withFsType(instance.getFsType()); this.withPdID(instance.getPdID()); - } + } private String fsType; private String pdID; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getPdID() { return this.pdID; } - public A withPdID(String pdID) { - this.pdID = pdID; - return (A) this; + this.pdID=pdID; return (A) this; } - public Boolean hasPdID() { return this.pdID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1PhotonPersistentDiskVolumeSourceFluentImpl that = - (V1PhotonPersistentDiskVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (pdID != null ? !pdID.equals(that.pdID) : that.pdID != null) return false; + V1PhotonPersistentDiskVolumeSourceFluentImpl that = (V1PhotonPersistentDiskVolumeSourceFluentImpl) o; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (pdID != null ? !pdID.equals(that.pdID) :that.pdID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, pdID, super.hashCode()); + return java.util.Objects.hash(fsType, pdID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (pdID != null) { - sb.append("pdID:"); - sb.append(pdID); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (pdID != null) { sb.append("pdID:"); sb.append(pdID); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java index 5eb69052c9..22db931e21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PodAffinityBuilder extends V1PodAffinityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodAffinityBuilder extends V1PodAffinityFluentImpl implements VisitableBuilder{ public V1PodAffinityBuilder() { this(false); } - public V1PodAffinityBuilder(Boolean validationEnabled) { this(new V1PodAffinity(), validationEnabled); } - public V1PodAffinityBuilder(V1PodAffinityFluent fluent) { this(fluent, false); } - - public V1PodAffinityBuilder(V1PodAffinityFluent fluent, Boolean validationEnabled) { + public V1PodAffinityBuilder(V1PodAffinityFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodAffinity(), validationEnabled); } - - public V1PodAffinityBuilder(V1PodAffinityFluent fluent, V1PodAffinity instance) { + public V1PodAffinityBuilder(V1PodAffinityFluent fluent,V1PodAffinity instance) { this(fluent, instance, false); } + public V1PodAffinityBuilder(V1PodAffinityFluent fluent,V1PodAffinity instance,Boolean validationEnabled) { + this.fluent = fluent; + fluent.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - public V1PodAffinityBuilder( - V1PodAffinityFluent fluent, V1PodAffinity instance, Boolean validationEnabled) { - this.fluent = fluent; - fluent.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + fluent.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - fluent.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodAffinityBuilder(V1PodAffinity instance) { - this(instance, false); + this(instance,false); } + public V1PodAffinityBuilder(V1PodAffinity instance,Boolean validationEnabled) { + this.fluent = this; + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - public V1PodAffinityBuilder(V1PodAffinity instance, Boolean validationEnabled) { - this.fluent = this; - this.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - - this.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodAffinityFluent fluent; Boolean validationEnabled; - public V1PodAffinity build() { V1PodAffinity buildable = new V1PodAffinity(); - buildable.setPreferredDuringSchedulingIgnoredDuringExecution( - fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); - buildable.setRequiredDuringSchedulingIgnoredDuringExecution( - fluent.getRequiredDuringSchedulingIgnoredDuringExecution()); + buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); + buildable.setRequiredDuringSchedulingIgnoredDuringExecution(fluent.getRequiredDuringSchedulingIgnoredDuringExecution()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java index ed5c670c9c..09fb5bd4ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java @@ -1,193 +1,90 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodAffinityFluent> extends Fluent { - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item); - - public A setToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item); - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); - - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PodAffinityFluent> extends Fluent{ + public A addToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item); + public A setToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item); + public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + /** - * This method has been deprecated, please use method - * buildPreferredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildPreferredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getPreferredDuringSchedulingIgnoredDuringExecution(); - public List buildPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( - Integer index); - + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(Integer index); public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - List preferredDuringSchedulingIgnoredDuringExecution); - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... - preferredDuringSchedulingIgnoredDuringExecution); - + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution); + public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution); public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1WeightedPodAffinityTerm item); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editFirstPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editLastPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item); - - public A setToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item); - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); - - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); - - public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1WeightedPodAffinityTerm item); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A addToRequiredDuringSchedulingIgnoredDuringExecution(Integer index,V1PodAffinityTerm item); + public A setToRequiredDuringSchedulingIgnoredDuringExecution(Integer index,V1PodAffinityTerm item); + public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); + public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + /** - * This method has been deprecated, please use method - * buildRequiredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildRequiredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getRequiredDuringSchedulingIgnoredDuringExecution(); - public List buildRequiredDuringSchedulingIgnoredDuringExecution(); - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution(); - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - List requiredDuringSchedulingIgnoredDuringExecution); - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... - requiredDuringSchedulingIgnoredDuringExecution); - + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution); + public A withRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... requiredDuringSchedulingIgnoredDuringExecution); public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1PodAffinityTerm item); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editFirstRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editLastRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public interface PreferredDuringSchedulingIgnoredDuringExecutionNested - extends Nested, - V1WeightedPodAffinityTermFluent< - V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> { + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1PodAffinityTerm item); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(Integer index); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public interface PreferredDuringSchedulingIgnoredDuringExecutionNested extends Nested,V1WeightedPodAffinityTermFluent>{ public N and(); - public N endPreferredDuringSchedulingIgnoredDuringExecution(); + } - - public interface RequiredDuringSchedulingIgnoredDuringExecutionNested - extends Nested, - V1PodAffinityTermFluent< - V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> { + public interface RequiredDuringSchedulingIgnoredDuringExecutionNested extends Nested,V1PodAffinityTermFluent>{ public N and(); - public N endRequiredDuringSchedulingIgnoredDuringExecution(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java index 1bae026712..413656f80d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java @@ -1,140 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodAffinityFluentImpl> extends BaseFluent - implements V1PodAffinityFluent { - public V1PodAffinityFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodAffinityFluentImpl> extends BaseFluent implements V1PodAffinityFluent{ + public V1PodAffinityFluentImpl() { + } public V1PodAffinityFluentImpl(V1PodAffinity instance) { - this.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - private ArrayList - preferredDuringSchedulingIgnoredDuringExecution; + } + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; private ArrayList requiredDuringSchedulingIgnoredDuringExecution; - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables - .get("preferredDuringSchedulingIgnoredDuringExecution") - .add( - index >= 0 - ? index - : _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size(), - builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add( - index >= 0 ? index : preferredDuringSchedulingIgnoredDuringExecution.size(), builder); - return (A) this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index >= 0 ? index : _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size(), builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(index >= 0 ? index : preferredDuringSchedulingIgnoredDuringExecution.size(), builder); return (A)this; } - - public A setToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } + public A setToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 - || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); - } - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + return (A)this; } - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = - preferredDuringSchedulingIgnoredDuringExecution.iterator(); + final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1WeightedPodAffinityTermBuilder builder = each.next(); @@ -143,260 +66,104 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( each.remove(); } } - return (A) this; + return (A)this; } - + /** - * This method has been deprecated, please use method - * buildPreferredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildPreferredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - ? build(preferredDuringSchedulingIgnoredDuringExecution) - : null; + return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - ? build(preferredDuringSchedulingIgnoredDuringExecution) - : null; + return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( - Integer index) { + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution - .get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1) - .build(); + return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } - - public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item: preferredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item: preferredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return true;} } return false; } - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - _visitables - .get("preferredDuringSchedulingIgnoredDuringExecution") - .removeAll(this.preferredDuringSchedulingIgnoredDuringExecution); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").removeAll(this.preferredDuringSchedulingIgnoredDuringExecution);} + if (preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution){this.addToPreferredDuringSchedulingIgnoredDuringExecution(item);}} else { this.preferredDuringSchedulingIgnoredDuringExecution = null;} return (A) this; } - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... - preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } - return (A) this; + public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.clear();} + if (preferredDuringSchedulingIgnoredDuringExecution != null) {for (V1WeightedPodAffinityTerm item :preferredDuringSchedulingIgnoredDuringExecution){ this.addToPreferredDuringSchedulingIgnoredDuringExecution(item);}} return (A) this; } - public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); + return preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - -1, item); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { + return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1WeightedPodAffinityTerm item) { - return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - index, item); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1WeightedPodAffinityTerm item) { + return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) - throw new RuntimeException( - "Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) - throw new RuntimeException( - "Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - 0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editLastPreferredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) - throw new RuntimeException( - "Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution.size(); i++) { - if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException( - "Can't edit matching preferredDuringSchedulingIgnoredDuringExecution. No match found."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); - } - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } + for (int i=0;i();} + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(index >= 0 ? index : _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size(), builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(index >= 0 ? index : requiredDuringSchedulingIgnoredDuringExecution.size(), builder); return (A)this; + } + public A setToRequiredDuringSchedulingIgnoredDuringExecution(Integer index,V1PodAffinityTerm item) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables - .get("requiredDuringSchedulingIgnoredDuringExecution") - .add( - index >= 0 - ? index - : _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size(), - builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add( - index >= 0 ? index : requiredDuringSchedulingIgnoredDuringExecution.size(), builder); - return (A) this; + if (index < 0 || index >= _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { requiredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + return (A)this; } - - public A setToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 - || index >= _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder); - } - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); - } - return (A) this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - Collection items) { - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = - requiredDuringSchedulingIgnoredDuringExecution.iterator(); + final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PodAffinityTermBuilder builder = each.next(); @@ -405,258 +172,132 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( each.remove(); } } - return (A) this; + return (A)this; } - + /** - * This method has been deprecated, please use method - * buildRequiredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildRequiredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getRequiredDuringSchedulingIgnoredDuringExecution() { - return requiredDuringSchedulingIgnoredDuringExecution != null - ? build(requiredDuringSchedulingIgnoredDuringExecution) - : null; + return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public List buildRequiredDuringSchedulingIgnoredDuringExecution() { - return requiredDuringSchedulingIgnoredDuringExecution != null - ? build(requiredDuringSchedulingIgnoredDuringExecution) - : null; + return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution - .get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1) - .build(); + return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } - - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item: requiredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item: requiredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return true;} } return false; } - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - List requiredDuringSchedulingIgnoredDuringExecution) { - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - _visitables - .get("requiredDuringSchedulingIgnoredDuringExecution") - .removeAll(this.requiredDuringSchedulingIgnoredDuringExecution); - } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { - this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.requiredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; + public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").removeAll(this.requiredDuringSchedulingIgnoredDuringExecution);} + if (requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution){this.addToRequiredDuringSchedulingIgnoredDuringExecution(item);}} else { this.requiredDuringSchedulingIgnoredDuringExecution = null;} return (A) this; } - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... - requiredDuringSchedulingIgnoredDuringExecution) { - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution.clear(); - } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { - for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { - this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); - } - } - return (A) this; + public A withRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... requiredDuringSchedulingIgnoredDuringExecution) { + if (this.requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution.clear();} + if (requiredDuringSchedulingIgnoredDuringExecution != null) {for (V1PodAffinityTerm item :requiredDuringSchedulingIgnoredDuringExecution){ this.addToRequiredDuringSchedulingIgnoredDuringExecution(item);}} return (A) this; } - public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return requiredDuringSchedulingIgnoredDuringExecution != null - && !requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); + return requiredDuringSchedulingIgnoredDuringExecution != null && !requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - -1, item); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1PodAffinityTerm item) { - return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - index, item); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1PodAffinityTerm item) { + return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { - if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) - throw new RuntimeException( - "Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { + if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); + return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) - throw new RuntimeException( - "Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - 0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editLastRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) - throw new RuntimeException( - "Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) throw new RuntimeException("Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i = 0; i < requiredDuringSchedulingIgnoredDuringExecution.size(); i++) { - if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException( - "Can't edit matching requiredDuringSchedulingIgnoredDuringExecution. No match found."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + for (int i=0;i - extends V1WeightedPodAffinityTermFluentImpl< - V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> - implements V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested, - Nested { - PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - Integer index, V1WeightedPodAffinityTerm item) { + class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1WeightedPodAffinityTermFluentImpl> implements V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested,Nested{ + PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(Integer index,V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } - PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; this.builder = new V1WeightedPodAffinityTermBuilder(this); } - V1WeightedPodAffinityTermBuilder builder; Integer index; - public N and() { - return (N) - V1PodAffinityFluentImpl.this.setToPreferredDuringSchedulingIgnoredDuringExecution( - index, builder.build()); + return (N) V1PodAffinityFluentImpl.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); } - public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } + } - - class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl - extends V1PodAffinityTermFluentImpl< - V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> - implements V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested, - Nested { - RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - Integer index, V1PodAffinityTerm item) { + class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1PodAffinityTermFluentImpl> implements V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested,Nested{ + RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(Integer index,V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } - RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; this.builder = new V1PodAffinityTermBuilder(this); } - V1PodAffinityTermBuilder builder; Integer index; - public N and() { - return (N) - V1PodAffinityFluentImpl.this.setToRequiredDuringSchedulingIgnoredDuringExecution( - index, builder.build()); + return (N) V1PodAffinityFluentImpl.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index,builder.build()); } - public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java index 5eb2f04aed..54dccffdff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluentImpl implements VisitableBuilder{ public V1PodAffinityTermBuilder() { this(false); } - public V1PodAffinityTermBuilder(Boolean validationEnabled) { this(new V1PodAffinityTerm(), validationEnabled); } - public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent) { this(fluent, false); } - - public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent, Boolean validationEnabled) { + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodAffinityTerm(), validationEnabled); } - - public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent, V1PodAffinityTerm instance) { + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,V1PodAffinityTerm instance) { this(fluent, instance, false); } - - public V1PodAffinityTermBuilder( - V1PodAffinityTermFluent fluent, V1PodAffinityTerm instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,V1PodAffinityTerm instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLabelSelector(instance.getLabelSelector()); fluent.withNamespaceSelector(instance.getNamespaceSelector()); @@ -47,15 +28,13 @@ public V1PodAffinityTermBuilder( fluent.withTopologyKey(instance.getTopologyKey()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodAffinityTermBuilder(V1PodAffinityTerm instance) { - this(instance, false); + this(instance,false); } - - public V1PodAffinityTermBuilder(V1PodAffinityTerm instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodAffinityTermBuilder(V1PodAffinityTerm instance,Boolean validationEnabled) { + this.fluent = this; this.withLabelSelector(instance.getLabelSelector()); this.withNamespaceSelector(instance.getNamespaceSelector()); @@ -64,12 +43,10 @@ public V1PodAffinityTermBuilder(V1PodAffinityTerm instance, Boolean validationEn this.withTopologyKey(instance.getTopologyKey()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodAffinityTermFluent fluent; Boolean validationEnabled; - public V1PodAffinityTerm build() { V1PodAffinityTerm buildable = new V1PodAffinityTerm(); buildable.setLabelSelector(fluent.getLabelSelector()); @@ -78,4 +55,5 @@ public V1PodAffinityTerm build() { buildable.setTopologyKey(fluent.getTopologyKey()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java index 1055bb1915..ed4ac0dcda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java @@ -1,125 +1,77 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodAffinityTermFluent> extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1PodAffinityTermFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildLabelSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getLabelSelector(); - public V1LabelSelector buildLabelSelector(); - public A withLabelSelector(V1LabelSelector labelSelector); - public Boolean hasLabelSelector(); - public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelector(); - - public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelectorLike( - V1LabelSelector item); - + public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item); public V1PodAffinityTermFluent.LabelSelectorNested editLabelSelector(); - public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelector(); - - public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelectorLike( - V1LabelSelector item); - + public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item); + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector(); - public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public Boolean hasNamespaceSelector(); - public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelector(); - - public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item); public V1PodAffinityTermFluent.NamespaceSelectorNested editNamespaceSelector(); - public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - - public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item); - - public A addToNamespaces(Integer index, String item); - - public A setToNamespaces(Integer index, String item); - + public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item); + public A addToNamespaces(Integer index,String item); + public A setToNamespaces(Integer index,String item); public A addToNamespaces(java.lang.String... items); - public A addAllToNamespaces(Collection items); - public A removeFromNamespaces(java.lang.String... items); - public A removeAllFromNamespaces(Collection items); - public List getNamespaces(); - public String getNamespace(Integer index); - public String getFirstNamespace(); - public String getLastNamespace(); - public String getMatchingNamespace(Predicate predicate); - public Boolean hasMatchingNamespace(Predicate predicate); - public A withNamespaces(List namespaces); - public A withNamespaces(java.lang.String... namespaces); - public Boolean hasNamespaces(); - public String getTopologyKey(); - public A withTopologyKey(String topologyKey); - public Boolean hasTopologyKey(); - - public interface LabelSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface LabelSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endLabelSelector(); + } - - public interface NamespaceSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface NamespaceSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endNamespaceSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java index d4f0fc3076..7b15651a43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodAffinityTermFluentImpl> extends BaseFluent - implements V1PodAffinityTermFluent { - public V1PodAffinityTermFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodAffinityTermFluentImpl> extends BaseFluent implements V1PodAffinityTermFluent{ + public V1PodAffinityTermFluentImpl() { + } public V1PodAffinityTermFluentImpl(V1PodAffinityTerm instance) { this.withLabelSelector(instance.getLabelSelector()); @@ -33,337 +28,194 @@ public V1PodAffinityTermFluentImpl(V1PodAffinityTerm instance) { this.withNamespaces(instance.getNamespaces()); this.withTopologyKey(instance.getTopologyKey()); - } + } private V1LabelSelectorBuilder labelSelector; private V1LabelSelectorBuilder namespaceSelector; private List namespaces; private String topologyKey; - + /** * This method has been deprecated, please use method buildLabelSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + return this.labelSelector!=null ?this.labelSelector.build():null; } - public V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + return this.labelSelector!=null ?this.labelSelector.build():null; } - public A withLabelSelector(V1LabelSelector labelSelector) { _visitables.get("labelSelector").remove(this.labelSelector); - if (labelSelector != null) { - this.labelSelector = new V1LabelSelectorBuilder(labelSelector); - _visitables.get("labelSelector").add(this.labelSelector); - } else { - this.labelSelector = null; - _visitables.get("labelSelector").remove(this.labelSelector); - } - return (A) this; + if (labelSelector!=null){ this.labelSelector= new V1LabelSelectorBuilder(labelSelector); _visitables.get("labelSelector").add(this.labelSelector);} else { this.labelSelector = null; _visitables.get("labelSelector").remove(this.labelSelector); } return (A) this; } - public Boolean hasLabelSelector() { return this.labelSelector != null; } - public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelector() { return new V1PodAffinityTermFluentImpl.LabelSelectorNestedImpl(); } - - public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelectorLike( - V1LabelSelector item) { + public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { return new V1PodAffinityTermFluentImpl.LabelSelectorNestedImpl(item); } - public V1PodAffinityTermFluent.LabelSelectorNested editLabelSelector() { return withNewLabelSelectorLike(getLabelSelector()); } - public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike( - getLabelSelector() != null ? getLabelSelector() : new V1LabelSelectorBuilder().build()); + return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector(): new V1LabelSelectorBuilder().build()); } - - public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelectorLike( - V1LabelSelector item) { - return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector() : item); + public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { + return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector(): item); } - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - _visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - _visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + if (namespaceSelector!=null){ this.namespaceSelector= new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector);} else { this.namespaceSelector = null; _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelector() { return new V1PodAffinityTermFluentImpl.NamespaceSelectorNestedImpl(); } - - public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item) { + public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { return new V1PodAffinityTermFluentImpl.NamespaceSelectorNestedImpl(item); } - public V1PodAffinityTermFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null - ? getNamespaceSelector() - : new V1LabelSelectorBuilder().build()); + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): new V1LabelSelectorBuilder().build()); } - - public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item) { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null ? getNamespaceSelector() : item); + public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): item); } - - public A addToNamespaces(Integer index, String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } + public A addToNamespaces(Integer index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} this.namespaces.add(index, item); - return (A) this; + return (A)this; } - - public A setToNamespaces(Integer index, String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.set(index, item); - return (A) this; + public A setToNamespaces(Integer index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + this.namespaces.set(index, item); return (A)this; } - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; } - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; } - public A removeFromNamespaces(java.lang.String... items) { - for (String item : items) { - if (this.namespaces != null) { - this.namespaces.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.namespaces!= null){ this.namespaces.remove(item);}} return (A)this; } - public A removeAllFromNamespaces(Collection items) { - for (String item : items) { - if (this.namespaces != null) { - this.namespaces.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.namespaces!= null){ this.namespaces.remove(item);}} return (A)this; } - public List getNamespaces() { return this.namespaces; } - public String getNamespace(Integer index) { return this.namespaces.get(index); } - public String getFirstNamespace() { return this.namespaces.get(0); } - public String getLastNamespace() { return this.namespaces.get(namespaces.size() - 1); } - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: namespaces) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: namespaces) { if(predicate.test(item)){ return true;} } return false; } - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); - } - } else { - this.namespaces = null; - } - return (A) this; + if (namespaces != null) {this.namespaces = new ArrayList(); for (String item : namespaces){this.addToNamespaces(item);}} else { this.namespaces = null;} return (A) this; } - public A withNamespaces(java.lang.String... namespaces) { - if (this.namespaces != null) { - this.namespaces.clear(); - } - if (namespaces != null) { - for (String item : namespaces) { - this.addToNamespaces(item); - } - } - return (A) this; + if (this.namespaces != null) {this.namespaces.clear();} + if (namespaces != null) {for (String item :namespaces){ this.addToNamespaces(item);}} return (A) this; } - public Boolean hasNamespaces() { return namespaces != null && !namespaces.isEmpty(); } - public String getTopologyKey() { return this.topologyKey; } - public A withTopologyKey(String topologyKey) { - this.topologyKey = topologyKey; - return (A) this; + this.topologyKey=topologyKey; return (A) this; } - public Boolean hasTopologyKey() { return this.topologyKey != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodAffinityTermFluentImpl that = (V1PodAffinityTermFluentImpl) o; - if (labelSelector != null - ? !labelSelector.equals(that.labelSelector) - : that.labelSelector != null) return false; - if (namespaceSelector != null - ? !namespaceSelector.equals(that.namespaceSelector) - : that.namespaceSelector != null) return false; - if (namespaces != null ? !namespaces.equals(that.namespaces) : that.namespaces != null) - return false; - if (topologyKey != null ? !topologyKey.equals(that.topologyKey) : that.topologyKey != null) - return false; + if (labelSelector != null ? !labelSelector.equals(that.labelSelector) :that.labelSelector != null) return false; + if (namespaceSelector != null ? !namespaceSelector.equals(that.namespaceSelector) :that.namespaceSelector != null) return false; + if (namespaces != null ? !namespaces.equals(that.namespaces) :that.namespaces != null) return false; + if (topologyKey != null ? !topologyKey.equals(that.topologyKey) :that.topologyKey != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - labelSelector, namespaceSelector, namespaces, topologyKey, super.hashCode()); + return java.util.Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelector != null) { - sb.append("labelSelector:"); - sb.append(labelSelector + ","); - } - if (namespaceSelector != null) { - sb.append("namespaceSelector:"); - sb.append(namespaceSelector + ","); - } - if (namespaces != null && !namespaces.isEmpty()) { - sb.append("namespaces:"); - sb.append(namespaces + ","); - } - if (topologyKey != null) { - sb.append("topologyKey:"); - sb.append(topologyKey); - } + if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } + if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } + if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } + if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey); } sb.append("}"); return sb.toString(); } - - class LabelSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1PodAffinityTermFluent.LabelSelectorNested, Nested { + class LabelSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1PodAffinityTermFluent.LabelSelectorNested,Nested{ LabelSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - LabelSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1PodAffinityTermFluentImpl.this.withLabelSelector(builder.build()); } - public N endLabelSelector() { return and(); } + } - - class NamespaceSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1PodAffinityTermFluent.NamespaceSelectorNested, Nested { + class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1PodAffinityTermFluent.NamespaceSelectorNested,Nested{ NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - NamespaceSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1PodAffinityTermFluentImpl.this.withNamespaceSelector(builder.build()); } - public N endNamespaceSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java index 77f8adfb0b..abb63d1bb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluentImpl implements VisitableBuilder{ public V1PodAntiAffinityBuilder() { this(false); } - public V1PodAntiAffinityBuilder(Boolean validationEnabled) { this(new V1PodAntiAffinity(), validationEnabled); } - public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent) { this(fluent, false); } - - public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent, Boolean validationEnabled) { + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodAntiAffinity(), validationEnabled); } - - public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent, V1PodAntiAffinity instance) { + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,V1PodAntiAffinity instance) { this(fluent, instance, false); } + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,V1PodAntiAffinity instance,Boolean validationEnabled) { + this.fluent = fluent; + fluent.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - public V1PodAntiAffinityBuilder( - V1PodAntiAffinityFluent fluent, V1PodAntiAffinity instance, Boolean validationEnabled) { - this.fluent = fluent; - fluent.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + fluent.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - fluent.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance) { - this(instance, false); + this(instance,false); } + public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance,Boolean validationEnabled) { + this.fluent = this; + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance, Boolean validationEnabled) { - this.fluent = this; - this.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - - this.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodAntiAffinityFluent fluent; Boolean validationEnabled; - public V1PodAntiAffinity build() { V1PodAntiAffinity buildable = new V1PodAntiAffinity(); - buildable.setPreferredDuringSchedulingIgnoredDuringExecution( - fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); - buildable.setRequiredDuringSchedulingIgnoredDuringExecution( - fluent.getRequiredDuringSchedulingIgnoredDuringExecution()); + buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); + buildable.setRequiredDuringSchedulingIgnoredDuringExecution(fluent.getRequiredDuringSchedulingIgnoredDuringExecution()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java index 0f5a45a0ee..2200bf73af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java @@ -1,193 +1,90 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodAntiAffinityFluent> extends Fluent { - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item); - - public A setToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item); - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); - - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PodAntiAffinityFluent> extends Fluent{ + public A addToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item); + public A setToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item); + public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + /** - * This method has been deprecated, please use method - * buildPreferredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildPreferredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getPreferredDuringSchedulingIgnoredDuringExecution(); - public List buildPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( - Integer index); - + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(Integer index); public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - List preferredDuringSchedulingIgnoredDuringExecution); - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... - preferredDuringSchedulingIgnoredDuringExecution); - + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution); + public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution); public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1WeightedPodAffinityTerm item); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editFirstPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editLastPreferredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item); - - public A setToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item); - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); - - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); - - public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - Collection items); - - public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1WeightedPodAffinityTerm item); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A addToRequiredDuringSchedulingIgnoredDuringExecution(Integer index,V1PodAffinityTerm item); + public A setToRequiredDuringSchedulingIgnoredDuringExecution(Integer index,V1PodAffinityTerm item); + public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); + public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items); + public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + /** - * This method has been deprecated, please use method - * buildRequiredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildRequiredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getRequiredDuringSchedulingIgnoredDuringExecution(); - public List buildRequiredDuringSchedulingIgnoredDuringExecution(); - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution(); - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - List requiredDuringSchedulingIgnoredDuringExecution); - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... - requiredDuringSchedulingIgnoredDuringExecution); - + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution); + public A withRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... requiredDuringSchedulingIgnoredDuringExecution); public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1PodAffinityTerm item); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editFirstRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editLastRequiredDuringSchedulingIgnoredDuringExecution(); - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate); - - public interface PreferredDuringSchedulingIgnoredDuringExecutionNested - extends Nested, - V1WeightedPodAffinityTermFluent< - V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> { + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1PodAffinityTerm item); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(Integer index); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate); + public interface PreferredDuringSchedulingIgnoredDuringExecutionNested extends Nested,V1WeightedPodAffinityTermFluent>{ public N and(); - public N endPreferredDuringSchedulingIgnoredDuringExecution(); + } - - public interface RequiredDuringSchedulingIgnoredDuringExecutionNested - extends Nested, - V1PodAffinityTermFluent< - V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> { + public interface RequiredDuringSchedulingIgnoredDuringExecutionNested extends Nested,V1PodAffinityTermFluent>{ public N and(); - public N endRequiredDuringSchedulingIgnoredDuringExecution(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java index 7587ebc4f8..1ba2635f05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java @@ -1,140 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodAntiAffinityFluentImpl> extends BaseFluent - implements V1PodAntiAffinityFluent { - public V1PodAntiAffinityFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodAntiAffinityFluentImpl> extends BaseFluent implements V1PodAntiAffinityFluent{ + public V1PodAntiAffinityFluentImpl() { + } public V1PodAntiAffinityFluentImpl(V1PodAntiAffinity instance) { - this.withPreferredDuringSchedulingIgnoredDuringExecution( - instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution( - instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - private ArrayList - preferredDuringSchedulingIgnoredDuringExecution; + } + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; private ArrayList requiredDuringSchedulingIgnoredDuringExecution; - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables - .get("preferredDuringSchedulingIgnoredDuringExecution") - .add( - index >= 0 - ? index - : _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size(), - builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add( - index >= 0 ? index : preferredDuringSchedulingIgnoredDuringExecution.size(), builder); - return (A) this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index >= 0 ? index : _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size(), builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(index >= 0 ? index : preferredDuringSchedulingIgnoredDuringExecution.size(), builder); return (A)this; } - - public A setToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } + public A setToPreferredDuringSchedulingIgnoredDuringExecution(Integer index,V1WeightedPodAffinityTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 - || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); - } - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + return (A)this; } - - public A addToPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = - preferredDuringSchedulingIgnoredDuringExecution.iterator(); + final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1WeightedPodAffinityTermBuilder builder = each.next(); @@ -143,261 +66,104 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( each.remove(); } } - return (A) this; + return (A)this; } - + /** - * This method has been deprecated, please use method - * buildPreferredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildPreferredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - ? build(preferredDuringSchedulingIgnoredDuringExecution) - : null; + return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - ? build(preferredDuringSchedulingIgnoredDuringExecution) - : null; + return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( - Integer index) { + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution - .get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1) - .build(); + return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } - - public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item: preferredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item: preferredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return true;} } return false; } - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - _visitables - .get("preferredDuringSchedulingIgnoredDuringExecution") - .removeAll(this.preferredDuringSchedulingIgnoredDuringExecution); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").removeAll(this.preferredDuringSchedulingIgnoredDuringExecution);} + if (preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution){this.addToPreferredDuringSchedulingIgnoredDuringExecution(item);}} else { this.preferredDuringSchedulingIgnoredDuringExecution = null;} return (A) this; } - - public A withPreferredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... - preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } - return (A) this; + public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) {this.preferredDuringSchedulingIgnoredDuringExecution.clear();} + if (preferredDuringSchedulingIgnoredDuringExecution != null) {for (V1WeightedPodAffinityTerm item :preferredDuringSchedulingIgnoredDuringExecution){ this.addToPreferredDuringSchedulingIgnoredDuringExecution(item);}} return (A) this; } - public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return preferredDuringSchedulingIgnoredDuringExecution != null - && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); + return preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new V1PodAntiAffinityFluentImpl - .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new V1PodAntiAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new V1PodAntiAffinityFluentImpl - .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1WeightedPodAffinityTerm item) { - return new V1PodAntiAffinityFluentImpl - .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1WeightedPodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) - throw new RuntimeException( - "Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) - throw new RuntimeException( - "Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - 0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editLastPreferredDuringSchedulingIgnoredDuringExecution() { + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) - throw new RuntimeException( - "Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested - editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution.size(); i++) { - if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException( - "Can't edit matching preferredDuringSchedulingIgnoredDuringExecution. No match found."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); - } - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } + for (int i=0;i();} + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(index >= 0 ? index : _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size(), builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(index >= 0 ? index : requiredDuringSchedulingIgnoredDuringExecution.size(), builder); return (A)this; + } + public A setToRequiredDuringSchedulingIgnoredDuringExecution(Integer index,V1PodAffinityTerm item) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables - .get("requiredDuringSchedulingIgnoredDuringExecution") - .add( - index >= 0 - ? index - : _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size(), - builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add( - index >= 0 ? index : requiredDuringSchedulingIgnoredDuringExecution.size(), builder); - return (A) this; + if (index < 0 || index >= _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { requiredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + return (A)this; } - - public A setToRequiredDuringSchedulingIgnoredDuringExecution( - Integer index, V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 - || index >= _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder); - } - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); - } - return (A) this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addToRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; } - - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); - } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; + public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder);if (this.requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);}} return (A)this; } - - public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - Collection items) { - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = - requiredDuringSchedulingIgnoredDuringExecution.iterator(); + final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PodAffinityTermBuilder builder = each.next(); @@ -406,259 +172,132 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( each.remove(); } } - return (A) this; + return (A)this; } - + /** - * This method has been deprecated, please use method - * buildRequiredDuringSchedulingIgnoredDuringExecution instead. - * + * This method has been deprecated, please use method buildRequiredDuringSchedulingIgnoredDuringExecution instead. * @return The buildable object. */ @Deprecated public List getRequiredDuringSchedulingIgnoredDuringExecution() { - return requiredDuringSchedulingIgnoredDuringExecution != null - ? build(requiredDuringSchedulingIgnoredDuringExecution) - : null; + return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public List buildRequiredDuringSchedulingIgnoredDuringExecution() { - return requiredDuringSchedulingIgnoredDuringExecution != null - ? build(requiredDuringSchedulingIgnoredDuringExecution) - : null; + return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution - .get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1) - .build(); + return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } - - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item: requiredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item: requiredDuringSchedulingIgnoredDuringExecution) { if(predicate.test(item)){ return true;} } return false; } - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - List requiredDuringSchedulingIgnoredDuringExecution) { - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - _visitables - .get("requiredDuringSchedulingIgnoredDuringExecution") - .removeAll(this.requiredDuringSchedulingIgnoredDuringExecution); - } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { - this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.requiredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; + public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").removeAll(this.requiredDuringSchedulingIgnoredDuringExecution);} + if (requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution){this.addToRequiredDuringSchedulingIgnoredDuringExecution(item);}} else { this.requiredDuringSchedulingIgnoredDuringExecution = null;} return (A) this; } - - public A withRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1PodAffinityTerm... - requiredDuringSchedulingIgnoredDuringExecution) { - if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution.clear(); - } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { - for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { - this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); - } - } - return (A) this; + public A withRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... requiredDuringSchedulingIgnoredDuringExecution) { + if (this.requiredDuringSchedulingIgnoredDuringExecution != null) {this.requiredDuringSchedulingIgnoredDuringExecution.clear();} + if (requiredDuringSchedulingIgnoredDuringExecution != null) {for (V1PodAffinityTerm item :requiredDuringSchedulingIgnoredDuringExecution){ this.addToRequiredDuringSchedulingIgnoredDuringExecution(item);}} return (A) this; } - public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return requiredDuringSchedulingIgnoredDuringExecution != null - && !requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); + return requiredDuringSchedulingIgnoredDuringExecution != null && !requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new V1PodAntiAffinityFluentImpl - .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - -1, item); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - Integer index, V1PodAffinityTerm item) { - return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - index, item); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Integer index,V1PodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { - if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) - throw new RuntimeException( - "Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { + if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); + return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) - throw new RuntimeException( - "Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - 0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editLastRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) - throw new RuntimeException( - "Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) throw new RuntimeException("Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); + return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - - public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested - editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i = 0; i < requiredDuringSchedulingIgnoredDuringExecution.size(); i++) { - if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException( - "Can't edit matching requiredDuringSchedulingIgnoredDuringExecution. No match found."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + for (int i=0;i - extends V1WeightedPodAffinityTermFluentImpl< - V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> - implements V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested, - Nested { - PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - Integer index, V1WeightedPodAffinityTerm item) { + class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1WeightedPodAffinityTermFluentImpl> implements V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested,Nested{ + PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(Integer index,V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } - PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; this.builder = new V1WeightedPodAffinityTermBuilder(this); } - V1WeightedPodAffinityTermBuilder builder; Integer index; - public N and() { - return (N) - V1PodAntiAffinityFluentImpl.this.setToPreferredDuringSchedulingIgnoredDuringExecution( - index, builder.build()); + return (N) V1PodAntiAffinityFluentImpl.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); } - public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } + } - - class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl - extends V1PodAffinityTermFluentImpl< - V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> - implements V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested, - Nested { - RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - Integer index, V1PodAffinityTerm item) { + class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1PodAffinityTermFluentImpl> implements V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested,Nested{ + RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(Integer index,V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } - RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; this.builder = new V1PodAffinityTermBuilder(this); } - V1PodAffinityTermBuilder builder; Integer index; - public N and() { - return (N) - V1PodAntiAffinityFluentImpl.this.setToRequiredDuringSchedulingIgnoredDuringExecution( - index, builder.build()); + return (N) V1PodAntiAffinityFluentImpl.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index,builder.build()); } - public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java index 2db33bb50e..d6e5105013 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodBuilder extends V1PodFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodBuilder extends V1PodFluentImpl implements VisitableBuilder{ public V1PodBuilder() { this(false); } - public V1PodBuilder(Boolean validationEnabled) { this(new V1Pod(), validationEnabled); } - public V1PodBuilder(V1PodFluent fluent) { this(fluent, false); } - - public V1PodBuilder(V1PodFluent fluent, Boolean validationEnabled) { + public V1PodBuilder(V1PodFluent fluent,Boolean validationEnabled) { this(fluent, new V1Pod(), validationEnabled); } - - public V1PodBuilder(V1PodFluent fluent, V1Pod instance) { + public V1PodBuilder(V1PodFluent fluent,V1Pod instance) { this(fluent, instance, false); } - - public V1PodBuilder(V1PodFluent fluent, V1Pod instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodBuilder(V1PodFluent fluent,V1Pod instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -48,15 +30,13 @@ public V1PodBuilder(V1PodFluent fluent, V1Pod instance, Boolean validationEna fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodBuilder(V1Pod instance) { - this(instance, false); + this(instance,false); } - - public V1PodBuilder(V1Pod instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodBuilder(V1Pod instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -67,12 +47,10 @@ public V1PodBuilder(V1Pod instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodFluent fluent; Boolean validationEnabled; - public V1Pod build() { V1Pod buildable = new V1Pod(); buildable.setApiVersion(fluent.getApiVersion()); @@ -82,4 +60,5 @@ public V1Pod build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java index 65126d771d..c2223f2169 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodConditionBuilder extends V1PodConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodConditionBuilder extends V1PodConditionFluentImpl implements VisitableBuilder{ public V1PodConditionBuilder() { this(false); } - public V1PodConditionBuilder(Boolean validationEnabled) { this(new V1PodCondition(), validationEnabled); } - public V1PodConditionBuilder(V1PodConditionFluent fluent) { this(fluent, false); } - - public V1PodConditionBuilder(V1PodConditionFluent fluent, Boolean validationEnabled) { + public V1PodConditionBuilder(V1PodConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodCondition(), validationEnabled); } - - public V1PodConditionBuilder(V1PodConditionFluent fluent, V1PodCondition instance) { + public V1PodConditionBuilder(V1PodConditionFluent fluent,V1PodCondition instance) { this(fluent, instance, false); } - - public V1PodConditionBuilder( - V1PodConditionFluent fluent, V1PodCondition instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodConditionBuilder(V1PodConditionFluent fluent,V1PodCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastProbeTime(instance.getLastProbeTime()); fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -51,15 +32,13 @@ public V1PodConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodConditionBuilder(V1PodCondition instance) { - this(instance, false); + this(instance,false); } - - public V1PodConditionBuilder(V1PodCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodConditionBuilder(V1PodCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -72,12 +51,10 @@ public V1PodConditionBuilder(V1PodCondition instance, Boolean validationEnabled) this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodConditionFluent fluent; Boolean validationEnabled; - public V1PodCondition build() { V1PodCondition buildable = new V1PodCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -88,4 +65,5 @@ public V1PodCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java index 8058af1242..67fe5009f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java @@ -1,55 +1,31 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodConditionFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodConditionFluent> extends Fluent{ public OffsetDateTime getLastProbeTime(); - public A withLastProbeTime(OffsetDateTime lastProbeTime); - public Boolean hasLastProbeTime(); - public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java index 274edf7df4..5e3ba3eb82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodConditionFluentImpl> extends BaseFluent - implements V1PodConditionFluent { - public V1PodConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodConditionFluentImpl> extends BaseFluent implements V1PodConditionFluent{ + public V1PodConditionFluentImpl() { + } public V1PodConditionFluentImpl(V1PodCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); @@ -33,143 +26,94 @@ public V1PodConditionFluentImpl(V1PodCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + this.lastProbeTime=lastProbeTime; return (A) this; } - public Boolean hasLastProbeTime() { return this.lastProbeTime != null; } - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodConditionFluentImpl that = (V1PodConditionFluentImpl) o; - if (lastProbeTime != null - ? !lastProbeTime.equals(that.lastProbeTime) - : that.lastProbeTime != null) return false; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastProbeTime != null ? !lastProbeTime.equals(that.lastProbeTime) :that.lastProbeTime != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastProbeTime != null) { - sb.append("lastProbeTime:"); - sb.append(lastProbeTime + ","); - } - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java index cf1c070b19..584cfb79ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluentImpl implements VisitableBuilder{ public V1PodDNSConfigBuilder() { this(false); } - public V1PodDNSConfigBuilder(Boolean validationEnabled) { this(new V1PodDNSConfig(), validationEnabled); } - public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent) { this(fluent, false); } - - public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent, Boolean validationEnabled) { + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodDNSConfig(), validationEnabled); } - - public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent, V1PodDNSConfig instance) { + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,V1PodDNSConfig instance) { this(fluent, instance, false); } - - public V1PodDNSConfigBuilder( - V1PodDNSConfigFluent fluent, V1PodDNSConfig instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,V1PodDNSConfig instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNameservers(instance.getNameservers()); fluent.withOptions(instance.getOptions()); fluent.withSearches(instance.getSearches()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodDNSConfigBuilder(V1PodDNSConfig instance) { - this(instance, false); + this(instance,false); } - - public V1PodDNSConfigBuilder(V1PodDNSConfig instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodDNSConfigBuilder(V1PodDNSConfig instance,Boolean validationEnabled) { + this.fluent = this; this.withNameservers(instance.getNameservers()); this.withOptions(instance.getOptions()); this.withSearches(instance.getSearches()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodDNSConfigFluent fluent; Boolean validationEnabled; - public V1PodDNSConfig build() { V1PodDNSConfig buildable = new V1PodDNSConfig(); buildable.setNameservers(fluent.getNameservers()); @@ -73,4 +50,5 @@ public V1PodDNSConfig build() { buildable.setSearches(fluent.getSearches()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java index cad3687e58..4a6bcfcedb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java @@ -1,145 +1,86 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodDNSConfigFluent> extends Fluent { - public A addToNameservers(Integer index, String item); - - public A setToNameservers(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PodDNSConfigFluent> extends Fluent{ + public A addToNameservers(Integer index,String item); + public A setToNameservers(Integer index,String item); public A addToNameservers(java.lang.String... items); - public A addAllToNameservers(Collection items); - public A removeFromNameservers(java.lang.String... items); - public A removeAllFromNameservers(Collection items); - public List getNameservers(); - public String getNameserver(Integer index); - public String getFirstNameserver(); - public String getLastNameserver(); - public String getMatchingNameserver(Predicate predicate); - public Boolean hasMatchingNameserver(Predicate predicate); - public A withNameservers(List nameservers); - public A withNameservers(java.lang.String... nameservers); - public Boolean hasNameservers(); - - public A addToOptions(Integer index, V1PodDNSConfigOption item); - - public A setToOptions(Integer index, V1PodDNSConfigOption item); - + public A addToOptions(Integer index,V1PodDNSConfigOption item); + public A setToOptions(Integer index,V1PodDNSConfigOption item); public A addToOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items); - public A addAllToOptions(Collection items); - public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items); - public A removeAllFromOptions(Collection items); - public A removeMatchingFromOptions(Predicate predicate); - + /** * This method has been deprecated, please use method buildOptions instead. - * * @return The buildable object. */ @Deprecated public List getOptions(); - public List buildOptions(); - public V1PodDNSConfigOption buildOption(Integer index); - public V1PodDNSConfigOption buildFirstOption(); - public V1PodDNSConfigOption buildLastOption(); - public V1PodDNSConfigOption buildMatchingOption(Predicate predicate); - public Boolean hasMatchingOption(Predicate predicate); - public A withOptions(List options); - public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... options); - public Boolean hasOptions(); - public V1PodDNSConfigFluent.OptionsNested addNewOption(); - public V1PodDNSConfigFluent.OptionsNested addNewOptionLike(V1PodDNSConfigOption item); - - public V1PodDNSConfigFluent.OptionsNested setNewOptionLike( - Integer index, V1PodDNSConfigOption item); - + public V1PodDNSConfigFluent.OptionsNested setNewOptionLike(Integer index,V1PodDNSConfigOption item); public V1PodDNSConfigFluent.OptionsNested editOption(Integer index); - public V1PodDNSConfigFluent.OptionsNested editFirstOption(); - public V1PodDNSConfigFluent.OptionsNested editLastOption(); - - public V1PodDNSConfigFluent.OptionsNested editMatchingOption( - Predicate predicate); - - public A addToSearches(Integer index, String item); - - public A setToSearches(Integer index, String item); - + public V1PodDNSConfigFluent.OptionsNested editMatchingOption(Predicate predicate); + public A addToSearches(Integer index,String item); + public A setToSearches(Integer index,String item); public A addToSearches(java.lang.String... items); - public A addAllToSearches(Collection items); - public A removeFromSearches(java.lang.String... items); - public A removeAllFromSearches(Collection items); - public List getSearches(); - public String getSearch(Integer index); - public String getFirstSearch(); - public String getLastSearch(); - public String getMatchingSearch(Predicate predicate); - public Boolean hasMatchingSearch(Predicate predicate); - public A withSearches(List searches); - public A withSearches(java.lang.String... searches); - public Boolean hasSearches(); - - public interface OptionsNested - extends Nested, V1PodDNSConfigOptionFluent> { + public interface OptionsNested extends Nested,V1PodDNSConfigOptionFluent>{ public N and(); - public N endOption(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java index 1688469378..7fec27e777 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java @@ -1,233 +1,114 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodDNSConfigFluentImpl> extends BaseFluent - implements V1PodDNSConfigFluent { - public V1PodDNSConfigFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodDNSConfigFluentImpl> extends BaseFluent implements V1PodDNSConfigFluent{ + public V1PodDNSConfigFluentImpl() { + } public V1PodDNSConfigFluentImpl(V1PodDNSConfig instance) { this.withNameservers(instance.getNameservers()); this.withOptions(instance.getOptions()); this.withSearches(instance.getSearches()); - } + } private List nameservers; private ArrayList options; private List searches; - - public A addToNameservers(Integer index, String item) { - if (this.nameservers == null) { - this.nameservers = new ArrayList(); - } + public A addToNameservers(Integer index,String item) { + if (this.nameservers == null) {this.nameservers = new ArrayList();} this.nameservers.add(index, item); - return (A) this; + return (A)this; } - - public A setToNameservers(Integer index, String item) { - if (this.nameservers == null) { - this.nameservers = new ArrayList(); - } - this.nameservers.set(index, item); - return (A) this; + public A setToNameservers(Integer index,String item) { + if (this.nameservers == null) {this.nameservers = new ArrayList();} + this.nameservers.set(index, item); return (A)this; } - public A addToNameservers(java.lang.String... items) { - if (this.nameservers == null) { - this.nameservers = new ArrayList(); - } - for (String item : items) { - this.nameservers.add(item); - } - return (A) this; + if (this.nameservers == null) {this.nameservers = new ArrayList();} + for (String item : items) {this.nameservers.add(item);} return (A)this; } - public A addAllToNameservers(Collection items) { - if (this.nameservers == null) { - this.nameservers = new ArrayList(); - } - for (String item : items) { - this.nameservers.add(item); - } - return (A) this; + if (this.nameservers == null) {this.nameservers = new ArrayList();} + for (String item : items) {this.nameservers.add(item);} return (A)this; } - public A removeFromNameservers(java.lang.String... items) { - for (String item : items) { - if (this.nameservers != null) { - this.nameservers.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nameservers!= null){ this.nameservers.remove(item);}} return (A)this; } - public A removeAllFromNameservers(Collection items) { - for (String item : items) { - if (this.nameservers != null) { - this.nameservers.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nameservers!= null){ this.nameservers.remove(item);}} return (A)this; } - public List getNameservers() { return this.nameservers; } - public String getNameserver(Integer index) { return this.nameservers.get(index); } - public String getFirstNameserver() { return this.nameservers.get(0); } - public String getLastNameserver() { return this.nameservers.get(nameservers.size() - 1); } - public String getMatchingNameserver(Predicate predicate) { - for (String item : nameservers) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: nameservers) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNameserver(Predicate predicate) { - for (String item : nameservers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: nameservers) { if(predicate.test(item)){ return true;} } return false; } - public A withNameservers(List nameservers) { - if (nameservers != null) { - this.nameservers = new ArrayList(); - for (String item : nameservers) { - this.addToNameservers(item); - } - } else { - this.nameservers = null; - } - return (A) this; + if (nameservers != null) {this.nameservers = new ArrayList(); for (String item : nameservers){this.addToNameservers(item);}} else { this.nameservers = null;} return (A) this; } - public A withNameservers(java.lang.String... nameservers) { - if (this.nameservers != null) { - this.nameservers.clear(); - } - if (nameservers != null) { - for (String item : nameservers) { - this.addToNameservers(item); - } - } - return (A) this; + if (this.nameservers != null) {this.nameservers.clear();} + if (nameservers != null) {for (String item :nameservers){ this.addToNameservers(item);}} return (A) this; } - public Boolean hasNameservers() { return nameservers != null && !nameservers.isEmpty(); } - - public A addToOptions(Integer index, V1PodDNSConfigOption item) { - if (this.options == null) { - this.options = new ArrayList(); - } - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(index >= 0 ? index : _visitables.get("options").size(), builder); - this.options.add(index >= 0 ? index : options.size(), builder); - return (A) this; + public A addToOptions(Integer index,V1PodDNSConfigOption item) { + if (this.options == null) {this.options = new ArrayList();} + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(index >= 0 ? index : _visitables.get("options").size(), builder);this.options.add(index >= 0 ? index : options.size(), builder); return (A)this; } - - public A setToOptions(Integer index, V1PodDNSConfigOption item) { - if (this.options == null) { - this.options = new ArrayList(); - } + public A setToOptions(Integer index,V1PodDNSConfigOption item) { + if (this.options == null) {this.options = new ArrayList();} V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= _visitables.get("options").size()) { - _visitables.get("options").add(builder); - } else { - _visitables.get("options").set(index, builder); - } - if (index < 0 || index >= options.size()) { - options.add(builder); - } else { - options.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("options").size()) { _visitables.get("options").add(builder); } else { _visitables.get("options").set(index, builder);} + if (index < 0 || index >= options.size()) { options.add(builder); } else { options.set(index, builder);} + return (A)this; } - public A addToOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - if (this.options == null) { - this.options = new ArrayList(); - } - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(builder); - this.options.add(builder); - } - return (A) this; + if (this.options == null) {this.options = new ArrayList();} + for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(builder);this.options.add(builder);} return (A)this; } - public A addAllToOptions(Collection items) { - if (this.options == null) { - this.options = new ArrayList(); - } - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(builder); - this.options.add(builder); - } - return (A) this; + if (this.options == null) {this.options = new ArrayList();} + for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(builder);this.options.add(builder);} return (A)this; } - public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").remove(builder); - if (this.options != null) { - this.options.remove(builder); - } - } - return (A) this; + for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").remove(builder);if (this.options != null) {this.options.remove(builder);}} return (A)this; } - public A removeAllFromOptions(Collection items) { - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").remove(builder); - if (this.options != null) { - this.options.remove(builder); - } - } - return (A) this; + for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").remove(builder);if (this.options != null) {this.options.remove(builder);}} return (A)this; } - public A removeMatchingFromOptions(Predicate predicate) { if (options == null) return (A) this; final Iterator each = options.iterator(); @@ -239,301 +120,166 @@ public A removeMatchingFromOptions(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildOptions instead. - * * @return The buildable object. */ @Deprecated public List getOptions() { return options != null ? build(options) : null; } - public List buildOptions() { return options != null ? build(options) : null; } - public V1PodDNSConfigOption buildOption(Integer index) { return this.options.get(index).build(); } - public V1PodDNSConfigOption buildFirstOption() { return this.options.get(0).build(); } - public V1PodDNSConfigOption buildLastOption() { return this.options.get(options.size() - 1).build(); } - - public V1PodDNSConfigOption buildMatchingOption( - Predicate predicate) { - for (V1PodDNSConfigOptionBuilder item : options) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodDNSConfigOption buildMatchingOption(Predicate predicate) { + for (V1PodDNSConfigOptionBuilder item: options) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingOption(Predicate predicate) { - for (V1PodDNSConfigOptionBuilder item : options) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodDNSConfigOptionBuilder item: options) { if(predicate.test(item)){ return true;} } return false; } - public A withOptions(List options) { - if (this.options != null) { - _visitables.get("options").removeAll(this.options); - } - if (options != null) { - this.options = new ArrayList(); - for (V1PodDNSConfigOption item : options) { - this.addToOptions(item); - } - } else { - this.options = null; - } - return (A) this; + if (this.options != null) { _visitables.get("options").removeAll(this.options);} + if (options != null) {this.options = new ArrayList(); for (V1PodDNSConfigOption item : options){this.addToOptions(item);}} else { this.options = null;} return (A) this; } - public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... options) { - if (this.options != null) { - this.options.clear(); - } - if (options != null) { - for (V1PodDNSConfigOption item : options) { - this.addToOptions(item); - } - } - return (A) this; + if (this.options != null) {this.options.clear();} + if (options != null) {for (V1PodDNSConfigOption item :options){ this.addToOptions(item);}} return (A) this; } - public Boolean hasOptions() { return options != null && !options.isEmpty(); } - public V1PodDNSConfigFluent.OptionsNested addNewOption() { return new V1PodDNSConfigFluentImpl.OptionsNestedImpl(); } - public V1PodDNSConfigFluent.OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { return new V1PodDNSConfigFluentImpl.OptionsNestedImpl(-1, item); } - - public V1PodDNSConfigFluent.OptionsNested setNewOptionLike( - Integer index, V1PodDNSConfigOption item) { + public V1PodDNSConfigFluent.OptionsNested setNewOptionLike(Integer index,V1PodDNSConfigOption item) { return new V1PodDNSConfigFluentImpl.OptionsNestedImpl(index, item); } - public V1PodDNSConfigFluent.OptionsNested editOption(Integer index) { - if (options.size() <= index) - throw new RuntimeException("Can't edit options. Index exceeds size."); + if (options.size() <= index) throw new RuntimeException("Can't edit options. Index exceeds size."); return setNewOptionLike(index, buildOption(index)); } - public V1PodDNSConfigFluent.OptionsNested editFirstOption() { - if (options.size() == 0) - throw new RuntimeException("Can't edit first options. The list is empty."); + if (options.size() == 0) throw new RuntimeException("Can't edit first options. The list is empty."); return setNewOptionLike(0, buildOption(0)); } - public V1PodDNSConfigFluent.OptionsNested editLastOption() { int index = options.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last options. The list is empty."); return setNewOptionLike(index, buildOption(index)); } - - public V1PodDNSConfigFluent.OptionsNested editMatchingOption( - Predicate predicate) { + public V1PodDNSConfigFluent.OptionsNested editMatchingOption(Predicate predicate) { int index = -1; - for (int i = 0; i < options.size(); i++) { - if (predicate.test(options.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } + public A addToSearches(Integer index,String item) { + if (this.searches == null) {this.searches = new ArrayList();} this.searches.add(index, item); - return (A) this; + return (A)this; } - - public A setToSearches(Integer index, String item) { - if (this.searches == null) { - this.searches = new ArrayList(); - } - this.searches.set(index, item); - return (A) this; + public A setToSearches(Integer index,String item) { + if (this.searches == null) {this.searches = new ArrayList();} + this.searches.set(index, item); return (A)this; } - public A addToSearches(java.lang.String... items) { - if (this.searches == null) { - this.searches = new ArrayList(); - } - for (String item : items) { - this.searches.add(item); - } - return (A) this; + if (this.searches == null) {this.searches = new ArrayList();} + for (String item : items) {this.searches.add(item);} return (A)this; } - public A addAllToSearches(Collection items) { - if (this.searches == null) { - this.searches = new ArrayList(); - } - for (String item : items) { - this.searches.add(item); - } - return (A) this; + if (this.searches == null) {this.searches = new ArrayList();} + for (String item : items) {this.searches.add(item);} return (A)this; } - public A removeFromSearches(java.lang.String... items) { - for (String item : items) { - if (this.searches != null) { - this.searches.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.searches!= null){ this.searches.remove(item);}} return (A)this; } - public A removeAllFromSearches(Collection items) { - for (String item : items) { - if (this.searches != null) { - this.searches.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.searches!= null){ this.searches.remove(item);}} return (A)this; } - public List getSearches() { return this.searches; } - public String getSearch(Integer index) { return this.searches.get(index); } - public String getFirstSearch() { return this.searches.get(0); } - public String getLastSearch() { return this.searches.get(searches.size() - 1); } - public String getMatchingSearch(Predicate predicate) { - for (String item : searches) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: searches) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingSearch(Predicate predicate) { - for (String item : searches) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: searches) { if(predicate.test(item)){ return true;} } return false; } - public A withSearches(List searches) { - if (searches != null) { - this.searches = new ArrayList(); - for (String item : searches) { - this.addToSearches(item); - } - } else { - this.searches = null; - } - return (A) this; + if (searches != null) {this.searches = new ArrayList(); for (String item : searches){this.addToSearches(item);}} else { this.searches = null;} return (A) this; } - public A withSearches(java.lang.String... searches) { - if (this.searches != null) { - this.searches.clear(); - } - if (searches != null) { - for (String item : searches) { - this.addToSearches(item); - } - } - return (A) this; + if (this.searches != null) {this.searches.clear();} + if (searches != null) {for (String item :searches){ this.addToSearches(item);}} return (A) this; } - public Boolean hasSearches() { return searches != null && !searches.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodDNSConfigFluentImpl that = (V1PodDNSConfigFluentImpl) o; - if (nameservers != null ? !nameservers.equals(that.nameservers) : that.nameservers != null) - return false; - if (options != null ? !options.equals(that.options) : that.options != null) return false; - if (searches != null ? !searches.equals(that.searches) : that.searches != null) return false; + if (nameservers != null ? !nameservers.equals(that.nameservers) :that.nameservers != null) return false; + if (options != null ? !options.equals(that.options) :that.options != null) return false; + if (searches != null ? !searches.equals(that.searches) :that.searches != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(nameservers, options, searches, super.hashCode()); + return java.util.Objects.hash(nameservers, options, searches, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nameservers != null && !nameservers.isEmpty()) { - sb.append("nameservers:"); - sb.append(nameservers + ","); - } - if (options != null && !options.isEmpty()) { - sb.append("options:"); - sb.append(options + ","); - } - if (searches != null && !searches.isEmpty()) { - sb.append("searches:"); - sb.append(searches); - } + if (nameservers != null && !nameservers.isEmpty()) { sb.append("nameservers:"); sb.append(nameservers + ","); } + if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } + if (searches != null && !searches.isEmpty()) { sb.append("searches:"); sb.append(searches); } sb.append("}"); return sb.toString(); } - - class OptionsNestedImpl - extends V1PodDNSConfigOptionFluentImpl> - implements V1PodDNSConfigFluent.OptionsNested, Nested { - OptionsNestedImpl(Integer index, V1PodDNSConfigOption item) { + class OptionsNestedImpl extends V1PodDNSConfigOptionFluentImpl> implements V1PodDNSConfigFluent.OptionsNested,Nested{ + OptionsNestedImpl(Integer index,V1PodDNSConfigOption item) { this.index = index; this.builder = new V1PodDNSConfigOptionBuilder(this, item); } - OptionsNestedImpl() { this.index = -1; this.builder = new V1PodDNSConfigOptionBuilder(this); } - V1PodDNSConfigOptionBuilder builder; Integer index; - public N and() { - return (N) V1PodDNSConfigFluentImpl.this.setToOptions(index, builder.build()); + return (N) V1PodDNSConfigFluentImpl.this.setToOptions(index,builder.build()); } - public N endOption() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java index b75292ef8d..12c1a2c522 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PodDNSConfigOptionBuilder - extends V1PodDNSConfigOptionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodDNSConfigOptionBuilder extends V1PodDNSConfigOptionFluentImpl implements VisitableBuilder{ public V1PodDNSConfigOptionBuilder() { this(false); } - public V1PodDNSConfigOptionBuilder(Boolean validationEnabled) { this(new V1PodDNSConfigOption(), validationEnabled); } - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent) { this(fluent, false); } - - public V1PodDNSConfigOptionBuilder( - V1PodDNSConfigOptionFluent fluent, Boolean validationEnabled) { + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodDNSConfigOption(), validationEnabled); } - - public V1PodDNSConfigOptionBuilder( - V1PodDNSConfigOptionFluent fluent, V1PodDNSConfigOption instance) { + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,V1PodDNSConfigOption instance) { this(fluent, instance, false); } - - public V1PodDNSConfigOptionBuilder( - V1PodDNSConfigOptionFluent fluent, - V1PodDNSConfigOption instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,V1PodDNSConfigOption instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance) { - this(instance, false); + this(instance,false); } - - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodDNSConfigOptionFluent fluent; Boolean validationEnabled; - public V1PodDNSConfigOption build() { V1PodDNSConfigOption buildable = new V1PodDNSConfigOption(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java index 9900f398fe..e5362d813a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodDNSConfigOptionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodDNSConfigOptionFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getValue(); - public A withValue(String value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java index f6283818de..747d63fbd8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodDNSConfigOptionFluentImpl> - extends BaseFluent implements V1PodDNSConfigOptionFluent { - public V1PodDNSConfigOptionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodDNSConfigOptionFluentImpl> extends BaseFluent implements V1PodDNSConfigOptionFluent{ + public V1PodDNSConfigOptionFluentImpl() { + } public V1PodDNSConfigOptionFluentImpl(V1PodDNSConfigOption instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); - } + } private String name; private String value; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodDNSConfigOptionFluentImpl that = (V1PodDNSConfigOptionFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return java.util.Objects.hash(name, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java index ddf54a26eb..407bdc88d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodDisruptionBudgetBuilder - extends V1PodDisruptionBudgetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodDisruptionBudgetBuilder extends V1PodDisruptionBudgetFluentImpl implements VisitableBuilder{ public V1PodDisruptionBudgetBuilder() { this(false); } - public V1PodDisruptionBudgetBuilder(Boolean validationEnabled) { this(new V1PodDisruptionBudget(), validationEnabled); } - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent) { this(fluent, false); } - - public V1PodDisruptionBudgetBuilder( - V1PodDisruptionBudgetFluent fluent, Boolean validationEnabled) { + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudget(), validationEnabled); } - - public V1PodDisruptionBudgetBuilder( - V1PodDisruptionBudgetFluent fluent, V1PodDisruptionBudget instance) { + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,V1PodDisruptionBudget instance) { this(fluent, instance, false); } - - public V1PodDisruptionBudgetBuilder( - V1PodDisruptionBudgetFluent fluent, - V1PodDisruptionBudget instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,V1PodDisruptionBudget instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,15 +30,13 @@ public V1PodDisruptionBudgetBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance) { - this(instance, false); + this(instance,false); } - - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -73,12 +47,10 @@ public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance, Boolean vali this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodDisruptionBudgetFluent fluent; Boolean validationEnabled; - public V1PodDisruptionBudget build() { V1PodDisruptionBudget buildable = new V1PodDisruptionBudget(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +60,5 @@ public V1PodDisruptionBudget build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java index 9ad4fa78e2..41e4a80578 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java @@ -1,130 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1PodDisruptionBudgetFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PodDisruptionBudgetFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadata(); - public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PodDisruptionBudgetFluent.MetadataNested editMetadata(); - public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadata(); - public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PodDisruptionBudgetSpec getSpec(); - public V1PodDisruptionBudgetSpec buildSpec(); - public A withSpec(V1PodDisruptionBudgetSpec spec); - public Boolean hasSpec(); - public V1PodDisruptionBudgetFluent.SpecNested withNewSpec(); - public V1PodDisruptionBudgetFluent.SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item); - public V1PodDisruptionBudgetFluent.SpecNested editSpec(); - public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpec(); - - public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpecLike( - V1PodDisruptionBudgetSpec item); - + public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpecLike(V1PodDisruptionBudgetSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PodDisruptionBudgetStatus getStatus(); - public V1PodDisruptionBudgetStatus buildStatus(); - public A withStatus(V1PodDisruptionBudgetStatus status); - public Boolean hasStatus(); - public V1PodDisruptionBudgetFluent.StatusNested withNewStatus(); - - public V1PodDisruptionBudgetFluent.StatusNested withNewStatusLike( - V1PodDisruptionBudgetStatus item); - + public V1PodDisruptionBudgetFluent.StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item); public V1PodDisruptionBudgetFluent.StatusNested editStatus(); - public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatus(); - - public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatusLike( - V1PodDisruptionBudgetStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1PodDisruptionBudgetSpecFluent> { + public interface SpecNested extends Nested,V1PodDisruptionBudgetSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1PodDisruptionBudgetStatusFluent> { + public interface StatusNested extends Nested,V1PodDisruptionBudgetStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java index d4da62f0d6..a93e10749b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodDisruptionBudgetFluentImpl> - extends BaseFluent implements V1PodDisruptionBudgetFluent { - public V1PodDisruptionBudgetFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodDisruptionBudgetFluentImpl> extends BaseFluent implements V1PodDisruptionBudgetFluent{ + public V1PodDisruptionBudgetFluentImpl() { + } public V1PodDisruptionBudgetFluentImpl(V1PodDisruptionBudget instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,303 +25,205 @@ public V1PodDisruptionBudgetFluentImpl(V1PodDisruptionBudget instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PodDisruptionBudgetSpecBuilder spec; private V1PodDisruptionBudgetStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadata() { return new V1PodDisruptionBudgetFluentImpl.MetadataNestedImpl(); } - public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodDisruptionBudgetFluentImpl.MetadataNestedImpl(item); } - public V1PodDisruptionBudgetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PodDisruptionBudgetSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1PodDisruptionBudgetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1PodDisruptionBudgetSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1PodDisruptionBudgetSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1PodDisruptionBudgetSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1PodDisruptionBudgetFluent.SpecNested withNewSpec() { return new V1PodDisruptionBudgetFluentImpl.SpecNestedImpl(); } - public V1PodDisruptionBudgetFluent.SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { return new V1PodDisruptionBudgetFluentImpl.SpecNestedImpl(item); } - public V1PodDisruptionBudgetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1PodDisruptionBudgetSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1PodDisruptionBudgetSpecBuilder().build()); } - - public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpecLike( - V1PodDisruptionBudgetSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpecLike(V1PodDisruptionBudgetSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PodDisruptionBudgetStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1PodDisruptionBudgetStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1PodDisruptionBudgetStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1PodDisruptionBudgetStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1PodDisruptionBudgetStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1PodDisruptionBudgetFluent.StatusNested withNewStatus() { return new V1PodDisruptionBudgetFluentImpl.StatusNestedImpl(); } - - public V1PodDisruptionBudgetFluent.StatusNested withNewStatusLike( - V1PodDisruptionBudgetStatus item) { + public V1PodDisruptionBudgetFluent.StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item) { return new V1PodDisruptionBudgetFluentImpl.StatusNestedImpl(item); } - public V1PodDisruptionBudgetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1PodDisruptionBudgetStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1PodDisruptionBudgetStatusBuilder().build()); } - - public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatusLike( - V1PodDisruptionBudgetStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodDisruptionBudgetFluentImpl that = (V1PodDisruptionBudgetFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1PodDisruptionBudgetFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PodDisruptionBudgetFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PodDisruptionBudgetFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1PodDisruptionBudgetSpecFluentImpl> - implements V1PodDisruptionBudgetFluent.SpecNested, Nested { + class SpecNestedImpl extends V1PodDisruptionBudgetSpecFluentImpl> implements V1PodDisruptionBudgetFluent.SpecNested,Nested{ SpecNestedImpl(V1PodDisruptionBudgetSpec item) { this.builder = new V1PodDisruptionBudgetSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1PodDisruptionBudgetSpecBuilder(this); } - V1PodDisruptionBudgetSpecBuilder builder; - public N and() { return (N) V1PodDisruptionBudgetFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1PodDisruptionBudgetStatusFluentImpl> - implements V1PodDisruptionBudgetFluent.StatusNested, Nested { + class StatusNestedImpl extends V1PodDisruptionBudgetStatusFluentImpl> implements V1PodDisruptionBudgetFluent.StatusNested,Nested{ StatusNestedImpl(V1PodDisruptionBudgetStatus item) { this.builder = new V1PodDisruptionBudgetStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1PodDisruptionBudgetStatusBuilder(this); } - V1PodDisruptionBudgetStatusBuilder builder; - public N and() { return (N) V1PodDisruptionBudgetFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java index 72185b25d7..9c7a7b6985 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodDisruptionBudgetListBuilder - extends V1PodDisruptionBudgetListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodDisruptionBudgetListBuilder extends V1PodDisruptionBudgetListFluentImpl implements VisitableBuilder{ public V1PodDisruptionBudgetListBuilder() { this(false); } - public V1PodDisruptionBudgetListBuilder(Boolean validationEnabled) { this(new V1PodDisruptionBudgetList(), validationEnabled); } - public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent) { this(fluent, false); } - - public V1PodDisruptionBudgetListBuilder( - V1PodDisruptionBudgetListFluent fluent, Boolean validationEnabled) { + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudgetList(), validationEnabled); } - - public V1PodDisruptionBudgetListBuilder( - V1PodDisruptionBudgetListFluent fluent, V1PodDisruptionBudgetList instance) { + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,V1PodDisruptionBudgetList instance) { this(fluent, instance, false); } - - public V1PodDisruptionBudgetListBuilder( - V1PodDisruptionBudgetListFluent fluent, - V1PodDisruptionBudgetList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,V1PodDisruptionBudgetList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1PodDisruptionBudgetListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetList instance) { - this(instance, false); + this(instance,false); } - - public V1PodDisruptionBudgetListBuilder( - V1PodDisruptionBudgetList instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1PodDisruptionBudgetListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodDisruptionBudgetListFluent fluent; Boolean validationEnabled; - public V1PodDisruptionBudgetList build() { V1PodDisruptionBudgetList buildable = new V1PodDisruptionBudgetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1PodDisruptionBudgetList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java index 32572f238b..66424aa42f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java @@ -1,130 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PodDisruptionBudgetListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodDisruptionBudgetListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1PodDisruptionBudget item); - - public A setToItems(Integer index, V1PodDisruptionBudget item); - + public A addToItems(Integer index,V1PodDisruptionBudget item); + public A setToItems(Integer index,V1PodDisruptionBudget item); public A addToItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1PodDisruptionBudget buildItem(Integer index); - public V1PodDisruptionBudget buildFirstItem(); - public V1PodDisruptionBudget buildLastItem(); - public V1PodDisruptionBudget buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items); - public Boolean hasItems(); - public V1PodDisruptionBudgetListFluent.ItemsNested addNewItem(); - public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike(V1PodDisruptionBudget item); - - public V1PodDisruptionBudgetListFluent.ItemsNested setNewItemLike( - Integer index, V1PodDisruptionBudget item); - + public V1PodDisruptionBudgetListFluent.ItemsNested setNewItemLike(Integer index,V1PodDisruptionBudget item); public V1PodDisruptionBudgetListFluent.ItemsNested editItem(Integer index); - public V1PodDisruptionBudgetListFluent.ItemsNested editFirstItem(); - public V1PodDisruptionBudgetListFluent.ItemsNested editLastItem(); - - public V1PodDisruptionBudgetListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1PodDisruptionBudgetListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadata(); - public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1PodDisruptionBudgetListFluent.MetadataNested editMetadata(); - public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadata(); - public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1PodDisruptionBudgetFluent> { + public interface ItemsNested extends Nested,V1PodDisruptionBudgetFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java index 0f765e00a9..881116a591 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodDisruptionBudgetListFluentImpl> - extends BaseFluent implements V1PodDisruptionBudgetListFluent { - public V1PodDisruptionBudgetListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodDisruptionBudgetListFluentImpl> extends BaseFluent implements V1PodDisruptionBudgetListFluent{ + public V1PodDisruptionBudgetListFluentImpl() { + } public V1PodDisruptionBudgetListFluentImpl(V1PodDisruptionBudgetList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1PodDisruptionBudgetListFluentImpl(V1PodDisruptionBudgetList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1PodDisruptionBudget item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1PodDisruptionBudget item) { + if (this.items == null) {this.items = new ArrayList();} + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1PodDisruptionBudget item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1PodDisruptionBudget item) { + if (this.items == null) {this.items = new ArrayList();} V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,274 +81,176 @@ public A removeMatchingFromItems(Predicate predica each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1PodDisruptionBudget buildItem(Integer index) { return this.items.get(index).build(); } - public V1PodDisruptionBudget buildFirstItem() { return this.items.get(0).build(); } - public V1PodDisruptionBudget buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1PodDisruptionBudget buildMatchingItem( - Predicate predicate) { - for (V1PodDisruptionBudgetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodDisruptionBudget buildMatchingItem(Predicate predicate) { + for (V1PodDisruptionBudgetBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1PodDisruptionBudgetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodDisruptionBudgetBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PodDisruptionBudget item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1PodDisruptionBudget item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1PodDisruptionBudget item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1PodDisruptionBudget item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1PodDisruptionBudgetListFluent.ItemsNested addNewItem() { return new V1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(); } - public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike(V1PodDisruptionBudget item) { return new V1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1PodDisruptionBudgetListFluent.ItemsNested setNewItemLike( - Integer index, V1PodDisruptionBudget item) { + public V1PodDisruptionBudgetListFluent.ItemsNested setNewItemLike(Integer index,V1PodDisruptionBudget item) { return new V1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(index, item); } - public V1PodDisruptionBudgetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1PodDisruptionBudgetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1PodDisruptionBudgetListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1PodDisruptionBudgetListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1PodDisruptionBudgetListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1PodDisruptionBudgetListFluentImpl.MetadataNestedImpl(); } - public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1PodDisruptionBudgetListFluentImpl.MetadataNestedImpl(item); } - public V1PodDisruptionBudgetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodDisruptionBudgetListFluentImpl that = (V1PodDisruptionBudgetListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1PodDisruptionBudgetFluentImpl> - implements V1PodDisruptionBudgetListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1PodDisruptionBudget item) { + class ItemsNestedImpl extends V1PodDisruptionBudgetFluentImpl> implements V1PodDisruptionBudgetListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1PodDisruptionBudget item) { this.index = index; this.builder = new V1PodDisruptionBudgetBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1PodDisruptionBudgetBuilder(this); } - V1PodDisruptionBudgetBuilder builder; Integer index; - public N and() { - return (N) V1PodDisruptionBudgetListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1PodDisruptionBudgetListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1PodDisruptionBudgetListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1PodDisruptionBudgetListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1PodDisruptionBudgetListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java index df40696afe..08133f36fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1PodDisruptionBudgetSpecBuilder - extends V1PodDisruptionBudgetSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodDisruptionBudgetSpecBuilder extends V1PodDisruptionBudgetSpecFluentImpl implements VisitableBuilder{ public V1PodDisruptionBudgetSpecBuilder() { this(false); } - public V1PodDisruptionBudgetSpecBuilder(Boolean validationEnabled) { this(new V1PodDisruptionBudgetSpec(), validationEnabled); } - public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent) { this(fluent, false); } - - public V1PodDisruptionBudgetSpecBuilder( - V1PodDisruptionBudgetSpecFluent fluent, Boolean validationEnabled) { + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudgetSpec(), validationEnabled); } - - public V1PodDisruptionBudgetSpecBuilder( - V1PodDisruptionBudgetSpecFluent fluent, V1PodDisruptionBudgetSpec instance) { + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,V1PodDisruptionBudgetSpec instance) { this(fluent, instance, false); } - - public V1PodDisruptionBudgetSpecBuilder( - V1PodDisruptionBudgetSpecFluent fluent, - V1PodDisruptionBudgetSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,V1PodDisruptionBudgetSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMaxUnavailable(instance.getMaxUnavailable()); fluent.withMinAvailable(instance.getMinAvailable()); fluent.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpec instance) { - this(instance, false); + this(instance,false); } - - public V1PodDisruptionBudgetSpecBuilder( - V1PodDisruptionBudgetSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMaxUnavailable(instance.getMaxUnavailable()); this.withMinAvailable(instance.getMinAvailable()); this.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodDisruptionBudgetSpecFluent fluent; Boolean validationEnabled; - public V1PodDisruptionBudgetSpec build() { V1PodDisruptionBudgetSpec buildable = new V1PodDisruptionBudgetSpec(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); @@ -79,4 +50,5 @@ public V1PodDisruptionBudgetSpec build() { buildable.setSelector(fluent.getSelector()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java index 3efb5245c5..010101dc02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java @@ -1,74 +1,45 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodDisruptionBudgetSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodDisruptionBudgetSpecFluent> extends Fluent{ public IntOrString getMaxUnavailable(); - public A withMaxUnavailable(IntOrString maxUnavailable); - public Boolean hasMaxUnavailable(); - public A withNewMaxUnavailable(int value); - public A withNewMaxUnavailable(String value); - public IntOrString getMinAvailable(); - public A withMinAvailable(IntOrString minAvailable); - public Boolean hasMinAvailable(); - public A withNewMinAvailable(int value); - public A withNewMinAvailable(String value); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelector(); - - public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelectorLike( - V1LabelSelector item); - + public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); public V1PodDisruptionBudgetSpecFluent.SelectorNested editSelector(); - public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelector(); - - public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelectorLike( - V1LabelSelector item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java index 76c7b3bdc7..5583f1baa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java @@ -1,189 +1,132 @@ -/* -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.custom.IntOrString; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodDisruptionBudgetSpecFluentImpl> - extends BaseFluent implements V1PodDisruptionBudgetSpecFluent { - public V1PodDisruptionBudgetSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodDisruptionBudgetSpecFluentImpl> extends BaseFluent implements V1PodDisruptionBudgetSpecFluent{ + public V1PodDisruptionBudgetSpecFluentImpl() { + } public V1PodDisruptionBudgetSpecFluentImpl(V1PodDisruptionBudgetSpec instance) { this.withMaxUnavailable(instance.getMaxUnavailable()); this.withMinAvailable(instance.getMinAvailable()); this.withSelector(instance.getSelector()); - } + } private IntOrString maxUnavailable; private IntOrString minAvailable; private V1LabelSelectorBuilder selector; - public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; + this.maxUnavailable=maxUnavailable; return (A) this; } - public Boolean hasMaxUnavailable() { return this.maxUnavailable != null; } - public A withNewMaxUnavailable(int value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public A withNewMaxUnavailable(String value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public IntOrString getMinAvailable() { return this.minAvailable; } - public A withMinAvailable(IntOrString minAvailable) { - this.minAvailable = minAvailable; - return (A) this; + this.minAvailable=minAvailable; return (A) this; } - public Boolean hasMinAvailable() { return this.minAvailable != null; } - public A withNewMinAvailable(int value) { - return (A) withMinAvailable(new IntOrString(value)); + return (A)withMinAvailable(new IntOrString(value)); } - public A withNewMinAvailable(String value) { - return (A) withMinAvailable(new IntOrString(value)); + return (A)withMinAvailable(new IntOrString(value)); } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelector() { return new V1PodDisruptionBudgetSpecFluentImpl.SelectorNestedImpl(); } - - public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelectorLike( - V1LabelSelector item) { + public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1PodDisruptionBudgetSpecFluentImpl.SelectorNestedImpl(item); } - public V1PodDisruptionBudgetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - - public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelectorLike( - V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodDisruptionBudgetSpecFluentImpl that = (V1PodDisruptionBudgetSpecFluentImpl) o; - if (maxUnavailable != null - ? !maxUnavailable.equals(that.maxUnavailable) - : that.maxUnavailable != null) return false; - if (minAvailable != null ? !minAvailable.equals(that.minAvailable) : that.minAvailable != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; + if (maxUnavailable != null ? !maxUnavailable.equals(that.maxUnavailable) :that.maxUnavailable != null) return false; + if (minAvailable != null ? !minAvailable.equals(that.minAvailable) :that.minAvailable != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(maxUnavailable, minAvailable, selector, super.hashCode()); + return java.util.Objects.hash(maxUnavailable, minAvailable, selector, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxUnavailable != null) { - sb.append("maxUnavailable:"); - sb.append(maxUnavailable + ","); - } - if (minAvailable != null) { - sb.append("minAvailable:"); - sb.append(minAvailable + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector); - } + if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable + ","); } + if (minAvailable != null) { sb.append("minAvailable:"); sb.append(minAvailable + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector); } sb.append("}"); return sb.toString(); } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1PodDisruptionBudgetSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1PodDisruptionBudgetSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1PodDisruptionBudgetSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java index d5f8ff84a9..b3d14f2105 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodDisruptionBudgetStatusBuilder - extends V1PodDisruptionBudgetStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodDisruptionBudgetStatusBuilder extends V1PodDisruptionBudgetStatusFluentImpl implements VisitableBuilder{ public V1PodDisruptionBudgetStatusBuilder() { this(false); } - public V1PodDisruptionBudgetStatusBuilder(Boolean validationEnabled) { this(new V1PodDisruptionBudgetStatus(), validationEnabled); } - public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent) { this(fluent, false); } - - public V1PodDisruptionBudgetStatusBuilder( - V1PodDisruptionBudgetStatusFluent fluent, Boolean validationEnabled) { + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudgetStatus(), validationEnabled); } - - public V1PodDisruptionBudgetStatusBuilder( - V1PodDisruptionBudgetStatusFluent fluent, V1PodDisruptionBudgetStatus instance) { + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,V1PodDisruptionBudgetStatus instance) { this(fluent, instance, false); } - - public V1PodDisruptionBudgetStatusBuilder( - V1PodDisruptionBudgetStatusFluent fluent, - V1PodDisruptionBudgetStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,V1PodDisruptionBudgetStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); fluent.withCurrentHealthy(instance.getCurrentHealthy()); @@ -58,16 +34,13 @@ public V1PodDisruptionBudgetStatusBuilder( fluent.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatus instance) { - this(instance, false); + this(instance,false); } - - public V1PodDisruptionBudgetStatusBuilder( - V1PodDisruptionBudgetStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); this.withCurrentHealthy(instance.getCurrentHealthy()); @@ -82,12 +55,10 @@ public V1PodDisruptionBudgetStatusBuilder( this.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodDisruptionBudgetStatusFluent fluent; Boolean validationEnabled; - public V1PodDisruptionBudgetStatus build() { V1PodDisruptionBudgetStatus buildable = new V1PodDisruptionBudgetStatus(); buildable.setConditions(fluent.getConditions()); @@ -99,4 +70,5 @@ public V1PodDisruptionBudgetStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java index ce36ac9714..93ae729049 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java @@ -1,133 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodDisruptionBudgetStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1Condition item); - - public A setToConditions(Integer index, V1Condition item); + /** + * Generated + */ +public interface V1PodDisruptionBudgetStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1Condition item); + public A setToConditions(Integer index,V1Condition item); public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1Condition buildCondition(Integer index); - public V1Condition buildFirstCondition(); - public V1Condition buildLastCondition(); - public V1Condition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - public Boolean hasConditions(); - public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition(); - - public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewConditionLike( - V1Condition item); - - public V1PodDisruptionBudgetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1Condition item); - + public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewConditionLike(V1Condition item); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1Condition item); public V1PodDisruptionBudgetStatusFluent.ConditionsNested editCondition(Integer index); - public V1PodDisruptionBudgetStatusFluent.ConditionsNested editFirstCondition(); - public V1PodDisruptionBudgetStatusFluent.ConditionsNested editLastCondition(); - - public V1PodDisruptionBudgetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Integer getCurrentHealthy(); - public A withCurrentHealthy(Integer currentHealthy); - public Boolean hasCurrentHealthy(); - public Integer getDesiredHealthy(); - public A withDesiredHealthy(Integer desiredHealthy); - public Boolean hasDesiredHealthy(); - - public A addToDisruptedPods(String key, OffsetDateTime value); - - public A addToDisruptedPods(Map map); - + public A addToDisruptedPods(String key,OffsetDateTime value); + public A addToDisruptedPods(Map map); public A removeFromDisruptedPods(String key); - - public A removeFromDisruptedPods(Map map); - - public Map getDisruptedPods(); - - public A withDisruptedPods(Map disruptedPods); - + public A removeFromDisruptedPods(Map map); + public Map getDisruptedPods(); + public A withDisruptedPods(Map disruptedPods); public Boolean hasDisruptedPods(); - public Integer getDisruptionsAllowed(); - public A withDisruptionsAllowed(Integer disruptionsAllowed); - public Boolean hasDisruptionsAllowed(); - public Integer getExpectedPods(); - public A withExpectedPods(Integer expectedPods); - public Boolean hasExpectedPods(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - - public interface ConditionsNested - extends Nested, V1ConditionFluent> { + public interface ConditionsNested extends Nested,V1ConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java index 53e7fdfc12..e952e0f903 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java @@ -1,34 +1,31 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodDisruptionBudgetStatusFluentImpl> - extends BaseFluent implements V1PodDisruptionBudgetStatusFluent { - public V1PodDisruptionBudgetStatusFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodDisruptionBudgetStatusFluentImpl> extends BaseFluent implements V1PodDisruptionBudgetStatusFluent{ + public V1PodDisruptionBudgetStatusFluentImpl() { + } public V1PodDisruptionBudgetStatusFluentImpl(V1PodDisruptionBudgetStatus instance) { this.withConditions(instance.getConditions()); @@ -43,92 +40,40 @@ public V1PodDisruptionBudgetStatusFluentImpl(V1PodDisruptionBudgetStatus instanc this.withExpectedPods(instance.getExpectedPods()); this.withObservedGeneration(instance.getObservedGeneration()); - } + } private ArrayList conditions; private Integer currentHealthy; private Integer desiredHealthy; - private Map disruptedPods; + private Map disruptedPods; private Integer disruptionsAllowed; private Integer expectedPods; private Long observedGeneration; - - public A addToConditions(Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(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 addToConditions(Integer index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(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(Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(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; + 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.V1Condition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(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 ArrayList(); - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(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(); @@ -140,350 +85,193 @@ public A removeMatchingFromConditions(Predicate predicate) { each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1Condition buildMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1Condition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1Condition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition() { return new V1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(); } - - public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewConditionLike( - V1Condition item) { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewConditionLike(V1Condition item) { return new V1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1PodDisruptionBudgetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1Condition item) { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1Condition item) { return new V1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1PodDisruptionBudgetStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1PodDisruptionBudgetStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1PodDisruptionBudgetStatusFluent.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 V1PodDisruptionBudgetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i map) { - if (this.disruptedPods == null && map != null) { - this.disruptedPods = new LinkedHashMap(); - } - if (map != null) { - this.disruptedPods.putAll(map); - } - return (A) this; + public A addToDisruptedPods(Map map) { + if(this.disruptedPods == null && map != null) { this.disruptedPods = new LinkedHashMap(); } + if(map != null) { this.disruptedPods.putAll(map);} return (A)this; } - public A removeFromDisruptedPods(String key) { - if (this.disruptedPods == null) { - return (A) this; - } - if (key != null && this.disruptedPods != null) { - this.disruptedPods.remove(key); - } - return (A) this; + if(this.disruptedPods == null) { return (A) this; } + if(key != null && this.disruptedPods != null) {this.disruptedPods.remove(key);} return (A)this; } - - public A removeFromDisruptedPods(Map map) { - if (this.disruptedPods == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.disruptedPods != null) { - this.disruptedPods.remove(key); - } - } - } - return (A) this; + public A removeFromDisruptedPods(Map map) { + if(this.disruptedPods == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.disruptedPods != null){this.disruptedPods.remove(key);}}} return (A)this; } - - public Map getDisruptedPods() { + public Map getDisruptedPods() { return this.disruptedPods; } - - public A withDisruptedPods(Map disruptedPods) { - if (disruptedPods == null) { - this.disruptedPods = null; - } else { - this.disruptedPods = new LinkedHashMap(disruptedPods); - } - return (A) this; + public A withDisruptedPods(Map disruptedPods) { + if (disruptedPods == null) { this.disruptedPods = null;} else {this.disruptedPods = new LinkedHashMap(disruptedPods);} return (A) this; } - public Boolean hasDisruptedPods() { return this.disruptedPods != null; } - public Integer getDisruptionsAllowed() { return this.disruptionsAllowed; } - public A withDisruptionsAllowed(Integer disruptionsAllowed) { - this.disruptionsAllowed = disruptionsAllowed; - return (A) this; + this.disruptionsAllowed=disruptionsAllowed; return (A) this; } - public Boolean hasDisruptionsAllowed() { return this.disruptionsAllowed != null; } - public Integer getExpectedPods() { return this.expectedPods; } - public A withExpectedPods(Integer expectedPods) { - this.expectedPods = expectedPods; - return (A) this; + this.expectedPods=expectedPods; return (A) this; } - public Boolean hasExpectedPods() { return this.expectedPods != null; } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + this.observedGeneration=observedGeneration; return (A) this; } - public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodDisruptionBudgetStatusFluentImpl that = (V1PodDisruptionBudgetStatusFluentImpl) o; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (currentHealthy != null - ? !currentHealthy.equals(that.currentHealthy) - : that.currentHealthy != null) return false; - if (desiredHealthy != null - ? !desiredHealthy.equals(that.desiredHealthy) - : that.desiredHealthy != null) return false; - if (disruptedPods != null - ? !disruptedPods.equals(that.disruptedPods) - : that.disruptedPods != null) return false; - if (disruptionsAllowed != null - ? !disruptionsAllowed.equals(that.disruptionsAllowed) - : that.disruptionsAllowed != null) return false; - if (expectedPods != null ? !expectedPods.equals(that.expectedPods) : that.expectedPods != null) - return false; - if (observedGeneration != null - ? !observedGeneration.equals(that.observedGeneration) - : that.observedGeneration != null) return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (currentHealthy != null ? !currentHealthy.equals(that.currentHealthy) :that.currentHealthy != null) return false; + if (desiredHealthy != null ? !desiredHealthy.equals(that.desiredHealthy) :that.desiredHealthy != null) return false; + if (disruptedPods != null ? !disruptedPods.equals(that.disruptedPods) :that.disruptedPods != null) return false; + if (disruptionsAllowed != null ? !disruptionsAllowed.equals(that.disruptionsAllowed) :that.disruptionsAllowed != null) return false; + if (expectedPods != null ? !expectedPods.equals(that.expectedPods) :that.expectedPods != null) return false; + if (observedGeneration != null ? !observedGeneration.equals(that.observedGeneration) :that.observedGeneration != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - conditions, - currentHealthy, - desiredHealthy, - disruptedPods, - disruptionsAllowed, - expectedPods, - observedGeneration, - super.hashCode()); + return java.util.Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (currentHealthy != null) { - sb.append("currentHealthy:"); - sb.append(currentHealthy + ","); - } - if (desiredHealthy != null) { - sb.append("desiredHealthy:"); - sb.append(desiredHealthy + ","); - } - if (disruptedPods != null && !disruptedPods.isEmpty()) { - sb.append("disruptedPods:"); - sb.append(disruptedPods + ","); - } - if (disruptionsAllowed != null) { - sb.append("disruptionsAllowed:"); - sb.append(disruptionsAllowed + ","); - } - if (expectedPods != null) { - sb.append("expectedPods:"); - sb.append(expectedPods + ","); - } - if (observedGeneration != null) { - sb.append("observedGeneration:"); - sb.append(observedGeneration); - } + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (currentHealthy != null) { sb.append("currentHealthy:"); sb.append(currentHealthy + ","); } + if (desiredHealthy != null) { sb.append("desiredHealthy:"); sb.append(desiredHealthy + ","); } + if (disruptedPods != null && !disruptedPods.isEmpty()) { sb.append("disruptedPods:"); sb.append(disruptedPods + ","); } + if (disruptionsAllowed != null) { sb.append("disruptionsAllowed:"); sb.append(disruptionsAllowed + ","); } + if (expectedPods != null) { sb.append("expectedPods:"); sb.append(expectedPods + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } sb.append("}"); return sb.toString(); } - - class ConditionsNestedImpl - extends V1ConditionFluentImpl> - implements V1PodDisruptionBudgetStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1Condition item) { + class ConditionsNestedImpl extends V1ConditionFluentImpl> implements V1PodDisruptionBudgetStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1ConditionBuilder(this); } - V1ConditionBuilder builder; Integer index; - public N and() { - return (N) V1PodDisruptionBudgetStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1PodDisruptionBudgetStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java index aeffaa3a3f..9a6668d8da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java @@ -1,68 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1PodFailurePolicyBuilder - extends V1PodFailurePolicyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodFailurePolicyBuilder extends V1PodFailurePolicyFluentImpl implements VisitableBuilder{ public V1PodFailurePolicyBuilder() { this(false); } - public V1PodFailurePolicyBuilder(Boolean validationEnabled) { this(new V1PodFailurePolicy(), validationEnabled); } - public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent) { this(fluent, false); } - - public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent, Boolean validationEnabled) { + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodFailurePolicy(), validationEnabled); } - - public V1PodFailurePolicyBuilder( - V1PodFailurePolicyFluent fluent, V1PodFailurePolicy instance) { + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance) { this(fluent, instance, false); } - - public V1PodFailurePolicyBuilder( - V1PodFailurePolicyFluent fluent, V1PodFailurePolicy instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance) { - this(instance, false); + this(instance,false); } - - public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance,Boolean validationEnabled) { + this.fluent = this; this.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodFailurePolicyFluent fluent; Boolean validationEnabled; - public V1PodFailurePolicy build() { V1PodFailurePolicy buildable = new V1PodFailurePolicy(); buildable.setRules(fluent.getRules()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java index 712f420536..94449b1f5f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java @@ -1,86 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodFailurePolicyFluent> extends Fluent { - public A addToRules(Integer index, V1PodFailurePolicyRule item); - - public A setToRules(Integer index, V1PodFailurePolicyRule item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PodFailurePolicyFluent> extends Fluent{ + public A addToRules(Integer index,V1PodFailurePolicyRule item); + public A setToRules(Integer index,V1PodFailurePolicyRule item); public A addToRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items); - public A addAllToRules(Collection items); - public A removeFromRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items); - public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1PodFailurePolicyRule buildRule(Integer index); - public V1PodFailurePolicyRule buildFirstRule(); - public V1PodFailurePolicyRule buildLastRule(); - - public V1PodFailurePolicyRule buildMatchingRule( - Predicate predicate); - + public V1PodFailurePolicyRule buildMatchingRule(Predicate predicate); public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... rules); - public Boolean hasRules(); - public V1PodFailurePolicyFluent.RulesNested addNewRule(); - public V1PodFailurePolicyFluent.RulesNested addNewRuleLike(V1PodFailurePolicyRule item); - - public V1PodFailurePolicyFluent.RulesNested setNewRuleLike( - Integer index, V1PodFailurePolicyRule item); - + public V1PodFailurePolicyFluent.RulesNested setNewRuleLike(Integer index,V1PodFailurePolicyRule item); public V1PodFailurePolicyFluent.RulesNested editRule(Integer index); - public V1PodFailurePolicyFluent.RulesNested editFirstRule(); - public V1PodFailurePolicyFluent.RulesNested editLastRule(); - - public V1PodFailurePolicyFluent.RulesNested editMatchingRule( - Predicate predicate); - - public interface RulesNested - extends Nested, V1PodFailurePolicyRuleFluent> { + public V1PodFailurePolicyFluent.RulesNested editMatchingRule(Predicate predicate); + public interface RulesNested extends Nested,V1PodFailurePolicyRuleFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java index 5af3aea1be..1f67864569 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java @@ -1,111 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodFailurePolicyFluentImpl> - extends BaseFluent implements V1PodFailurePolicyFluent { - public V1PodFailurePolicyFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodFailurePolicyFluentImpl> extends BaseFluent implements V1PodFailurePolicyFluent{ + public V1PodFailurePolicyFluentImpl() { + } public V1PodFailurePolicyFluentImpl(V1PodFailurePolicy instance) { this.withRules(instance.getRules()); - } + } private ArrayList rules; - - public A addToRules(Integer index, V1PodFailurePolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1PodFailurePolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1PodFailurePolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1PodFailurePolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -117,172 +63,111 @@ public A removeMatchingFromRules(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1PodFailurePolicyRule buildRule(Integer index) { return this.rules.get(index).build(); } - public V1PodFailurePolicyRule buildFirstRule() { return this.rules.get(0).build(); } - public V1PodFailurePolicyRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - - public V1PodFailurePolicyRule buildMatchingRule( - Predicate predicate) { - for (V1PodFailurePolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodFailurePolicyRule buildMatchingRule(Predicate predicate) { + for (V1PodFailurePolicyRuleBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1PodFailurePolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodFailurePolicyRuleBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PodFailurePolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1PodFailurePolicyRule item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1PodFailurePolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1PodFailurePolicyRule item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1PodFailurePolicyFluent.RulesNested addNewRule() { return new V1PodFailurePolicyFluentImpl.RulesNestedImpl(); } - public V1PodFailurePolicyFluent.RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { return new V1PodFailurePolicyFluentImpl.RulesNestedImpl(-1, item); } - - public V1PodFailurePolicyFluent.RulesNested setNewRuleLike( - Integer index, V1PodFailurePolicyRule item) { + public V1PodFailurePolicyFluent.RulesNested setNewRuleLike(Integer index,V1PodFailurePolicyRule item) { return new V1PodFailurePolicyFluentImpl.RulesNestedImpl(index, item); } - public V1PodFailurePolicyFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1PodFailurePolicyFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1PodFailurePolicyFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1PodFailurePolicyFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1PodFailurePolicyFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1PodFailurePolicyRuleFluentImpl> - implements V1PodFailurePolicyFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1PodFailurePolicyRule item) { + class RulesNestedImpl extends V1PodFailurePolicyRuleFluentImpl> implements V1PodFailurePolicyFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1PodFailurePolicyRule item) { this.index = index; this.builder = new V1PodFailurePolicyRuleBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1PodFailurePolicyRuleBuilder(this); } - V1PodFailurePolicyRuleBuilder builder; Integer index; - public N and() { - return (N) V1PodFailurePolicyFluentImpl.this.setToRules(index, builder.build()); + return (N) V1PodFailurePolicyFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java index 49cb1be952..be6b0ecdb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java @@ -1,88 +1,54 @@ -/* -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.VisitableBuilder; - -public class V1PodFailurePolicyOnExitCodesRequirementBuilder - extends V1PodFailurePolicyOnExitCodesRequirementFluentImpl< - V1PodFailurePolicyOnExitCodesRequirementBuilder> - implements VisitableBuilder< - V1PodFailurePolicyOnExitCodesRequirement, V1PodFailurePolicyOnExitCodesRequirementBuilder> { +import java.lang.Boolean; +public class V1PodFailurePolicyOnExitCodesRequirementBuilder extends V1PodFailurePolicyOnExitCodesRequirementFluentImpl implements VisitableBuilder{ public V1PodFailurePolicyOnExitCodesRequirementBuilder() { this(false); } - public V1PodFailurePolicyOnExitCodesRequirementBuilder(Boolean validationEnabled) { this(new V1PodFailurePolicyOnExitCodesRequirement(), validationEnabled); } - - public V1PodFailurePolicyOnExitCodesRequirementBuilder( - V1PodFailurePolicyOnExitCodesRequirementFluent fluent) { + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent) { this(fluent, false); } - - public V1PodFailurePolicyOnExitCodesRequirementBuilder( - V1PodFailurePolicyOnExitCodesRequirementFluent fluent, Boolean validationEnabled) { + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodFailurePolicyOnExitCodesRequirement(), validationEnabled); } - - public V1PodFailurePolicyOnExitCodesRequirementBuilder( - V1PodFailurePolicyOnExitCodesRequirementFluent fluent, - V1PodFailurePolicyOnExitCodesRequirement instance) { + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,V1PodFailurePolicyOnExitCodesRequirement instance) { this(fluent, instance, false); } - - public V1PodFailurePolicyOnExitCodesRequirementBuilder( - V1PodFailurePolicyOnExitCodesRequirementFluent fluent, - V1PodFailurePolicyOnExitCodesRequirement instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,V1PodFailurePolicyOnExitCodesRequirement instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerName(instance.getContainerName()); fluent.withOperator(instance.getOperator()); fluent.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1PodFailurePolicyOnExitCodesRequirementBuilder( - V1PodFailurePolicyOnExitCodesRequirement instance) { - this(instance, false); + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirement instance) { + this(instance,false); } - - public V1PodFailurePolicyOnExitCodesRequirementBuilder( - V1PodFailurePolicyOnExitCodesRequirement instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirement instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerName(instance.getContainerName()); this.withOperator(instance.getOperator()); this.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodFailurePolicyOnExitCodesRequirementFluent fluent; Boolean validationEnabled; - public V1PodFailurePolicyOnExitCodesRequirement build() { - V1PodFailurePolicyOnExitCodesRequirement buildable = - new V1PodFailurePolicyOnExitCodesRequirement(); + V1PodFailurePolicyOnExitCodesRequirement buildable = new V1PodFailurePolicyOnExitCodesRequirement(); buildable.setContainerName(fluent.getContainerName()); buildable.setOperator(fluent.getOperator()); buildable.setValues(fluent.getValues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java index ce6ffe7ea6..01730b752b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java @@ -1,65 +1,38 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1PodFailurePolicyOnExitCodesRequirementFluent< - A extends V1PodFailurePolicyOnExitCodesRequirementFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodFailurePolicyOnExitCodesRequirementFluent> extends Fluent{ public String getContainerName(); - public A withContainerName(String containerName); - public Boolean hasContainerName(); - public String getOperator(); - public A withOperator(String operator); - public Boolean hasOperator(); - - public A addToValues(Integer index, Integer item); - - public A setToValues(Integer index, Integer item); - + public A addToValues(Integer index,Integer item); + public A setToValues(Integer index,Integer item); public A addToValues(java.lang.Integer... items); - public A addAllToValues(Collection items); - public A removeFromValues(java.lang.Integer... items); - public A removeAllFromValues(Collection items); - public List getValues(); - public Integer getValue(Integer index); - public Integer getFirstValue(); - public Integer getLastValue(); - public Integer getMatchingValue(Predicate predicate); - public Boolean hasMatchingValue(Predicate predicate); - public A withValues(List values); - public A withValues(java.lang.Integer... values); - public Boolean hasValues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java index a8d39449ef..e7f6c88d59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java @@ -1,218 +1,123 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodFailurePolicyOnExitCodesRequirementFluentImpl< - A extends V1PodFailurePolicyOnExitCodesRequirementFluent> - extends BaseFluent implements V1PodFailurePolicyOnExitCodesRequirementFluent { - public V1PodFailurePolicyOnExitCodesRequirementFluentImpl() {} - - public V1PodFailurePolicyOnExitCodesRequirementFluentImpl( - V1PodFailurePolicyOnExitCodesRequirement instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodFailurePolicyOnExitCodesRequirementFluentImpl> extends BaseFluent implements V1PodFailurePolicyOnExitCodesRequirementFluent{ + public V1PodFailurePolicyOnExitCodesRequirementFluentImpl() { + } + public V1PodFailurePolicyOnExitCodesRequirementFluentImpl(V1PodFailurePolicyOnExitCodesRequirement instance) { this.withContainerName(instance.getContainerName()); this.withOperator(instance.getOperator()); this.withValues(instance.getValues()); - } + } private String containerName; private String operator; private List values; - public String getContainerName() { return this.containerName; } - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; + this.containerName=containerName; return (A) this; } - public Boolean hasContainerName() { return this.containerName != null; } - public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + this.operator=operator; return (A) this; } - public Boolean hasOperator() { return this.operator != null; } - - public A addToValues(Integer index, Integer item) { - if (this.values == null) { - this.values = new ArrayList(); - } + public A addToValues(Integer index,Integer item) { + if (this.values == null) {this.values = new ArrayList();} this.values.add(index, item); - return (A) this; + return (A)this; } - - public A setToValues(Integer index, Integer item) { - if (this.values == null) { - this.values = new ArrayList(); - } - this.values.set(index, item); - return (A) this; + public A setToValues(Integer index,Integer item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.set(index, item); return (A)this; } - public A addToValues(java.lang.Integer... items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (Integer item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (Integer item : items) {this.values.add(item);} return (A)this; } - public A addAllToValues(Collection items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (Integer item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (Integer item : items) {this.values.add(item);} return (A)this; } - public A removeFromValues(java.lang.Integer... items) { - for (Integer item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (Integer item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public A removeAllFromValues(Collection items) { - for (Integer item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (Integer item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public List getValues() { return this.values; } - public Integer getValue(Integer index) { return this.values.get(index); } - public Integer getFirstValue() { return this.values.get(0); } - public Integer getLastValue() { return this.values.get(values.size() - 1); } - public Integer getMatchingValue(Predicate predicate) { - for (Integer item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (Integer item: values) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingValue(Predicate predicate) { - for (Integer item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (Integer item: values) { if(predicate.test(item)){ return true;} } return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (Integer item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + if (values != null) {this.values = new ArrayList(); for (Integer item : values){this.addToValues(item);}} else { this.values = null;} return (A) this; } - public A withValues(java.lang.Integer... values) { - if (this.values != null) { - this.values.clear(); - } - if (values != null) { - for (Integer item : values) { - this.addToValues(item); - } - } - return (A) this; + if (this.values != null) {this.values.clear();} + if (values != null) {for (Integer item :values){ this.addToValues(item);}} return (A) this; } - public Boolean hasValues() { return values != null && !values.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1PodFailurePolicyOnExitCodesRequirementFluentImpl that = - (V1PodFailurePolicyOnExitCodesRequirementFluentImpl) o; - if (containerName != null - ? !containerName.equals(that.containerName) - : that.containerName != null) return false; - if (operator != null ? !operator.equals(that.operator) : that.operator != null) return false; - if (values != null ? !values.equals(that.values) : that.values != null) return false; + V1PodFailurePolicyOnExitCodesRequirementFluentImpl that = (V1PodFailurePolicyOnExitCodesRequirementFluentImpl) o; + if (containerName != null ? !containerName.equals(that.containerName) :that.containerName != null) return false; + if (operator != null ? !operator.equals(that.operator) :that.operator != null) return false; + if (values != null ? !values.equals(that.values) :that.values != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(containerName, operator, values, super.hashCode()); + return java.util.Objects.hash(containerName, operator, values, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerName != null) { - sb.append("containerName:"); - sb.append(containerName + ","); - } - if (operator != null) { - sb.append("operator:"); - sb.append(operator + ","); - } - if (values != null && !values.isEmpty()) { - sb.append("values:"); - sb.append(values); - } + if (containerName != null) { sb.append("containerName:"); sb.append(containerName + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java index 4aad2a2f6e..fcc2e2ac4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java @@ -1,83 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PodFailurePolicyOnPodConditionsPatternBuilder - extends V1PodFailurePolicyOnPodConditionsPatternFluentImpl< - V1PodFailurePolicyOnPodConditionsPatternBuilder> - implements VisitableBuilder< - V1PodFailurePolicyOnPodConditionsPattern, V1PodFailurePolicyOnPodConditionsPatternBuilder> { +import java.lang.Boolean; +public class V1PodFailurePolicyOnPodConditionsPatternBuilder extends V1PodFailurePolicyOnPodConditionsPatternFluentImpl implements VisitableBuilder{ public V1PodFailurePolicyOnPodConditionsPatternBuilder() { this(false); } - public V1PodFailurePolicyOnPodConditionsPatternBuilder(Boolean validationEnabled) { this(new V1PodFailurePolicyOnPodConditionsPattern(), validationEnabled); } - - public V1PodFailurePolicyOnPodConditionsPatternBuilder( - V1PodFailurePolicyOnPodConditionsPatternFluent fluent) { + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent) { this(fluent, false); } - - public V1PodFailurePolicyOnPodConditionsPatternBuilder( - V1PodFailurePolicyOnPodConditionsPatternFluent fluent, Boolean validationEnabled) { + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodFailurePolicyOnPodConditionsPattern(), validationEnabled); } - - public V1PodFailurePolicyOnPodConditionsPatternBuilder( - V1PodFailurePolicyOnPodConditionsPatternFluent fluent, - V1PodFailurePolicyOnPodConditionsPattern instance) { + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,V1PodFailurePolicyOnPodConditionsPattern instance) { this(fluent, instance, false); } - - public V1PodFailurePolicyOnPodConditionsPatternBuilder( - V1PodFailurePolicyOnPodConditionsPatternFluent fluent, - V1PodFailurePolicyOnPodConditionsPattern instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,V1PodFailurePolicyOnPodConditionsPattern instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withStatus(instance.getStatus()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1PodFailurePolicyOnPodConditionsPatternBuilder( - V1PodFailurePolicyOnPodConditionsPattern instance) { - this(instance, false); + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPattern instance) { + this(instance,false); } - - public V1PodFailurePolicyOnPodConditionsPatternBuilder( - V1PodFailurePolicyOnPodConditionsPattern instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPattern instance,Boolean validationEnabled) { + this.fluent = this; this.withStatus(instance.getStatus()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodFailurePolicyOnPodConditionsPatternFluent fluent; Boolean validationEnabled; - public V1PodFailurePolicyOnPodConditionsPattern build() { - V1PodFailurePolicyOnPodConditionsPattern buildable = - new V1PodFailurePolicyOnPodConditionsPattern(); + V1PodFailurePolicyOnPodConditionsPattern buildable = new V1PodFailurePolicyOnPodConditionsPattern(); buildable.setStatus(fluent.getStatus()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java index 0aae574939..35854872d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java @@ -1,32 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodFailurePolicyOnPodConditionsPatternFluent< - A extends V1PodFailurePolicyOnPodConditionsPatternFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodFailurePolicyOnPodConditionsPatternFluent> extends Fluent{ public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java index 7fa2c90336..271c666335 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java @@ -1,88 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodFailurePolicyOnPodConditionsPatternFluentImpl< - A extends V1PodFailurePolicyOnPodConditionsPatternFluent> - extends BaseFluent implements V1PodFailurePolicyOnPodConditionsPatternFluent { - public V1PodFailurePolicyOnPodConditionsPatternFluentImpl() {} - - public V1PodFailurePolicyOnPodConditionsPatternFluentImpl( - V1PodFailurePolicyOnPodConditionsPattern instance) { +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodFailurePolicyOnPodConditionsPatternFluentImpl> extends BaseFluent implements V1PodFailurePolicyOnPodConditionsPatternFluent{ + public V1PodFailurePolicyOnPodConditionsPatternFluentImpl() { + } + public V1PodFailurePolicyOnPodConditionsPatternFluentImpl(V1PodFailurePolicyOnPodConditionsPattern instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private String status; private String type; - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1PodFailurePolicyOnPodConditionsPatternFluentImpl that = - (V1PodFailurePolicyOnPodConditionsPatternFluentImpl) o; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1PodFailurePolicyOnPodConditionsPatternFluentImpl that = (V1PodFailurePolicyOnPodConditionsPatternFluentImpl) o; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(status, type, super.hashCode()); + return java.util.Objects.hash(status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java index 7afb20ada8..cfd00e2d4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1PodFailurePolicyRuleBuilder - extends V1PodFailurePolicyRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodFailurePolicyRuleBuilder extends V1PodFailurePolicyRuleFluentImpl implements VisitableBuilder{ public V1PodFailurePolicyRuleBuilder() { this(false); } - public V1PodFailurePolicyRuleBuilder(Boolean validationEnabled) { this(new V1PodFailurePolicyRule(), validationEnabled); } - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent) { this(fluent, false); } - - public V1PodFailurePolicyRuleBuilder( - V1PodFailurePolicyRuleFluent fluent, Boolean validationEnabled) { + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodFailurePolicyRule(), validationEnabled); } - - public V1PodFailurePolicyRuleBuilder( - V1PodFailurePolicyRuleFluent fluent, V1PodFailurePolicyRule instance) { + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,V1PodFailurePolicyRule instance) { this(fluent, instance, false); } - - public V1PodFailurePolicyRuleBuilder( - V1PodFailurePolicyRuleFluent fluent, - V1PodFailurePolicyRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,V1PodFailurePolicyRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAction(instance.getAction()); fluent.withOnExitCodes(instance.getOnExitCodes()); fluent.withOnPodConditions(instance.getOnPodConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance) { - this(instance, false); + this(instance,false); } - - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance,Boolean validationEnabled) { + this.fluent = this; this.withAction(instance.getAction()); this.withOnExitCodes(instance.getOnExitCodes()); this.withOnPodConditions(instance.getOnPodConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodFailurePolicyRuleFluent fluent; Boolean validationEnabled; - public V1PodFailurePolicyRule build() { V1PodFailurePolicyRule buildable = new V1PodFailurePolicyRule(); buildable.setAction(fluent.getAction()); @@ -78,4 +50,5 @@ public V1PodFailurePolicyRule build() { buildable.setOnPodConditions(fluent.getOnPodConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java index bb4c2cfbec..1d3b96cb8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java @@ -1,137 +1,79 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PodFailurePolicyRuleFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodFailurePolicyRuleFluent> extends Fluent{ public String getAction(); - public A withAction(String action); - public Boolean hasAction(); - + /** * This method has been deprecated, please use method buildOnExitCodes instead. - * * @return The buildable object. */ @Deprecated public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes(); - public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes(); - public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes); - public Boolean hasOnExitCodes(); - public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodes(); - - public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodesLike( - V1PodFailurePolicyOnExitCodesRequirement item); - + public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item); public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOnExitCodes(); - public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodes(); - - public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodesLike( - V1PodFailurePolicyOnExitCodesRequirement item); - - public A addToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item); - - public A setToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item); - - public A addToOnPodConditions( - io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items); - + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item); + public A addToOnPodConditions(Integer index,V1PodFailurePolicyOnPodConditionsPattern item); + public A setToOnPodConditions(Integer index,V1PodFailurePolicyOnPodConditionsPattern item); + public A addToOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items); public A addAllToOnPodConditions(Collection items); - - public A removeFromOnPodConditions( - io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items); - + public A removeFromOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items); public A removeAllFromOnPodConditions(Collection items); - - public A removeMatchingFromOnPodConditions( - Predicate predicate); - + public A removeMatchingFromOnPodConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildOnPodConditions instead. - * * @return The buildable object. */ @Deprecated public List getOnPodConditions(); - public List buildOnPodConditions(); - public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(Integer index); - public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition(); - public V1PodFailurePolicyOnPodConditionsPattern buildLastOnPodCondition(); - - public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition( - Predicate predicate); - - public Boolean hasMatchingOnPodCondition( - Predicate predicate); - + public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition(Predicate predicate); + public Boolean hasMatchingOnPodCondition(Predicate predicate); public A withOnPodConditions(List onPodConditions); - - public A withOnPodConditions( - io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... - onPodConditions); - + public A withOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... onPodConditions); public Boolean hasOnPodConditions(); - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodCondition(); - - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodConditionLike( - V1PodFailurePolicyOnPodConditionsPattern item); - - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested setNewOnPodConditionLike( - Integer index, V1PodFailurePolicyOnPodConditionsPattern item); - + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item); + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested setNewOnPodConditionLike(Integer index,V1PodFailurePolicyOnPodConditionsPattern item); public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editOnPodCondition(Integer index); - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editFirstOnPodCondition(); - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editLastOnPodCondition(); - - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editMatchingOnPodCondition( - Predicate predicate); - - public interface OnExitCodesNested - extends Nested, - V1PodFailurePolicyOnExitCodesRequirementFluent< - V1PodFailurePolicyRuleFluent.OnExitCodesNested> { + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editMatchingOnPodCondition(Predicate predicate); + public interface OnExitCodesNested extends Nested,V1PodFailurePolicyOnExitCodesRequirementFluent>{ public N and(); - public N endOnExitCodes(); + } - - public interface OnPodConditionsNested - extends Nested, - V1PodFailurePolicyOnPodConditionsPatternFluent< - V1PodFailurePolicyRuleFluent.OnPodConditionsNested> { + public interface OnPodConditionsNested extends Nested,V1PodFailurePolicyOnPodConditionsPatternFluent>{ public N and(); - public N endOnPodCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java index 85f4bf960d..889795602b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java @@ -1,201 +1,109 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodFailurePolicyRuleFluentImpl> - extends BaseFluent implements V1PodFailurePolicyRuleFluent { - public V1PodFailurePolicyRuleFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodFailurePolicyRuleFluentImpl> extends BaseFluent implements V1PodFailurePolicyRuleFluent{ + public V1PodFailurePolicyRuleFluentImpl() { + } public V1PodFailurePolicyRuleFluentImpl(V1PodFailurePolicyRule instance) { this.withAction(instance.getAction()); this.withOnExitCodes(instance.getOnExitCodes()); this.withOnPodConditions(instance.getOnPodConditions()); - } + } private String action; private V1PodFailurePolicyOnExitCodesRequirementBuilder onExitCodes; private ArrayList onPodConditions; - public String getAction() { return this.action; } - public A withAction(String action) { - this.action = action; - return (A) this; + this.action=action; return (A) this; } - public Boolean hasAction() { return this.action != null; } - + /** * This method has been deprecated, please use method buildOnExitCodes instead. - * * @return The buildable object. */ @Deprecated public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes() { - return this.onExitCodes != null ? this.onExitCodes.build() : null; + return this.onExitCodes!=null ?this.onExitCodes.build():null; } - public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes() { - return this.onExitCodes != null ? this.onExitCodes.build() : null; + return this.onExitCodes!=null ?this.onExitCodes.build():null; } - public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { _visitables.get("onExitCodes").remove(this.onExitCodes); - if (onExitCodes != null) { - this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); - _visitables.get("onExitCodes").add(this.onExitCodes); - } else { - this.onExitCodes = null; - _visitables.get("onExitCodes").remove(this.onExitCodes); - } - return (A) this; + if (onExitCodes!=null){ this.onExitCodes= new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); _visitables.get("onExitCodes").add(this.onExitCodes);} else { this.onExitCodes = null; _visitables.get("onExitCodes").remove(this.onExitCodes); } return (A) this; } - public Boolean hasOnExitCodes() { return this.onExitCodes != null; } - public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodes() { return new V1PodFailurePolicyRuleFluentImpl.OnExitCodesNestedImpl(); } - - public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodesLike( - V1PodFailurePolicyOnExitCodesRequirement item) { + public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { return new V1PodFailurePolicyRuleFluentImpl.OnExitCodesNestedImpl(item); } - public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOnExitCodes() { return withNewOnExitCodesLike(getOnExitCodes()); } - public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodes() { - return withNewOnExitCodesLike( - getOnExitCodes() != null - ? getOnExitCodes() - : new V1PodFailurePolicyOnExitCodesRequirementBuilder().build()); + return withNewOnExitCodesLike(getOnExitCodes() != null ? getOnExitCodes(): new V1PodFailurePolicyOnExitCodesRequirementBuilder().build()); } - - public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodesLike( - V1PodFailurePolicyOnExitCodesRequirement item) { - return withNewOnExitCodesLike(getOnExitCodes() != null ? getOnExitCodes() : item); + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { + return withNewOnExitCodesLike(getOnExitCodes() != null ? getOnExitCodes(): item); } - - public A addToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { - if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); - } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = - new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables - .get("onPodConditions") - .add(index >= 0 ? index : _visitables.get("onPodConditions").size(), builder); - this.onPodConditions.add(index >= 0 ? index : onPodConditions.size(), builder); - return (A) this; + public A addToOnPodConditions(Integer index,V1PodFailurePolicyOnPodConditionsPattern item) { + if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(index >= 0 ? index : _visitables.get("onPodConditions").size(), builder);this.onPodConditions.add(index >= 0 ? index : onPodConditions.size(), builder); return (A)this; } - - public A setToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { - if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); - } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = - new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= _visitables.get("onPodConditions").size()) { - _visitables.get("onPodConditions").add(builder); - } else { - _visitables.get("onPodConditions").set(index, builder); - } - if (index < 0 || index >= onPodConditions.size()) { - onPodConditions.add(builder); - } else { - onPodConditions.set(index, builder); - } - return (A) this; + public A setToOnPodConditions(Integer index,V1PodFailurePolicyOnPodConditionsPattern item) { + if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + if (index < 0 || index >= _visitables.get("onPodConditions").size()) { _visitables.get("onPodConditions").add(builder); } else { _visitables.get("onPodConditions").set(index, builder);} + if (index < 0 || index >= onPodConditions.size()) { onPodConditions.add(builder); } else { onPodConditions.set(index, builder);} + return (A)this; } - - public A addToOnPodConditions( - io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { - if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); - } - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = - new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables.get("onPodConditions").add(builder); - this.onPodConditions.add(builder); - } - return (A) this; + public A addToOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { + if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} + for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(builder);this.onPodConditions.add(builder);} return (A)this; } - public A addAllToOnPodConditions(Collection items) { - if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); - } - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = - new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables.get("onPodConditions").add(builder); - this.onPodConditions.add(builder); - } - return (A) this; + if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} + for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(builder);this.onPodConditions.add(builder);} return (A)this; } - - public A removeFromOnPodConditions( - io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = - new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables.get("onPodConditions").remove(builder); - if (this.onPodConditions != null) { - this.onPodConditions.remove(builder); - } - } - return (A) this; + public A removeFromOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { + for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").remove(builder);if (this.onPodConditions != null) {this.onPodConditions.remove(builder);}} return (A)this; } - - public A removeAllFromOnPodConditions( - Collection items) { - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = - new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables.get("onPodConditions").remove(builder); - if (this.onPodConditions != null) { - this.onPodConditions.remove(builder); - } - } - return (A) this; + public A removeAllFromOnPodConditions(Collection items) { + for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").remove(builder);if (this.onPodConditions != null) {this.onPodConditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromOnPodConditions( - Predicate predicate) { + public A removeMatchingFromOnPodConditions(Predicate predicate) { if (onPodConditions == null) return (A) this; - final Iterator each = - onPodConditions.iterator(); + final Iterator each = onPodConditions.iterator(); final List visitables = _visitables.get("onPodConditions"); while (each.hasNext()) { V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); @@ -204,217 +112,131 @@ public A removeMatchingFromOnPodConditions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildOnPodConditions instead. - * * @return The buildable object. */ @Deprecated public List getOnPodConditions() { return onPodConditions != null ? build(onPodConditions) : null; } - public List buildOnPodConditions() { return onPodConditions != null ? build(onPodConditions) : null; } - public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(Integer index) { return this.onPodConditions.get(index).build(); } - public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition() { return this.onPodConditions.get(0).build(); } - public V1PodFailurePolicyOnPodConditionsPattern buildLastOnPodCondition() { return this.onPodConditions.get(onPodConditions.size() - 1).build(); } - - public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition( - Predicate predicate) { - for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition(Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item: onPodConditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingOnPodCondition( - Predicate predicate) { - for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingOnPodCondition(Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item: onPodConditions) { if(predicate.test(item)){ return true;} } return false; } - public A withOnPodConditions(List onPodConditions) { - if (this.onPodConditions != null) { - _visitables.get("onPodConditions").removeAll(this.onPodConditions); - } - if (onPodConditions != null) { - this.onPodConditions = new ArrayList(); - for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { - this.addToOnPodConditions(item); - } - } else { - this.onPodConditions = null; - } - return (A) this; + if (this.onPodConditions != null) { _visitables.get("onPodConditions").removeAll(this.onPodConditions);} + if (onPodConditions != null) {this.onPodConditions = new ArrayList(); for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions){this.addToOnPodConditions(item);}} else { this.onPodConditions = null;} return (A) this; } - - public A withOnPodConditions( - io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... - onPodConditions) { - if (this.onPodConditions != null) { - this.onPodConditions.clear(); - } - if (onPodConditions != null) { - for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { - this.addToOnPodConditions(item); - } - } - return (A) this; + public A withOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { + if (this.onPodConditions != null) {this.onPodConditions.clear();} + if (onPodConditions != null) {for (V1PodFailurePolicyOnPodConditionsPattern item :onPodConditions){ this.addToOnPodConditions(item);}} return (A) this; } - public Boolean hasOnPodConditions() { return onPodConditions != null && !onPodConditions.isEmpty(); } - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodCondition() { return new V1PodFailurePolicyRuleFluentImpl.OnPodConditionsNestedImpl(); } - - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodConditionLike( - V1PodFailurePolicyOnPodConditionsPattern item) { + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item) { return new V1PodFailurePolicyRuleFluentImpl.OnPodConditionsNestedImpl(-1, item); } - - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested setNewOnPodConditionLike( - Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested setNewOnPodConditionLike(Integer index,V1PodFailurePolicyOnPodConditionsPattern item) { return new V1PodFailurePolicyRuleFluentImpl.OnPodConditionsNestedImpl(index, item); } - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editOnPodCondition(Integer index) { - if (onPodConditions.size() <= index) - throw new RuntimeException("Can't edit onPodConditions. Index exceeds size."); + if (onPodConditions.size() <= index) throw new RuntimeException("Can't edit onPodConditions. Index exceeds size."); return setNewOnPodConditionLike(index, buildOnPodCondition(index)); } - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editFirstOnPodCondition() { - if (onPodConditions.size() == 0) - throw new RuntimeException("Can't edit first onPodConditions. The list is empty."); + if (onPodConditions.size() == 0) throw new RuntimeException("Can't edit first onPodConditions. The list is empty."); return setNewOnPodConditionLike(0, buildOnPodCondition(0)); } - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editLastOnPodCondition() { int index = onPodConditions.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last onPodConditions. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last onPodConditions. The list is empty."); return setNewOnPodConditionLike(index, buildOnPodCondition(index)); } - - public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editMatchingOnPodCondition( - Predicate predicate) { + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editMatchingOnPodCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < onPodConditions.size(); i++) { - if (predicate.test(onPodConditions.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching onPodConditions. No match found."); + for (int i=0;i - extends V1PodFailurePolicyOnExitCodesRequirementFluentImpl< - V1PodFailurePolicyRuleFluent.OnExitCodesNested> - implements V1PodFailurePolicyRuleFluent.OnExitCodesNested, Nested { + class OnExitCodesNestedImpl extends V1PodFailurePolicyOnExitCodesRequirementFluentImpl> implements V1PodFailurePolicyRuleFluent.OnExitCodesNested,Nested{ OnExitCodesNestedImpl(V1PodFailurePolicyOnExitCodesRequirement item) { this.builder = new V1PodFailurePolicyOnExitCodesRequirementBuilder(this, item); } - OnExitCodesNestedImpl() { this.builder = new V1PodFailurePolicyOnExitCodesRequirementBuilder(this); } - V1PodFailurePolicyOnExitCodesRequirementBuilder builder; - public N and() { return (N) V1PodFailurePolicyRuleFluentImpl.this.withOnExitCodes(builder.build()); } - public N endOnExitCodes() { return and(); } + } - - class OnPodConditionsNestedImpl - extends V1PodFailurePolicyOnPodConditionsPatternFluentImpl< - V1PodFailurePolicyRuleFluent.OnPodConditionsNested> - implements V1PodFailurePolicyRuleFluent.OnPodConditionsNested, Nested { - OnPodConditionsNestedImpl(Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { + class OnPodConditionsNestedImpl extends V1PodFailurePolicyOnPodConditionsPatternFluentImpl> implements V1PodFailurePolicyRuleFluent.OnPodConditionsNested,Nested{ + OnPodConditionsNestedImpl(Integer index,V1PodFailurePolicyOnPodConditionsPattern item) { this.index = index; this.builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(this, item); } - OnPodConditionsNestedImpl() { this.index = -1; this.builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(this); } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder; Integer index; - public N and() { - return (N) V1PodFailurePolicyRuleFluentImpl.this.setToOnPodConditions(index, builder.build()); + return (N) V1PodFailurePolicyRuleFluentImpl.this.setToOnPodConditions(index,builder.build()); } - public N endOnPodCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java index 750cb63cfd..1a9a893c95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java @@ -1,123 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1PodFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1PodFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PodFluent.MetadataNested withNewMetadata(); - public V1PodFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PodFluent.MetadataNested editMetadata(); - public V1PodFluent.MetadataNested editOrNewMetadata(); - public V1PodFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PodSpec getSpec(); - public V1PodSpec buildSpec(); - public A withSpec(V1PodSpec spec); - public Boolean hasSpec(); - public V1PodFluent.SpecNested withNewSpec(); - public V1PodFluent.SpecNested withNewSpecLike(V1PodSpec item); - public V1PodFluent.SpecNested editSpec(); - public V1PodFluent.SpecNested editOrNewSpec(); - public V1PodFluent.SpecNested editOrNewSpecLike(V1PodSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PodStatus getStatus(); - public V1PodStatus buildStatus(); - public A withStatus(V1PodStatus status); - public Boolean hasStatus(); - public V1PodFluent.StatusNested withNewStatus(); - public V1PodFluent.StatusNested withNewStatusLike(V1PodStatus item); - public V1PodFluent.StatusNested editStatus(); - public V1PodFluent.StatusNested editOrNewStatus(); - public V1PodFluent.StatusNested editOrNewStatusLike(V1PodStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested extends Nested, V1PodSpecFluent> { + public interface SpecNested extends Nested,V1PodSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1PodStatusFluent> { + public interface StatusNested extends Nested,V1PodStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java index c244e73ab6..5d212ce24c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodFluentImpl> extends BaseFluent - implements V1PodFluent { - public V1PodFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodFluentImpl> extends BaseFluent implements V1PodFluent{ + public V1PodFluentImpl() { + } public V1PodFluentImpl(V1Pod instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,295 +25,205 @@ public V1PodFluentImpl(V1Pod instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PodSpecBuilder spec; private V1PodStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PodFluent.MetadataNested withNewMetadata() { return new V1PodFluentImpl.MetadataNestedImpl(); } - public V1PodFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodFluentImpl.MetadataNestedImpl(item); } - public V1PodFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PodFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PodSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1PodSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1PodSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1PodSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1PodSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1PodFluent.SpecNested withNewSpec() { return new V1PodFluentImpl.SpecNestedImpl(); } - public V1PodFluent.SpecNested withNewSpecLike(V1PodSpec item) { return new V1PodFluentImpl.SpecNestedImpl(item); } - public V1PodFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1PodFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1PodSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1PodSpecBuilder().build()); } - public V1PodFluent.SpecNested editOrNewSpecLike(V1PodSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1PodStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1PodStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1PodStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1PodStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1PodStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1PodFluent.StatusNested withNewStatus() { return new V1PodFluentImpl.StatusNestedImpl(); } - public V1PodFluent.StatusNested withNewStatusLike(V1PodStatus item) { return new V1PodFluentImpl.StatusNestedImpl(item); } - public V1PodFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1PodFluent.StatusNested editOrNewStatus() { - return withNewStatusLike(getStatus() != null ? getStatus() : new V1PodStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1PodStatusBuilder().build()); } - public V1PodFluent.StatusNested editOrNewStatusLike(V1PodStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodFluentImpl that = (V1PodFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1PodFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PodFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PodFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1PodSpecFluentImpl> - implements V1PodFluent.SpecNested, Nested { + class SpecNestedImpl extends V1PodSpecFluentImpl> implements V1PodFluent.SpecNested,Nested{ SpecNestedImpl(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1PodSpecBuilder(this); } - V1PodSpecBuilder builder; - public N and() { return (N) V1PodFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1PodStatusFluentImpl> - implements V1PodFluent.StatusNested, Nested { + class StatusNestedImpl extends V1PodStatusFluentImpl> implements V1PodFluent.StatusNested,Nested{ StatusNestedImpl(V1PodStatus item) { this.builder = new V1PodStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1PodStatusBuilder(this); } - V1PodStatusBuilder builder; - public N and() { return (N) V1PodFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java index 6df6a67fe8..f84868ec2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java @@ -1,65 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1PodIPBuilder extends V1PodIPFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodIPBuilder extends V1PodIPFluentImpl implements VisitableBuilder{ public V1PodIPBuilder() { this(false); } - public V1PodIPBuilder(Boolean validationEnabled) { this(new V1PodIP(), validationEnabled); } - public V1PodIPBuilder(V1PodIPFluent fluent) { this(fluent, false); } - - public V1PodIPBuilder(V1PodIPFluent fluent, Boolean validationEnabled) { + public V1PodIPBuilder(V1PodIPFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodIP(), validationEnabled); } - - public V1PodIPBuilder(V1PodIPFluent fluent, V1PodIP instance) { + public V1PodIPBuilder(V1PodIPFluent fluent,V1PodIP instance) { this(fluent, instance, false); } - - public V1PodIPBuilder(V1PodIPFluent fluent, V1PodIP instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodIPBuilder(V1PodIPFluent fluent,V1PodIP instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withIp(instance.getIp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodIPBuilder(V1PodIP instance) { - this(instance, false); + this(instance,false); } - - public V1PodIPBuilder(V1PodIP instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodIPBuilder(V1PodIP instance,Boolean validationEnabled) { + this.fluent = this; this.withIp(instance.getIp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodIPFluent fluent; Boolean validationEnabled; - public V1PodIP build() { V1PodIP buildable = new V1PodIP(); buildable.setIp(fluent.getIp()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java index 199262947a..edd393e74d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java @@ -1,24 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodIPFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodIPFluent> extends Fluent{ public String getIp(); - public A withIp(String ip); - public Boolean hasIp(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java index 04f8d64b54..6b5825d559 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodIPFluentImpl> extends BaseFluent - implements V1PodIPFluent { - public V1PodIPFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodIPFluentImpl> extends BaseFluent implements V1PodIPFluent{ + public V1PodIPFluentImpl() { + } public V1PodIPFluentImpl(V1PodIP instance) { this.withIp(instance.getIp()); - } + } private String ip; - public String getIp() { return this.ip; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + this.ip=ip; return (A) this; } - public Boolean hasIp() { return this.ip != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodIPFluentImpl that = (V1PodIPFluentImpl) o; - if (ip != null ? !ip.equals(that.ip) : that.ip != null) return false; + if (ip != null ? !ip.equals(that.ip) :that.ip != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(ip, super.hashCode()); + return java.util.Objects.hash(ip, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ip != null) { - sb.append("ip:"); - sb.append(ip); - } + if (ip != null) { sb.append("ip:"); sb.append(ip); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java index 72926f67f4..84257088fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodListBuilder extends V1PodListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodListBuilder extends V1PodListFluentImpl implements VisitableBuilder{ public V1PodListBuilder() { this(false); } - public V1PodListBuilder(Boolean validationEnabled) { this(new V1PodList(), validationEnabled); } - public V1PodListBuilder(V1PodListFluent fluent) { this(fluent, false); } - - public V1PodListBuilder(V1PodListFluent fluent, Boolean validationEnabled) { + public V1PodListBuilder(V1PodListFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodList(), validationEnabled); } - - public V1PodListBuilder(V1PodListFluent fluent, V1PodList instance) { + public V1PodListBuilder(V1PodListFluent fluent,V1PodList instance) { this(fluent, instance, false); } - - public V1PodListBuilder( - V1PodListFluent fluent, V1PodList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodListBuilder(V1PodListFluent fluent,V1PodList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1PodListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodListBuilder(V1PodList instance) { - this(instance, false); + this(instance,false); } - - public V1PodListBuilder(V1PodList instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodListBuilder(V1PodList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1PodListBuilder(V1PodList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodListFluent fluent; Boolean validationEnabled; - public V1PodList build() { V1PodList buildable = new V1PodList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1PodList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java index 845a3233e0..d124df2e83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java @@ -1,125 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PodListFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Pod item); - - public A setToItems(Integer index, V1Pod item); - + public A addToItems(Integer index,V1Pod item); + public A setToItems(Integer index,V1Pod item); public A addToItems(io.kubernetes.client.openapi.models.V1Pod... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Pod buildItem(Integer index); - public V1Pod buildFirstItem(); - public V1Pod buildLastItem(); - public V1Pod buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Pod... items); - public Boolean hasItems(); - public V1PodListFluent.ItemsNested addNewItem(); - public V1PodListFluent.ItemsNested addNewItemLike(V1Pod item); - - public V1PodListFluent.ItemsNested setNewItemLike(Integer index, V1Pod item); - + public V1PodListFluent.ItemsNested setNewItemLike(Integer index,V1Pod item); public V1PodListFluent.ItemsNested editItem(Integer index); - public V1PodListFluent.ItemsNested editFirstItem(); - public V1PodListFluent.ItemsNested editLastItem(); - public V1PodListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1PodListFluent.MetadataNested withNewMetadata(); - public V1PodListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1PodListFluent.MetadataNested editMetadata(); - public V1PodListFluent.MetadataNested editOrNewMetadata(); - public V1PodListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested extends Nested, V1PodFluent> { + public interface ItemsNested extends Nested,V1PodFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java index 2cc56c4e2f..5974afe455 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodListFluentImpl> extends BaseFluent - implements V1PodListFluent { - public V1PodListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodListFluentImpl> extends BaseFluent implements V1PodListFluent{ + public V1PodListFluentImpl() { + } public V1PodListFluentImpl(V1PodList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1PodListFluentImpl(V1PodList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Pod item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Pod item) { + if (this.items == null) {this.items = new ArrayList();} + V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Pod item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Pod item) { + if (this.items == null) {this.items = new ArrayList();} V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Pod... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items) { - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,269 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Pod buildItem(Integer index) { return this.items.get(index).build(); } - public V1Pod buildFirstItem() { return this.items.get(0).build(); } - public V1Pod buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Pod buildMatchingItem(Predicate predicate) { - for (V1PodBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PodBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1PodBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Pod item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Pod item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Pod... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Pod item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Pod item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1PodListFluent.ItemsNested addNewItem() { return new V1PodListFluentImpl.ItemsNestedImpl(); } - public V1PodListFluent.ItemsNested addNewItemLike(V1Pod item) { return new V1PodListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1PodListFluent.ItemsNested setNewItemLike(Integer index, V1Pod item) { + public V1PodListFluent.ItemsNested setNewItemLike(Integer index,V1Pod item) { return new V1PodListFluentImpl.ItemsNestedImpl(index, item); } - public V1PodListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1PodListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1PodListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - public V1PodListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1PodListFluentImpl.MetadataNestedImpl(); } - public V1PodListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1PodListFluentImpl.MetadataNestedImpl(item); } - public V1PodListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1PodListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodListFluentImpl that = (V1PodListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1PodFluentImpl> - implements V1PodListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Pod item) { + class ItemsNestedImpl extends V1PodFluentImpl> implements V1PodListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Pod item) { this.index = index; this.builder = new V1PodBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1PodBuilder(this); } - V1PodBuilder builder; Integer index; - public N and() { - return (N) V1PodListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1PodListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1PodListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1PodListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1PodListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java index ab558a1e79..15dbf95cf7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java @@ -1,65 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1PodOSBuilder extends V1PodOSFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodOSBuilder extends V1PodOSFluentImpl implements VisitableBuilder{ public V1PodOSBuilder() { this(false); } - public V1PodOSBuilder(Boolean validationEnabled) { this(new V1PodOS(), validationEnabled); } - public V1PodOSBuilder(V1PodOSFluent fluent) { this(fluent, false); } - - public V1PodOSBuilder(V1PodOSFluent fluent, Boolean validationEnabled) { + public V1PodOSBuilder(V1PodOSFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodOS(), validationEnabled); } - - public V1PodOSBuilder(V1PodOSFluent fluent, V1PodOS instance) { + public V1PodOSBuilder(V1PodOSFluent fluent,V1PodOS instance) { this(fluent, instance, false); } - - public V1PodOSBuilder(V1PodOSFluent fluent, V1PodOS instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodOSBuilder(V1PodOSFluent fluent,V1PodOS instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodOSBuilder(V1PodOS instance) { - this(instance, false); + this(instance,false); } - - public V1PodOSBuilder(V1PodOS instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodOSBuilder(V1PodOS instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodOSFluent fluent; Boolean validationEnabled; - public V1PodOS build() { V1PodOS buildable = new V1PodOS(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java index ca3cad526f..516d36494d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java @@ -1,24 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodOSFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodOSFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java index 6d5a71e991..ca00fd6645 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodOSFluentImpl> extends BaseFluent - implements V1PodOSFluent { - public V1PodOSFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodOSFluentImpl> extends BaseFluent implements V1PodOSFluent{ + public V1PodOSFluentImpl() { + } public V1PodOSFluentImpl(V1PodOS instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodOSFluentImpl that = (V1PodOSFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java index 5a3e839037..cb496389ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java @@ -1,68 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1PodReadinessGateBuilder - extends V1PodReadinessGateFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodReadinessGateBuilder extends V1PodReadinessGateFluentImpl implements VisitableBuilder{ public V1PodReadinessGateBuilder() { this(false); } - public V1PodReadinessGateBuilder(Boolean validationEnabled) { this(new V1PodReadinessGate(), validationEnabled); } - public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent) { this(fluent, false); } - - public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent, Boolean validationEnabled) { + public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodReadinessGate(), validationEnabled); } - - public V1PodReadinessGateBuilder( - V1PodReadinessGateFluent fluent, V1PodReadinessGate instance) { + public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,V1PodReadinessGate instance) { this(fluent, instance, false); } - - public V1PodReadinessGateBuilder( - V1PodReadinessGateFluent fluent, V1PodReadinessGate instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,V1PodReadinessGate instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditionType(instance.getConditionType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodReadinessGateBuilder(V1PodReadinessGate instance) { - this(instance, false); + this(instance,false); } - - public V1PodReadinessGateBuilder(V1PodReadinessGate instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodReadinessGateBuilder(V1PodReadinessGate instance,Boolean validationEnabled) { + this.fluent = this; this.withConditionType(instance.getConditionType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodReadinessGateFluent fluent; Boolean validationEnabled; - public V1PodReadinessGate build() { V1PodReadinessGate buildable = new V1PodReadinessGate(); buildable.setConditionType(fluent.getConditionType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java index 9034472600..76b289a3c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java @@ -1,24 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodReadinessGateFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodReadinessGateFluent> extends Fluent{ public String getConditionType(); - public A withConditionType(String conditionType); - public Boolean hasConditionType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java index 01f01eff15..0c03e6d770 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java @@ -1,66 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodReadinessGateFluentImpl> - extends BaseFluent implements V1PodReadinessGateFluent { - public V1PodReadinessGateFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodReadinessGateFluentImpl> extends BaseFluent implements V1PodReadinessGateFluent{ + public V1PodReadinessGateFluentImpl() { + } public V1PodReadinessGateFluentImpl(V1PodReadinessGate instance) { this.withConditionType(instance.getConditionType()); - } + } private String conditionType; - public String getConditionType() { return this.conditionType; } - public A withConditionType(String conditionType) { - this.conditionType = conditionType; - return (A) this; + this.conditionType=conditionType; return (A) this; } - public Boolean hasConditionType() { return this.conditionType != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodReadinessGateFluentImpl that = (V1PodReadinessGateFluentImpl) o; - if (conditionType != null - ? !conditionType.equals(that.conditionType) - : that.conditionType != null) return false; + if (conditionType != null ? !conditionType.equals(that.conditionType) :that.conditionType != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(conditionType, super.hashCode()); + return java.util.Objects.hash(conditionType, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditionType != null) { - sb.append("conditionType:"); - sb.append(conditionType); - } + if (conditionType != null) { sb.append("conditionType:"); sb.append(conditionType); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java index ddb783e115..beb64b27d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodSecurityContextBuilder - extends V1PodSecurityContextFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodSecurityContextBuilder extends V1PodSecurityContextFluentImpl implements VisitableBuilder{ public V1PodSecurityContextBuilder() { this(false); } - public V1PodSecurityContextBuilder(Boolean validationEnabled) { this(new V1PodSecurityContext(), validationEnabled); } - public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent) { this(fluent, false); } - - public V1PodSecurityContextBuilder( - V1PodSecurityContextFluent fluent, Boolean validationEnabled) { + public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodSecurityContext(), validationEnabled); } - - public V1PodSecurityContextBuilder( - V1PodSecurityContextFluent fluent, V1PodSecurityContext instance) { + public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,V1PodSecurityContext instance) { this(fluent, instance, false); } - - public V1PodSecurityContextBuilder( - V1PodSecurityContextFluent fluent, - V1PodSecurityContext instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,V1PodSecurityContext instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsGroup(instance.getFsGroup()); fluent.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); @@ -64,15 +40,13 @@ public V1PodSecurityContextBuilder( fluent.withWindowsOptions(instance.getWindowsOptions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodSecurityContextBuilder(V1PodSecurityContext instance) { - this(instance, false); + this(instance,false); } - - public V1PodSecurityContextBuilder(V1PodSecurityContext instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodSecurityContextBuilder(V1PodSecurityContext instance,Boolean validationEnabled) { + this.fluent = this; this.withFsGroup(instance.getFsGroup()); this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); @@ -93,12 +67,10 @@ public V1PodSecurityContextBuilder(V1PodSecurityContext instance, Boolean valida this.withWindowsOptions(instance.getWindowsOptions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodSecurityContextFluent fluent; Boolean validationEnabled; - public V1PodSecurityContext build() { V1PodSecurityContext buildable = new V1PodSecurityContext(); buildable.setFsGroup(fluent.getFsGroup()); @@ -113,4 +85,5 @@ public V1PodSecurityContext build() { buildable.setWindowsOptions(fluent.getWindowsOptions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java index cf671f88fd..a066334d64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java @@ -1,250 +1,148 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; +import java.util.ArrayList; +import java.lang.String; import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Integer; +import java.lang.Long; +import java.util.Collection; -/** Generated */ -public interface V1PodSecurityContextFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PodSecurityContextFluent> extends Fluent{ public Long getFsGroup(); - public A withFsGroup(Long fsGroup); - public Boolean hasFsGroup(); - public String getFsGroupChangePolicy(); - public A withFsGroupChangePolicy(String fsGroupChangePolicy); - public Boolean hasFsGroupChangePolicy(); - public Long getRunAsGroup(); - public A withRunAsGroup(Long runAsGroup); - public Boolean hasRunAsGroup(); - public Boolean getRunAsNonRoot(); - public A withRunAsNonRoot(Boolean runAsNonRoot); - public Boolean hasRunAsNonRoot(); - public Long getRunAsUser(); - public A withRunAsUser(Long runAsUser); - public Boolean hasRunAsUser(); - + /** * This method has been deprecated, please use method buildSeLinuxOptions instead. - * * @return The buildable object. */ @Deprecated public V1SELinuxOptions getSeLinuxOptions(); - public V1SELinuxOptions buildSeLinuxOptions(); - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions); - public Boolean hasSeLinuxOptions(); - public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions(); - - public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( - V1SELinuxOptions item); - + public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item); public V1PodSecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions(); - public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions(); - - public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( - V1SELinuxOptions item); - + public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item); + /** * This method has been deprecated, please use method buildSeccompProfile instead. - * * @return The buildable object. */ @Deprecated public V1SeccompProfile getSeccompProfile(); - public V1SeccompProfile buildSeccompProfile(); - public A withSeccompProfile(V1SeccompProfile seccompProfile); - public Boolean hasSeccompProfile(); - public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfile(); - - public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( - V1SeccompProfile item); - + public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item); public V1PodSecurityContextFluent.SeccompProfileNested editSeccompProfile(); - public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile(); - - public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( - V1SeccompProfile item); - - public A addToSupplementalGroups(Integer index, Long item); - - public A setToSupplementalGroups(Integer index, Long item); - + public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item); + public A addToSupplementalGroups(Integer index,Long item); + public A setToSupplementalGroups(Integer index,Long item); public A addToSupplementalGroups(java.lang.Long... items); - public A addAllToSupplementalGroups(Collection items); - public A removeFromSupplementalGroups(java.lang.Long... items); - public A removeAllFromSupplementalGroups(Collection items); - public List getSupplementalGroups(); - public Long getSupplementalGroup(Integer index); - public Long getFirstSupplementalGroup(); - public Long getLastSupplementalGroup(); - public Long getMatchingSupplementalGroup(Predicate predicate); - public Boolean hasMatchingSupplementalGroup(Predicate predicate); - public A withSupplementalGroups(List supplementalGroups); - public A withSupplementalGroups(java.lang.Long... supplementalGroups); - public Boolean hasSupplementalGroups(); - - public A addToSysctls(Integer index, V1Sysctl item); - - public A setToSysctls(Integer index, V1Sysctl item); - + public A addToSysctls(Integer index,V1Sysctl item); + public A setToSysctls(Integer index,V1Sysctl item); public A addToSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items); - public A addAllToSysctls(Collection items); - public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items); - public A removeAllFromSysctls(Collection items); - public A removeMatchingFromSysctls(Predicate predicate); - + /** * This method has been deprecated, please use method buildSysctls instead. - * * @return The buildable object. */ @Deprecated public List getSysctls(); - public List buildSysctls(); - public V1Sysctl buildSysctl(Integer index); - public V1Sysctl buildFirstSysctl(); - public V1Sysctl buildLastSysctl(); - public V1Sysctl buildMatchingSysctl(Predicate predicate); - public Boolean hasMatchingSysctl(Predicate predicate); - public A withSysctls(List sysctls); - public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls); - public Boolean hasSysctls(); - public V1PodSecurityContextFluent.SysctlsNested addNewSysctl(); - public V1PodSecurityContextFluent.SysctlsNested addNewSysctlLike(V1Sysctl item); - - public V1PodSecurityContextFluent.SysctlsNested setNewSysctlLike(Integer index, V1Sysctl item); - + public V1PodSecurityContextFluent.SysctlsNested setNewSysctlLike(Integer index,V1Sysctl item); public V1PodSecurityContextFluent.SysctlsNested editSysctl(Integer index); - public V1PodSecurityContextFluent.SysctlsNested editFirstSysctl(); - public V1PodSecurityContextFluent.SysctlsNested editLastSysctl(); - - public V1PodSecurityContextFluent.SysctlsNested editMatchingSysctl( - Predicate predicate); - + public V1PodSecurityContextFluent.SysctlsNested editMatchingSysctl(Predicate predicate); + /** * This method has been deprecated, please use method buildWindowsOptions instead. - * * @return The buildable object. */ @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions(); - public V1WindowsSecurityContextOptions buildWindowsOptions(); - public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions); - public Boolean hasWindowsOptions(); - public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptions(); - - public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item); - + public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item); public V1PodSecurityContextFluent.WindowsOptionsNested editWindowsOptions(); - public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions(); - - public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item); - + public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item); public A withRunAsNonRoot(); - - public interface SeLinuxOptionsNested - extends Nested, - V1SELinuxOptionsFluent> { + public interface SeLinuxOptionsNested extends Nested,V1SELinuxOptionsFluent>{ public N and(); - public N endSeLinuxOptions(); + } - - public interface SeccompProfileNested - extends Nested, - V1SeccompProfileFluent> { + public interface SeccompProfileNested extends Nested,V1SeccompProfileFluent>{ public N and(); - public N endSeccompProfile(); + } - - public interface SysctlsNested - extends Nested, V1SysctlFluent> { + public interface SysctlsNested extends Nested,V1SysctlFluent>{ public N and(); - public N endSysctl(); + } - - public interface WindowsOptionsNested - extends Nested, - V1WindowsSecurityContextOptionsFluent< - V1PodSecurityContextFluent.WindowsOptionsNested> { + public interface WindowsOptionsNested extends Nested,V1WindowsSecurityContextOptionsFluent>{ public N and(); - public N endWindowsOptions(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java index 0c2b488e85..c705b423db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java @@ -1,31 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodSecurityContextFluentImpl> - extends BaseFluent implements V1PodSecurityContextFluent { - public V1PodSecurityContextFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodSecurityContextFluentImpl> extends BaseFluent implements V1PodSecurityContextFluent{ + public V1PodSecurityContextFluentImpl() { + } public V1PodSecurityContextFluentImpl(V1PodSecurityContext instance) { this.withFsGroup(instance.getFsGroup()); @@ -46,8 +43,8 @@ public V1PodSecurityContextFluentImpl(V1PodSecurityContext instance) { this.withSysctls(instance.getSysctls()); this.withWindowsOptions(instance.getWindowsOptions()); - } + } private Long fsGroup; private String fsGroupChangePolicy; private Long runAsGroup; @@ -58,368 +55,195 @@ public V1PodSecurityContextFluentImpl(V1PodSecurityContext instance) { private List supplementalGroups; private ArrayList sysctls; private V1WindowsSecurityContextOptionsBuilder windowsOptions; - public Long getFsGroup() { return this.fsGroup; } - public A withFsGroup(Long fsGroup) { - this.fsGroup = fsGroup; - return (A) this; + this.fsGroup=fsGroup; return (A) this; } - public Boolean hasFsGroup() { return this.fsGroup != null; } - public String getFsGroupChangePolicy() { return this.fsGroupChangePolicy; } - public A withFsGroupChangePolicy(String fsGroupChangePolicy) { - this.fsGroupChangePolicy = fsGroupChangePolicy; - return (A) this; + this.fsGroupChangePolicy=fsGroupChangePolicy; return (A) this; } - public Boolean hasFsGroupChangePolicy() { return this.fsGroupChangePolicy != null; } - public Long getRunAsGroup() { return this.runAsGroup; } - public A withRunAsGroup(Long runAsGroup) { - this.runAsGroup = runAsGroup; - return (A) this; + this.runAsGroup=runAsGroup; return (A) this; } - public Boolean hasRunAsGroup() { return this.runAsGroup != null; } - public Boolean getRunAsNonRoot() { return this.runAsNonRoot; } - public A withRunAsNonRoot(Boolean runAsNonRoot) { - this.runAsNonRoot = runAsNonRoot; - return (A) this; + this.runAsNonRoot=runAsNonRoot; return (A) this; } - public Boolean hasRunAsNonRoot() { return this.runAsNonRoot != null; } - public Long getRunAsUser() { return this.runAsUser; } - public A withRunAsUser(Long runAsUser) { - this.runAsUser = runAsUser; - return (A) this; + this.runAsUser=runAsUser; return (A) this; } - public Boolean hasRunAsUser() { return this.runAsUser != null; } - + /** * This method has been deprecated, please use method buildSeLinuxOptions instead. - * * @return The buildable object. */ @Deprecated public V1SELinuxOptions getSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + return this.seLinuxOptions!=null ?this.seLinuxOptions.build():null; } - public V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + return this.seLinuxOptions!=null ?this.seLinuxOptions.build():null; } - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - _visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } else { - this.seLinuxOptions = null; - _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - } - return (A) this; + if (seLinuxOptions!=null){ this.seLinuxOptions= new V1SELinuxOptionsBuilder(seLinuxOptions); _visitables.get("seLinuxOptions").add(this.seLinuxOptions);} else { this.seLinuxOptions = null; _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); } return (A) this; } - public Boolean hasSeLinuxOptions() { return this.seLinuxOptions != null; } - public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions() { return new V1PodSecurityContextFluentImpl.SeLinuxOptionsNestedImpl(); } - - public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( - V1SELinuxOptions item) { + public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { return new V1PodSecurityContextFluentImpl.SeLinuxOptionsNestedImpl(item); } - public V1PodSecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions() { return withNewSeLinuxOptionsLike(getSeLinuxOptions()); } - public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike( - getSeLinuxOptions() != null ? getSeLinuxOptions() : new V1SELinuxOptionsBuilder().build()); + return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions(): new V1SELinuxOptionsBuilder().build()); } - - public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( - V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions() : item); + public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions(): item); } - + /** * This method has been deprecated, please use method buildSeccompProfile instead. - * * @return The buildable object. */ @Deprecated public V1SeccompProfile getSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; + return this.seccompProfile!=null ?this.seccompProfile.build():null; } - public V1SeccompProfile buildSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; + return this.seccompProfile!=null ?this.seccompProfile.build():null; } - public A withSeccompProfile(V1SeccompProfile seccompProfile) { _visitables.get("seccompProfile").remove(this.seccompProfile); - if (seccompProfile != null) { - this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); - _visitables.get("seccompProfile").add(this.seccompProfile); - } else { - this.seccompProfile = null; - _visitables.get("seccompProfile").remove(this.seccompProfile); - } - return (A) this; + if (seccompProfile!=null){ this.seccompProfile= new V1SeccompProfileBuilder(seccompProfile); _visitables.get("seccompProfile").add(this.seccompProfile);} else { this.seccompProfile = null; _visitables.get("seccompProfile").remove(this.seccompProfile); } return (A) this; } - public Boolean hasSeccompProfile() { return this.seccompProfile != null; } - public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfile() { return new V1PodSecurityContextFluentImpl.SeccompProfileNestedImpl(); } - - public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( - V1SeccompProfile item) { + public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { return new V1PodSecurityContextFluentImpl.SeccompProfileNestedImpl(item); } - public V1PodSecurityContextFluent.SeccompProfileNested editSeccompProfile() { return withNewSeccompProfileLike(getSeccompProfile()); } - public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile() { - return withNewSeccompProfileLike( - getSeccompProfile() != null ? getSeccompProfile() : new V1SeccompProfileBuilder().build()); + return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile(): new V1SeccompProfileBuilder().build()); } - - public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( - V1SeccompProfile item) { - return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile() : item); + public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { + return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile(): item); } - - public A addToSupplementalGroups(Integer index, Long item) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); - } + public A addToSupplementalGroups(Integer index,Long item) { + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} this.supplementalGroups.add(index, item); - return (A) this; + return (A)this; } - - public A setToSupplementalGroups(Integer index, Long item) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); - } - this.supplementalGroups.set(index, item); - return (A) this; + public A setToSupplementalGroups(Integer index,Long item) { + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + this.supplementalGroups.set(index, item); return (A)this; } - public A addToSupplementalGroups(java.lang.Long... items) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); - } - for (Long item : items) { - this.supplementalGroups.add(item); - } - return (A) this; + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; } - public A addAllToSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); - } - for (Long item : items) { - this.supplementalGroups.add(item); - } - return (A) this; + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; } - public A removeFromSupplementalGroups(java.lang.Long... items) { - for (Long item : items) { - if (this.supplementalGroups != null) { - this.supplementalGroups.remove(item); - } - } - return (A) this; + for (Long item : items) {if (this.supplementalGroups!= null){ this.supplementalGroups.remove(item);}} return (A)this; } - public A removeAllFromSupplementalGroups(Collection items) { - for (Long item : items) { - if (this.supplementalGroups != null) { - this.supplementalGroups.remove(item); - } - } - return (A) this; + for (Long item : items) {if (this.supplementalGroups!= null){ this.supplementalGroups.remove(item);}} return (A)this; } - public List getSupplementalGroups() { return this.supplementalGroups; } - public Long getSupplementalGroup(Integer index) { return this.supplementalGroups.get(index); } - public Long getFirstSupplementalGroup() { return this.supplementalGroups.get(0); } - public Long getLastSupplementalGroup() { return this.supplementalGroups.get(supplementalGroups.size() - 1); } - public Long getMatchingSupplementalGroup(Predicate predicate) { - for (Long item : supplementalGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (Long item: supplementalGroups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingSupplementalGroup(Predicate predicate) { - for (Long item : supplementalGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (Long item: supplementalGroups) { if(predicate.test(item)){ return true;} } return false; } - public A withSupplementalGroups(List supplementalGroups) { - if (supplementalGroups != null) { - this.supplementalGroups = new ArrayList(); - for (Long item : supplementalGroups) { - this.addToSupplementalGroups(item); - } - } else { - this.supplementalGroups = null; - } - return (A) this; + if (supplementalGroups != null) {this.supplementalGroups = new ArrayList(); for (Long item : supplementalGroups){this.addToSupplementalGroups(item);}} else { this.supplementalGroups = null;} return (A) this; } - public A withSupplementalGroups(java.lang.Long... supplementalGroups) { - if (this.supplementalGroups != null) { - this.supplementalGroups.clear(); - } - if (supplementalGroups != null) { - for (Long item : supplementalGroups) { - this.addToSupplementalGroups(item); - } - } - return (A) this; + if (this.supplementalGroups != null) {this.supplementalGroups.clear();} + if (supplementalGroups != null) {for (Long item :supplementalGroups){ this.addToSupplementalGroups(item);}} return (A) this; } - public Boolean hasSupplementalGroups() { return supplementalGroups != null && !supplementalGroups.isEmpty(); } - - public A addToSysctls(Integer index, V1Sysctl item) { - if (this.sysctls == null) { - this.sysctls = new ArrayList(); - } - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(index >= 0 ? index : _visitables.get("sysctls").size(), builder); - this.sysctls.add(index >= 0 ? index : sysctls.size(), builder); - return (A) this; + public A addToSysctls(Integer index,V1Sysctl item) { + if (this.sysctls == null) {this.sysctls = new ArrayList();} + V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(index >= 0 ? index : _visitables.get("sysctls").size(), builder);this.sysctls.add(index >= 0 ? index : sysctls.size(), builder); return (A)this; } - - public A setToSysctls(Integer index, V1Sysctl item) { - if (this.sysctls == null) { - this.sysctls = new ArrayList(); - } + public A setToSysctls(Integer index,V1Sysctl item) { + if (this.sysctls == null) {this.sysctls = new ArrayList();} V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= _visitables.get("sysctls").size()) { - _visitables.get("sysctls").add(builder); - } else { - _visitables.get("sysctls").set(index, builder); - } - if (index < 0 || index >= sysctls.size()) { - sysctls.add(builder); - } else { - sysctls.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("sysctls").size()) { _visitables.get("sysctls").add(builder); } else { _visitables.get("sysctls").set(index, builder);} + if (index < 0 || index >= sysctls.size()) { sysctls.add(builder); } else { sysctls.set(index, builder);} + return (A)this; } - public A addToSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - if (this.sysctls == null) { - this.sysctls = new ArrayList(); - } - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(builder); - this.sysctls.add(builder); - } - return (A) this; + if (this.sysctls == null) {this.sysctls = new ArrayList();} + for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(builder);this.sysctls.add(builder);} return (A)this; } - public A addAllToSysctls(Collection items) { - if (this.sysctls == null) { - this.sysctls = new ArrayList(); - } - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(builder); - this.sysctls.add(builder); - } - return (A) this; + if (this.sysctls == null) {this.sysctls = new ArrayList();} + for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(builder);this.sysctls.add(builder);} return (A)this; } - public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").remove(builder); - if (this.sysctls != null) { - this.sysctls.remove(builder); - } - } - return (A) this; + for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").remove(builder);if (this.sysctls != null) {this.sysctls.remove(builder);}} return (A)this; } - public A removeAllFromSysctls(Collection items) { - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").remove(builder); - if (this.sysctls != null) { - this.sysctls.remove(builder); - } - } - return (A) this; + for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").remove(builder);if (this.sysctls != null) {this.sysctls.remove(builder);}} return (A)this; } - public A removeMatchingFromSysctls(Predicate predicate) { if (sysctls == null) return (A) this; final Iterator each = sysctls.iterator(); @@ -431,367 +255,214 @@ public A removeMatchingFromSysctls(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSysctls instead. - * * @return The buildable object. */ @Deprecated public List getSysctls() { return sysctls != null ? build(sysctls) : null; } - public List buildSysctls() { return sysctls != null ? build(sysctls) : null; } - public V1Sysctl buildSysctl(Integer index) { return this.sysctls.get(index).build(); } - public V1Sysctl buildFirstSysctl() { return this.sysctls.get(0).build(); } - public V1Sysctl buildLastSysctl() { return this.sysctls.get(sysctls.size() - 1).build(); } - public V1Sysctl buildMatchingSysctl(Predicate predicate) { - for (V1SysctlBuilder item : sysctls) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1SysctlBuilder item: sysctls) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSysctl(Predicate predicate) { - for (V1SysctlBuilder item : sysctls) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1SysctlBuilder item: sysctls) { if(predicate.test(item)){ return true;} } return false; } - public A withSysctls(List sysctls) { - if (this.sysctls != null) { - _visitables.get("sysctls").removeAll(this.sysctls); - } - if (sysctls != null) { - this.sysctls = new ArrayList(); - for (V1Sysctl item : sysctls) { - this.addToSysctls(item); - } - } else { - this.sysctls = null; - } - return (A) this; + if (this.sysctls != null) { _visitables.get("sysctls").removeAll(this.sysctls);} + if (sysctls != null) {this.sysctls = new ArrayList(); for (V1Sysctl item : sysctls){this.addToSysctls(item);}} else { this.sysctls = null;} return (A) this; } - public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls) { - if (this.sysctls != null) { - this.sysctls.clear(); - } - if (sysctls != null) { - for (V1Sysctl item : sysctls) { - this.addToSysctls(item); - } - } - return (A) this; + if (this.sysctls != null) {this.sysctls.clear();} + if (sysctls != null) {for (V1Sysctl item :sysctls){ this.addToSysctls(item);}} return (A) this; } - public Boolean hasSysctls() { return sysctls != null && !sysctls.isEmpty(); } - public V1PodSecurityContextFluent.SysctlsNested addNewSysctl() { return new V1PodSecurityContextFluentImpl.SysctlsNestedImpl(); } - public V1PodSecurityContextFluent.SysctlsNested addNewSysctlLike(V1Sysctl item) { return new V1PodSecurityContextFluentImpl.SysctlsNestedImpl(-1, item); } - - public V1PodSecurityContextFluent.SysctlsNested setNewSysctlLike( - Integer index, V1Sysctl item) { + public V1PodSecurityContextFluent.SysctlsNested setNewSysctlLike(Integer index,V1Sysctl item) { return new V1PodSecurityContextFluentImpl.SysctlsNestedImpl(index, item); } - public V1PodSecurityContextFluent.SysctlsNested editSysctl(Integer index) { - if (sysctls.size() <= index) - throw new RuntimeException("Can't edit sysctls. Index exceeds size."); + if (sysctls.size() <= index) throw new RuntimeException("Can't edit sysctls. Index exceeds size."); return setNewSysctlLike(index, buildSysctl(index)); } - public V1PodSecurityContextFluent.SysctlsNested editFirstSysctl() { - if (sysctls.size() == 0) - throw new RuntimeException("Can't edit first sysctls. The list is empty."); + if (sysctls.size() == 0) throw new RuntimeException("Can't edit first sysctls. The list is empty."); return setNewSysctlLike(0, buildSysctl(0)); } - public V1PodSecurityContextFluent.SysctlsNested editLastSysctl() { int index = sysctls.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last sysctls. The list is empty."); return setNewSysctlLike(index, buildSysctl(index)); } - - public V1PodSecurityContextFluent.SysctlsNested editMatchingSysctl( - Predicate predicate) { + public V1PodSecurityContextFluent.SysctlsNested editMatchingSysctl(Predicate predicate) { int index = -1; - for (int i = 0; i < sysctls.size(); i++) { - if (predicate.test(sysctls.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewWindowsOptions() { return new V1PodSecurityContextFluentImpl.WindowsOptionsNestedImpl(); } - - public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item) { + public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { return new V1PodSecurityContextFluentImpl.WindowsOptionsNestedImpl(item); } - public V1PodSecurityContextFluent.WindowsOptionsNested editWindowsOptions() { return withNewWindowsOptionsLike(getWindowsOptions()); } - public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions() { - return withNewWindowsOptionsLike( - getWindowsOptions() != null - ? getWindowsOptions() - : new V1WindowsSecurityContextOptionsBuilder().build()); + return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions(): new V1WindowsSecurityContextOptionsBuilder().build()); } - - public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item) { - return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions() : item); + public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodSecurityContextFluentImpl that = (V1PodSecurityContextFluentImpl) o; - if (fsGroup != null ? !fsGroup.equals(that.fsGroup) : that.fsGroup != null) return false; - if (fsGroupChangePolicy != null - ? !fsGroupChangePolicy.equals(that.fsGroupChangePolicy) - : that.fsGroupChangePolicy != null) return false; - if (runAsGroup != null ? !runAsGroup.equals(that.runAsGroup) : that.runAsGroup != null) - return false; - if (runAsNonRoot != null ? !runAsNonRoot.equals(that.runAsNonRoot) : that.runAsNonRoot != null) - return false; - if (runAsUser != null ? !runAsUser.equals(that.runAsUser) : that.runAsUser != null) - return false; - if (seLinuxOptions != null - ? !seLinuxOptions.equals(that.seLinuxOptions) - : that.seLinuxOptions != null) return false; - if (seccompProfile != null - ? !seccompProfile.equals(that.seccompProfile) - : that.seccompProfile != null) return false; - if (supplementalGroups != null - ? !supplementalGroups.equals(that.supplementalGroups) - : that.supplementalGroups != null) return false; - if (sysctls != null ? !sysctls.equals(that.sysctls) : that.sysctls != null) return false; - if (windowsOptions != null - ? !windowsOptions.equals(that.windowsOptions) - : that.windowsOptions != null) return false; + if (fsGroup != null ? !fsGroup.equals(that.fsGroup) :that.fsGroup != null) return false; + if (fsGroupChangePolicy != null ? !fsGroupChangePolicy.equals(that.fsGroupChangePolicy) :that.fsGroupChangePolicy != null) return false; + if (runAsGroup != null ? !runAsGroup.equals(that.runAsGroup) :that.runAsGroup != null) return false; + if (runAsNonRoot != null ? !runAsNonRoot.equals(that.runAsNonRoot) :that.runAsNonRoot != null) return false; + if (runAsUser != null ? !runAsUser.equals(that.runAsUser) :that.runAsUser != null) return false; + if (seLinuxOptions != null ? !seLinuxOptions.equals(that.seLinuxOptions) :that.seLinuxOptions != null) return false; + if (seccompProfile != null ? !seccompProfile.equals(that.seccompProfile) :that.seccompProfile != null) return false; + if (supplementalGroups != null ? !supplementalGroups.equals(that.supplementalGroups) :that.supplementalGroups != null) return false; + if (sysctls != null ? !sysctls.equals(that.sysctls) :that.sysctls != null) return false; + if (windowsOptions != null ? !windowsOptions.equals(that.windowsOptions) :that.windowsOptions != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsGroup, - fsGroupChangePolicy, - runAsGroup, - runAsNonRoot, - runAsUser, - seLinuxOptions, - seccompProfile, - supplementalGroups, - sysctls, - windowsOptions, - super.hashCode()); + return java.util.Objects.hash(fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, sysctls, windowsOptions, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsGroup != null) { - sb.append("fsGroup:"); - sb.append(fsGroup + ","); - } - if (fsGroupChangePolicy != null) { - sb.append("fsGroupChangePolicy:"); - sb.append(fsGroupChangePolicy + ","); - } - if (runAsGroup != null) { - sb.append("runAsGroup:"); - sb.append(runAsGroup + ","); - } - if (runAsNonRoot != null) { - sb.append("runAsNonRoot:"); - sb.append(runAsNonRoot + ","); - } - if (runAsUser != null) { - sb.append("runAsUser:"); - sb.append(runAsUser + ","); - } - if (seLinuxOptions != null) { - sb.append("seLinuxOptions:"); - sb.append(seLinuxOptions + ","); - } - if (seccompProfile != null) { - sb.append("seccompProfile:"); - sb.append(seccompProfile + ","); - } - if (supplementalGroups != null && !supplementalGroups.isEmpty()) { - sb.append("supplementalGroups:"); - sb.append(supplementalGroups + ","); - } - if (sysctls != null && !sysctls.isEmpty()) { - sb.append("sysctls:"); - sb.append(sysctls + ","); - } - if (windowsOptions != null) { - sb.append("windowsOptions:"); - sb.append(windowsOptions); - } + if (fsGroup != null) { sb.append("fsGroup:"); sb.append(fsGroup + ","); } + if (fsGroupChangePolicy != null) { sb.append("fsGroupChangePolicy:"); sb.append(fsGroupChangePolicy + ","); } + if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); } + if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); } + if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); } + if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); } + if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); } + if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); } + if (sysctls != null && !sysctls.isEmpty()) { sb.append("sysctls:"); sb.append(sysctls + ","); } + if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } sb.append("}"); return sb.toString(); } - public A withRunAsNonRoot() { return withRunAsNonRoot(true); } - - class SeLinuxOptionsNestedImpl - extends V1SELinuxOptionsFluentImpl> - implements V1PodSecurityContextFluent.SeLinuxOptionsNested, Nested { + class SeLinuxOptionsNestedImpl extends V1SELinuxOptionsFluentImpl> implements V1PodSecurityContextFluent.SeLinuxOptionsNested,Nested{ SeLinuxOptionsNestedImpl(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } - SeLinuxOptionsNestedImpl() { this.builder = new V1SELinuxOptionsBuilder(this); } - V1SELinuxOptionsBuilder builder; - public N and() { return (N) V1PodSecurityContextFluentImpl.this.withSeLinuxOptions(builder.build()); } - public N endSeLinuxOptions() { return and(); } + } - - class SeccompProfileNestedImpl - extends V1SeccompProfileFluentImpl> - implements V1PodSecurityContextFluent.SeccompProfileNested, Nested { + class SeccompProfileNestedImpl extends V1SeccompProfileFluentImpl> implements V1PodSecurityContextFluent.SeccompProfileNested,Nested{ SeccompProfileNestedImpl(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } - SeccompProfileNestedImpl() { this.builder = new V1SeccompProfileBuilder(this); } - V1SeccompProfileBuilder builder; - public N and() { return (N) V1PodSecurityContextFluentImpl.this.withSeccompProfile(builder.build()); } - public N endSeccompProfile() { return and(); } + } - - class SysctlsNestedImpl extends V1SysctlFluentImpl> - implements V1PodSecurityContextFluent.SysctlsNested, Nested { - SysctlsNestedImpl(Integer index, V1Sysctl item) { + class SysctlsNestedImpl extends V1SysctlFluentImpl> implements V1PodSecurityContextFluent.SysctlsNested,Nested{ + SysctlsNestedImpl(Integer index,V1Sysctl item) { this.index = index; this.builder = new V1SysctlBuilder(this, item); } - SysctlsNestedImpl() { this.index = -1; this.builder = new V1SysctlBuilder(this); } - V1SysctlBuilder builder; Integer index; - public N and() { - return (N) V1PodSecurityContextFluentImpl.this.setToSysctls(index, builder.build()); + return (N) V1PodSecurityContextFluentImpl.this.setToSysctls(index,builder.build()); } - public N endSysctl() { return and(); } + } - - class WindowsOptionsNestedImpl - extends V1WindowsSecurityContextOptionsFluentImpl< - V1PodSecurityContextFluent.WindowsOptionsNested> - implements V1PodSecurityContextFluent.WindowsOptionsNested, Nested { + class WindowsOptionsNestedImpl extends V1WindowsSecurityContextOptionsFluentImpl> implements V1PodSecurityContextFluent.WindowsOptionsNested,Nested{ WindowsOptionsNestedImpl(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } - WindowsOptionsNestedImpl() { this.builder = new V1WindowsSecurityContextOptionsBuilder(this); } - V1WindowsSecurityContextOptionsBuilder builder; - public N and() { return (N) V1PodSecurityContextFluentImpl.this.withWindowsOptions(builder.build()); } - public N endWindowsOptions() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java index a06a51f0fb..dd6f0708de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodSpecBuilder extends V1PodSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodSpecBuilder extends V1PodSpecFluentImpl implements VisitableBuilder{ public V1PodSpecBuilder() { this(false); } - public V1PodSpecBuilder(Boolean validationEnabled) { this(new V1PodSpec(), validationEnabled); } - public V1PodSpecBuilder(V1PodSpecFluent fluent) { this(fluent, false); } - - public V1PodSpecBuilder(V1PodSpecFluent fluent, Boolean validationEnabled) { + public V1PodSpecBuilder(V1PodSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodSpec(), validationEnabled); } - - public V1PodSpecBuilder(V1PodSpecFluent fluent, V1PodSpec instance) { + public V1PodSpecBuilder(V1PodSpecFluent fluent,V1PodSpec instance) { this(fluent, instance, false); } - - public V1PodSpecBuilder( - V1PodSpecFluent fluent, V1PodSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodSpecBuilder(V1PodSpecFluent fluent,V1PodSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); fluent.withAffinity(instance.getAffinity()); @@ -113,15 +94,13 @@ public V1PodSpecBuilder( fluent.withVolumes(instance.getVolumes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodSpecBuilder(V1PodSpec instance) { - this(instance, false); + this(instance,false); } - - public V1PodSpecBuilder(V1PodSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodSpecBuilder(V1PodSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withAffinity(instance.getAffinity()); @@ -196,12 +175,10 @@ public V1PodSpecBuilder(V1PodSpec instance, Boolean validationEnabled) { this.withVolumes(instance.getVolumes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodSpecFluent fluent; Boolean validationEnabled; - public V1PodSpec build() { V1PodSpec buildable = new V1PodSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); @@ -243,4 +220,5 @@ public V1PodSpec build() { buildable.setVolumes(fluent.getVolumes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java index 51fa563737..863765cc38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java @@ -1,911 +1,508 @@ -/* -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.custom.Quantity; +import io.kubernetes.client.fluent.VisitableBuilder; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.util.List; +import java.lang.Boolean; import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; +import java.lang.Long; import java.util.Collection; -import java.util.List; import java.util.Map; -import java.util.function.Predicate; +import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; +import java.util.Iterator; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; -/** Generated */ -public interface V1PodSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodSpecFluent> extends Fluent{ public Long getActiveDeadlineSeconds(); - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds); - public Boolean hasActiveDeadlineSeconds(); - + /** * This method has been deprecated, please use method buildAffinity instead. - * * @return The buildable object. */ @Deprecated public V1Affinity getAffinity(); - public V1Affinity buildAffinity(); - public A withAffinity(V1Affinity affinity); - public Boolean hasAffinity(); - public V1PodSpecFluent.AffinityNested withNewAffinity(); - public V1PodSpecFluent.AffinityNested withNewAffinityLike(V1Affinity item); - public V1PodSpecFluent.AffinityNested editAffinity(); - public V1PodSpecFluent.AffinityNested editOrNewAffinity(); - public V1PodSpecFluent.AffinityNested editOrNewAffinityLike(V1Affinity item); - public Boolean getAutomountServiceAccountToken(); - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken); - public Boolean hasAutomountServiceAccountToken(); - - public A addToContainers(Integer index, V1Container item); - - public A setToContainers(Integer index, V1Container item); - + public A addToContainers(Integer index,V1Container item); + public A setToContainers(Integer index,V1Container item); public A addToContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A addAllToContainers(Collection items); - public A removeFromContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A removeAllFromContainers(Collection items); - public A removeMatchingFromContainers(Predicate predicate); - + /** * This method has been deprecated, please use method buildContainers instead. - * * @return The buildable object. */ @Deprecated public List getContainers(); - public List buildContainers(); - public V1Container buildContainer(Integer index); - public V1Container buildFirstContainer(); - public V1Container buildLastContainer(); - public V1Container buildMatchingContainer(Predicate predicate); - public Boolean hasMatchingContainer(Predicate predicate); - public A withContainers(List containers); - public A withContainers(io.kubernetes.client.openapi.models.V1Container... containers); - public Boolean hasContainers(); - public V1PodSpecFluent.ContainersNested addNewContainer(); - public V1PodSpecFluent.ContainersNested addNewContainerLike(V1Container item); - - public V1PodSpecFluent.ContainersNested setNewContainerLike(Integer index, V1Container item); - + public V1PodSpecFluent.ContainersNested setNewContainerLike(Integer index,V1Container item); public V1PodSpecFluent.ContainersNested editContainer(Integer index); - public V1PodSpecFluent.ContainersNested editFirstContainer(); - public V1PodSpecFluent.ContainersNested editLastContainer(); - - public V1PodSpecFluent.ContainersNested editMatchingContainer( - Predicate predicate); - + public V1PodSpecFluent.ContainersNested editMatchingContainer(Predicate predicate); + /** * This method has been deprecated, please use method buildDnsConfig instead. - * * @return The buildable object. */ @Deprecated public V1PodDNSConfig getDnsConfig(); - public V1PodDNSConfig buildDnsConfig(); - public A withDnsConfig(V1PodDNSConfig dnsConfig); - public Boolean hasDnsConfig(); - public V1PodSpecFluent.DnsConfigNested withNewDnsConfig(); - public V1PodSpecFluent.DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item); - public V1PodSpecFluent.DnsConfigNested editDnsConfig(); - public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfig(); - public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item); - public String getDnsPolicy(); - public A withDnsPolicy(String dnsPolicy); - public Boolean hasDnsPolicy(); - public Boolean getEnableServiceLinks(); - public A withEnableServiceLinks(Boolean enableServiceLinks); - public Boolean hasEnableServiceLinks(); - - public A addToEphemeralContainers(Integer index, V1EphemeralContainer item); - - public A setToEphemeralContainers(Integer index, V1EphemeralContainer item); - - public A addToEphemeralContainers( - io.kubernetes.client.openapi.models.V1EphemeralContainer... items); - + public A addToEphemeralContainers(Integer index,V1EphemeralContainer item); + public A setToEphemeralContainers(Integer index,V1EphemeralContainer item); + public A addToEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items); public A addAllToEphemeralContainers(Collection items); - - public A removeFromEphemeralContainers( - io.kubernetes.client.openapi.models.V1EphemeralContainer... items); - + public A removeFromEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items); public A removeAllFromEphemeralContainers(Collection items); - public A removeMatchingFromEphemeralContainers(Predicate predicate); - + /** * This method has been deprecated, please use method buildEphemeralContainers instead. - * * @return The buildable object. */ @Deprecated public List getEphemeralContainers(); - public List buildEphemeralContainers(); - public V1EphemeralContainer buildEphemeralContainer(Integer index); - public V1EphemeralContainer buildFirstEphemeralContainer(); - public V1EphemeralContainer buildLastEphemeralContainer(); - - public V1EphemeralContainer buildMatchingEphemeralContainer( - Predicate predicate); - + public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate); public Boolean hasMatchingEphemeralContainer(Predicate predicate); - public A withEphemeralContainers(List ephemeralContainers); - - public A withEphemeralContainers( - io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers); - + public A withEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers); public Boolean hasEphemeralContainers(); - public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainer(); - - public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainerLike( - V1EphemeralContainer item); - - public V1PodSpecFluent.EphemeralContainersNested setNewEphemeralContainerLike( - Integer index, V1EphemeralContainer item); - + public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item); + public V1PodSpecFluent.EphemeralContainersNested setNewEphemeralContainerLike(Integer index,V1EphemeralContainer item); public V1PodSpecFluent.EphemeralContainersNested editEphemeralContainer(Integer index); - public V1PodSpecFluent.EphemeralContainersNested editFirstEphemeralContainer(); - public V1PodSpecFluent.EphemeralContainersNested editLastEphemeralContainer(); - - public V1PodSpecFluent.EphemeralContainersNested editMatchingEphemeralContainer( - Predicate predicate); - - public A addToHostAliases(Integer index, V1HostAlias item); - - public A setToHostAliases(Integer index, V1HostAlias item); - + public V1PodSpecFluent.EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate); + public A addToHostAliases(Integer index,V1HostAlias item); + public A setToHostAliases(Integer index,V1HostAlias item); public A addToHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items); - public A addAllToHostAliases(Collection items); - public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items); - public A removeAllFromHostAliases(Collection items); - public A removeMatchingFromHostAliases(Predicate predicate); - + /** * This method has been deprecated, please use method buildHostAliases instead. - * * @return The buildable object. */ @Deprecated public List getHostAliases(); - public List buildHostAliases(); - public V1HostAlias buildHostAlias(Integer index); - public V1HostAlias buildFirstHostAlias(); - public V1HostAlias buildLastHostAlias(); - public V1HostAlias buildMatchingHostAlias(Predicate predicate); - public Boolean hasMatchingHostAlias(Predicate predicate); - public A withHostAliases(List hostAliases); - public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... hostAliases); - public Boolean hasHostAliases(); - public V1PodSpecFluent.HostAliasesNested addNewHostAlias(); - public V1PodSpecFluent.HostAliasesNested addNewHostAliasLike(V1HostAlias item); - - public V1PodSpecFluent.HostAliasesNested setNewHostAliasLike(Integer index, V1HostAlias item); - + public V1PodSpecFluent.HostAliasesNested setNewHostAliasLike(Integer index,V1HostAlias item); public V1PodSpecFluent.HostAliasesNested editHostAlias(Integer index); - public V1PodSpecFluent.HostAliasesNested editFirstHostAlias(); - public V1PodSpecFluent.HostAliasesNested editLastHostAlias(); - - public V1PodSpecFluent.HostAliasesNested editMatchingHostAlias( - Predicate predicate); - + public V1PodSpecFluent.HostAliasesNested editMatchingHostAlias(Predicate predicate); public Boolean getHostIPC(); - public A withHostIPC(Boolean hostIPC); - public Boolean hasHostIPC(); - public Boolean getHostNetwork(); - public A withHostNetwork(Boolean hostNetwork); - public Boolean hasHostNetwork(); - public Boolean getHostPID(); - public A withHostPID(Boolean hostPID); - public Boolean hasHostPID(); - public Boolean getHostUsers(); - public A withHostUsers(Boolean hostUsers); - public Boolean hasHostUsers(); - public String getHostname(); - public A withHostname(String hostname); - public Boolean hasHostname(); - - public A addToImagePullSecrets(Integer index, V1LocalObjectReference item); - - public A setToImagePullSecrets(Integer index, V1LocalObjectReference item); - - public A addToImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - + public A addToImagePullSecrets(Integer index,V1LocalObjectReference item); + public A setToImagePullSecrets(Integer index,V1LocalObjectReference item); + public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items); public A addAllToImagePullSecrets(Collection items); - - public A removeFromImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - + public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items); public A removeAllFromImagePullSecrets(Collection items); - public A removeMatchingFromImagePullSecrets(Predicate predicate); - + /** * This method has been deprecated, please use method buildImagePullSecrets instead. - * * @return The buildable object. */ @Deprecated public List getImagePullSecrets(); - public List buildImagePullSecrets(); - public V1LocalObjectReference buildImagePullSecret(Integer index); - public V1LocalObjectReference buildFirstImagePullSecret(); - public V1LocalObjectReference buildLastImagePullSecret(); - - public V1LocalObjectReference buildMatchingImagePullSecret( - Predicate predicate); - + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate); public Boolean hasMatchingImagePullSecret(Predicate predicate); - public A withImagePullSecrets(List imagePullSecrets); - - public A withImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets); - + public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets); public Boolean hasImagePullSecrets(); - public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecret(); - - public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecretLike( - V1LocalObjectReference item); - - public V1PodSpecFluent.ImagePullSecretsNested setNewImagePullSecretLike( - Integer index, V1LocalObjectReference item); - + public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item); + public V1PodSpecFluent.ImagePullSecretsNested setNewImagePullSecretLike(Integer index,V1LocalObjectReference item); public V1PodSpecFluent.ImagePullSecretsNested editImagePullSecret(Integer index); - public V1PodSpecFluent.ImagePullSecretsNested editFirstImagePullSecret(); - public V1PodSpecFluent.ImagePullSecretsNested editLastImagePullSecret(); - - public V1PodSpecFluent.ImagePullSecretsNested editMatchingImagePullSecret( - Predicate predicate); - - public A addToInitContainers(Integer index, V1Container item); - - public A setToInitContainers(Integer index, V1Container item); - + public V1PodSpecFluent.ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate); + public A addToInitContainers(Integer index,V1Container item); + public A setToInitContainers(Integer index,V1Container item); public A addToInitContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A addAllToInitContainers(Collection items); - public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A removeAllFromInitContainers(Collection items); - public A removeMatchingFromInitContainers(Predicate predicate); - + /** * This method has been deprecated, please use method buildInitContainers instead. - * * @return The buildable object. */ @Deprecated public List getInitContainers(); - public List buildInitContainers(); - public V1Container buildInitContainer(Integer index); - public V1Container buildFirstInitContainer(); - public V1Container buildLastInitContainer(); - public V1Container buildMatchingInitContainer(Predicate predicate); - public Boolean hasMatchingInitContainer(Predicate predicate); - public A withInitContainers(List initContainers); - public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... initContainers); - public Boolean hasInitContainers(); - public V1PodSpecFluent.InitContainersNested addNewInitContainer(); - public V1PodSpecFluent.InitContainersNested addNewInitContainerLike(V1Container item); - - public V1PodSpecFluent.InitContainersNested setNewInitContainerLike( - Integer index, V1Container item); - + public V1PodSpecFluent.InitContainersNested setNewInitContainerLike(Integer index,V1Container item); public V1PodSpecFluent.InitContainersNested editInitContainer(Integer index); - public V1PodSpecFluent.InitContainersNested editFirstInitContainer(); - public V1PodSpecFluent.InitContainersNested editLastInitContainer(); - - public V1PodSpecFluent.InitContainersNested editMatchingInitContainer( - Predicate predicate); - + public V1PodSpecFluent.InitContainersNested editMatchingInitContainer(Predicate predicate); public String getNodeName(); - public A withNodeName(String nodeName); - public Boolean hasNodeName(); - - public A addToNodeSelector(String key, String value); - - public A addToNodeSelector(Map map); - + public A addToNodeSelector(String key,String value); + public A addToNodeSelector(Map map); public A removeFromNodeSelector(String key); - - public A removeFromNodeSelector(Map map); - - public Map getNodeSelector(); - - public A withNodeSelector(Map nodeSelector); - + public A removeFromNodeSelector(Map map); + public Map getNodeSelector(); + public A withNodeSelector(Map nodeSelector); public Boolean hasNodeSelector(); - + /** * This method has been deprecated, please use method buildOs instead. - * * @return The buildable object. */ @Deprecated public V1PodOS getOs(); - public V1PodOS buildOs(); - public A withOs(V1PodOS os); - public Boolean hasOs(); - public V1PodSpecFluent.OsNested withNewOs(); - public V1PodSpecFluent.OsNested withNewOsLike(V1PodOS item); - public V1PodSpecFluent.OsNested editOs(); - public V1PodSpecFluent.OsNested editOrNewOs(); - public V1PodSpecFluent.OsNested editOrNewOsLike(V1PodOS item); - - public A addToOverhead(String key, Quantity value); - - public A addToOverhead(Map map); - + public A addToOverhead(String key,Quantity value); + public A addToOverhead(Map map); public A removeFromOverhead(String key); - - public A removeFromOverhead(Map map); - - public Map getOverhead(); - - public A withOverhead(Map overhead); - + public A removeFromOverhead(Map map); + public Map getOverhead(); + public A withOverhead(Map overhead); public Boolean hasOverhead(); - public String getPreemptionPolicy(); - public A withPreemptionPolicy(String preemptionPolicy); - public Boolean hasPreemptionPolicy(); - public Integer getPriority(); - public A withPriority(Integer priority); - public Boolean hasPriority(); - public String getPriorityClassName(); - public A withPriorityClassName(String priorityClassName); - public Boolean hasPriorityClassName(); - - public A addToReadinessGates(Integer index, V1PodReadinessGate item); - - public A setToReadinessGates(Integer index, V1PodReadinessGate item); - + public A addToReadinessGates(Integer index,V1PodReadinessGate item); + public A setToReadinessGates(Integer index,V1PodReadinessGate item); public A addToReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items); - public A addAllToReadinessGates(Collection items); - - public A removeFromReadinessGates( - io.kubernetes.client.openapi.models.V1PodReadinessGate... items); - + public A removeFromReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items); public A removeAllFromReadinessGates(Collection items); - public A removeMatchingFromReadinessGates(Predicate predicate); - + /** * This method has been deprecated, please use method buildReadinessGates instead. - * * @return The buildable object. */ @Deprecated public List getReadinessGates(); - public List buildReadinessGates(); - public V1PodReadinessGate buildReadinessGate(Integer index); - public V1PodReadinessGate buildFirstReadinessGate(); - public V1PodReadinessGate buildLastReadinessGate(); - - public V1PodReadinessGate buildMatchingReadinessGate( - Predicate predicate); - + public V1PodReadinessGate buildMatchingReadinessGate(Predicate predicate); public Boolean hasMatchingReadinessGate(Predicate predicate); - public A withReadinessGates(List readinessGates); - - public A withReadinessGates( - io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates); - + public A withReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates); public Boolean hasReadinessGates(); - public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGate(); - public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item); - - public V1PodSpecFluent.ReadinessGatesNested setNewReadinessGateLike( - Integer index, V1PodReadinessGate item); - + public V1PodSpecFluent.ReadinessGatesNested setNewReadinessGateLike(Integer index,V1PodReadinessGate item); public V1PodSpecFluent.ReadinessGatesNested editReadinessGate(Integer index); - public V1PodSpecFluent.ReadinessGatesNested editFirstReadinessGate(); - public V1PodSpecFluent.ReadinessGatesNested editLastReadinessGate(); - - public V1PodSpecFluent.ReadinessGatesNested editMatchingReadinessGate( - Predicate predicate); - + public V1PodSpecFluent.ReadinessGatesNested editMatchingReadinessGate(Predicate predicate); public String getRestartPolicy(); - public A withRestartPolicy(String restartPolicy); - public Boolean hasRestartPolicy(); - public String getRuntimeClassName(); - public A withRuntimeClassName(String runtimeClassName); - public Boolean hasRuntimeClassName(); - public String getSchedulerName(); - public A withSchedulerName(String schedulerName); - public Boolean hasSchedulerName(); - + /** * This method has been deprecated, please use method buildSecurityContext instead. - * * @return The buildable object. */ @Deprecated public V1PodSecurityContext getSecurityContext(); - public V1PodSecurityContext buildSecurityContext(); - public A withSecurityContext(V1PodSecurityContext securityContext); - public Boolean hasSecurityContext(); - public V1PodSpecFluent.SecurityContextNested withNewSecurityContext(); - - public V1PodSpecFluent.SecurityContextNested withNewSecurityContextLike( - V1PodSecurityContext item); - + public V1PodSpecFluent.SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item); public V1PodSpecFluent.SecurityContextNested editSecurityContext(); - public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContext(); - - public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContextLike( - V1PodSecurityContext item); - + public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item); public String getServiceAccount(); - public A withServiceAccount(String serviceAccount); - public Boolean hasServiceAccount(); - public String getServiceAccountName(); - public A withServiceAccountName(String serviceAccountName); - public Boolean hasServiceAccountName(); - public Boolean getSetHostnameAsFQDN(); - public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN); - public Boolean hasSetHostnameAsFQDN(); - public Boolean getShareProcessNamespace(); - public A withShareProcessNamespace(Boolean shareProcessNamespace); - public Boolean hasShareProcessNamespace(); - public String getSubdomain(); - public A withSubdomain(String subdomain); - public Boolean hasSubdomain(); - public Long getTerminationGracePeriodSeconds(); - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds); - public Boolean hasTerminationGracePeriodSeconds(); - - public A addToTolerations(Integer index, V1Toleration item); - - public A setToTolerations(Integer index, V1Toleration item); - + public A addToTolerations(Integer index,V1Toleration item); + public A setToTolerations(Integer index,V1Toleration item); public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A addAllToTolerations(Collection items); - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A removeAllFromTolerations(Collection items); - public A removeMatchingFromTolerations(Predicate predicate); - + /** * This method has been deprecated, please use method buildTolerations instead. - * * @return The buildable object. */ @Deprecated public List getTolerations(); - public List buildTolerations(); - public V1Toleration buildToleration(Integer index); - public V1Toleration buildFirstToleration(); - public V1Toleration buildLastToleration(); - public V1Toleration buildMatchingToleration(Predicate predicate); - public Boolean hasMatchingToleration(Predicate predicate); - public A withTolerations(List tolerations); - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations); - public Boolean hasTolerations(); - public V1PodSpecFluent.TolerationsNested addNewToleration(); - public V1PodSpecFluent.TolerationsNested addNewTolerationLike(V1Toleration item); - - public V1PodSpecFluent.TolerationsNested setNewTolerationLike( - Integer index, V1Toleration item); - + public V1PodSpecFluent.TolerationsNested setNewTolerationLike(Integer index,V1Toleration item); public V1PodSpecFluent.TolerationsNested editToleration(Integer index); - public V1PodSpecFluent.TolerationsNested editFirstToleration(); - public V1PodSpecFluent.TolerationsNested editLastToleration(); - - public V1PodSpecFluent.TolerationsNested editMatchingToleration( - Predicate predicate); - - public A addToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item); - - public A setToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item); - - public A addToTopologySpreadConstraints( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items); - + public V1PodSpecFluent.TolerationsNested editMatchingToleration(Predicate predicate); + public A addToTopologySpreadConstraints(Integer index,V1TopologySpreadConstraint item); + public A setToTopologySpreadConstraints(Integer index,V1TopologySpreadConstraint item); + public A addToTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items); public A addAllToTopologySpreadConstraints(Collection items); - - public A removeFromTopologySpreadConstraints( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items); - + public A removeFromTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items); public A removeAllFromTopologySpreadConstraints(Collection items); - - public A removeMatchingFromTopologySpreadConstraints( - Predicate predicate); - + public A removeMatchingFromTopologySpreadConstraints(Predicate predicate); + /** * This method has been deprecated, please use method buildTopologySpreadConstraints instead. - * * @return The buildable object. */ @Deprecated public List getTopologySpreadConstraints(); - public List buildTopologySpreadConstraints(); - public V1TopologySpreadConstraint buildTopologySpreadConstraint(Integer index); - public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint(); - public V1TopologySpreadConstraint buildLastTopologySpreadConstraint(); - - public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint( - Predicate predicate); - - public Boolean hasMatchingTopologySpreadConstraint( - Predicate predicate); - - public A withTopologySpreadConstraints( - List topologySpreadConstraints); - - public A withTopologySpreadConstraints( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints); - + public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint(Predicate predicate); + public Boolean hasMatchingTopologySpreadConstraint(Predicate predicate); + public A withTopologySpreadConstraints(List topologySpreadConstraints); + public A withTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints); public Boolean hasTopologySpreadConstraints(); - public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraint(); - - public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike( - V1TopologySpreadConstraint item); - - public V1PodSpecFluent.TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike( - Integer index, V1TopologySpreadConstraint item); - - public V1PodSpecFluent.TopologySpreadConstraintsNested editTopologySpreadConstraint( - Integer index); - + public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item); + public V1PodSpecFluent.TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(Integer index,V1TopologySpreadConstraint item); + public V1PodSpecFluent.TopologySpreadConstraintsNested editTopologySpreadConstraint(Integer index); public V1PodSpecFluent.TopologySpreadConstraintsNested editFirstTopologySpreadConstraint(); - public V1PodSpecFluent.TopologySpreadConstraintsNested editLastTopologySpreadConstraint(); - - public V1PodSpecFluent.TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint( - Predicate predicate); - - public A addToVolumes(Integer index, V1Volume item); - - public A setToVolumes(Integer index, V1Volume item); - + public V1PodSpecFluent.TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate); + public A addToVolumes(Integer index,V1Volume item); + public A setToVolumes(Integer index,V1Volume item); public A addToVolumes(io.kubernetes.client.openapi.models.V1Volume... items); - public A addAllToVolumes(Collection items); - public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items); - public A removeAllFromVolumes(Collection items); - public A removeMatchingFromVolumes(Predicate predicate); - + /** * This method has been deprecated, please use method buildVolumes instead. - * * @return The buildable object. */ @Deprecated public List getVolumes(); - public List buildVolumes(); - public V1Volume buildVolume(Integer index); - public V1Volume buildFirstVolume(); - public V1Volume buildLastVolume(); - public V1Volume buildMatchingVolume(Predicate predicate); - public Boolean hasMatchingVolume(Predicate predicate); - public A withVolumes(List volumes); - public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes); - public Boolean hasVolumes(); - public V1PodSpecFluent.VolumesNested addNewVolume(); - public V1PodSpecFluent.VolumesNested addNewVolumeLike(V1Volume item); - - public V1PodSpecFluent.VolumesNested setNewVolumeLike(Integer index, V1Volume item); - + public V1PodSpecFluent.VolumesNested setNewVolumeLike(Integer index,V1Volume item); public V1PodSpecFluent.VolumesNested editVolume(Integer index); - public V1PodSpecFluent.VolumesNested editFirstVolume(); - public V1PodSpecFluent.VolumesNested editLastVolume(); - public V1PodSpecFluent.VolumesNested editMatchingVolume(Predicate predicate); - public A withAutomountServiceAccountToken(); - public A withEnableServiceLinks(); - public A withHostIPC(); - public A withHostNetwork(); - public A withHostPID(); - public A withHostUsers(); - public A withSetHostnameAsFQDN(); - public A withShareProcessNamespace(); - - public interface AffinityNested - extends Nested, V1AffinityFluent> { + public interface AffinityNested extends Nested,V1AffinityFluent>{ public N and(); - public N endAffinity(); + } - - public interface ContainersNested - extends Nested, V1ContainerFluent> { + public interface ContainersNested extends Nested,V1ContainerFluent>{ public N and(); - public N endContainer(); + } - - public interface DnsConfigNested - extends Nested, V1PodDNSConfigFluent> { + public interface DnsConfigNested extends Nested,V1PodDNSConfigFluent>{ public N and(); - public N endDnsConfig(); + } - - public interface EphemeralContainersNested - extends Nested, V1EphemeralContainerFluent> { + public interface EphemeralContainersNested extends Nested,V1EphemeralContainerFluent>{ public N and(); - public N endEphemeralContainer(); + } - - public interface HostAliasesNested - extends Nested, V1HostAliasFluent> { + public interface HostAliasesNested extends Nested,V1HostAliasFluent>{ public N and(); - public N endHostAlias(); + } - - public interface ImagePullSecretsNested - extends Nested, V1LocalObjectReferenceFluent> { + public interface ImagePullSecretsNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endImagePullSecret(); + } - - public interface InitContainersNested - extends Nested, V1ContainerFluent> { + public interface InitContainersNested extends Nested,V1ContainerFluent>{ public N and(); - public N endInitContainer(); + } - - public interface OsNested extends Nested, V1PodOSFluent> { + public interface OsNested extends Nested,V1PodOSFluent>{ public N and(); - public N endOs(); + } - - public interface ReadinessGatesNested - extends Nested, V1PodReadinessGateFluent> { + public interface ReadinessGatesNested extends Nested,V1PodReadinessGateFluent>{ public N and(); - public N endReadinessGate(); + } - - public interface SecurityContextNested - extends Nested, V1PodSecurityContextFluent> { + public interface SecurityContextNested extends Nested,V1PodSecurityContextFluent>{ public N and(); - public N endSecurityContext(); + } - - public interface TolerationsNested - extends Nested, V1TolerationFluent> { + public interface TolerationsNested extends Nested,V1TolerationFluent>{ public N and(); - public N endToleration(); + } - - public interface TopologySpreadConstraintsNested - extends Nested, - V1TopologySpreadConstraintFluent> { + public interface TopologySpreadConstraintsNested extends Nested,V1TopologySpreadConstraintFluent>{ public N and(); - public N endTopologySpreadConstraint(); + } - - public interface VolumesNested - extends Nested, V1VolumeFluent> { + public interface VolumesNested extends Nested,V1VolumeFluent>{ public N and(); - public N endVolume(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java index 506615190d..961d6c575c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java @@ -1,34 +1,31 @@ -/* -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.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; +import io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodSpecFluentImpl> extends BaseFluent - implements V1PodSpecFluent { - public V1PodSpecFluentImpl() {} +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; +import java.util.Iterator; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodSpecFluentImpl> extends BaseFluent implements V1PodSpecFluent{ + public V1PodSpecFluentImpl() { + } public V1PodSpecFluentImpl(V1PodSpec instance) { this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); @@ -103,8 +100,8 @@ public V1PodSpecFluentImpl(V1PodSpec instance) { this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); this.withVolumes(instance.getVolumes()); - } + } private Long activeDeadlineSeconds; private V1AffinityBuilder affinity; private Boolean automountServiceAccountToken; @@ -122,9 +119,9 @@ public V1PodSpecFluentImpl(V1PodSpec instance) { private ArrayList imagePullSecrets; private ArrayList initContainers; private String nodeName; - private Map nodeSelector; + private Map nodeSelector; private V1PodOSBuilder os; - private Map overhead; + private Map overhead; private String preemptionPolicy; private Integer priority; private String priorityClassName; @@ -142,160 +139,83 @@ public V1PodSpecFluentImpl(V1PodSpec instance) { private ArrayList tolerations; private ArrayList topologySpreadConstraints; private ArrayList volumes; - public Long getActiveDeadlineSeconds() { return this.activeDeadlineSeconds; } - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { - this.activeDeadlineSeconds = activeDeadlineSeconds; - return (A) this; + this.activeDeadlineSeconds=activeDeadlineSeconds; return (A) this; } - public Boolean hasActiveDeadlineSeconds() { return this.activeDeadlineSeconds != null; } - + /** * This method has been deprecated, please use method buildAffinity instead. - * * @return The buildable object. */ @Deprecated public V1Affinity getAffinity() { - return this.affinity != null ? this.affinity.build() : null; + return this.affinity!=null ?this.affinity.build():null; } - public V1Affinity buildAffinity() { - return this.affinity != null ? this.affinity.build() : null; + return this.affinity!=null ?this.affinity.build():null; } - public A withAffinity(V1Affinity affinity) { _visitables.get("affinity").remove(this.affinity); - if (affinity != null) { - this.affinity = new V1AffinityBuilder(affinity); - _visitables.get("affinity").add(this.affinity); - } else { - this.affinity = null; - _visitables.get("affinity").remove(this.affinity); - } - return (A) this; + if (affinity!=null){ this.affinity= new V1AffinityBuilder(affinity); _visitables.get("affinity").add(this.affinity);} else { this.affinity = null; _visitables.get("affinity").remove(this.affinity); } return (A) this; } - public Boolean hasAffinity() { return this.affinity != null; } - public V1PodSpecFluent.AffinityNested withNewAffinity() { return new V1PodSpecFluentImpl.AffinityNestedImpl(); } - public V1PodSpecFluent.AffinityNested withNewAffinityLike(V1Affinity item) { return new V1PodSpecFluentImpl.AffinityNestedImpl(item); } - public V1PodSpecFluent.AffinityNested editAffinity() { return withNewAffinityLike(getAffinity()); } - public V1PodSpecFluent.AffinityNested editOrNewAffinity() { - return withNewAffinityLike( - getAffinity() != null ? getAffinity() : new V1AffinityBuilder().build()); + return withNewAffinityLike(getAffinity() != null ? getAffinity(): new V1AffinityBuilder().build()); } - public V1PodSpecFluent.AffinityNested editOrNewAffinityLike(V1Affinity item) { - return withNewAffinityLike(getAffinity() != null ? getAffinity() : item); + return withNewAffinityLike(getAffinity() != null ? getAffinity(): item); } - public Boolean getAutomountServiceAccountToken() { return this.automountServiceAccountToken; } - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { - this.automountServiceAccountToken = automountServiceAccountToken; - return (A) this; + this.automountServiceAccountToken=automountServiceAccountToken; return (A) this; } - public Boolean hasAutomountServiceAccountToken() { return this.automountServiceAccountToken != null; } - - public A addToContainers(Integer index, V1Container item) { - if (this.containers == null) { - this.containers = new ArrayList(); - } - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables - .get("containers") - .add(index >= 0 ? index : _visitables.get("containers").size(), builder); - this.containers.add(index >= 0 ? index : containers.size(), builder); - return (A) this; + public A addToContainers(Integer index,V1Container item) { + if (this.containers == null) {this.containers = new ArrayList();} + V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(index >= 0 ? index : _visitables.get("containers").size(), builder);this.containers.add(index >= 0 ? index : containers.size(), builder); return (A)this; } - - public A setToContainers(Integer index, V1Container item) { - if (this.containers == null) { - this.containers = new ArrayList(); - } + public A setToContainers(Integer index,V1Container item) { + if (this.containers == null) {this.containers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= _visitables.get("containers").size()) { - _visitables.get("containers").add(builder); - } else { - _visitables.get("containers").set(index, builder); - } - if (index < 0 || index >= containers.size()) { - containers.add(builder); - } else { - containers.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("containers").size()) { _visitables.get("containers").add(builder); } else { _visitables.get("containers").set(index, builder);} + if (index < 0 || index >= containers.size()) { containers.add(builder); } else { containers.set(index, builder);} + return (A)this; } - public A addToContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.containers == null) { - this.containers = new ArrayList(); - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").add(builder); - this.containers.add(builder); - } - return (A) this; + if (this.containers == null) {this.containers = new ArrayList();} + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(builder);this.containers.add(builder);} return (A)this; } - public A addAllToContainers(Collection items) { - if (this.containers == null) { - this.containers = new ArrayList(); - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").add(builder); - this.containers.add(builder); - } - return (A) this; + if (this.containers == null) {this.containers = new ArrayList();} + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(builder);this.containers.add(builder);} return (A)this; } - public A removeFromContainers(io.kubernetes.client.openapi.models.V1Container... items) { - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").remove(builder); - if (this.containers != null) { - this.containers.remove(builder); - } - } - return (A) this; + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").remove(builder);if (this.containers != null) {this.containers.remove(builder);}} return (A)this; } - public A removeAllFromContainers(Collection items) { - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").remove(builder); - if (this.containers != null) { - this.containers.remove(builder); - } - } - return (A) this; + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").remove(builder);if (this.containers != null) {this.containers.remove(builder);}} return (A)this; } - public A removeMatchingFromContainers(Predicate predicate) { if (containers == null) return (A) this; final Iterator each = containers.iterator(); @@ -307,282 +227,153 @@ public A removeMatchingFromContainers(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildContainers instead. - * * @return The buildable object. */ @Deprecated public List getContainers() { return containers != null ? build(containers) : null; } - public List buildContainers() { return containers != null ? build(containers) : null; } - public V1Container buildContainer(Integer index) { return this.containers.get(index).build(); } - public V1Container buildFirstContainer() { return this.containers.get(0).build(); } - public V1Container buildLastContainer() { return this.containers.get(containers.size() - 1).build(); } - public V1Container buildMatchingContainer(Predicate predicate) { - for (V1ContainerBuilder item : containers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ContainerBuilder item: containers) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingContainer(Predicate predicate) { - for (V1ContainerBuilder item : containers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerBuilder item: containers) { if(predicate.test(item)){ return true;} } return false; } - public A withContainers(List containers) { - if (this.containers != null) { - _visitables.get("containers").removeAll(this.containers); - } - if (containers != null) { - this.containers = new ArrayList(); - for (V1Container item : containers) { - this.addToContainers(item); - } - } else { - this.containers = null; - } - return (A) this; + if (this.containers != null) { _visitables.get("containers").removeAll(this.containers);} + if (containers != null) {this.containers = new ArrayList(); for (V1Container item : containers){this.addToContainers(item);}} else { this.containers = null;} return (A) this; } - public A withContainers(io.kubernetes.client.openapi.models.V1Container... containers) { - if (this.containers != null) { - this.containers.clear(); - } - if (containers != null) { - for (V1Container item : containers) { - this.addToContainers(item); - } - } - return (A) this; + if (this.containers != null) {this.containers.clear();} + if (containers != null) {for (V1Container item :containers){ this.addToContainers(item);}} return (A) this; } - public Boolean hasContainers() { return containers != null && !containers.isEmpty(); } - public V1PodSpecFluent.ContainersNested addNewContainer() { return new V1PodSpecFluentImpl.ContainersNestedImpl(); } - public V1PodSpecFluent.ContainersNested addNewContainerLike(V1Container item) { return new V1PodSpecFluentImpl.ContainersNestedImpl(-1, item); } - - public V1PodSpecFluent.ContainersNested setNewContainerLike(Integer index, V1Container item) { + public V1PodSpecFluent.ContainersNested setNewContainerLike(Integer index,V1Container item) { return new V1PodSpecFluentImpl.ContainersNestedImpl(index, item); } - public V1PodSpecFluent.ContainersNested editContainer(Integer index) { - if (containers.size() <= index) - throw new RuntimeException("Can't edit containers. Index exceeds size."); + if (containers.size() <= index) throw new RuntimeException("Can't edit containers. Index exceeds size."); return setNewContainerLike(index, buildContainer(index)); } - public V1PodSpecFluent.ContainersNested editFirstContainer() { - if (containers.size() == 0) - throw new RuntimeException("Can't edit first containers. The list is empty."); + if (containers.size() == 0) throw new RuntimeException("Can't edit first containers. The list is empty."); return setNewContainerLike(0, buildContainer(0)); } - public V1PodSpecFluent.ContainersNested editLastContainer() { int index = containers.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last containers. The list is empty."); return setNewContainerLike(index, buildContainer(index)); } - - public V1PodSpecFluent.ContainersNested editMatchingContainer( - Predicate predicate) { + public V1PodSpecFluent.ContainersNested editMatchingContainer(Predicate predicate) { int index = -1; - for (int i = 0; i < containers.size(); i++) { - if (predicate.test(containers.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewDnsConfig() { return new V1PodSpecFluentImpl.DnsConfigNestedImpl(); } - public V1PodSpecFluent.DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { return new V1PodSpecFluentImpl.DnsConfigNestedImpl(item); } - public V1PodSpecFluent.DnsConfigNested editDnsConfig() { return withNewDnsConfigLike(getDnsConfig()); } - public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfig() { - return withNewDnsConfigLike( - getDnsConfig() != null ? getDnsConfig() : new V1PodDNSConfigBuilder().build()); + return withNewDnsConfigLike(getDnsConfig() != null ? getDnsConfig(): new V1PodDNSConfigBuilder().build()); } - public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { - return withNewDnsConfigLike(getDnsConfig() != null ? getDnsConfig() : item); + return withNewDnsConfigLike(getDnsConfig() != null ? getDnsConfig(): item); } - public String getDnsPolicy() { return this.dnsPolicy; } - public A withDnsPolicy(String dnsPolicy) { - this.dnsPolicy = dnsPolicy; - return (A) this; + this.dnsPolicy=dnsPolicy; return (A) this; } - public Boolean hasDnsPolicy() { return this.dnsPolicy != null; } - public Boolean getEnableServiceLinks() { return this.enableServiceLinks; } - public A withEnableServiceLinks(Boolean enableServiceLinks) { - this.enableServiceLinks = enableServiceLinks; - return (A) this; + this.enableServiceLinks=enableServiceLinks; return (A) this; } - public Boolean hasEnableServiceLinks() { return this.enableServiceLinks != null; } - - public A addToEphemeralContainers(Integer index, V1EphemeralContainer item) { - if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); - } - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables - .get("ephemeralContainers") - .add(index >= 0 ? index : _visitables.get("ephemeralContainers").size(), builder); - this.ephemeralContainers.add(index >= 0 ? index : ephemeralContainers.size(), builder); - return (A) this; + public A addToEphemeralContainers(Integer index,V1EphemeralContainer item) { + if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(index >= 0 ? index : _visitables.get("ephemeralContainers").size(), builder);this.ephemeralContainers.add(index >= 0 ? index : ephemeralContainers.size(), builder); return (A)this; } - - public A setToEphemeralContainers(Integer index, V1EphemeralContainer item) { - if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); - } + public A setToEphemeralContainers(Integer index,V1EphemeralContainer item) { + if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= _visitables.get("ephemeralContainers").size()) { - _visitables.get("ephemeralContainers").add(builder); - } else { - _visitables.get("ephemeralContainers").set(index, builder); - } - if (index < 0 || index >= ephemeralContainers.size()) { - ephemeralContainers.add(builder); - } else { - ephemeralContainers.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ephemeralContainers").size()) { _visitables.get("ephemeralContainers").add(builder); } else { _visitables.get("ephemeralContainers").set(index, builder);} + if (index < 0 || index >= ephemeralContainers.size()) { ephemeralContainers.add(builder); } else { ephemeralContainers.set(index, builder);} + return (A)this; } - - public A addToEphemeralContainers( - io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); - } - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").add(builder); - this.ephemeralContainers.add(builder); - } - return (A) this; + public A addToEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { + if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} + for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(builder);this.ephemeralContainers.add(builder);} return (A)this; } - public A addAllToEphemeralContainers(Collection items) { - if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); - } - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").add(builder); - this.ephemeralContainers.add(builder); - } - return (A) this; + if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} + for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(builder);this.ephemeralContainers.add(builder);} return (A)this; } - - public A removeFromEphemeralContainers( - io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").remove(builder); - if (this.ephemeralContainers != null) { - this.ephemeralContainers.remove(builder); - } - } - return (A) this; + public A removeFromEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { + for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").remove(builder);if (this.ephemeralContainers != null) {this.ephemeralContainers.remove(builder);}} return (A)this; } - public A removeAllFromEphemeralContainers(Collection items) { - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").remove(builder); - if (this.ephemeralContainers != null) { - this.ephemeralContainers.remove(builder); - } - } - return (A) this; + for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").remove(builder);if (this.ephemeralContainers != null) {this.ephemeralContainers.remove(builder);}} return (A)this; } - public A removeMatchingFromEphemeralContainers(Predicate predicate) { if (ephemeralContainers == null) return (A) this; final Iterator each = ephemeralContainers.iterator(); @@ -594,209 +385,101 @@ public A removeMatchingFromEphemeralContainers(Predicate getEphemeralContainers() { return ephemeralContainers != null ? build(ephemeralContainers) : null; } - public List buildEphemeralContainers() { return ephemeralContainers != null ? build(ephemeralContainers) : null; } - public V1EphemeralContainer buildEphemeralContainer(Integer index) { return this.ephemeralContainers.get(index).build(); } - public V1EphemeralContainer buildFirstEphemeralContainer() { return this.ephemeralContainers.get(0).build(); } - public V1EphemeralContainer buildLastEphemeralContainer() { return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); } - - public V1EphemeralContainer buildMatchingEphemeralContainer( - Predicate predicate) { - for (V1EphemeralContainerBuilder item : ephemeralContainers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate) { + for (V1EphemeralContainerBuilder item: ephemeralContainers) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingEphemeralContainer(Predicate predicate) { - for (V1EphemeralContainerBuilder item : ephemeralContainers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1EphemeralContainerBuilder item: ephemeralContainers) { if(predicate.test(item)){ return true;} } return false; } - public A withEphemeralContainers(List ephemeralContainers) { - if (this.ephemeralContainers != null) { - _visitables.get("ephemeralContainers").removeAll(this.ephemeralContainers); - } - if (ephemeralContainers != null) { - this.ephemeralContainers = new ArrayList(); - for (V1EphemeralContainer item : ephemeralContainers) { - this.addToEphemeralContainers(item); - } - } else { - this.ephemeralContainers = null; - } - return (A) this; + if (this.ephemeralContainers != null) { _visitables.get("ephemeralContainers").removeAll(this.ephemeralContainers);} + if (ephemeralContainers != null) {this.ephemeralContainers = new ArrayList(); for (V1EphemeralContainer item : ephemeralContainers){this.addToEphemeralContainers(item);}} else { this.ephemeralContainers = null;} return (A) this; } - - public A withEphemeralContainers( - io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers) { - if (this.ephemeralContainers != null) { - this.ephemeralContainers.clear(); - } - if (ephemeralContainers != null) { - for (V1EphemeralContainer item : ephemeralContainers) { - this.addToEphemeralContainers(item); - } - } - return (A) this; + public A withEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers) { + if (this.ephemeralContainers != null) {this.ephemeralContainers.clear();} + if (ephemeralContainers != null) {for (V1EphemeralContainer item :ephemeralContainers){ this.addToEphemeralContainers(item);}} return (A) this; } - public Boolean hasEphemeralContainers() { return ephemeralContainers != null && !ephemeralContainers.isEmpty(); } - public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainer() { return new V1PodSpecFluentImpl.EphemeralContainersNestedImpl(); } - - public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainerLike( - V1EphemeralContainer item) { + public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item) { return new V1PodSpecFluentImpl.EphemeralContainersNestedImpl(-1, item); } - - public V1PodSpecFluent.EphemeralContainersNested setNewEphemeralContainerLike( - Integer index, V1EphemeralContainer item) { + public V1PodSpecFluent.EphemeralContainersNested setNewEphemeralContainerLike(Integer index,V1EphemeralContainer item) { return new V1PodSpecFluentImpl.EphemeralContainersNestedImpl(index, item); } - public V1PodSpecFluent.EphemeralContainersNested editEphemeralContainer(Integer index) { - if (ephemeralContainers.size() <= index) - throw new RuntimeException("Can't edit ephemeralContainers. Index exceeds size."); + if (ephemeralContainers.size() <= index) throw new RuntimeException("Can't edit ephemeralContainers. Index exceeds size."); return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); } - public V1PodSpecFluent.EphemeralContainersNested editFirstEphemeralContainer() { - if (ephemeralContainers.size() == 0) - throw new RuntimeException("Can't edit first ephemeralContainers. The list is empty."); + if (ephemeralContainers.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainers. The list is empty."); return setNewEphemeralContainerLike(0, buildEphemeralContainer(0)); } - public V1PodSpecFluent.EphemeralContainersNested editLastEphemeralContainer() { int index = ephemeralContainers.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last ephemeralContainers. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last ephemeralContainers. The list is empty."); return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); } - - public V1PodSpecFluent.EphemeralContainersNested editMatchingEphemeralContainer( - Predicate predicate) { + public V1PodSpecFluent.EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate) { int index = -1; - for (int i = 0; i < ephemeralContainers.size(); i++) { - if (predicate.test(ephemeralContainers.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching ephemeralContainers. No match found."); + for (int i=0;i(); - } - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables - .get("hostAliases") - .add(index >= 0 ? index : _visitables.get("hostAliases").size(), builder); - this.hostAliases.add(index >= 0 ? index : hostAliases.size(), builder); - return (A) this; + public A addToHostAliases(Integer index,V1HostAlias item) { + if (this.hostAliases == null) {this.hostAliases = new ArrayList();} + V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(index >= 0 ? index : _visitables.get("hostAliases").size(), builder);this.hostAliases.add(index >= 0 ? index : hostAliases.size(), builder); return (A)this; } - - public A setToHostAliases(Integer index, V1HostAlias item) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); - } + public A setToHostAliases(Integer index,V1HostAlias item) { + if (this.hostAliases == null) {this.hostAliases = new ArrayList();} V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= _visitables.get("hostAliases").size()) { - _visitables.get("hostAliases").add(builder); - } else { - _visitables.get("hostAliases").set(index, builder); - } - if (index < 0 || index >= hostAliases.size()) { - hostAliases.add(builder); - } else { - hostAliases.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("hostAliases").size()) { _visitables.get("hostAliases").add(builder); } else { _visitables.get("hostAliases").set(index, builder);} + if (index < 0 || index >= hostAliases.size()) { hostAliases.add(builder); } else { hostAliases.set(index, builder);} + return (A)this; } - public A addToHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); - } - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").add(builder); - this.hostAliases.add(builder); - } - return (A) this; + if (this.hostAliases == null) {this.hostAliases = new ArrayList();} + for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(builder);this.hostAliases.add(builder);} return (A)this; } - public A addAllToHostAliases(Collection items) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); - } - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").add(builder); - this.hostAliases.add(builder); - } - return (A) this; + if (this.hostAliases == null) {this.hostAliases = new ArrayList();} + for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(builder);this.hostAliases.add(builder);} return (A)this; } - public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").remove(builder); - if (this.hostAliases != null) { - this.hostAliases.remove(builder); - } - } - return (A) this; + for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").remove(builder);if (this.hostAliases != null) {this.hostAliases.remove(builder);}} return (A)this; } - public A removeAllFromHostAliases(Collection items) { - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").remove(builder); - if (this.hostAliases != null) { - this.hostAliases.remove(builder); - } - } - return (A) this; + for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").remove(builder);if (this.hostAliases != null) {this.hostAliases.remove(builder);}} return (A)this; } - public A removeMatchingFromHostAliases(Predicate predicate) { if (hostAliases == null) return (A) this; final Iterator each = hostAliases.iterator(); @@ -808,270 +491,146 @@ public A removeMatchingFromHostAliases(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildHostAliases instead. - * * @return The buildable object. */ @Deprecated public List getHostAliases() { return hostAliases != null ? build(hostAliases) : null; } - public List buildHostAliases() { return hostAliases != null ? build(hostAliases) : null; } - public V1HostAlias buildHostAlias(Integer index) { return this.hostAliases.get(index).build(); } - public V1HostAlias buildFirstHostAlias() { return this.hostAliases.get(0).build(); } - public V1HostAlias buildLastHostAlias() { return this.hostAliases.get(hostAliases.size() - 1).build(); } - public V1HostAlias buildMatchingHostAlias(Predicate predicate) { - for (V1HostAliasBuilder item : hostAliases) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1HostAliasBuilder item: hostAliases) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingHostAlias(Predicate predicate) { - for (V1HostAliasBuilder item : hostAliases) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1HostAliasBuilder item: hostAliases) { if(predicate.test(item)){ return true;} } return false; } - public A withHostAliases(List hostAliases) { - if (this.hostAliases != null) { - _visitables.get("hostAliases").removeAll(this.hostAliases); - } - if (hostAliases != null) { - this.hostAliases = new ArrayList(); - for (V1HostAlias item : hostAliases) { - this.addToHostAliases(item); - } - } else { - this.hostAliases = null; - } - return (A) this; + if (this.hostAliases != null) { _visitables.get("hostAliases").removeAll(this.hostAliases);} + if (hostAliases != null) {this.hostAliases = new ArrayList(); for (V1HostAlias item : hostAliases){this.addToHostAliases(item);}} else { this.hostAliases = null;} return (A) this; } - public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... hostAliases) { - if (this.hostAliases != null) { - this.hostAliases.clear(); - } - if (hostAliases != null) { - for (V1HostAlias item : hostAliases) { - this.addToHostAliases(item); - } - } - return (A) this; + if (this.hostAliases != null) {this.hostAliases.clear();} + if (hostAliases != null) {for (V1HostAlias item :hostAliases){ this.addToHostAliases(item);}} return (A) this; } - public Boolean hasHostAliases() { return hostAliases != null && !hostAliases.isEmpty(); } - public V1PodSpecFluent.HostAliasesNested addNewHostAlias() { return new V1PodSpecFluentImpl.HostAliasesNestedImpl(); } - public V1PodSpecFluent.HostAliasesNested addNewHostAliasLike(V1HostAlias item) { return new V1PodSpecFluentImpl.HostAliasesNestedImpl(-1, item); } - - public V1PodSpecFluent.HostAliasesNested setNewHostAliasLike(Integer index, V1HostAlias item) { + public V1PodSpecFluent.HostAliasesNested setNewHostAliasLike(Integer index,V1HostAlias item) { return new V1PodSpecFluentImpl.HostAliasesNestedImpl(index, item); } - public V1PodSpecFluent.HostAliasesNested editHostAlias(Integer index) { - if (hostAliases.size() <= index) - throw new RuntimeException("Can't edit hostAliases. Index exceeds size."); + if (hostAliases.size() <= index) throw new RuntimeException("Can't edit hostAliases. Index exceeds size."); return setNewHostAliasLike(index, buildHostAlias(index)); } - public V1PodSpecFluent.HostAliasesNested editFirstHostAlias() { - if (hostAliases.size() == 0) - throw new RuntimeException("Can't edit first hostAliases. The list is empty."); + if (hostAliases.size() == 0) throw new RuntimeException("Can't edit first hostAliases. The list is empty."); return setNewHostAliasLike(0, buildHostAlias(0)); } - public V1PodSpecFluent.HostAliasesNested editLastHostAlias() { int index = hostAliases.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last hostAliases. The list is empty."); return setNewHostAliasLike(index, buildHostAlias(index)); } - - public V1PodSpecFluent.HostAliasesNested editMatchingHostAlias( - Predicate predicate) { + public V1PodSpecFluent.HostAliasesNested editMatchingHostAlias(Predicate predicate) { int index = -1; - for (int i = 0; i < hostAliases.size(); i++) { - if (predicate.test(hostAliases.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables - .get("imagePullSecrets") - .add(index >= 0 ? index : _visitables.get("imagePullSecrets").size(), builder); - this.imagePullSecrets.add(index >= 0 ? index : imagePullSecrets.size(), builder); - return (A) this; + public A addToImagePullSecrets(Integer index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(index >= 0 ? index : _visitables.get("imagePullSecrets").size(), builder);this.imagePullSecrets.add(index >= 0 ? index : imagePullSecrets.size(), builder); return (A)this; } - - public A setToImagePullSecrets(Integer index, V1LocalObjectReference item) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } + public A setToImagePullSecrets(Integer index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= _visitables.get("imagePullSecrets").size()) { - _visitables.get("imagePullSecrets").add(builder); - } else { - _visitables.get("imagePullSecrets").set(index, builder); - } - if (index < 0 || index >= imagePullSecrets.size()) { - imagePullSecrets.add(builder); - } else { - imagePullSecrets.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("imagePullSecrets").size()) { _visitables.get("imagePullSecrets").add(builder); } else { _visitables.get("imagePullSecrets").set(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { imagePullSecrets.add(builder); } else { imagePullSecrets.set(index, builder);} + return (A)this; } - - public A addToImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); - } - return (A) this; + public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; } - public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); - } - return (A) this; + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; } - - public A removeFromImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - if (this.imagePullSecrets != null) { - this.imagePullSecrets.remove(builder); - } - } - return (A) this; + public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder);if (this.imagePullSecrets != null) {this.imagePullSecrets.remove(builder);}} return (A)this; } - public A removeAllFromImagePullSecrets(Collection items) { - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - if (this.imagePullSecrets != null) { - this.imagePullSecrets.remove(builder); - } - } - return (A) this; + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder);if (this.imagePullSecrets != null) {this.imagePullSecrets.remove(builder);}} return (A)this; } - public A removeMatchingFromImagePullSecrets(Predicate predicate) { if (imagePullSecrets == null) return (A) this; final Iterator each = imagePullSecrets.iterator(); @@ -1083,209 +642,101 @@ public A removeMatchingFromImagePullSecrets(Predicate getImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public List buildImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public V1LocalObjectReference buildImagePullSecret(Integer index) { return this.imagePullSecrets.get(index).build(); } - public V1LocalObjectReference buildFirstImagePullSecret() { return this.imagePullSecrets.get(0).build(); } - public V1LocalObjectReference buildLastImagePullSecret() { return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } - - public V1LocalObjectReference buildMatchingImagePullSecret( - Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item: imagePullSecrets) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LocalObjectReferenceBuilder item: imagePullSecrets) { if(predicate.test(item)){ return true;} } return false; } - public A withImagePullSecrets(List imagePullSecrets) { - if (this.imagePullSecrets != null) { - _visitables.get("imagePullSecrets").removeAll(this.imagePullSecrets); - } - if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } else { - this.imagePullSecrets = null; - } - return (A) this; + if (this.imagePullSecrets != null) { _visitables.get("imagePullSecrets").removeAll(this.imagePullSecrets);} + if (imagePullSecrets != null) {this.imagePullSecrets = new ArrayList(); for (V1LocalObjectReference item : imagePullSecrets){this.addToImagePullSecrets(item);}} else { this.imagePullSecrets = null;} return (A) this; } - - public A withImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { - if (this.imagePullSecrets != null) { - this.imagePullSecrets.clear(); - } - if (imagePullSecrets != null) { - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } - return (A) this; + public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { + if (this.imagePullSecrets != null) {this.imagePullSecrets.clear();} + if (imagePullSecrets != null) {for (V1LocalObjectReference item :imagePullSecrets){ this.addToImagePullSecrets(item);}} return (A) this; } - public Boolean hasImagePullSecrets() { return imagePullSecrets != null && !imagePullSecrets.isEmpty(); } - public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecret() { return new V1PodSpecFluentImpl.ImagePullSecretsNestedImpl(); } - - public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecretLike( - V1LocalObjectReference item) { + public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { return new V1PodSpecFluentImpl.ImagePullSecretsNestedImpl(-1, item); } - - public V1PodSpecFluent.ImagePullSecretsNested setNewImagePullSecretLike( - Integer index, V1LocalObjectReference item) { + public V1PodSpecFluent.ImagePullSecretsNested setNewImagePullSecretLike(Integer index,V1LocalObjectReference item) { return new V1PodSpecFluentImpl.ImagePullSecretsNestedImpl(index, item); } - public V1PodSpecFluent.ImagePullSecretsNested editImagePullSecret(Integer index) { - if (imagePullSecrets.size() <= index) - throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); + if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - public V1PodSpecFluent.ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) - throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); + if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); return setNewImagePullSecretLike(0, buildImagePullSecret(0)); } - public V1PodSpecFluent.ImagePullSecretsNested editLastImagePullSecret() { int index = imagePullSecrets.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - - public V1PodSpecFluent.ImagePullSecretsNested editMatchingImagePullSecret( - Predicate predicate) { + public V1PodSpecFluent.ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { int index = -1; - for (int i = 0; i < imagePullSecrets.size(); i++) { - if (predicate.test(imagePullSecrets.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching imagePullSecrets. No match found."); + for (int i=0;i(); - } - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables - .get("initContainers") - .add(index >= 0 ? index : _visitables.get("initContainers").size(), builder); - this.initContainers.add(index >= 0 ? index : initContainers.size(), builder); - return (A) this; + public A addToInitContainers(Integer index,V1Container item) { + if (this.initContainers == null) {this.initContainers = new ArrayList();} + V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(index >= 0 ? index : _visitables.get("initContainers").size(), builder);this.initContainers.add(index >= 0 ? index : initContainers.size(), builder); return (A)this; } - - public A setToInitContainers(Integer index, V1Container item) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } + public A setToInitContainers(Integer index,V1Container item) { + if (this.initContainers == null) {this.initContainers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= _visitables.get("initContainers").size()) { - _visitables.get("initContainers").add(builder); - } else { - _visitables.get("initContainers").set(index, builder); - } - if (index < 0 || index >= initContainers.size()) { - initContainers.add(builder); - } else { - initContainers.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("initContainers").size()) { _visitables.get("initContainers").add(builder); } else { _visitables.get("initContainers").set(index, builder);} + if (index < 0 || index >= initContainers.size()) { initContainers.add(builder); } else { initContainers.set(index, builder);} + return (A)this; } - public A addToInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").add(builder); - this.initContainers.add(builder); - } - return (A) this; + if (this.initContainers == null) {this.initContainers = new ArrayList();} + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(builder);this.initContainers.add(builder);} return (A)this; } - public A addAllToInitContainers(Collection items) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").add(builder); - this.initContainers.add(builder); - } - return (A) this; + if (this.initContainers == null) {this.initContainers = new ArrayList();} + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(builder);this.initContainers.add(builder);} return (A)this; } - public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").remove(builder); - if (this.initContainers != null) { - this.initContainers.remove(builder); - } - } - return (A) this; + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").remove(builder);if (this.initContainers != null) {this.initContainers.remove(builder);}} return (A)this; } - public A removeAllFromInitContainers(Collection items) { - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").remove(builder); - if (this.initContainers != null) { - this.initContainers.remove(builder); - } - } - return (A) this; + for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").remove(builder);if (this.initContainers != null) {this.initContainers.remove(builder);}} return (A)this; } - public A removeMatchingFromInitContainers(Predicate predicate) { if (initContainers == null) return (A) this; final Iterator each = initContainers.iterator(); @@ -1297,430 +748,221 @@ public A removeMatchingFromInitContainers(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildInitContainers instead. - * * @return The buildable object. */ @Deprecated public List getInitContainers() { return initContainers != null ? build(initContainers) : null; } - public List buildInitContainers() { return initContainers != null ? build(initContainers) : null; } - public V1Container buildInitContainer(Integer index) { return this.initContainers.get(index).build(); } - public V1Container buildFirstInitContainer() { return this.initContainers.get(0).build(); } - public V1Container buildLastInitContainer() { return this.initContainers.get(initContainers.size() - 1).build(); } - public V1Container buildMatchingInitContainer(Predicate predicate) { - for (V1ContainerBuilder item : initContainers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ContainerBuilder item: initContainers) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingInitContainer(Predicate predicate) { - for (V1ContainerBuilder item : initContainers) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerBuilder item: initContainers) { if(predicate.test(item)){ return true;} } return false; } - public A withInitContainers(List initContainers) { - if (this.initContainers != null) { - _visitables.get("initContainers").removeAll(this.initContainers); - } - if (initContainers != null) { - this.initContainers = new ArrayList(); - for (V1Container item : initContainers) { - this.addToInitContainers(item); - } - } else { - this.initContainers = null; - } - return (A) this; + if (this.initContainers != null) { _visitables.get("initContainers").removeAll(this.initContainers);} + if (initContainers != null) {this.initContainers = new ArrayList(); for (V1Container item : initContainers){this.addToInitContainers(item);}} else { this.initContainers = null;} return (A) this; } - public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... initContainers) { - if (this.initContainers != null) { - this.initContainers.clear(); - } - if (initContainers != null) { - for (V1Container item : initContainers) { - this.addToInitContainers(item); - } - } - return (A) this; + if (this.initContainers != null) {this.initContainers.clear();} + if (initContainers != null) {for (V1Container item :initContainers){ this.addToInitContainers(item);}} return (A) this; } - public Boolean hasInitContainers() { return initContainers != null && !initContainers.isEmpty(); } - public V1PodSpecFluent.InitContainersNested addNewInitContainer() { return new V1PodSpecFluentImpl.InitContainersNestedImpl(); } - public V1PodSpecFluent.InitContainersNested addNewInitContainerLike(V1Container item) { return new V1PodSpecFluentImpl.InitContainersNestedImpl(-1, item); } - - public V1PodSpecFluent.InitContainersNested setNewInitContainerLike( - Integer index, V1Container item) { + public V1PodSpecFluent.InitContainersNested setNewInitContainerLike(Integer index,V1Container item) { return new V1PodSpecFluentImpl.InitContainersNestedImpl(index, item); } - public V1PodSpecFluent.InitContainersNested editInitContainer(Integer index) { - if (initContainers.size() <= index) - throw new RuntimeException("Can't edit initContainers. Index exceeds size."); + if (initContainers.size() <= index) throw new RuntimeException("Can't edit initContainers. Index exceeds size."); return setNewInitContainerLike(index, buildInitContainer(index)); } - public V1PodSpecFluent.InitContainersNested editFirstInitContainer() { - if (initContainers.size() == 0) - throw new RuntimeException("Can't edit first initContainers. The list is empty."); + if (initContainers.size() == 0) throw new RuntimeException("Can't edit first initContainers. The list is empty."); return setNewInitContainerLike(0, buildInitContainer(0)); } - public V1PodSpecFluent.InitContainersNested editLastInitContainer() { int index = initContainers.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last initContainers. The list is empty."); return setNewInitContainerLike(index, buildInitContainer(index)); } - - public V1PodSpecFluent.InitContainersNested editMatchingInitContainer( - Predicate predicate) { + public V1PodSpecFluent.InitContainersNested editMatchingInitContainer(Predicate predicate) { int index = -1; - for (int i = 0; i < initContainers.size(); i++) { - if (predicate.test(initContainers.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching initContainers. No match found."); + for (int i=0;i map) { - if (this.nodeSelector == null && map != null) { - this.nodeSelector = new LinkedHashMap(); - } - if (map != null) { - this.nodeSelector.putAll(map); - } - return (A) this; + public A addToNodeSelector(Map map) { + if(this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); } + if(map != null) { this.nodeSelector.putAll(map);} return (A)this; } - public A removeFromNodeSelector(String key) { - if (this.nodeSelector == null) { - return (A) this; - } - if (key != null && this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - return (A) this; + if(this.nodeSelector == null) { return (A) this; } + if(key != null && this.nodeSelector != null) {this.nodeSelector.remove(key);} return (A)this; } - - public A removeFromNodeSelector(Map map) { - if (this.nodeSelector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - } - } - return (A) this; + public A removeFromNodeSelector(Map map) { + if(this.nodeSelector == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.nodeSelector != null){this.nodeSelector.remove(key);}}} return (A)this; } - - public Map getNodeSelector() { + public Map getNodeSelector() { return this.nodeSelector; } - - public A withNodeSelector(Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; - } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); - } - return (A) this; + public A withNodeSelector(Map nodeSelector) { + if (nodeSelector == null) { this.nodeSelector = null;} else {this.nodeSelector = new LinkedHashMap(nodeSelector);} return (A) this; } - public Boolean hasNodeSelector() { return this.nodeSelector != null; } - + /** * This method has been deprecated, please use method buildOs instead. - * * @return The buildable object. */ @Deprecated public V1PodOS getOs() { - return this.os != null ? this.os.build() : null; + return this.os!=null ?this.os.build():null; } - public V1PodOS buildOs() { - return this.os != null ? this.os.build() : null; + return this.os!=null ?this.os.build():null; } - public A withOs(V1PodOS os) { _visitables.get("os").remove(this.os); - if (os != null) { - this.os = new V1PodOSBuilder(os); - _visitables.get("os").add(this.os); - } else { - this.os = null; - _visitables.get("os").remove(this.os); - } - return (A) this; + if (os!=null){ this.os= new V1PodOSBuilder(os); _visitables.get("os").add(this.os);} else { this.os = null; _visitables.get("os").remove(this.os); } return (A) this; } - public Boolean hasOs() { return this.os != null; } - public V1PodSpecFluent.OsNested withNewOs() { return new V1PodSpecFluentImpl.OsNestedImpl(); } - public V1PodSpecFluent.OsNested withNewOsLike(V1PodOS item) { return new V1PodSpecFluentImpl.OsNestedImpl(item); } - public V1PodSpecFluent.OsNested editOs() { return withNewOsLike(getOs()); } - public V1PodSpecFluent.OsNested editOrNewOs() { - return withNewOsLike(getOs() != null ? getOs() : new V1PodOSBuilder().build()); + return withNewOsLike(getOs() != null ? getOs(): new V1PodOSBuilder().build()); } - public V1PodSpecFluent.OsNested editOrNewOsLike(V1PodOS item) { - return withNewOsLike(getOs() != null ? getOs() : item); + return withNewOsLike(getOs() != null ? getOs(): item); } - - public A addToOverhead(String key, Quantity value) { - if (this.overhead == null && key != null && value != null) { - this.overhead = new LinkedHashMap(); - } - if (key != null && value != null) { - this.overhead.put(key, value); - } - return (A) this; + public A addToOverhead(String key,Quantity value) { + if(this.overhead == null && key != null && value != null) { this.overhead = new LinkedHashMap(); } + if(key != null && value != null) {this.overhead.put(key, value);} return (A)this; } - - public A addToOverhead(Map map) { - if (this.overhead == null && map != null) { - this.overhead = new LinkedHashMap(); - } - if (map != null) { - this.overhead.putAll(map); - } - return (A) this; + public A addToOverhead(Map map) { + if(this.overhead == null && map != null) { this.overhead = new LinkedHashMap(); } + if(map != null) { this.overhead.putAll(map);} return (A)this; } - public A removeFromOverhead(String key) { - if (this.overhead == null) { - return (A) this; - } - if (key != null && this.overhead != null) { - this.overhead.remove(key); - } - return (A) this; + if(this.overhead == null) { return (A) this; } + if(key != null && this.overhead != null) {this.overhead.remove(key);} return (A)this; } - - public A removeFromOverhead(Map map) { - if (this.overhead == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.overhead != null) { - this.overhead.remove(key); - } - } - } - return (A) this; + public A removeFromOverhead(Map map) { + if(this.overhead == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.overhead != null){this.overhead.remove(key);}}} return (A)this; } - - public Map getOverhead() { + public Map getOverhead() { return this.overhead; } - - public A withOverhead(Map overhead) { - if (overhead == null) { - this.overhead = null; - } else { - this.overhead = new LinkedHashMap(overhead); - } - return (A) this; + public A withOverhead(Map overhead) { + if (overhead == null) { this.overhead = null;} else {this.overhead = new LinkedHashMap(overhead);} return (A) this; } - public Boolean hasOverhead() { return this.overhead != null; } - public String getPreemptionPolicy() { return this.preemptionPolicy; } - public A withPreemptionPolicy(String preemptionPolicy) { - this.preemptionPolicy = preemptionPolicy; - return (A) this; + this.preemptionPolicy=preemptionPolicy; return (A) this; } - public Boolean hasPreemptionPolicy() { return this.preemptionPolicy != null; } - public Integer getPriority() { return this.priority; } - public A withPriority(Integer priority) { - this.priority = priority; - return (A) this; + this.priority=priority; return (A) this; } - public Boolean hasPriority() { return this.priority != null; } - public String getPriorityClassName() { return this.priorityClassName; } - public A withPriorityClassName(String priorityClassName) { - this.priorityClassName = priorityClassName; - return (A) this; + this.priorityClassName=priorityClassName; return (A) this; } - public Boolean hasPriorityClassName() { return this.priorityClassName != null; } - - public A addToReadinessGates(Integer index, V1PodReadinessGate item) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); - } - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables - .get("readinessGates") - .add(index >= 0 ? index : _visitables.get("readinessGates").size(), builder); - this.readinessGates.add(index >= 0 ? index : readinessGates.size(), builder); - return (A) this; + public A addToReadinessGates(Integer index,V1PodReadinessGate item) { + if (this.readinessGates == null) {this.readinessGates = new ArrayList();} + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(index >= 0 ? index : _visitables.get("readinessGates").size(), builder);this.readinessGates.add(index >= 0 ? index : readinessGates.size(), builder); return (A)this; } - - public A setToReadinessGates(Integer index, V1PodReadinessGate item) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); - } + public A setToReadinessGates(Integer index,V1PodReadinessGate item) { + if (this.readinessGates == null) {this.readinessGates = new ArrayList();} V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= _visitables.get("readinessGates").size()) { - _visitables.get("readinessGates").add(builder); - } else { - _visitables.get("readinessGates").set(index, builder); - } - if (index < 0 || index >= readinessGates.size()) { - readinessGates.add(builder); - } else { - readinessGates.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("readinessGates").size()) { _visitables.get("readinessGates").add(builder); } else { _visitables.get("readinessGates").set(index, builder);} + if (index < 0 || index >= readinessGates.size()) { readinessGates.add(builder); } else { readinessGates.set(index, builder);} + return (A)this; } - public A addToReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); - } - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").add(builder); - this.readinessGates.add(builder); - } - return (A) this; + if (this.readinessGates == null) {this.readinessGates = new ArrayList();} + for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(builder);this.readinessGates.add(builder);} return (A)this; } - public A addAllToReadinessGates(Collection items) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); - } - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").add(builder); - this.readinessGates.add(builder); - } - return (A) this; + if (this.readinessGates == null) {this.readinessGates = new ArrayList();} + for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(builder);this.readinessGates.add(builder);} return (A)this; } - - public A removeFromReadinessGates( - io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").remove(builder); - if (this.readinessGates != null) { - this.readinessGates.remove(builder); - } - } - return (A) this; + public A removeFromReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { + for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").remove(builder);if (this.readinessGates != null) {this.readinessGates.remove(builder);}} return (A)this; } - public A removeAllFromReadinessGates(Collection items) { - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").remove(builder); - if (this.readinessGates != null) { - this.readinessGates.remove(builder); - } - } - return (A) this; + for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").remove(builder);if (this.readinessGates != null) {this.readinessGates.remove(builder);}} return (A)this; } - public A removeMatchingFromReadinessGates(Predicate predicate) { if (readinessGates == null) return (A) this; final Iterator each = readinessGates.iterator(); @@ -1732,379 +974,216 @@ public A removeMatchingFromReadinessGates(Predicate p each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildReadinessGates instead. - * * @return The buildable object. */ @Deprecated public List getReadinessGates() { return readinessGates != null ? build(readinessGates) : null; } - public List buildReadinessGates() { return readinessGates != null ? build(readinessGates) : null; } - public V1PodReadinessGate buildReadinessGate(Integer index) { return this.readinessGates.get(index).build(); } - public V1PodReadinessGate buildFirstReadinessGate() { return this.readinessGates.get(0).build(); } - public V1PodReadinessGate buildLastReadinessGate() { return this.readinessGates.get(readinessGates.size() - 1).build(); } - - public V1PodReadinessGate buildMatchingReadinessGate( - Predicate predicate) { - for (V1PodReadinessGateBuilder item : readinessGates) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PodReadinessGate buildMatchingReadinessGate(Predicate predicate) { + for (V1PodReadinessGateBuilder item: readinessGates) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingReadinessGate(Predicate predicate) { - for (V1PodReadinessGateBuilder item : readinessGates) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodReadinessGateBuilder item: readinessGates) { if(predicate.test(item)){ return true;} } return false; } - public A withReadinessGates(List readinessGates) { - if (this.readinessGates != null) { - _visitables.get("readinessGates").removeAll(this.readinessGates); - } - if (readinessGates != null) { - this.readinessGates = new ArrayList(); - for (V1PodReadinessGate item : readinessGates) { - this.addToReadinessGates(item); - } - } else { - this.readinessGates = null; - } - return (A) this; + if (this.readinessGates != null) { _visitables.get("readinessGates").removeAll(this.readinessGates);} + if (readinessGates != null) {this.readinessGates = new ArrayList(); for (V1PodReadinessGate item : readinessGates){this.addToReadinessGates(item);}} else { this.readinessGates = null;} return (A) this; } - - public A withReadinessGates( - io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates) { - if (this.readinessGates != null) { - this.readinessGates.clear(); - } - if (readinessGates != null) { - for (V1PodReadinessGate item : readinessGates) { - this.addToReadinessGates(item); - } - } - return (A) this; + public A withReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates) { + if (this.readinessGates != null) {this.readinessGates.clear();} + if (readinessGates != null) {for (V1PodReadinessGate item :readinessGates){ this.addToReadinessGates(item);}} return (A) this; } - public Boolean hasReadinessGates() { return readinessGates != null && !readinessGates.isEmpty(); } - public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGate() { return new V1PodSpecFluentImpl.ReadinessGatesNestedImpl(); } - public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { return new V1PodSpecFluentImpl.ReadinessGatesNestedImpl(-1, item); } - - public V1PodSpecFluent.ReadinessGatesNested setNewReadinessGateLike( - Integer index, V1PodReadinessGate item) { + public V1PodSpecFluent.ReadinessGatesNested setNewReadinessGateLike(Integer index,V1PodReadinessGate item) { return new V1PodSpecFluentImpl.ReadinessGatesNestedImpl(index, item); } - public V1PodSpecFluent.ReadinessGatesNested editReadinessGate(Integer index) { - if (readinessGates.size() <= index) - throw new RuntimeException("Can't edit readinessGates. Index exceeds size."); + if (readinessGates.size() <= index) throw new RuntimeException("Can't edit readinessGates. Index exceeds size."); return setNewReadinessGateLike(index, buildReadinessGate(index)); } - public V1PodSpecFluent.ReadinessGatesNested editFirstReadinessGate() { - if (readinessGates.size() == 0) - throw new RuntimeException("Can't edit first readinessGates. The list is empty."); + if (readinessGates.size() == 0) throw new RuntimeException("Can't edit first readinessGates. The list is empty."); return setNewReadinessGateLike(0, buildReadinessGate(0)); } - public V1PodSpecFluent.ReadinessGatesNested editLastReadinessGate() { int index = readinessGates.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last readinessGates. The list is empty."); return setNewReadinessGateLike(index, buildReadinessGate(index)); } - - public V1PodSpecFluent.ReadinessGatesNested editMatchingReadinessGate( - Predicate predicate) { + public V1PodSpecFluent.ReadinessGatesNested editMatchingReadinessGate(Predicate predicate) { int index = -1; - for (int i = 0; i < readinessGates.size(); i++) { - if (predicate.test(readinessGates.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching readinessGates. No match found."); + for (int i=0;i withNewSecurityContext() { return new V1PodSpecFluentImpl.SecurityContextNestedImpl(); } - - public V1PodSpecFluent.SecurityContextNested withNewSecurityContextLike( - V1PodSecurityContext item) { + public V1PodSpecFluent.SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { return new V1PodSpecFluentImpl.SecurityContextNestedImpl(item); } - public V1PodSpecFluent.SecurityContextNested editSecurityContext() { return withNewSecurityContextLike(getSecurityContext()); } - public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike( - getSecurityContext() != null - ? getSecurityContext() - : new V1PodSecurityContextBuilder().build()); + return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext(): new V1PodSecurityContextBuilder().build()); } - - public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContextLike( - V1PodSecurityContext item) { - return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext() : item); + public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { + return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext(): item); } - public String getServiceAccount() { return this.serviceAccount; } - public A withServiceAccount(String serviceAccount) { - this.serviceAccount = serviceAccount; - return (A) this; + this.serviceAccount=serviceAccount; return (A) this; } - public Boolean hasServiceAccount() { return this.serviceAccount != null; } - public String getServiceAccountName() { return this.serviceAccountName; } - public A withServiceAccountName(String serviceAccountName) { - this.serviceAccountName = serviceAccountName; - return (A) this; + this.serviceAccountName=serviceAccountName; return (A) this; } - public Boolean hasServiceAccountName() { return this.serviceAccountName != null; } - public Boolean getSetHostnameAsFQDN() { return this.setHostnameAsFQDN; } - public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { - this.setHostnameAsFQDN = setHostnameAsFQDN; - return (A) this; + this.setHostnameAsFQDN=setHostnameAsFQDN; return (A) this; } - public Boolean hasSetHostnameAsFQDN() { return this.setHostnameAsFQDN != null; } - public Boolean getShareProcessNamespace() { return this.shareProcessNamespace; } - public A withShareProcessNamespace(Boolean shareProcessNamespace) { - this.shareProcessNamespace = shareProcessNamespace; - return (A) this; + this.shareProcessNamespace=shareProcessNamespace; return (A) this; } - public Boolean hasShareProcessNamespace() { return this.shareProcessNamespace != null; } - public String getSubdomain() { return this.subdomain; } - public A withSubdomain(String subdomain) { - this.subdomain = subdomain; - return (A) this; + this.subdomain=subdomain; return (A) this; } - public Boolean hasSubdomain() { return this.subdomain != null; } - public Long getTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds; } - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { - this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - return (A) this; + this.terminationGracePeriodSeconds=terminationGracePeriodSeconds; return (A) this; } - public Boolean hasTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds != null; } - - public A addToTolerations(Integer index, V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables - .get("tolerations") - .add(index >= 0 ? index : _visitables.get("tolerations").size(), builder); - this.tolerations.add(index >= 0 ? index : tolerations.size(), builder); - return (A) this; + public A addToTolerations(Integer index,V1Toleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(index >= 0 ? index : _visitables.get("tolerations").size(), builder);this.tolerations.add(index >= 0 ? index : tolerations.size(), builder); return (A)this; } - - public A setToTolerations(Integer index, V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } + public A setToTolerations(Integer index,V1Toleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= _visitables.get("tolerations").size()) { - _visitables.get("tolerations").add(builder); - } else { - _visitables.get("tolerations").set(index, builder); - } - if (index < 0 || index >= tolerations.size()) { - tolerations.add(builder); - } else { - tolerations.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("tolerations").size()) { _visitables.get("tolerations").add(builder); } else { _visitables.get("tolerations").set(index, builder);} + if (index < 0 || index >= tolerations.size()) { tolerations.add(builder); } else { tolerations.set(index, builder);} + return (A)this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - if (this.tolerations != null) { - this.tolerations.remove(builder); - } - } - return (A) this; + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder);if (this.tolerations != null) {this.tolerations.remove(builder);}} return (A)this; } - public A removeAllFromTolerations(Collection items) { - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - if (this.tolerations != null) { - this.tolerations.remove(builder); - } - } - return (A) this; + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder);if (this.tolerations != null) {this.tolerations.remove(builder);}} return (A)this; } - public A removeMatchingFromTolerations(Predicate predicate) { if (tolerations == null) return (A) this; final Iterator each = tolerations.iterator(); @@ -2116,209 +1195,102 @@ public A removeMatchingFromTolerations(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTolerations instead. - * * @return The buildable object. */ @Deprecated public List getTolerations() { return tolerations != null ? build(tolerations) : null; } - public List buildTolerations() { return tolerations != null ? build(tolerations) : null; } - public V1Toleration buildToleration(Integer index) { return this.tolerations.get(index).build(); } - public V1Toleration buildFirstToleration() { return this.tolerations.get(0).build(); } - public V1Toleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } - public V1Toleration buildMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1TolerationBuilder item: tolerations) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1TolerationBuilder item: tolerations) { if(predicate.test(item)){ return true;} } return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - _visitables.get("tolerations").removeAll(this.tolerations); - } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; + if (this.tolerations != null) { _visitables.get("tolerations").removeAll(this.tolerations);} + if (tolerations != null) {this.tolerations = new ArrayList(); for (V1Toleration item : tolerations){this.addToTolerations(item);}} else { this.tolerations = null;} return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - } - if (tolerations != null) { - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; + if (this.tolerations != null) {this.tolerations.clear();} + if (tolerations != null) {for (V1Toleration item :tolerations){ this.addToTolerations(item);}} return (A) this; } - public Boolean hasTolerations() { return tolerations != null && !tolerations.isEmpty(); } - public V1PodSpecFluent.TolerationsNested addNewToleration() { return new V1PodSpecFluentImpl.TolerationsNestedImpl(); } - public V1PodSpecFluent.TolerationsNested addNewTolerationLike(V1Toleration item) { return new V1PodSpecFluentImpl.TolerationsNestedImpl(-1, item); } - - public V1PodSpecFluent.TolerationsNested setNewTolerationLike( - Integer index, V1Toleration item) { + public V1PodSpecFluent.TolerationsNested setNewTolerationLike(Integer index,V1Toleration item) { return new V1PodSpecFluentImpl.TolerationsNestedImpl(index, item); } - public V1PodSpecFluent.TolerationsNested editToleration(Integer index) { - if (tolerations.size() <= index) - throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); return setNewTolerationLike(index, buildToleration(index)); } - public V1PodSpecFluent.TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) - throw new RuntimeException("Can't edit first tolerations. The list is empty."); + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); return setNewTolerationLike(0, buildToleration(0)); } - public V1PodSpecFluent.TolerationsNested editLastToleration() { int index = tolerations.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); return setNewTolerationLike(index, buildToleration(index)); } - - public V1PodSpecFluent.TolerationsNested editMatchingToleration( - Predicate predicate) { + public V1PodSpecFluent.TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i = 0; i < tolerations.size(); i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables - .get("topologySpreadConstraints") - .add(index >= 0 ? index : _visitables.get("topologySpreadConstraints").size(), builder); - this.topologySpreadConstraints.add( - index >= 0 ? index : topologySpreadConstraints.size(), builder); - return (A) this; + public A addToTopologySpreadConstraints(Integer index,V1TopologySpreadConstraint item) { + if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(index >= 0 ? index : _visitables.get("topologySpreadConstraints").size(), builder);this.topologySpreadConstraints.add(index >= 0 ? index : topologySpreadConstraints.size(), builder); return (A)this; } - - public A setToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); - } + public A setToTopologySpreadConstraints(Integer index,V1TopologySpreadConstraint item) { + if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= _visitables.get("topologySpreadConstraints").size()) { - _visitables.get("topologySpreadConstraints").add(builder); - } else { - _visitables.get("topologySpreadConstraints").set(index, builder); - } - if (index < 0 || index >= topologySpreadConstraints.size()) { - topologySpreadConstraints.add(builder); - } else { - topologySpreadConstraints.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("topologySpreadConstraints").size()) { _visitables.get("topologySpreadConstraints").add(builder); } else { _visitables.get("topologySpreadConstraints").set(index, builder);} + if (index < 0 || index >= topologySpreadConstraints.size()) { topologySpreadConstraints.add(builder); } else { topologySpreadConstraints.set(index, builder);} + return (A)this; } - - public A addToTopologySpreadConstraints( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); - } - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").add(builder); - this.topologySpreadConstraints.add(builder); - } - return (A) this; + public A addToTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { + if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} + for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(builder);this.topologySpreadConstraints.add(builder);} return (A)this; } - public A addAllToTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); - } - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").add(builder); - this.topologySpreadConstraints.add(builder); - } - return (A) this; + if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} + for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(builder);this.topologySpreadConstraints.add(builder);} return (A)this; } - - public A removeFromTopologySpreadConstraints( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").remove(builder); - if (this.topologySpreadConstraints != null) { - this.topologySpreadConstraints.remove(builder); - } - } - return (A) this; + public A removeFromTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { + for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").remove(builder);if (this.topologySpreadConstraints != null) {this.topologySpreadConstraints.remove(builder);}} return (A)this; } - public A removeAllFromTopologySpreadConstraints(Collection items) { - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").remove(builder); - if (this.topologySpreadConstraints != null) { - this.topologySpreadConstraints.remove(builder); - } - } - return (A) this; + for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").remove(builder);if (this.topologySpreadConstraints != null) {this.topologySpreadConstraints.remove(builder);}} return (A)this; } - - public A removeMatchingFromTopologySpreadConstraints( - Predicate predicate) { + public A removeMatchingFromTopologySpreadConstraints(Predicate predicate) { if (topologySpreadConstraints == null) return (A) this; final Iterator each = topologySpreadConstraints.iterator(); final List visitables = _visitables.get("topologySpreadConstraints"); @@ -2329,210 +1301,101 @@ public A removeMatchingFromTopologySpreadConstraints( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTopologySpreadConstraints instead. - * * @return The buildable object. */ @Deprecated public List getTopologySpreadConstraints() { return topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; } - public List buildTopologySpreadConstraints() { return topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; } - public V1TopologySpreadConstraint buildTopologySpreadConstraint(Integer index) { return this.topologySpreadConstraints.get(index).build(); } - public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint() { return this.topologySpreadConstraints.get(0).build(); } - public V1TopologySpreadConstraint buildLastTopologySpreadConstraint() { return this.topologySpreadConstraints.get(topologySpreadConstraints.size() - 1).build(); } - - public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint( - Predicate predicate) { - for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint(Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item: topologySpreadConstraints) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingTopologySpreadConstraint( - Predicate predicate) { - for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingTopologySpreadConstraint(Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item: topologySpreadConstraints) { if(predicate.test(item)){ return true;} } return false; } - - public A withTopologySpreadConstraints( - List topologySpreadConstraints) { - if (this.topologySpreadConstraints != null) { - _visitables.get("topologySpreadConstraints").removeAll(this.topologySpreadConstraints); - } - if (topologySpreadConstraints != null) { - this.topologySpreadConstraints = new ArrayList(); - for (V1TopologySpreadConstraint item : topologySpreadConstraints) { - this.addToTopologySpreadConstraints(item); - } - } else { - this.topologySpreadConstraints = null; - } - return (A) this; + public A withTopologySpreadConstraints(List topologySpreadConstraints) { + if (this.topologySpreadConstraints != null) { _visitables.get("topologySpreadConstraints").removeAll(this.topologySpreadConstraints);} + if (topologySpreadConstraints != null) {this.topologySpreadConstraints = new ArrayList(); for (V1TopologySpreadConstraint item : topologySpreadConstraints){this.addToTopologySpreadConstraints(item);}} else { this.topologySpreadConstraints = null;} return (A) this; } - - public A withTopologySpreadConstraints( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints) { - if (this.topologySpreadConstraints != null) { - this.topologySpreadConstraints.clear(); - } - if (topologySpreadConstraints != null) { - for (V1TopologySpreadConstraint item : topologySpreadConstraints) { - this.addToTopologySpreadConstraints(item); - } - } - return (A) this; + public A withTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints) { + if (this.topologySpreadConstraints != null) {this.topologySpreadConstraints.clear();} + if (topologySpreadConstraints != null) {for (V1TopologySpreadConstraint item :topologySpreadConstraints){ this.addToTopologySpreadConstraints(item);}} return (A) this; } - public Boolean hasTopologySpreadConstraints() { return topologySpreadConstraints != null && !topologySpreadConstraints.isEmpty(); } - public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { return new V1PodSpecFluentImpl.TopologySpreadConstraintsNestedImpl(); } - - public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike( - V1TopologySpreadConstraint item) { + public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item) { return new V1PodSpecFluentImpl.TopologySpreadConstraintsNestedImpl(-1, item); } - - public V1PodSpecFluent.TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike( - Integer index, V1TopologySpreadConstraint item) { + public V1PodSpecFluent.TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(Integer index,V1TopologySpreadConstraint item) { return new V1PodSpecFluentImpl.TopologySpreadConstraintsNestedImpl(index, item); } - - public V1PodSpecFluent.TopologySpreadConstraintsNested editTopologySpreadConstraint( - Integer index) { - if (topologySpreadConstraints.size() <= index) - throw new RuntimeException("Can't edit topologySpreadConstraints. Index exceeds size."); + public V1PodSpecFluent.TopologySpreadConstraintsNested editTopologySpreadConstraint(Integer index) { + if (topologySpreadConstraints.size() <= index) throw new RuntimeException("Can't edit topologySpreadConstraints. Index exceeds size."); return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); } - public V1PodSpecFluent.TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { - if (topologySpreadConstraints.size() == 0) - throw new RuntimeException("Can't edit first topologySpreadConstraints. The list is empty."); + if (topologySpreadConstraints.size() == 0) throw new RuntimeException("Can't edit first topologySpreadConstraints. The list is empty."); return setNewTopologySpreadConstraintLike(0, buildTopologySpreadConstraint(0)); } - public V1PodSpecFluent.TopologySpreadConstraintsNested editLastTopologySpreadConstraint() { int index = topologySpreadConstraints.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last topologySpreadConstraints. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last topologySpreadConstraints. The list is empty."); return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); } - - public V1PodSpecFluent.TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint( - Predicate predicate) { + public V1PodSpecFluent.TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate) { int index = -1; - for (int i = 0; i < topologySpreadConstraints.size(); i++) { - if (predicate.test(topologySpreadConstraints.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching topologySpreadConstraints. No match found."); + for (int i=0;i(); - } - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(index >= 0 ? index : _visitables.get("volumes").size(), builder); - this.volumes.add(index >= 0 ? index : volumes.size(), builder); - return (A) this; + public A addToVolumes(Integer index,V1Volume item) { + if (this.volumes == null) {this.volumes = new ArrayList();} + V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(index >= 0 ? index : _visitables.get("volumes").size(), builder);this.volumes.add(index >= 0 ? index : volumes.size(), builder); return (A)this; } - - public A setToVolumes(Integer index, V1Volume item) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } + public A setToVolumes(Integer index,V1Volume item) { + if (this.volumes == null) {this.volumes = new ArrayList();} V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= _visitables.get("volumes").size()) { - _visitables.get("volumes").add(builder); - } else { - _visitables.get("volumes").set(index, builder); - } - if (index < 0 || index >= volumes.size()) { - volumes.add(builder); - } else { - volumes.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumes").size()) { _visitables.get("volumes").add(builder); } else { _visitables.get("volumes").set(index, builder);} + if (index < 0 || index >= volumes.size()) { volumes.add(builder); } else { volumes.set(index, builder);} + return (A)this; } - public A addToVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(builder); - this.volumes.add(builder); - } - return (A) this; + if (this.volumes == null) {this.volumes = new ArrayList();} + for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(builder);this.volumes.add(builder);} return (A)this; } - public A addAllToVolumes(Collection items) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(builder); - this.volumes.add(builder); - } - return (A) this; + if (this.volumes == null) {this.volumes = new ArrayList();} + for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(builder);this.volumes.add(builder);} return (A)this; } - public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").remove(builder); - if (this.volumes != null) { - this.volumes.remove(builder); - } - } - return (A) this; + for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").remove(builder);if (this.volumes != null) {this.volumes.remove(builder);}} return (A)this; } - public A removeAllFromVolumes(Collection items) { - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").remove(builder); - if (this.volumes != null) { - this.volumes.remove(builder); - } - } - return (A) this; + for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").remove(builder);if (this.volumes != null) {this.volumes.remove(builder);}} return (A)this; } - public A removeMatchingFromVolumes(Predicate predicate) { if (volumes == null) return (A) this; final Iterator each = volumes.iterator(); @@ -2544,751 +1407,423 @@ public A removeMatchingFromVolumes(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumes instead. - * * @return The buildable object. */ @Deprecated public List getVolumes() { return volumes != null ? build(volumes) : null; } - public List buildVolumes() { return volumes != null ? build(volumes) : null; } - public V1Volume buildVolume(Integer index) { return this.volumes.get(index).build(); } - public V1Volume buildFirstVolume() { return this.volumes.get(0).build(); } - public V1Volume buildLastVolume() { return this.volumes.get(volumes.size() - 1).build(); } - public V1Volume buildMatchingVolume(Predicate predicate) { - for (V1VolumeBuilder item : volumes) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeBuilder item: volumes) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingVolume(Predicate predicate) { - for (V1VolumeBuilder item : volumes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeBuilder item: volumes) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumes(List volumes) { - if (this.volumes != null) { - _visitables.get("volumes").removeAll(this.volumes); - } - if (volumes != null) { - this.volumes = new ArrayList(); - for (V1Volume item : volumes) { - this.addToVolumes(item); - } - } else { - this.volumes = null; - } - return (A) this; + if (this.volumes != null) { _visitables.get("volumes").removeAll(this.volumes);} + if (volumes != null) {this.volumes = new ArrayList(); for (V1Volume item : volumes){this.addToVolumes(item);}} else { this.volumes = null;} return (A) this; } - public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes) { - if (this.volumes != null) { - this.volumes.clear(); - } - if (volumes != null) { - for (V1Volume item : volumes) { - this.addToVolumes(item); - } - } - return (A) this; + if (this.volumes != null) {this.volumes.clear();} + if (volumes != null) {for (V1Volume item :volumes){ this.addToVolumes(item);}} return (A) this; } - public Boolean hasVolumes() { return volumes != null && !volumes.isEmpty(); } - public V1PodSpecFluent.VolumesNested addNewVolume() { return new V1PodSpecFluentImpl.VolumesNestedImpl(); } - public V1PodSpecFluent.VolumesNested addNewVolumeLike(V1Volume item) { return new V1PodSpecFluentImpl.VolumesNestedImpl(-1, item); } - - public V1PodSpecFluent.VolumesNested setNewVolumeLike(Integer index, V1Volume item) { + public V1PodSpecFluent.VolumesNested setNewVolumeLike(Integer index,V1Volume item) { return new V1PodSpecFluentImpl.VolumesNestedImpl(index, item); } - public V1PodSpecFluent.VolumesNested editVolume(Integer index) { - if (volumes.size() <= index) - throw new RuntimeException("Can't edit volumes. Index exceeds size."); + if (volumes.size() <= index) throw new RuntimeException("Can't edit volumes. Index exceeds size."); return setNewVolumeLike(index, buildVolume(index)); } - public V1PodSpecFluent.VolumesNested editFirstVolume() { - if (volumes.size() == 0) - throw new RuntimeException("Can't edit first volumes. The list is empty."); + if (volumes.size() == 0) throw new RuntimeException("Can't edit first volumes. The list is empty."); return setNewVolumeLike(0, buildVolume(0)); } - public V1PodSpecFluent.VolumesNested editLastVolume() { int index = volumes.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last volumes. The list is empty."); return setNewVolumeLike(index, buildVolume(index)); } - public V1PodSpecFluent.VolumesNested editMatchingVolume(Predicate predicate) { int index = -1; - for (int i = 0; i < volumes.size(); i++) { - if (predicate.test(volumes.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1AffinityFluentImpl> - implements V1PodSpecFluent.AffinityNested, Nested { + class AffinityNestedImpl extends V1AffinityFluentImpl> implements V1PodSpecFluent.AffinityNested,Nested{ AffinityNestedImpl(V1Affinity item) { this.builder = new V1AffinityBuilder(this, item); } - AffinityNestedImpl() { this.builder = new V1AffinityBuilder(this); } - V1AffinityBuilder builder; - public N and() { return (N) V1PodSpecFluentImpl.this.withAffinity(builder.build()); } - public N endAffinity() { return and(); } + } - - class ContainersNestedImpl extends V1ContainerFluentImpl> - implements V1PodSpecFluent.ContainersNested, Nested { - ContainersNestedImpl(Integer index, V1Container item) { + class ContainersNestedImpl extends V1ContainerFluentImpl> implements V1PodSpecFluent.ContainersNested,Nested{ + ContainersNestedImpl(Integer index,V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } - ContainersNestedImpl() { this.index = -1; this.builder = new V1ContainerBuilder(this); } - V1ContainerBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToContainers(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToContainers(index,builder.build()); } - public N endContainer() { return and(); } + } - - class DnsConfigNestedImpl extends V1PodDNSConfigFluentImpl> - implements V1PodSpecFluent.DnsConfigNested, Nested { + class DnsConfigNestedImpl extends V1PodDNSConfigFluentImpl> implements V1PodSpecFluent.DnsConfigNested,Nested{ DnsConfigNestedImpl(V1PodDNSConfig item) { this.builder = new V1PodDNSConfigBuilder(this, item); } - DnsConfigNestedImpl() { this.builder = new V1PodDNSConfigBuilder(this); } - V1PodDNSConfigBuilder builder; - public N and() { return (N) V1PodSpecFluentImpl.this.withDnsConfig(builder.build()); } - public N endDnsConfig() { return and(); } + } - - class EphemeralContainersNestedImpl - extends V1EphemeralContainerFluentImpl> - implements V1PodSpecFluent.EphemeralContainersNested, Nested { - EphemeralContainersNestedImpl(Integer index, V1EphemeralContainer item) { + class EphemeralContainersNestedImpl extends V1EphemeralContainerFluentImpl> implements V1PodSpecFluent.EphemeralContainersNested,Nested{ + EphemeralContainersNestedImpl(Integer index,V1EphemeralContainer item) { this.index = index; this.builder = new V1EphemeralContainerBuilder(this, item); } - EphemeralContainersNestedImpl() { this.index = -1; this.builder = new V1EphemeralContainerBuilder(this); } - V1EphemeralContainerBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToEphemeralContainers(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToEphemeralContainers(index,builder.build()); } - public N endEphemeralContainer() { return and(); } + } - - class HostAliasesNestedImpl extends V1HostAliasFluentImpl> - implements V1PodSpecFluent.HostAliasesNested, Nested { - HostAliasesNestedImpl(Integer index, V1HostAlias item) { + class HostAliasesNestedImpl extends V1HostAliasFluentImpl> implements V1PodSpecFluent.HostAliasesNested,Nested{ + HostAliasesNestedImpl(Integer index,V1HostAlias item) { this.index = index; this.builder = new V1HostAliasBuilder(this, item); } - HostAliasesNestedImpl() { this.index = -1; this.builder = new V1HostAliasBuilder(this); } - V1HostAliasBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToHostAliases(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToHostAliases(index,builder.build()); } - public N endHostAlias() { return and(); } + } - - class ImagePullSecretsNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1PodSpecFluent.ImagePullSecretsNested, Nested { - ImagePullSecretsNestedImpl(Integer index, V1LocalObjectReference item) { + class ImagePullSecretsNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1PodSpecFluent.ImagePullSecretsNested,Nested{ + ImagePullSecretsNestedImpl(Integer index,V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } - ImagePullSecretsNestedImpl() { this.index = -1; this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToImagePullSecrets(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToImagePullSecrets(index,builder.build()); } - public N endImagePullSecret() { return and(); } + } - - class InitContainersNestedImpl - extends V1ContainerFluentImpl> - implements V1PodSpecFluent.InitContainersNested, Nested { - InitContainersNestedImpl(Integer index, V1Container item) { + class InitContainersNestedImpl extends V1ContainerFluentImpl> implements V1PodSpecFluent.InitContainersNested,Nested{ + InitContainersNestedImpl(Integer index,V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } - InitContainersNestedImpl() { this.index = -1; this.builder = new V1ContainerBuilder(this); } - V1ContainerBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToInitContainers(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToInitContainers(index,builder.build()); } - public N endInitContainer() { return and(); } + } - - class OsNestedImpl extends V1PodOSFluentImpl> - implements V1PodSpecFluent.OsNested, Nested { + class OsNestedImpl extends V1PodOSFluentImpl> implements V1PodSpecFluent.OsNested,Nested{ OsNestedImpl(V1PodOS item) { this.builder = new V1PodOSBuilder(this, item); } - OsNestedImpl() { this.builder = new V1PodOSBuilder(this); } - V1PodOSBuilder builder; - public N and() { return (N) V1PodSpecFluentImpl.this.withOs(builder.build()); } - public N endOs() { return and(); } + } - - class ReadinessGatesNestedImpl - extends V1PodReadinessGateFluentImpl> - implements V1PodSpecFluent.ReadinessGatesNested, Nested { - ReadinessGatesNestedImpl(Integer index, V1PodReadinessGate item) { + class ReadinessGatesNestedImpl extends V1PodReadinessGateFluentImpl> implements V1PodSpecFluent.ReadinessGatesNested,Nested{ + ReadinessGatesNestedImpl(Integer index,V1PodReadinessGate item) { this.index = index; this.builder = new V1PodReadinessGateBuilder(this, item); } - ReadinessGatesNestedImpl() { this.index = -1; this.builder = new V1PodReadinessGateBuilder(this); } - V1PodReadinessGateBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToReadinessGates(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToReadinessGates(index,builder.build()); } - public N endReadinessGate() { return and(); } + } - - class SecurityContextNestedImpl - extends V1PodSecurityContextFluentImpl> - implements V1PodSpecFluent.SecurityContextNested, Nested { + class SecurityContextNestedImpl extends V1PodSecurityContextFluentImpl> implements V1PodSpecFluent.SecurityContextNested,Nested{ SecurityContextNestedImpl(V1PodSecurityContext item) { this.builder = new V1PodSecurityContextBuilder(this, item); } - SecurityContextNestedImpl() { this.builder = new V1PodSecurityContextBuilder(this); } - V1PodSecurityContextBuilder builder; - public N and() { return (N) V1PodSpecFluentImpl.this.withSecurityContext(builder.build()); } - public N endSecurityContext() { return and(); } + } - - class TolerationsNestedImpl - extends V1TolerationFluentImpl> - implements V1PodSpecFluent.TolerationsNested, Nested { - TolerationsNestedImpl(Integer index, V1Toleration item) { + class TolerationsNestedImpl extends V1TolerationFluentImpl> implements V1PodSpecFluent.TolerationsNested,Nested{ + TolerationsNestedImpl(Integer index,V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } - TolerationsNestedImpl() { this.index = -1; this.builder = new V1TolerationBuilder(this); } - V1TolerationBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToTolerations(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToTolerations(index,builder.build()); } - public N endToleration() { return and(); } + } - - class TopologySpreadConstraintsNestedImpl - extends V1TopologySpreadConstraintFluentImpl< - V1PodSpecFluent.TopologySpreadConstraintsNested> - implements V1PodSpecFluent.TopologySpreadConstraintsNested, Nested { - TopologySpreadConstraintsNestedImpl(Integer index, V1TopologySpreadConstraint item) { + class TopologySpreadConstraintsNestedImpl extends V1TopologySpreadConstraintFluentImpl> implements V1PodSpecFluent.TopologySpreadConstraintsNested,Nested{ + TopologySpreadConstraintsNestedImpl(Integer index,V1TopologySpreadConstraint item) { this.index = index; this.builder = new V1TopologySpreadConstraintBuilder(this, item); } - TopologySpreadConstraintsNestedImpl() { this.index = -1; this.builder = new V1TopologySpreadConstraintBuilder(this); } - V1TopologySpreadConstraintBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToTopologySpreadConstraints(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToTopologySpreadConstraints(index,builder.build()); } - public N endTopologySpreadConstraint() { return and(); } + } - - class VolumesNestedImpl extends V1VolumeFluentImpl> - implements V1PodSpecFluent.VolumesNested, Nested { - VolumesNestedImpl(Integer index, V1Volume item) { + class VolumesNestedImpl extends V1VolumeFluentImpl> implements V1PodSpecFluent.VolumesNested,Nested{ + VolumesNestedImpl(Integer index,V1Volume item) { this.index = index; this.builder = new V1VolumeBuilder(this, item); } - VolumesNestedImpl() { this.index = -1; this.builder = new V1VolumeBuilder(this); } - V1VolumeBuilder builder; Integer index; - public N and() { - return (N) V1PodSpecFluentImpl.this.setToVolumes(index, builder.build()); + return (N) V1PodSpecFluentImpl.this.setToVolumes(index,builder.build()); } - public N endVolume() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java index 8e3b34d12d..3482638b60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodStatusBuilder extends V1PodStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodStatusBuilder extends V1PodStatusFluentImpl implements VisitableBuilder{ public V1PodStatusBuilder() { this(false); } - public V1PodStatusBuilder(Boolean validationEnabled) { this(new V1PodStatus(), validationEnabled); } - public V1PodStatusBuilder(V1PodStatusFluent fluent) { this(fluent, false); } - - public V1PodStatusBuilder(V1PodStatusFluent fluent, Boolean validationEnabled) { + public V1PodStatusBuilder(V1PodStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodStatus(), validationEnabled); } - - public V1PodStatusBuilder(V1PodStatusFluent fluent, V1PodStatus instance) { + public V1PodStatusBuilder(V1PodStatusFluent fluent,V1PodStatus instance) { this(fluent, instance, false); } - - public V1PodStatusBuilder( - V1PodStatusFluent fluent, V1PodStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodStatusBuilder(V1PodStatusFluent fluent,V1PodStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); fluent.withContainerStatuses(instance.getContainerStatuses()); @@ -65,15 +46,13 @@ public V1PodStatusBuilder( fluent.withStartTime(instance.getStartTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodStatusBuilder(V1PodStatus instance) { - this(instance, false); + this(instance,false); } - - public V1PodStatusBuilder(V1PodStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodStatusBuilder(V1PodStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); this.withContainerStatuses(instance.getContainerStatuses()); @@ -100,12 +79,10 @@ public V1PodStatusBuilder(V1PodStatus instance, Boolean validationEnabled) { this.withStartTime(instance.getStartTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodStatusFluent fluent; Boolean validationEnabled; - public V1PodStatus build() { V1PodStatus buildable = new V1PodStatus(); buildable.setConditions(fluent.getConditions()); @@ -123,4 +100,5 @@ public V1PodStatus build() { buildable.setStartTime(fluent.getStartTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java index b818a22bcb..dc343101b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java @@ -1,401 +1,221 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Integer; import java.time.OffsetDateTime; import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1PodStatusFluent> extends Fluent { - public A addToConditions(Integer index, V1PodCondition item); - - public A setToConditions(Integer index, V1PodCondition item); + /** + * Generated + */ +public interface V1PodStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1PodCondition item); + public A setToConditions(Integer index,V1PodCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1PodCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1PodCondition buildCondition(Integer index); - public V1PodCondition buildFirstCondition(); - public V1PodCondition buildLastCondition(); - public V1PodCondition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... conditions); - public Boolean hasConditions(); - public V1PodStatusFluent.ConditionsNested addNewCondition(); - public V1PodStatusFluent.ConditionsNested addNewConditionLike(V1PodCondition item); - - public V1PodStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1PodCondition item); - + public V1PodStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1PodCondition item); public V1PodStatusFluent.ConditionsNested editCondition(Integer index); - public V1PodStatusFluent.ConditionsNested editFirstCondition(); - public V1PodStatusFluent.ConditionsNested editLastCondition(); - - public V1PodStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public A addToContainerStatuses(Integer index, V1ContainerStatus item); - - public A setToContainerStatuses(Integer index, V1ContainerStatus item); - + public V1PodStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public A addToContainerStatuses(Integer index,V1ContainerStatus item); + public A setToContainerStatuses(Integer index,V1ContainerStatus item); public A addToContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A addAllToContainerStatuses(Collection items); - - public A removeFromContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... items); - + public A removeFromContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); public A removeAllFromContainerStatuses(Collection items); - public A removeMatchingFromContainerStatuses(Predicate predicate); - + /** * This method has been deprecated, please use method buildContainerStatuses instead. - * * @return The buildable object. */ @Deprecated public List getContainerStatuses(); - public List buildContainerStatuses(); - public V1ContainerStatus buildContainerStatus(Integer index); - public V1ContainerStatus buildFirstContainerStatus(); - public V1ContainerStatus buildLastContainerStatus(); - - public V1ContainerStatus buildMatchingContainerStatus( - Predicate predicate); - + public V1ContainerStatus buildMatchingContainerStatus(Predicate predicate); public Boolean hasMatchingContainerStatus(Predicate predicate); - public A withContainerStatuses(List containerStatuses); - - public A withContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses); - + public A withContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses); public Boolean hasContainerStatuses(); - public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatus(); - - public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatusLike( - V1ContainerStatus item); - - public V1PodStatusFluent.ContainerStatusesNested setNewContainerStatusLike( - Integer index, V1ContainerStatus item); - + public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item); + public V1PodStatusFluent.ContainerStatusesNested setNewContainerStatusLike(Integer index,V1ContainerStatus item); public V1PodStatusFluent.ContainerStatusesNested editContainerStatus(Integer index); - public V1PodStatusFluent.ContainerStatusesNested editFirstContainerStatus(); - public V1PodStatusFluent.ContainerStatusesNested editLastContainerStatus(); - - public V1PodStatusFluent.ContainerStatusesNested editMatchingContainerStatus( - Predicate predicate); - - public A addToEphemeralContainerStatuses(Integer index, V1ContainerStatus item); - - public A setToEphemeralContainerStatuses(Integer index, V1ContainerStatus item); - - public A addToEphemeralContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... items); - + public V1PodStatusFluent.ContainerStatusesNested editMatchingContainerStatus(Predicate predicate); + public A addToEphemeralContainerStatuses(Integer index,V1ContainerStatus item); + public A setToEphemeralContainerStatuses(Integer index,V1ContainerStatus item); + public A addToEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); public A addAllToEphemeralContainerStatuses(Collection items); - - public A removeFromEphemeralContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... items); - + public A removeFromEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); public A removeAllFromEphemeralContainerStatuses(Collection items); - - public A removeMatchingFromEphemeralContainerStatuses( - Predicate predicate); - + public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate); + /** * This method has been deprecated, please use method buildEphemeralContainerStatuses instead. - * * @return The buildable object. */ @Deprecated public List getEphemeralContainerStatuses(); - public List buildEphemeralContainerStatuses(); - public V1ContainerStatus buildEphemeralContainerStatus(Integer index); - public V1ContainerStatus buildFirstEphemeralContainerStatus(); - public V1ContainerStatus buildLastEphemeralContainerStatus(); - - public V1ContainerStatus buildMatchingEphemeralContainerStatus( - Predicate predicate); - + public V1ContainerStatus buildMatchingEphemeralContainerStatus(Predicate predicate); public Boolean hasMatchingEphemeralContainerStatus(Predicate predicate); - public A withEphemeralContainerStatuses(List ephemeralContainerStatuses); - - public A withEphemeralContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses); - + public A withEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses); public Boolean hasEphemeralContainerStatuses(); - public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatus(); - - public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike( - V1ContainerStatus item); - - public V1PodStatusFluent.EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike( - Integer index, V1ContainerStatus item); - - public V1PodStatusFluent.EphemeralContainerStatusesNested editEphemeralContainerStatus( - Integer index); - + public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item); + public V1PodStatusFluent.EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(Integer index,V1ContainerStatus item); + public V1PodStatusFluent.EphemeralContainerStatusesNested editEphemeralContainerStatus(Integer index); public V1PodStatusFluent.EphemeralContainerStatusesNested editFirstEphemeralContainerStatus(); - public V1PodStatusFluent.EphemeralContainerStatusesNested editLastEphemeralContainerStatus(); - - public V1PodStatusFluent.EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus( - Predicate predicate); - + public V1PodStatusFluent.EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(Predicate predicate); public String getHostIP(); - public A withHostIP(String hostIP); - public Boolean hasHostIP(); - - public A addToInitContainerStatuses(Integer index, V1ContainerStatus item); - - public A setToInitContainerStatuses(Integer index, V1ContainerStatus item); - - public A addToInitContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... items); - + public A addToInitContainerStatuses(Integer index,V1ContainerStatus item); + public A setToInitContainerStatuses(Integer index,V1ContainerStatus item); + public A addToInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); public A addAllToInitContainerStatuses(Collection items); - - public A removeFromInitContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... items); - + public A removeFromInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); public A removeAllFromInitContainerStatuses(Collection items); - public A removeMatchingFromInitContainerStatuses(Predicate predicate); - + /** * This method has been deprecated, please use method buildInitContainerStatuses instead. - * * @return The buildable object. */ @Deprecated public List getInitContainerStatuses(); - public List buildInitContainerStatuses(); - public V1ContainerStatus buildInitContainerStatus(Integer index); - public V1ContainerStatus buildFirstInitContainerStatus(); - public V1ContainerStatus buildLastInitContainerStatus(); - - public V1ContainerStatus buildMatchingInitContainerStatus( - Predicate predicate); - + public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate); public Boolean hasMatchingInitContainerStatus(Predicate predicate); - public A withInitContainerStatuses(List initContainerStatuses); - - public A withInitContainerStatuses( - io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses); - + public A withInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses); public Boolean hasInitContainerStatuses(); - public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatus(); - - public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatusLike( - V1ContainerStatus item); - - public V1PodStatusFluent.InitContainerStatusesNested setNewInitContainerStatusLike( - Integer index, V1ContainerStatus item); - + public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item); + public V1PodStatusFluent.InitContainerStatusesNested setNewInitContainerStatusLike(Integer index,V1ContainerStatus item); public V1PodStatusFluent.InitContainerStatusesNested editInitContainerStatus(Integer index); - public V1PodStatusFluent.InitContainerStatusesNested editFirstInitContainerStatus(); - public V1PodStatusFluent.InitContainerStatusesNested editLastInitContainerStatus(); - - public V1PodStatusFluent.InitContainerStatusesNested editMatchingInitContainerStatus( - Predicate predicate); - + public V1PodStatusFluent.InitContainerStatusesNested editMatchingInitContainerStatus(Predicate predicate); public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getNominatedNodeName(); - public A withNominatedNodeName(String nominatedNodeName); - public Boolean hasNominatedNodeName(); - public String getPhase(); - public A withPhase(String phase); - public Boolean hasPhase(); - public String getPodIP(); - public A withPodIP(String podIP); - public Boolean hasPodIP(); - - public A addToPodIPs(Integer index, V1PodIP item); - - public A setToPodIPs(Integer index, V1PodIP item); - + public A addToPodIPs(Integer index,V1PodIP item); + public A setToPodIPs(Integer index,V1PodIP item); public A addToPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items); - public A addAllToPodIPs(Collection items); - public A removeFromPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items); - public A removeAllFromPodIPs(Collection items); - public A removeMatchingFromPodIPs(Predicate predicate); - + /** * This method has been deprecated, please use method buildPodIPs instead. - * * @return The buildable object. */ @Deprecated public List getPodIPs(); - public List buildPodIPs(); - public V1PodIP buildPodIP(Integer index); - public V1PodIP buildFirstPodIP(); - public V1PodIP buildLastPodIP(); - public V1PodIP buildMatchingPodIP(Predicate predicate); - public Boolean hasMatchingPodIP(Predicate predicate); - public A withPodIPs(List podIPs); - public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs); - public Boolean hasPodIPs(); - public V1PodStatusFluent.PodIPsNested addNewPodIP(); - public V1PodStatusFluent.PodIPsNested addNewPodIPLike(V1PodIP item); - - public V1PodStatusFluent.PodIPsNested setNewPodIPLike(Integer index, V1PodIP item); - + public V1PodStatusFluent.PodIPsNested setNewPodIPLike(Integer index,V1PodIP item); public V1PodStatusFluent.PodIPsNested editPodIP(Integer index); - public V1PodStatusFluent.PodIPsNested editFirstPodIP(); - public V1PodStatusFluent.PodIPsNested editLastPodIP(); - public V1PodStatusFluent.PodIPsNested editMatchingPodIP(Predicate predicate); - public String getQosClass(); - public A withQosClass(String qosClass); - public Boolean hasQosClass(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public OffsetDateTime getStartTime(); - public A withStartTime(OffsetDateTime startTime); - public Boolean hasStartTime(); - - public interface ConditionsNested - extends Nested, V1PodConditionFluent> { + public interface ConditionsNested extends Nested,V1PodConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface ContainerStatusesNested - extends Nested, V1ContainerStatusFluent> { + public interface ContainerStatusesNested extends Nested,V1ContainerStatusFluent>{ public N and(); - public N endContainerStatus(); + } - - public interface EphemeralContainerStatusesNested - extends Nested, - V1ContainerStatusFluent> { + public interface EphemeralContainerStatusesNested extends Nested,V1ContainerStatusFluent>{ public N and(); - public N endEphemeralContainerStatus(); + } - - public interface InitContainerStatusesNested - extends Nested, V1ContainerStatusFluent> { + public interface InitContainerStatusesNested extends Nested,V1ContainerStatusFluent>{ public N and(); - public N endInitContainerStatus(); + } - - public interface PodIPsNested - extends Nested, V1PodIPFluent> { + public interface PodIPsNested extends Nested,V1PodIPFluent>{ public N and(); - public N endPodIP(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java index 0fd37d6c82..84044ef306 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java @@ -1,32 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; 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() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.time.OffsetDateTime; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodStatusFluentImpl> extends BaseFluent implements V1PodStatusFluent{ + public V1PodStatusFluentImpl() { + } public V1PodStatusFluentImpl(V1PodStatus instance) { this.withConditions(instance.getConditions()); @@ -53,8 +49,8 @@ public V1PodStatusFluentImpl(V1PodStatus instance) { this.withReason(instance.getReason()); this.withStartTime(instance.getStartTime()); - } + } private ArrayList conditions; private ArrayList containerStatuses; private ArrayList ephemeralContainerStatuses; @@ -68,83 +64,31 @@ public V1PodStatusFluentImpl(V1PodStatus instance) { private String qosClass; private String reason; private OffsetDateTime startTime; - - public A addToConditions(Integer index, V1PodCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1PodConditionBuilder builder = new 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 addToConditions(Integer index,V1PodCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1PodConditionBuilder builder = new 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(Integer index, V1PodCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1PodCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1PodConditionBuilder builder = new 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; + 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 ArrayList(); - } - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1PodCondition item : items) {V1PodConditionBuilder builder = new 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 ArrayList(); - } - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1PodCondition item : items) {V1PodConditionBuilder builder = new 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 (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1PodCondition item : items) {V1PodConditionBuilder builder = new 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(); @@ -156,205 +100,101 @@ public A removeMatchingFromConditions(Predicate predicate each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1PodCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1PodCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1PodCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1PodCondition buildMatchingCondition(Predicate predicate) { - for (V1PodConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PodConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1PodConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1PodCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (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 (V1PodCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1PodCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1PodStatusFluent.ConditionsNested addNewCondition() { return new V1PodStatusFluentImpl.ConditionsNestedImpl(); } - public V1PodStatusFluent.ConditionsNested addNewConditionLike(V1PodCondition item) { return new V1PodStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1PodStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1PodCondition item) { + public V1PodStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1PodCondition item) { return new V1PodStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1PodStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1PodStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public 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 V1PodStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1PodStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1ContainerStatusBuilder builder = new 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 addToContainerStatuses(Integer index,V1ContainerStatus item) { + if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} + V1ContainerStatusBuilder builder = new 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(Integer index, V1ContainerStatus item) { - if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); - } + public A setToContainerStatuses(Integer index,V1ContainerStatus item) { + if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new 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; + 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 ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").add(builder); - this.containerStatuses.add(builder); - } - return (A) this; + if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").add(builder);this.containerStatuses.add(builder);} return (A)this; } - public A addAllToContainerStatuses(Collection items) { - if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").add(builder); - this.containerStatuses.add(builder); - } - return (A) this; + if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new 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 (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").remove(builder); - if (this.containerStatuses != null) { - this.containerStatuses.remove(builder); - } - } - return (A) this; + public A removeFromContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").remove(builder);if (this.containerStatuses != null) {this.containerStatuses.remove(builder);}} return (A)this; } - public A removeAllFromContainerStatuses(Collection items) { - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").remove(builder); - if (this.containerStatuses != null) { - this.containerStatuses.remove(builder); - } - } - return (A) this; + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").remove(builder);if (this.containerStatuses != null) {this.containerStatuses.remove(builder);}} return (A)this; } - public A removeMatchingFromContainerStatuses(Predicate predicate) { if (containerStatuses == null) return (A) this; final Iterator each = containerStatuses.iterator(); @@ -366,214 +206,102 @@ public A removeMatchingFromContainerStatuses(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildContainerStatuses instead. - * * @return The buildable object. */ @Deprecated public List getContainerStatuses() { return containerStatuses != null ? build(containerStatuses) : null; } - public List buildContainerStatuses() { return containerStatuses != null ? build(containerStatuses) : null; } - public V1ContainerStatus buildContainerStatus(Integer index) { return this.containerStatuses.get(index).build(); } - public V1ContainerStatus buildFirstContainerStatus() { return this.containerStatuses.get(0).build(); } - public V1ContainerStatus buildLastContainerStatus() { return this.containerStatuses.get(containerStatuses.size() - 1).build(); } - - public V1ContainerStatus buildMatchingContainerStatus( - Predicate predicate) { - for (V1ContainerStatusBuilder item : containerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ContainerStatus buildMatchingContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item: containerStatuses) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : containerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerStatusBuilder item: containerStatuses) { if(predicate.test(item)){ return true;} } return false; } - public A withContainerStatuses(List containerStatuses) { - if (this.containerStatuses != null) { - _visitables.get("containerStatuses").removeAll(this.containerStatuses); - } - if (containerStatuses != null) { - this.containerStatuses = new ArrayList(); - for (V1ContainerStatus item : containerStatuses) { - this.addToContainerStatuses(item); - } - } else { - this.containerStatuses = null; - } - return (A) this; + if (this.containerStatuses != null) { _visitables.get("containerStatuses").removeAll(this.containerStatuses);} + if (containerStatuses != null) {this.containerStatuses = new ArrayList(); for (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 (V1ContainerStatus item : containerStatuses) { - this.addToContainerStatuses(item); - } - } - return (A) this; + public A withContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses) { + if (this.containerStatuses != null) {this.containerStatuses.clear();} + if (containerStatuses != null) {for (V1ContainerStatus item :containerStatuses){ this.addToContainerStatuses(item);}} return (A) this; } - public Boolean hasContainerStatuses() { return containerStatuses != null && !containerStatuses.isEmpty(); } - public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatus() { return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl(); } - - public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatusLike( - V1ContainerStatus item) { + public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item) { return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl(-1, item); } - - public V1PodStatusFluent.ContainerStatusesNested setNewContainerStatusLike( - Integer index, V1ContainerStatus item) { + public V1PodStatusFluent.ContainerStatusesNested setNewContainerStatusLike(Integer index,V1ContainerStatus item) { return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl(index, item); } - public V1PodStatusFluent.ContainerStatusesNested editContainerStatus(Integer index) { - if (containerStatuses.size() <= index) - throw new RuntimeException("Can't edit containerStatuses. Index exceeds size."); + if (containerStatuses.size() <= index) throw new RuntimeException("Can't edit containerStatuses. Index exceeds size."); return setNewContainerStatusLike(index, buildContainerStatus(index)); } - public V1PodStatusFluent.ContainerStatusesNested editFirstContainerStatus() { - if (containerStatuses.size() == 0) - throw new RuntimeException("Can't edit first containerStatuses. The list is empty."); + if (containerStatuses.size() == 0) throw new RuntimeException("Can't edit first containerStatuses. The list is empty."); return setNewContainerStatusLike(0, buildContainerStatus(0)); } - public V1PodStatusFluent.ContainerStatusesNested editLastContainerStatus() { int index = containerStatuses.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last containerStatuses. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last containerStatuses. The list is empty."); return setNewContainerStatusLike(index, buildContainerStatus(index)); } - - public V1PodStatusFluent.ContainerStatusesNested editMatchingContainerStatus( - Predicate predicate) { + public V1PodStatusFluent.ContainerStatusesNested editMatchingContainerStatus(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."); + for (int i=0;i(); - } - V1ContainerStatusBuilder builder = new 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 addToEphemeralContainerStatuses(Integer index,V1ContainerStatus item) { + if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} + V1ContainerStatusBuilder builder = new 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(Integer index, V1ContainerStatus item) { - if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); - } + public A setToEphemeralContainerStatuses(Integer index,V1ContainerStatus item) { + if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new 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; + 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 ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").add(builder); - this.ephemeralContainerStatuses.add(builder); - } - return (A) this; + public A addToEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").add(builder);this.ephemeralContainerStatuses.add(builder);} return (A)this; } - public A addAllToEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").add(builder); - this.ephemeralContainerStatuses.add(builder); - } - return (A) this; + if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new 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 (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").remove(builder); - if (this.ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses.remove(builder); - } - } - return (A) this; + public A removeFromEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").remove(builder);if (this.ephemeralContainerStatuses != null) {this.ephemeralContainerStatuses.remove(builder);}} return (A)this; } - public A removeAllFromEphemeralContainerStatuses(Collection items) { - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").remove(builder); - if (this.ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses.remove(builder); - } - } - return (A) this; + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").remove(builder);if (this.ephemeralContainerStatuses != null) {this.ephemeralContainerStatuses.remove(builder);}} return (A)this; } - - public A removeMatchingFromEphemeralContainerStatuses( - Predicate predicate) { + public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate) { if (ephemeralContainerStatuses == null) return (A) this; final Iterator each = ephemeralContainerStatuses.iterator(); final List visitables = _visitables.get("ephemeralContainerStatuses"); @@ -584,226 +312,110 @@ public A removeMatchingFromEphemeralContainerStatuses( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildEphemeralContainerStatuses instead. - * * @return The buildable object. */ @Deprecated public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; } - public List buildEphemeralContainerStatuses() { return ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; } - public V1ContainerStatus buildEphemeralContainerStatus(Integer index) { return this.ephemeralContainerStatuses.get(index).build(); } - public V1ContainerStatus buildFirstEphemeralContainerStatus() { return this.ephemeralContainerStatuses.get(0).build(); } - public V1ContainerStatus buildLastEphemeralContainerStatus() { return this.ephemeralContainerStatuses.get(ephemeralContainerStatuses.size() - 1).build(); } - - public V1ContainerStatus buildMatchingEphemeralContainerStatus( - Predicate predicate) { - for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ContainerStatus buildMatchingEphemeralContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item: ephemeralContainerStatuses) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingEphemeralContainerStatus( - Predicate predicate) { - for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingEphemeralContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item: ephemeralContainerStatuses) { if(predicate.test(item)){ return true;} } return false; } - public A withEphemeralContainerStatuses(List ephemeralContainerStatuses) { - if (this.ephemeralContainerStatuses != null) { - _visitables.get("ephemeralContainerStatuses").removeAll(this.ephemeralContainerStatuses); - } - if (ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses = new ArrayList(); - for (V1ContainerStatus item : ephemeralContainerStatuses) { - this.addToEphemeralContainerStatuses(item); - } - } else { - this.ephemeralContainerStatuses = null; - } - return (A) this; + if (this.ephemeralContainerStatuses != null) { _visitables.get("ephemeralContainerStatuses").removeAll(this.ephemeralContainerStatuses);} + if (ephemeralContainerStatuses != null) {this.ephemeralContainerStatuses = new ArrayList(); for (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 (V1ContainerStatus item : ephemeralContainerStatuses) { - this.addToEphemeralContainerStatuses(item); - } - } - return (A) this; + public A withEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses) { + if (this.ephemeralContainerStatuses != null) {this.ephemeralContainerStatuses.clear();} + if (ephemeralContainerStatuses != null) {for (V1ContainerStatus item :ephemeralContainerStatuses){ this.addToEphemeralContainerStatuses(item);}} return (A) this; } - public Boolean hasEphemeralContainerStatuses() { return ephemeralContainerStatuses != null && !ephemeralContainerStatuses.isEmpty(); } - public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl(); } - - public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike( - V1ContainerStatus item) { + public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item) { return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl(-1, item); } - - public V1PodStatusFluent.EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike( - Integer index, V1ContainerStatus item) { + public V1PodStatusFluent.EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(Integer index,V1ContainerStatus item) { return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl(index, item); } - - public V1PodStatusFluent.EphemeralContainerStatusesNested editEphemeralContainerStatus( - Integer index) { - if (ephemeralContainerStatuses.size() <= index) - throw new RuntimeException("Can't edit ephemeralContainerStatuses. Index exceeds size."); + public V1PodStatusFluent.EphemeralContainerStatusesNested editEphemeralContainerStatus(Integer index) { + if (ephemeralContainerStatuses.size() <= index) throw new RuntimeException("Can't edit ephemeralContainerStatuses. Index exceeds size."); return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); } - public V1PodStatusFluent.EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { - if (ephemeralContainerStatuses.size() == 0) - throw new RuntimeException("Can't edit first ephemeralContainerStatuses. The list is empty."); + if (ephemeralContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainerStatuses. The list is empty."); return setNewEphemeralContainerStatusLike(0, buildEphemeralContainerStatus(0)); } - public V1PodStatusFluent.EphemeralContainerStatusesNested editLastEphemeralContainerStatus() { int index = ephemeralContainerStatuses.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last ephemeralContainerStatuses. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last ephemeralContainerStatuses. The list is empty."); return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); } - - public V1PodStatusFluent.EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus( - Predicate predicate) { + public V1PodStatusFluent.EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(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."); + for (int i=0;i(); - } - V1ContainerStatusBuilder builder = new 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 addToInitContainerStatuses(Integer index,V1ContainerStatus item) { + if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} + V1ContainerStatusBuilder builder = new 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(Integer index, V1ContainerStatus item) { - if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); - } + public A setToInitContainerStatuses(Integer index,V1ContainerStatus item) { + if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new 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; + 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 ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").add(builder); - this.initContainerStatuses.add(builder); - } - return (A) this; + public A addToInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { + if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").add(builder);this.initContainerStatuses.add(builder);} return (A)this; } - public A addAllToInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").add(builder); - this.initContainerStatuses.add(builder); - } - return (A) this; + if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new 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 (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").remove(builder); - if (this.initContainerStatuses != null) { - this.initContainerStatuses.remove(builder); - } - } - return (A) this; + public A removeFromInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").remove(builder);if (this.initContainerStatuses != null) {this.initContainerStatuses.remove(builder);}} return (A)this; } - public A removeAllFromInitContainerStatuses(Collection items) { - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").remove(builder); - if (this.initContainerStatuses != null) { - this.initContainerStatuses.remove(builder); - } - } - return (A) this; + for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").remove(builder);if (this.initContainerStatuses != null) {this.initContainerStatuses.remove(builder);}} return (A)this; } - public A removeMatchingFromInitContainerStatuses(Predicate predicate) { if (initContainerStatuses == null) return (A) this; final Iterator each = initContainerStatuses.iterator(); @@ -815,259 +427,137 @@ public A removeMatchingFromInitContainerStatuses(Predicate getInitContainerStatuses() { return initContainerStatuses != null ? build(initContainerStatuses) : null; } - public List buildInitContainerStatuses() { return initContainerStatuses != null ? build(initContainerStatuses) : null; } - public V1ContainerStatus buildInitContainerStatus(Integer index) { return this.initContainerStatuses.get(index).build(); } - public V1ContainerStatus buildFirstInitContainerStatus() { return this.initContainerStatuses.get(0).build(); } - public V1ContainerStatus buildLastInitContainerStatus() { return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); } - - public V1ContainerStatus buildMatchingInitContainerStatus( - Predicate predicate) { - for (V1ContainerStatusBuilder item : initContainerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item: initContainerStatuses) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingInitContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : initContainerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ContainerStatusBuilder item: initContainerStatuses) { if(predicate.test(item)){ return true;} } return false; } - public A withInitContainerStatuses(List initContainerStatuses) { - if (this.initContainerStatuses != null) { - _visitables.get("initContainerStatuses").removeAll(this.initContainerStatuses); - } - if (initContainerStatuses != null) { - this.initContainerStatuses = new ArrayList(); - for (V1ContainerStatus item : initContainerStatuses) { - this.addToInitContainerStatuses(item); - } - } else { - this.initContainerStatuses = null; - } - return (A) this; + if (this.initContainerStatuses != null) { _visitables.get("initContainerStatuses").removeAll(this.initContainerStatuses);} + if (initContainerStatuses != null) {this.initContainerStatuses = new ArrayList(); for (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 (V1ContainerStatus item : initContainerStatuses) { - this.addToInitContainerStatuses(item); - } - } - return (A) this; + public A withInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses) { + if (this.initContainerStatuses != null) {this.initContainerStatuses.clear();} + if (initContainerStatuses != null) {for (V1ContainerStatus item :initContainerStatuses){ this.addToInitContainerStatuses(item);}} return (A) this; } - public Boolean hasInitContainerStatuses() { return initContainerStatuses != null && !initContainerStatuses.isEmpty(); } - public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatus() { return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl(); } - - public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatusLike( - V1ContainerStatus item) { + public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item) { return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl(-1, item); } - - public V1PodStatusFluent.InitContainerStatusesNested setNewInitContainerStatusLike( - Integer index, V1ContainerStatus item) { + public V1PodStatusFluent.InitContainerStatusesNested setNewInitContainerStatusLike(Integer index,V1ContainerStatus item) { return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl(index, item); } - public V1PodStatusFluent.InitContainerStatusesNested editInitContainerStatus(Integer index) { - if (initContainerStatuses.size() <= index) - throw new RuntimeException("Can't edit initContainerStatuses. Index exceeds size."); + if (initContainerStatuses.size() <= index) throw new RuntimeException("Can't edit initContainerStatuses. Index exceeds size."); return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); } - public V1PodStatusFluent.InitContainerStatusesNested editFirstInitContainerStatus() { - if (initContainerStatuses.size() == 0) - throw new RuntimeException("Can't edit first initContainerStatuses. The list is empty."); + if (initContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first initContainerStatuses. The list is empty."); return setNewInitContainerStatusLike(0, buildInitContainerStatus(0)); } - public V1PodStatusFluent.InitContainerStatusesNested editLastInitContainerStatus() { int index = initContainerStatuses.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last initContainerStatuses. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last initContainerStatuses. The list is empty."); return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); } - - public V1PodStatusFluent.InitContainerStatusesNested editMatchingInitContainerStatus( - Predicate predicate) { + public V1PodStatusFluent.InitContainerStatusesNested editMatchingInitContainerStatus(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."); + for (int i=0;i(); - } - V1PodIPBuilder builder = new 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 addToPodIPs(Integer index,V1PodIP item) { + if (this.podIPs == null) {this.podIPs = new ArrayList();} + V1PodIPBuilder builder = new 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(Integer index, V1PodIP item) { - if (this.podIPs == null) { - this.podIPs = new ArrayList(); - } + public A setToPodIPs(Integer index,V1PodIP item) { + if (this.podIPs == null) {this.podIPs = new ArrayList();} V1PodIPBuilder builder = new 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; + 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 ArrayList(); - } - for (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").add(builder); - this.podIPs.add(builder); - } - return (A) this; + if (this.podIPs == null) {this.podIPs = new ArrayList();} + for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").add(builder);this.podIPs.add(builder);} return (A)this; } - public A addAllToPodIPs(Collection items) { - if (this.podIPs == null) { - this.podIPs = new ArrayList(); - } - for (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").add(builder); - this.podIPs.add(builder); - } - return (A) this; + if (this.podIPs == null) {this.podIPs = new ArrayList();} + for (V1PodIP item : items) {V1PodIPBuilder builder = new 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 (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").remove(builder); - if (this.podIPs != null) { - this.podIPs.remove(builder); - } - } - return (A) this; + for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").remove(builder);if (this.podIPs != null) {this.podIPs.remove(builder);}} return (A)this; } - public A removeAllFromPodIPs(Collection items) { - for (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").remove(builder); - if (this.podIPs != null) { - this.podIPs.remove(builder); - } - } - return (A) this; + for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").remove(builder);if (this.podIPs != null) {this.podIPs.remove(builder);}} return (A)this; } - public A removeMatchingFromPodIPs(Predicate predicate) { if (podIPs == null) return (A) this; final Iterator each = podIPs.iterator(); @@ -1079,393 +569,238 @@ public A removeMatchingFromPodIPs(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPodIPs instead. - * * @return The buildable object. */ @Deprecated public List getPodIPs() { return podIPs != null ? build(podIPs) : null; } - public List buildPodIPs() { return podIPs != null ? build(podIPs) : null; } - public V1PodIP buildPodIP(Integer index) { return this.podIPs.get(index).build(); } - public V1PodIP buildFirstPodIP() { return this.podIPs.get(0).build(); } - public V1PodIP buildLastPodIP() { return this.podIPs.get(podIPs.size() - 1).build(); } - public V1PodIP buildMatchingPodIP(Predicate predicate) { - for (V1PodIPBuilder item : podIPs) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PodIPBuilder item: podIPs) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPodIP(Predicate predicate) { - for (V1PodIPBuilder item : podIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodIPBuilder item: podIPs) { if(predicate.test(item)){ return true;} } return false; } - public A withPodIPs(List podIPs) { - if (this.podIPs != null) { - _visitables.get("podIPs").removeAll(this.podIPs); - } - if (podIPs != null) { - this.podIPs = new ArrayList(); - for (V1PodIP item : podIPs) { - this.addToPodIPs(item); - } - } else { - this.podIPs = null; - } - return (A) this; + if (this.podIPs != null) { _visitables.get("podIPs").removeAll(this.podIPs);} + if (podIPs != null) {this.podIPs = new ArrayList(); for (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 (V1PodIP item : podIPs) { - this.addToPodIPs(item); - } - } - return (A) this; + if (this.podIPs != null) {this.podIPs.clear();} + if (podIPs != null) {for (V1PodIP item :podIPs){ this.addToPodIPs(item);}} return (A) this; } - public Boolean hasPodIPs() { return podIPs != null && !podIPs.isEmpty(); } - public V1PodStatusFluent.PodIPsNested addNewPodIP() { return new V1PodStatusFluentImpl.PodIPsNestedImpl(); } - public V1PodStatusFluent.PodIPsNested addNewPodIPLike(V1PodIP item) { return new V1PodStatusFluentImpl.PodIPsNestedImpl(-1, item); } - - public V1PodStatusFluent.PodIPsNested setNewPodIPLike(Integer index, V1PodIP item) { + public V1PodStatusFluent.PodIPsNested setNewPodIPLike(Integer index,V1PodIP item) { return new V1PodStatusFluentImpl.PodIPsNestedImpl(index, item); } - public V1PodStatusFluent.PodIPsNested editPodIP(Integer index) { - if (podIPs.size() <= index) - throw new RuntimeException("Can't edit podIPs. Index exceeds size."); + if (podIPs.size() <= index) throw new RuntimeException("Can't edit podIPs. Index exceeds size."); return setNewPodIPLike(index, buildPodIP(index)); } - public V1PodStatusFluent.PodIPsNested editFirstPodIP() { - if (podIPs.size() == 0) - throw new RuntimeException("Can't edit first podIPs. The list is empty."); + if (podIPs.size() == 0) throw new RuntimeException("Can't edit first podIPs. The list is empty."); return setNewPodIPLike(0, buildPodIP(0)); } - public 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 V1PodStatusFluent.PodIPsNested editMatchingPodIP(Predicate predicate) { int index = -1; - for (int i = 0; i < podIPs.size(); i++) { - if (predicate.test(podIPs.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1PodConditionFluentImpl> - implements V1PodStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1PodCondition item) { + class ConditionsNestedImpl extends V1PodConditionFluentImpl> implements V1PodStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1PodCondition item) { this.index = index; this.builder = new V1PodConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1PodConditionBuilder(this); } - V1PodConditionBuilder builder; Integer index; - public N and() { - return (N) V1PodStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1PodStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class ContainerStatusesNestedImpl - extends V1ContainerStatusFluentImpl> - implements V1PodStatusFluent.ContainerStatusesNested, Nested { - ContainerStatusesNestedImpl(Integer index, V1ContainerStatus item) { + class ContainerStatusesNestedImpl extends V1ContainerStatusFluentImpl> implements V1PodStatusFluent.ContainerStatusesNested,Nested{ + ContainerStatusesNestedImpl(Integer index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - ContainerStatusesNestedImpl() { this.index = -1; this.builder = new V1ContainerStatusBuilder(this); } - V1ContainerStatusBuilder builder; Integer index; - public N and() { - return (N) V1PodStatusFluentImpl.this.setToContainerStatuses(index, builder.build()); + return (N) V1PodStatusFluentImpl.this.setToContainerStatuses(index,builder.build()); } - public N endContainerStatus() { return and(); } + } - - class EphemeralContainerStatusesNestedImpl - extends V1ContainerStatusFluentImpl> - implements V1PodStatusFluent.EphemeralContainerStatusesNested, Nested { - EphemeralContainerStatusesNestedImpl(Integer index, V1ContainerStatus item) { + class EphemeralContainerStatusesNestedImpl extends V1ContainerStatusFluentImpl> implements V1PodStatusFluent.EphemeralContainerStatusesNested,Nested{ + EphemeralContainerStatusesNestedImpl(Integer index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - EphemeralContainerStatusesNestedImpl() { this.index = -1; this.builder = new V1ContainerStatusBuilder(this); } - V1ContainerStatusBuilder builder; Integer index; - public N and() { - return (N) V1PodStatusFluentImpl.this.setToEphemeralContainerStatuses(index, builder.build()); + return (N) V1PodStatusFluentImpl.this.setToEphemeralContainerStatuses(index,builder.build()); } - public N endEphemeralContainerStatus() { return and(); } + } - - class InitContainerStatusesNestedImpl - extends V1ContainerStatusFluentImpl> - implements V1PodStatusFluent.InitContainerStatusesNested, Nested { - InitContainerStatusesNestedImpl(Integer index, V1ContainerStatus item) { + class InitContainerStatusesNestedImpl extends V1ContainerStatusFluentImpl> implements V1PodStatusFluent.InitContainerStatusesNested,Nested{ + InitContainerStatusesNestedImpl(Integer index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - InitContainerStatusesNestedImpl() { this.index = -1; this.builder = new V1ContainerStatusBuilder(this); } - V1ContainerStatusBuilder builder; Integer index; - public N and() { - return (N) V1PodStatusFluentImpl.this.setToInitContainerStatuses(index, builder.build()); + return (N) V1PodStatusFluentImpl.this.setToInitContainerStatuses(index,builder.build()); } - public N endInitContainerStatus() { return and(); } + } - - class PodIPsNestedImpl extends V1PodIPFluentImpl> - implements V1PodStatusFluent.PodIPsNested, Nested { - PodIPsNestedImpl(Integer index, V1PodIP item) { + class PodIPsNestedImpl extends V1PodIPFluentImpl> implements V1PodStatusFluent.PodIPsNested,Nested{ + PodIPsNestedImpl(Integer index,V1PodIP item) { this.index = index; this.builder = new V1PodIPBuilder(this, item); } - PodIPsNestedImpl() { this.index = -1; this.builder = new V1PodIPBuilder(this); } - V1PodIPBuilder builder; Integer index; - public N and() { - return (N) V1PodStatusFluentImpl.this.setToPodIPs(index, builder.build()); + return (N) V1PodStatusFluentImpl.this.setToPodIPs(index,builder.build()); } - public N endPodIP() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java index 6cbee0da18..17481eef98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodTemplateBuilder extends V1PodTemplateFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodTemplateBuilder extends V1PodTemplateFluentImpl implements VisitableBuilder{ public V1PodTemplateBuilder() { this(false); } - public V1PodTemplateBuilder(Boolean validationEnabled) { this(new V1PodTemplate(), validationEnabled); } - public V1PodTemplateBuilder(V1PodTemplateFluent fluent) { this(fluent, false); } - - public V1PodTemplateBuilder(V1PodTemplateFluent fluent, Boolean validationEnabled) { + public V1PodTemplateBuilder(V1PodTemplateFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodTemplate(), validationEnabled); } - - public V1PodTemplateBuilder(V1PodTemplateFluent fluent, V1PodTemplate instance) { + public V1PodTemplateBuilder(V1PodTemplateFluent fluent,V1PodTemplate instance) { this(fluent, instance, false); } - - public V1PodTemplateBuilder( - V1PodTemplateFluent fluent, V1PodTemplate instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodTemplateBuilder(V1PodTemplateFluent fluent,V1PodTemplate instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1PodTemplateBuilder( fluent.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodTemplateBuilder(V1PodTemplate instance) { - this(instance, false); + this(instance,false); } - - public V1PodTemplateBuilder(V1PodTemplate instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodTemplateBuilder(V1PodTemplate instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1PodTemplateBuilder(V1PodTemplate instance, Boolean validationEnabled) { this.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodTemplateFluent fluent; Boolean validationEnabled; - public V1PodTemplate build() { V1PodTemplate buildable = new V1PodTemplate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1PodTemplate build() { buildable.setTemplate(fluent.getTemplate()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java index ee06c63195..39f8f2994a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PodTemplateFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodTemplateFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PodTemplateFluent.MetadataNested withNewMetadata(); - public V1PodTemplateFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PodTemplateFluent.MetadataNested editMetadata(); - public V1PodTemplateFluent.MetadataNested editOrNewMetadata(); - public V1PodTemplateFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1PodTemplateFluent.TemplateNested withNewTemplate(); - public V1PodTemplateFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public V1PodTemplateFluent.TemplateNested editTemplate(); - public V1PodTemplateFluent.TemplateNested editOrNewTemplate(); - public V1PodTemplateFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface TemplateNested - extends Nested, V1PodTemplateSpecFluent> { + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java index 37542e714e..041ed121f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodTemplateFluentImpl> extends BaseFluent - implements V1PodTemplateFluent { - public V1PodTemplateFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodTemplateFluentImpl> extends BaseFluent implements V1PodTemplateFluent{ + public V1PodTemplateFluentImpl() { + } public V1PodTemplateFluentImpl(V1PodTemplate instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,220 +23,152 @@ public V1PodTemplateFluentImpl(V1PodTemplate instance) { this.withMetadata(instance.getMetadata()); this.withTemplate(instance.getTemplate()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PodTemplateSpecBuilder template; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PodTemplateFluent.MetadataNested withNewMetadata() { return new V1PodTemplateFluentImpl.MetadataNestedImpl(); } - public V1PodTemplateFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodTemplateFluentImpl.MetadataNestedImpl(item); } - public V1PodTemplateFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodTemplateFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PodTemplateFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1PodTemplateFluent.TemplateNested withNewTemplate() { return new V1PodTemplateFluentImpl.TemplateNestedImpl(); } - public V1PodTemplateFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1PodTemplateFluentImpl.TemplateNestedImpl(item); } - public V1PodTemplateFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1PodTemplateFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - public V1PodTemplateFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodTemplateFluentImpl that = (V1PodTemplateFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (template != null ? !template.equals(that.template) : that.template != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (template != null ? !template.equals(that.template) :that.template != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, template, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, template, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (template != null) { - sb.append("template:"); - sb.append(template); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (template != null) { sb.append("template:"); sb.append(template); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1PodTemplateFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PodTemplateFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PodTemplateFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class TemplateNestedImpl - extends V1PodTemplateSpecFluentImpl> - implements V1PodTemplateFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1PodTemplateFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1PodTemplateFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java index e94d1a6a6d..b2d6138253 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PodTemplateListBuilder extends V1PodTemplateListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodTemplateListBuilder extends V1PodTemplateListFluentImpl implements VisitableBuilder{ public V1PodTemplateListBuilder() { this(false); } - public V1PodTemplateListBuilder(Boolean validationEnabled) { this(new V1PodTemplateList(), validationEnabled); } - public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent) { this(fluent, false); } - - public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent, Boolean validationEnabled) { + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodTemplateList(), validationEnabled); } - - public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent, V1PodTemplateList instance) { + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,V1PodTemplateList instance) { this(fluent, instance, false); } - - public V1PodTemplateListBuilder( - V1PodTemplateListFluent fluent, V1PodTemplateList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,V1PodTemplateList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1PodTemplateListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodTemplateListBuilder(V1PodTemplateList instance) { - this(instance, false); + this(instance,false); } - - public V1PodTemplateListBuilder(V1PodTemplateList instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodTemplateListBuilder(V1PodTemplateList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1PodTemplateListBuilder(V1PodTemplateList instance, Boolean validationEn this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodTemplateListFluent fluent; Boolean validationEnabled; - public V1PodTemplateList build() { V1PodTemplateList buildable = new V1PodTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1PodTemplateList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java index a095ab6469..2a8f8a4eee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PodTemplateListFluent> extends Fluent { + /** + * Generated + */ +public interface V1PodTemplateListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1PodTemplate item); - - public A setToItems(Integer index, V1PodTemplate item); - + public A addToItems(Integer index,V1PodTemplate item); + public A setToItems(Integer index,V1PodTemplate item); public A addToItems(io.kubernetes.client.openapi.models.V1PodTemplate... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodTemplate... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1PodTemplate buildItem(Integer index); - public V1PodTemplate buildFirstItem(); - public V1PodTemplate buildLastItem(); - public V1PodTemplate buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items); - public Boolean hasItems(); - public V1PodTemplateListFluent.ItemsNested addNewItem(); - public V1PodTemplateListFluent.ItemsNested addNewItemLike(V1PodTemplate item); - - public V1PodTemplateListFluent.ItemsNested setNewItemLike(Integer index, V1PodTemplate item); - + public V1PodTemplateListFluent.ItemsNested setNewItemLike(Integer index,V1PodTemplate item); public V1PodTemplateListFluent.ItemsNested editItem(Integer index); - public V1PodTemplateListFluent.ItemsNested editFirstItem(); - public V1PodTemplateListFluent.ItemsNested editLastItem(); - - public V1PodTemplateListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1PodTemplateListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1PodTemplateListFluent.MetadataNested withNewMetadata(); - public V1PodTemplateListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1PodTemplateListFluent.MetadataNested editMetadata(); - public V1PodTemplateListFluent.MetadataNested editOrNewMetadata(); - public V1PodTemplateListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1PodTemplateFluent> { + public interface ItemsNested extends Nested,V1PodTemplateFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java index 3e45778a2b..4875cee7e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodTemplateListFluentImpl> extends BaseFluent - implements V1PodTemplateListFluent { - public V1PodTemplateListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodTemplateListFluentImpl> extends BaseFluent implements V1PodTemplateListFluent{ + public V1PodTemplateListFluentImpl() { + } public V1PodTemplateListFluentImpl(V1PodTemplateList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1PodTemplateListFluentImpl(V1PodTemplateList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1PodTemplate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1PodTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1PodTemplate item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1PodTemplate item) { + if (this.items == null) {this.items = new ArrayList();} V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,271 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1PodTemplate buildItem(Integer index) { return this.items.get(index).build(); } - public V1PodTemplate buildFirstItem() { return this.items.get(0).build(); } - public V1PodTemplate buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1PodTemplate buildMatchingItem(Predicate predicate) { - for (V1PodTemplateBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PodTemplateBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1PodTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PodTemplateBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PodTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1PodTemplate item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1PodTemplate item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1PodTemplate item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1PodTemplateListFluent.ItemsNested addNewItem() { return new V1PodTemplateListFluentImpl.ItemsNestedImpl(); } - public V1PodTemplateListFluent.ItemsNested addNewItemLike(V1PodTemplate item) { return new V1PodTemplateListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1PodTemplateListFluent.ItemsNested setNewItemLike(Integer index, V1PodTemplate item) { + public V1PodTemplateListFluent.ItemsNested setNewItemLike(Integer index,V1PodTemplate item) { return new V1PodTemplateListFluentImpl.ItemsNestedImpl(index, item); } - public V1PodTemplateListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1PodTemplateListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1PodTemplateListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1PodTemplateListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1PodTemplateListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1PodTemplateListFluentImpl.MetadataNestedImpl(); } - public V1PodTemplateListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1PodTemplateListFluentImpl.MetadataNestedImpl(item); } - public V1PodTemplateListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodTemplateListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1PodTemplateListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodTemplateListFluentImpl that = (V1PodTemplateListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1PodTemplateFluentImpl> - implements V1PodTemplateListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1PodTemplate item) { + class ItemsNestedImpl extends V1PodTemplateFluentImpl> implements V1PodTemplateListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1PodTemplate item) { this.index = index; this.builder = new V1PodTemplateBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1PodTemplateBuilder(this); } - V1PodTemplateBuilder builder; Integer index; - public N and() { - return (N) V1PodTemplateListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1PodTemplateListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1PodTemplateListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1PodTemplateListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1PodTemplateListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java index 50a268bb25..86b1385ecb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluentImpl implements VisitableBuilder{ public V1PodTemplateSpecBuilder() { this(false); } - public V1PodTemplateSpecBuilder(Boolean validationEnabled) { this(new V1PodTemplateSpec(), validationEnabled); } - public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent) { this(fluent, false); } - - public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent, Boolean validationEnabled) { + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1PodTemplateSpec(), validationEnabled); } - - public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent, V1PodTemplateSpec instance) { + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,V1PodTemplateSpec instance) { this(fluent, instance, false); } - - public V1PodTemplateSpecBuilder( - V1PodTemplateSpecFluent fluent, V1PodTemplateSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,V1PodTemplateSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance) { - this(instance, false); + this(instance,false); } - - public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PodTemplateSpecFluent fluent; Boolean validationEnabled; - public V1PodTemplateSpec build() { V1PodTemplateSpec buildable = new V1PodTemplateSpec(); buildable.setMetadata(fluent.getMetadata()); buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java index bb7bfb9837..4bd20f11c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java @@ -1,82 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1PodTemplateSpecFluent> extends Fluent { - + /** + * Generated + */ +public interface V1PodTemplateSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PodTemplateSpecFluent.MetadataNested withNewMetadata(); - public V1PodTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PodTemplateSpecFluent.MetadataNested editMetadata(); - public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadata(); - public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PodSpec getSpec(); - public V1PodSpec buildSpec(); - public A withSpec(V1PodSpec spec); - public Boolean hasSpec(); - public V1PodTemplateSpecFluent.SpecNested withNewSpec(); - public V1PodTemplateSpecFluent.SpecNested withNewSpecLike(V1PodSpec item); - public V1PodTemplateSpecFluent.SpecNested editSpec(); - public V1PodTemplateSpecFluent.SpecNested editOrNewSpec(); - public V1PodTemplateSpecFluent.SpecNested editOrNewSpecLike(V1PodSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1PodSpecFluent> { + public interface SpecNested extends Nested,V1PodSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java index 4ef11fa486..d4f9e5758f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java @@ -1,204 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PodTemplateSpecFluentImpl> extends BaseFluent - implements V1PodTemplateSpecFluent { - public V1PodTemplateSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PodTemplateSpecFluentImpl> extends BaseFluent implements V1PodTemplateSpecFluent{ + public V1PodTemplateSpecFluentImpl() { + } public V1PodTemplateSpecFluentImpl(V1PodTemplateSpec instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private V1ObjectMetaBuilder metadata; private V1PodSpecBuilder spec; - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PodTemplateSpecFluent.MetadataNested withNewMetadata() { return new V1PodTemplateSpecFluentImpl.MetadataNestedImpl(); } - public V1PodTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodTemplateSpecFluentImpl.MetadataNestedImpl(item); } - public V1PodTemplateSpecFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1PodSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1PodSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1PodSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1PodSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1PodSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1PodTemplateSpecFluent.SpecNested withNewSpec() { return new V1PodTemplateSpecFluentImpl.SpecNestedImpl(); } - public V1PodTemplateSpecFluent.SpecNested withNewSpecLike(V1PodSpec item) { return new V1PodTemplateSpecFluentImpl.SpecNestedImpl(item); } - public V1PodTemplateSpecFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1PodTemplateSpecFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1PodSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1PodSpecBuilder().build()); } - public V1PodTemplateSpecFluent.SpecNested editOrNewSpecLike(V1PodSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PodTemplateSpecFluentImpl that = (V1PodTemplateSpecFluentImpl) o; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return java.util.Objects.hash(metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1PodTemplateSpecFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PodTemplateSpecFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PodTemplateSpecFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1PodSpecFluentImpl> - implements V1PodTemplateSpecFluent.SpecNested, Nested { + class SpecNestedImpl extends V1PodSpecFluentImpl> implements V1PodTemplateSpecFluent.SpecNested,Nested{ SpecNestedImpl(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1PodSpecBuilder(this); } - V1PodSpecBuilder builder; - public N and() { return (N) V1PodTemplateSpecFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java index 2799430009..6c9708aff0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PolicyRuleBuilder extends V1PolicyRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PolicyRuleBuilder extends V1PolicyRuleFluentImpl implements VisitableBuilder{ public V1PolicyRuleBuilder() { this(false); } - public V1PolicyRuleBuilder(Boolean validationEnabled) { this(new V1PolicyRule(), validationEnabled); } - public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent) { this(fluent, false); } - - public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent, Boolean validationEnabled) { + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1PolicyRule(), validationEnabled); } - - public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent, V1PolicyRule instance) { + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,V1PolicyRule instance) { this(fluent, instance, false); } - - public V1PolicyRuleBuilder( - V1PolicyRuleFluent fluent, V1PolicyRule instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,V1PolicyRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); fluent.withNonResourceURLs(instance.getNonResourceURLs()); @@ -49,15 +30,13 @@ public V1PolicyRuleBuilder( fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PolicyRuleBuilder(V1PolicyRule instance) { - this(instance, false); + this(instance,false); } - - public V1PolicyRuleBuilder(V1PolicyRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1PolicyRuleBuilder(V1PolicyRule instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroups(instance.getApiGroups()); this.withNonResourceURLs(instance.getNonResourceURLs()); @@ -68,12 +47,10 @@ public V1PolicyRuleBuilder(V1PolicyRule instance, Boolean validationEnabled) { this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PolicyRuleFluent fluent; Boolean validationEnabled; - public V1PolicyRule build() { V1PolicyRule buildable = new V1PolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -83,4 +60,5 @@ public V1PolicyRule build() { buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java index 9361aff965..a95d45c869 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java @@ -1,171 +1,92 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1PolicyRuleFluent> extends Fluent { - public A addToApiGroups(Integer index, String item); - - public A setToApiGroups(Integer index, String item); - + /** + * Generated + */ +public interface V1PolicyRuleFluent> extends Fluent{ + public A addToApiGroups(Integer index,String item); + public A setToApiGroups(Integer index,String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); - public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); - public String getApiGroup(Integer index); - public String getFirstApiGroup(); - public String getLastApiGroup(); - public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(List apiGroups); - public A withApiGroups(java.lang.String... apiGroups); - public Boolean hasApiGroups(); - - public A addToNonResourceURLs(Integer index, String item); - - public A setToNonResourceURLs(Integer index, String item); - + public A addToNonResourceURLs(Integer index,String item); + public A setToNonResourceURLs(Integer index,String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); - public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); - public String getNonResourceURL(Integer index); - public String getFirstNonResourceURL(); - public String getLastNonResourceURL(); - public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(List nonResourceURLs); - public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public Boolean hasNonResourceURLs(); - - public A addToResourceNames(Integer index, String item); - - public A setToResourceNames(Integer index, String item); - + public A addToResourceNames(Integer index,String item); + public A setToResourceNames(Integer index,String item); public A addToResourceNames(java.lang.String... items); - public A addAllToResourceNames(Collection items); - public A removeFromResourceNames(java.lang.String... items); - public A removeAllFromResourceNames(Collection items); - public List getResourceNames(); - public String getResourceName(Integer index); - public String getFirstResourceName(); - public String getLastResourceName(); - public String getMatchingResourceName(Predicate predicate); - public Boolean hasMatchingResourceName(Predicate predicate); - public A withResourceNames(List resourceNames); - public A withResourceNames(java.lang.String... resourceNames); - public Boolean hasResourceNames(); - - public A addToResources(Integer index, String item); - - public A setToResources(Integer index, String item); - + public A addToResources(Integer index,String item); + public A setToResources(Integer index,String item); public A addToResources(java.lang.String... items); - public A addAllToResources(Collection items); - public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(Collection items); - public List getResources(); - public String getResource(Integer index); - public String getFirstResource(); - public String getLastResource(); - public String getMatchingResource(Predicate predicate); - public Boolean hasMatchingResource(Predicate predicate); - public A withResources(List resources); - public A withResources(java.lang.String... resources); - public Boolean hasResources(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java index b1cd0dff27..b315c8f17a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PolicyRuleFluentImpl> extends BaseFluent - implements V1PolicyRuleFluent { - public V1PolicyRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PolicyRuleFluentImpl> extends BaseFluent implements V1PolicyRuleFluent{ + public V1PolicyRuleFluentImpl() { + } public V1PolicyRuleFluentImpl(V1PolicyRule instance) { this.withApiGroups(instance.getApiGroups()); @@ -34,641 +28,292 @@ public V1PolicyRuleFluentImpl(V1PolicyRule instance) { this.withResources(instance.getResources()); this.withVerbs(instance.getVerbs()); - } + } private List apiGroups; private List nonResourceURLs; private List resourceNames; private List resources; private List verbs; - - public A addToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } + public A addToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} this.apiGroups.add(index, item); - return (A) this; + return (A)this; } - - public A setToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.set(index, item); - return (A) this; + public A setToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A removeFromApiGroups(java.lang.String... items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public A removeAllFromApiGroups(Collection items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public List getApiGroups() { return this.apiGroups; } - public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public String getFirstApiGroup() { return this.apiGroups.get(0); } - public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: apiGroups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: apiGroups) { if(predicate.test(item)){ return true;} } return false; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; + if (apiGroups != null) {this.apiGroups = new ArrayList(); for (String item : apiGroups){this.addToApiGroups(item);}} else { this.apiGroups = null;} return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; + if (this.apiGroups != null) {this.apiGroups.clear();} + if (apiGroups != null) {for (String item :apiGroups){ this.addToApiGroups(item);}} return (A) this; } - public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - - public A addToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } + public A addToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} this.nonResourceURLs.add(index, item); - return (A) this; + return (A)this; } - - public A setToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - this.nonResourceURLs.set(index, item); - return (A) this; + public A setToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + this.nonResourceURLs.set(index, item); return (A)this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public A removeAllFromNonResourceURLs(Collection items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public List getNonResourceURLs() { return this.nonResourceURLs; } - public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } else { - this.nonResourceURLs = null; - } - return (A) this; + if (nonResourceURLs != null) {this.nonResourceURLs = new ArrayList(); for (String item : nonResourceURLs){this.addToNonResourceURLs(item);}} else { this.nonResourceURLs = null;} return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } - return (A) this; + if (this.nonResourceURLs != null) {this.nonResourceURLs.clear();} + if (nonResourceURLs != null) {for (String item :nonResourceURLs){ this.addToNonResourceURLs(item);}} return (A) this; } - public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - - public A addToResourceNames(Integer index, String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } + public A addToResourceNames(Integer index,String item) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} this.resourceNames.add(index, item); - return (A) this; + return (A)this; } - - public A setToResourceNames(Integer index, String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.set(index, item); - return (A) this; + public A setToResourceNames(Integer index,String item) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + this.resourceNames.set(index, item); return (A)this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + for (String item : items) {this.resourceNames.add(item);} return (A)this; } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + for (String item : items) {this.resourceNames.add(item);} return (A)this; } - public A removeFromResourceNames(java.lang.String... items) { - for (String item : items) { - if (this.resourceNames != null) { - this.resourceNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resourceNames!= null){ this.resourceNames.remove(item);}} return (A)this; } - public A removeAllFromResourceNames(Collection items) { - for (String item : items) { - if (this.resourceNames != null) { - this.resourceNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resourceNames!= null){ this.resourceNames.remove(item);}} return (A)this; } - public List getResourceNames() { return this.resourceNames; } - public String getResourceName(Integer index) { return this.resourceNames.get(index); } - public String getFirstResourceName() { return this.resourceNames.get(0); } - public String getLastResourceName() { return this.resourceNames.get(resourceNames.size() - 1); } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resourceNames) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resourceNames) { if(predicate.test(item)){ return true;} } return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } else { - this.resourceNames = null; - } - return (A) this; + if (resourceNames != null) {this.resourceNames = new ArrayList(); for (String item : resourceNames){this.addToResourceNames(item);}} else { this.resourceNames = null;} return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - } - if (resourceNames != null) { - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } - return (A) this; + if (this.resourceNames != null) {this.resourceNames.clear();} + if (resourceNames != null) {for (String item :resourceNames){ this.addToResourceNames(item);}} return (A) this; } - public Boolean hasResourceNames() { return resourceNames != null && !resourceNames.isEmpty(); } - - public A addToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } + public A addToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} this.resources.add(index, item); - return (A) this; + return (A)this; } - - public A setToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public A setToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A removeFromResources(java.lang.String... items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public A removeAllFromResources(Collection items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public List getResources() { return this.resources; } - public String getResource(Integer index) { return this.resources.get(index); } - public String getFirstResource() { return this.resources.get(0); } - public String getLastResource() { return this.resources.get(resources.size() - 1); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resources) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resources) { if(predicate.test(item)){ return true;} } return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; + if (resources != null) {this.resources = new ArrayList(); for (String item : resources){this.addToResources(item);}} else { this.resources = null;} return (A) this; } - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; + if (this.resources != null) {this.resources.clear();} + if (resources != null) {for (String item :resources){ this.addToResources(item);}} return (A) this; } - public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PolicyRuleFluentImpl that = (V1PolicyRuleFluentImpl) o; - if (apiGroups != null ? !apiGroups.equals(that.apiGroups) : that.apiGroups != null) - return false; - if (nonResourceURLs != null - ? !nonResourceURLs.equals(that.nonResourceURLs) - : that.nonResourceURLs != null) return false; - if (resourceNames != null - ? !resourceNames.equals(that.resourceNames) - : that.resourceNames != null) return false; - if (resources != null ? !resources.equals(that.resources) : that.resources != null) - return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (apiGroups != null ? !apiGroups.equals(that.apiGroups) :that.apiGroups != null) return false; + if (nonResourceURLs != null ? !nonResourceURLs.equals(that.nonResourceURLs) :that.nonResourceURLs != null) return false; + if (resourceNames != null ? !resourceNames.equals(that.resourceNames) :that.resourceNames != null) return false; + if (resources != null ? !resources.equals(that.resources) :that.resources != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiGroups, nonResourceURLs, resourceNames, resources, verbs, super.hashCode()); + return java.util.Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { - sb.append("apiGroups:"); - sb.append(apiGroups + ","); - } - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs + ","); - } - if (resourceNames != null && !resourceNames.isEmpty()) { - sb.append("resourceNames:"); - sb.append(resourceNames + ","); - } - if (resources != null && !resources.isEmpty()) { - sb.append("resources:"); - sb.append(resources + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } + if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java index d162efacd2..4607f5c514 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1PortStatusBuilder extends V1PortStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PortStatusBuilder extends V1PortStatusFluentImpl implements VisitableBuilder{ public V1PortStatusBuilder() { this(false); } - public V1PortStatusBuilder(Boolean validationEnabled) { this(new V1PortStatus(), validationEnabled); } - public V1PortStatusBuilder(V1PortStatusFluent fluent) { this(fluent, false); } - - public V1PortStatusBuilder(V1PortStatusFluent fluent, Boolean validationEnabled) { + public V1PortStatusBuilder(V1PortStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1PortStatus(), validationEnabled); } - - public V1PortStatusBuilder(V1PortStatusFluent fluent, V1PortStatus instance) { + public V1PortStatusBuilder(V1PortStatusFluent fluent,V1PortStatus instance) { this(fluent, instance, false); } - - public V1PortStatusBuilder( - V1PortStatusFluent fluent, V1PortStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PortStatusBuilder(V1PortStatusFluent fluent,V1PortStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withError(instance.getError()); fluent.withPort(instance.getPort()); fluent.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PortStatusBuilder(V1PortStatus instance) { - this(instance, false); + this(instance,false); } - - public V1PortStatusBuilder(V1PortStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1PortStatusBuilder(V1PortStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withError(instance.getError()); this.withPort(instance.getPort()); this.withProtocol(instance.getProtocol()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PortStatusFluent fluent; Boolean validationEnabled; - public V1PortStatus build() { V1PortStatus buildable = new V1PortStatus(); buildable.setError(fluent.getError()); @@ -73,4 +50,5 @@ public V1PortStatus build() { buildable.setProtocol(fluent.getProtocol()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java index 36d5dffe73..017bfe1406 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java @@ -1,36 +1,22 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PortStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1PortStatusFluent> extends Fluent{ public String getError(); - public A withError(String error); - public Boolean hasError(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); - public String getProtocol(); - public A withProtocol(String protocol); - public Boolean hasProtocol(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java index 4cb3adca79..4d2fe97f27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java @@ -1,106 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PortStatusFluentImpl> extends BaseFluent - implements V1PortStatusFluent { - public V1PortStatusFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PortStatusFluentImpl> extends BaseFluent implements V1PortStatusFluent{ + public V1PortStatusFluentImpl() { + } public V1PortStatusFluentImpl(V1PortStatus instance) { this.withError(instance.getError()); this.withPort(instance.getPort()); this.withProtocol(instance.getProtocol()); - } + } private String error; private Integer port; private String protocol; - public String getError() { return this.error; } - public A withError(String error) { - this.error = error; - return (A) this; + this.error=error; return (A) this; } - public Boolean hasError() { return this.error != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + this.protocol=protocol; return (A) this; } - public Boolean hasProtocol() { return this.protocol != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PortStatusFluentImpl that = (V1PortStatusFluentImpl) o; - if (error != null ? !error.equals(that.error) : that.error != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; + if (error != null ? !error.equals(that.error) :that.error != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; + if (protocol != null ? !protocol.equals(that.protocol) :that.protocol != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(error, port, protocol, super.hashCode()); + return java.util.Objects.hash(error, port, protocol, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { - sb.append("error:"); - sb.append(error + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port + ","); - } - if (protocol != null) { - sb.append("protocol:"); - sb.append(protocol); - } + if (error != null) { sb.append("error:"); sb.append(error + ","); } + if (port != null) { sb.append("port:"); sb.append(port + ","); } + if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java index 34417236ea..da32f12552 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1PortworxVolumeSourceBuilder - extends V1PortworxVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PortworxVolumeSourceBuilder extends V1PortworxVolumeSourceFluentImpl implements VisitableBuilder{ public V1PortworxVolumeSourceBuilder() { this(false); } - public V1PortworxVolumeSourceBuilder(Boolean validationEnabled) { this(new V1PortworxVolumeSource(), validationEnabled); } - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent) { this(fluent, false); } - - public V1PortworxVolumeSourceBuilder( - V1PortworxVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1PortworxVolumeSource(), validationEnabled); } - - public V1PortworxVolumeSourceBuilder( - V1PortworxVolumeSourceFluent fluent, V1PortworxVolumeSource instance) { + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,V1PortworxVolumeSource instance) { this(fluent, instance, false); } - - public V1PortworxVolumeSourceBuilder( - V1PortworxVolumeSourceFluent fluent, - V1PortworxVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,V1PortworxVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withReadOnly(instance.getReadOnly()); fluent.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); this.withVolumeID(instance.getVolumeID()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PortworxVolumeSourceFluent fluent; Boolean validationEnabled; - public V1PortworxVolumeSource build() { V1PortworxVolumeSource buildable = new V1PortworxVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -78,4 +50,5 @@ public V1PortworxVolumeSource build() { buildable.setVolumeID(fluent.getVolumeID()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java index 6e0b4c8490..c0f090f820 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java @@ -1,39 +1,22 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PortworxVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PortworxVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getVolumeID(); - public A withVolumeID(String volumeID); - public Boolean hasVolumeID(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java index f9b6df91bc..d2fb7a0b59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java @@ -1,110 +1,79 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PortworxVolumeSourceFluentImpl> - extends BaseFluent implements V1PortworxVolumeSourceFluent { - public V1PortworxVolumeSourceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PortworxVolumeSourceFluentImpl> extends BaseFluent implements V1PortworxVolumeSourceFluent{ + public V1PortworxVolumeSourceFluentImpl() { + } public V1PortworxVolumeSourceFluentImpl(V1PortworxVolumeSource instance) { this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); this.withVolumeID(instance.getVolumeID()); - } + } private String fsType; private Boolean readOnly; private String volumeID; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getVolumeID() { return this.volumeID; } - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; + this.volumeID=volumeID; return (A) this; } - public Boolean hasVolumeID() { return this.volumeID != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PortworxVolumeSourceFluentImpl that = (V1PortworxVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (volumeID != null ? !volumeID.equals(that.volumeID) : that.volumeID != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (volumeID != null ? !volumeID.equals(that.volumeID) :that.volumeID != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, volumeID, super.hashCode()); + return java.util.Objects.hash(fsType, readOnly, volumeID, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (volumeID != null) { - sb.append("volumeID:"); - sb.append(volumeID); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java index bd3c0304ee..698f7ddba6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PreconditionsBuilder extends V1PreconditionsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PreconditionsBuilder extends V1PreconditionsFluentImpl implements VisitableBuilder{ public V1PreconditionsBuilder() { this(false); } - public V1PreconditionsBuilder(Boolean validationEnabled) { this(new V1Preconditions(), validationEnabled); } - public V1PreconditionsBuilder(V1PreconditionsFluent fluent) { this(fluent, false); } - - public V1PreconditionsBuilder(V1PreconditionsFluent fluent, Boolean validationEnabled) { + public V1PreconditionsBuilder(V1PreconditionsFluent fluent,Boolean validationEnabled) { this(fluent, new V1Preconditions(), validationEnabled); } - - public V1PreconditionsBuilder(V1PreconditionsFluent fluent, V1Preconditions instance) { + public V1PreconditionsBuilder(V1PreconditionsFluent fluent,V1Preconditions instance) { this(fluent, instance, false); } - - public V1PreconditionsBuilder( - V1PreconditionsFluent fluent, V1Preconditions instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PreconditionsBuilder(V1PreconditionsFluent fluent,V1Preconditions instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withResourceVersion(instance.getResourceVersion()); fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PreconditionsBuilder(V1Preconditions instance) { - this(instance, false); + this(instance,false); } - - public V1PreconditionsBuilder(V1Preconditions instance, Boolean validationEnabled) { - this.fluent = this; + public V1PreconditionsBuilder(V1Preconditions instance,Boolean validationEnabled) { + this.fluent = this; this.withResourceVersion(instance.getResourceVersion()); this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PreconditionsFluent fluent; Boolean validationEnabled; - public V1Preconditions build() { V1Preconditions buildable = new V1Preconditions(); buildable.setResourceVersion(fluent.getResourceVersion()); buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java index 0140d339bf..c044772f2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PreconditionsFluent> extends Fluent { + /** + * Generated + */ +public interface V1PreconditionsFluent> extends Fluent{ public String getResourceVersion(); - public A withResourceVersion(String resourceVersion); - public Boolean hasResourceVersion(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java index 86fbf8b148..99ac54cc52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java @@ -1,87 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PreconditionsFluentImpl> extends BaseFluent - implements V1PreconditionsFluent { - public V1PreconditionsFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PreconditionsFluentImpl> extends BaseFluent implements V1PreconditionsFluent{ + public V1PreconditionsFluentImpl() { + } public V1PreconditionsFluentImpl(V1Preconditions instance) { this.withResourceVersion(instance.getResourceVersion()); this.withUid(instance.getUid()); - } + } private String resourceVersion; private String uid; - public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + this.resourceVersion=resourceVersion; return (A) this; } - public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PreconditionsFluentImpl that = (V1PreconditionsFluentImpl) o; - if (resourceVersion != null - ? !resourceVersion.equals(that.resourceVersion) - : that.resourceVersion != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; + if (resourceVersion != null ? !resourceVersion.equals(that.resourceVersion) :that.resourceVersion != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(resourceVersion, uid, super.hashCode()); + return java.util.Objects.hash(resourceVersion, uid, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resourceVersion != null) { - sb.append("resourceVersion:"); - sb.append(resourceVersion + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid); - } + if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java index 7074a00db0..cce991a7a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1PreferredSchedulingTermBuilder - extends V1PreferredSchedulingTermFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PreferredSchedulingTermBuilder extends V1PreferredSchedulingTermFluentImpl implements VisitableBuilder{ public V1PreferredSchedulingTermBuilder() { this(false); } - public V1PreferredSchedulingTermBuilder(Boolean validationEnabled) { this(new V1PreferredSchedulingTerm(), validationEnabled); } - public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent) { this(fluent, false); } - - public V1PreferredSchedulingTermBuilder( - V1PreferredSchedulingTermFluent fluent, Boolean validationEnabled) { + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,Boolean validationEnabled) { this(fluent, new V1PreferredSchedulingTerm(), validationEnabled); } - - public V1PreferredSchedulingTermBuilder( - V1PreferredSchedulingTermFluent fluent, V1PreferredSchedulingTerm instance) { + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,V1PreferredSchedulingTerm instance) { this(fluent, instance, false); } - - public V1PreferredSchedulingTermBuilder( - V1PreferredSchedulingTermFluent fluent, - V1PreferredSchedulingTerm instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,V1PreferredSchedulingTerm instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPreference(instance.getPreference()); fluent.withWeight(instance.getWeight()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTerm instance) { - this(instance, false); + this(instance,false); } - - public V1PreferredSchedulingTermBuilder( - V1PreferredSchedulingTerm instance, Boolean validationEnabled) { - this.fluent = this; + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTerm instance,Boolean validationEnabled) { + this.fluent = this; this.withPreference(instance.getPreference()); this.withWeight(instance.getWeight()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PreferredSchedulingTermFluent fluent; Boolean validationEnabled; - public V1PreferredSchedulingTerm build() { V1PreferredSchedulingTerm buildable = new V1PreferredSchedulingTerm(); buildable.setPreference(fluent.getPreference()); buildable.setWeight(fluent.getWeight()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java index cd3732979a..6a81f5b53e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1PreferredSchedulingTermFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1PreferredSchedulingTermFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildPreference instead. - * * @return The buildable object. */ @Deprecated public V1NodeSelectorTerm getPreference(); - public V1NodeSelectorTerm buildPreference(); - public A withPreference(V1NodeSelectorTerm preference); - public Boolean hasPreference(); - public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreference(); - - public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreferenceLike( - V1NodeSelectorTerm item); - + public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item); public V1PreferredSchedulingTermFluent.PreferenceNested editPreference(); - public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreference(); - - public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreferenceLike( - V1NodeSelectorTerm item); - + public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreferenceLike(V1NodeSelectorTerm item); public Integer getWeight(); - public A withWeight(Integer weight); - public Boolean hasWeight(); - - public interface PreferenceNested - extends Nested, - V1NodeSelectorTermFluent> { + public interface PreferenceNested extends Nested,V1NodeSelectorTermFluent>{ public N and(); - public N endPreference(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java index 27c270c367..c718fd1fad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java @@ -1,149 +1,106 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PreferredSchedulingTermFluentImpl> - extends BaseFluent implements V1PreferredSchedulingTermFluent { - public V1PreferredSchedulingTermFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PreferredSchedulingTermFluentImpl> extends BaseFluent implements V1PreferredSchedulingTermFluent{ + public V1PreferredSchedulingTermFluentImpl() { + } public V1PreferredSchedulingTermFluentImpl(V1PreferredSchedulingTerm instance) { this.withPreference(instance.getPreference()); this.withWeight(instance.getWeight()); - } + } private V1NodeSelectorTermBuilder preference; private Integer weight; - + /** * This method has been deprecated, please use method buildPreference instead. - * * @return The buildable object. */ @Deprecated public V1NodeSelectorTerm getPreference() { - return this.preference != null ? this.preference.build() : null; + return this.preference!=null ?this.preference.build():null; } - public V1NodeSelectorTerm buildPreference() { - return this.preference != null ? this.preference.build() : null; + return this.preference!=null ?this.preference.build():null; } - public A withPreference(V1NodeSelectorTerm preference) { _visitables.get("preference").remove(this.preference); - if (preference != null) { - this.preference = new V1NodeSelectorTermBuilder(preference); - _visitables.get("preference").add(this.preference); - } else { - this.preference = null; - _visitables.get("preference").remove(this.preference); - } - return (A) this; + if (preference!=null){ this.preference= new V1NodeSelectorTermBuilder(preference); _visitables.get("preference").add(this.preference);} else { this.preference = null; _visitables.get("preference").remove(this.preference); } return (A) this; } - public Boolean hasPreference() { return this.preference != null; } - public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreference() { return new V1PreferredSchedulingTermFluentImpl.PreferenceNestedImpl(); } - - public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreferenceLike( - V1NodeSelectorTerm item) { + public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { return new V1PreferredSchedulingTermFluentImpl.PreferenceNestedImpl(item); } - public V1PreferredSchedulingTermFluent.PreferenceNested editPreference() { return withNewPreferenceLike(getPreference()); } - public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreference() { - return withNewPreferenceLike( - getPreference() != null ? getPreference() : new V1NodeSelectorTermBuilder().build()); + return withNewPreferenceLike(getPreference() != null ? getPreference(): new V1NodeSelectorTermBuilder().build()); } - - public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreferenceLike( - V1NodeSelectorTerm item) { - return withNewPreferenceLike(getPreference() != null ? getPreference() : item); + public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreferenceLike(V1NodeSelectorTerm item) { + return withNewPreferenceLike(getPreference() != null ? getPreference(): item); } - public Integer getWeight() { return this.weight; } - public A withWeight(Integer weight) { - this.weight = weight; - return (A) this; + this.weight=weight; return (A) this; } - public Boolean hasWeight() { return this.weight != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PreferredSchedulingTermFluentImpl that = (V1PreferredSchedulingTermFluentImpl) o; - if (preference != null ? !preference.equals(that.preference) : that.preference != null) - return false; - if (weight != null ? !weight.equals(that.weight) : that.weight != null) return false; + if (preference != null ? !preference.equals(that.preference) :that.preference != null) return false; + if (weight != null ? !weight.equals(that.weight) :that.weight != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(preference, weight, super.hashCode()); + return java.util.Objects.hash(preference, weight, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (preference != null) { - sb.append("preference:"); - sb.append(preference + ","); - } - if (weight != null) { - sb.append("weight:"); - sb.append(weight); - } + if (preference != null) { sb.append("preference:"); sb.append(preference + ","); } + if (weight != null) { sb.append("weight:"); sb.append(weight); } sb.append("}"); return sb.toString(); } - - class PreferenceNestedImpl - extends V1NodeSelectorTermFluentImpl> - implements V1PreferredSchedulingTermFluent.PreferenceNested, Nested { + class PreferenceNestedImpl extends V1NodeSelectorTermFluentImpl> implements V1PreferredSchedulingTermFluent.PreferenceNested,Nested{ PreferenceNestedImpl(V1NodeSelectorTerm item) { this.builder = new V1NodeSelectorTermBuilder(this, item); } - PreferenceNestedImpl() { this.builder = new V1NodeSelectorTermBuilder(this); } - V1NodeSelectorTermBuilder builder; - public N and() { return (N) V1PreferredSchedulingTermFluentImpl.this.withPreference(builder.build()); } - public N endPreference() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java index 5f5bdccbf5..6f3b9cb4db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PriorityClassBuilder extends V1PriorityClassFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PriorityClassBuilder extends V1PriorityClassFluentImpl implements VisitableBuilder{ public V1PriorityClassBuilder() { this(false); } - public V1PriorityClassBuilder(Boolean validationEnabled) { this(new V1PriorityClass(), validationEnabled); } - public V1PriorityClassBuilder(V1PriorityClassFluent fluent) { this(fluent, false); } - - public V1PriorityClassBuilder(V1PriorityClassFluent fluent, Boolean validationEnabled) { + public V1PriorityClassBuilder(V1PriorityClassFluent fluent,Boolean validationEnabled) { this(fluent, new V1PriorityClass(), validationEnabled); } - - public V1PriorityClassBuilder(V1PriorityClassFluent fluent, V1PriorityClass instance) { + public V1PriorityClassBuilder(V1PriorityClassFluent fluent,V1PriorityClass instance) { this(fluent, instance, false); } - - public V1PriorityClassBuilder( - V1PriorityClassFluent fluent, V1PriorityClass instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1PriorityClassBuilder(V1PriorityClassFluent fluent,V1PriorityClass instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withDescription(instance.getDescription()); @@ -53,15 +34,13 @@ public V1PriorityClassBuilder( fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PriorityClassBuilder(V1PriorityClass instance) { - this(instance, false); + this(instance,false); } - - public V1PriorityClassBuilder(V1PriorityClass instance, Boolean validationEnabled) { - this.fluent = this; + public V1PriorityClassBuilder(V1PriorityClass instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withDescription(instance.getDescription()); @@ -76,12 +55,10 @@ public V1PriorityClassBuilder(V1PriorityClass instance, Boolean validationEnable this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PriorityClassFluent fluent; Boolean validationEnabled; - public V1PriorityClass build() { V1PriorityClass buildable = new V1PriorityClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -93,4 +70,5 @@ public V1PriorityClass build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java index 71ec33af7d..e221c1784a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java @@ -1,88 +1,54 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1PriorityClassFluent> extends Fluent { + /** + * Generated + */ +public interface V1PriorityClassFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getDescription(); - public A withDescription(String description); - public Boolean hasDescription(); - public Boolean getGlobalDefault(); - public A withGlobalDefault(Boolean globalDefault); - public Boolean hasGlobalDefault(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1PriorityClassFluent.MetadataNested withNewMetadata(); - public V1PriorityClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1PriorityClassFluent.MetadataNested editMetadata(); - public V1PriorityClassFluent.MetadataNested editOrNewMetadata(); - public V1PriorityClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public String getPreemptionPolicy(); - public A withPreemptionPolicy(String preemptionPolicy); - public Boolean hasPreemptionPolicy(); - public Integer getValue(); - public A withValue(Integer value); - public Boolean hasValue(); - public A withGlobalDefault(); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java index d12078105f..5d091a73d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PriorityClassFluentImpl> extends BaseFluent - implements V1PriorityClassFluent { - public V1PriorityClassFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PriorityClassFluentImpl> extends BaseFluent implements V1PriorityClassFluent{ + public V1PriorityClassFluentImpl() { + } public V1PriorityClassFluentImpl(V1PriorityClass instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,8 +30,8 @@ public V1PriorityClassFluentImpl(V1PriorityClass instance) { this.withPreemptionPolicy(instance.getPreemptionPolicy()); this.withValue(instance.getValue()); - } + } private String apiVersion; private String description; private Boolean globalDefault; @@ -44,226 +39,141 @@ public V1PriorityClassFluentImpl(V1PriorityClass instance) { private V1ObjectMetaBuilder metadata; private String preemptionPolicy; private Integer value; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getDescription() { return this.description; } - public A withDescription(String description) { - this.description = description; - return (A) this; + this.description=description; return (A) this; } - public Boolean hasDescription() { return this.description != null; } - public Boolean getGlobalDefault() { return this.globalDefault; } - public A withGlobalDefault(Boolean globalDefault) { - this.globalDefault = globalDefault; - return (A) this; + this.globalDefault=globalDefault; return (A) this; } - public Boolean hasGlobalDefault() { return this.globalDefault != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1PriorityClassFluent.MetadataNested withNewMetadata() { return new V1PriorityClassFluentImpl.MetadataNestedImpl(); } - public V1PriorityClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PriorityClassFluentImpl.MetadataNestedImpl(item); } - public V1PriorityClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PriorityClassFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1PriorityClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public String getPreemptionPolicy() { return this.preemptionPolicy; } - public A withPreemptionPolicy(String preemptionPolicy) { - this.preemptionPolicy = preemptionPolicy; - return (A) this; + this.preemptionPolicy=preemptionPolicy; return (A) this; } - public Boolean hasPreemptionPolicy() { return this.preemptionPolicy != null; } - public Integer getValue() { return this.value; } - public A withValue(Integer value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PriorityClassFluentImpl that = (V1PriorityClassFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (description != null ? !description.equals(that.description) : that.description != null) - return false; - if (globalDefault != null - ? !globalDefault.equals(that.globalDefault) - : that.globalDefault != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (preemptionPolicy != null - ? !preemptionPolicy.equals(that.preemptionPolicy) - : that.preemptionPolicy != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (description != null ? !description.equals(that.description) :that.description != null) return false; + if (globalDefault != null ? !globalDefault.equals(that.globalDefault) :that.globalDefault != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (preemptionPolicy != null ? !preemptionPolicy.equals(that.preemptionPolicy) :that.preemptionPolicy != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, - description, - globalDefault, - kind, - metadata, - preemptionPolicy, - value, - super.hashCode()); + return java.util.Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (description != null) { - sb.append("description:"); - sb.append(description + ","); - } - if (globalDefault != null) { - sb.append("globalDefault:"); - sb.append(globalDefault + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (preemptionPolicy != null) { - sb.append("preemptionPolicy:"); - sb.append(preemptionPolicy + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (description != null) { sb.append("description:"); sb.append(description + ","); } + if (globalDefault != null) { sb.append("globalDefault:"); sb.append(globalDefault + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (preemptionPolicy != null) { sb.append("preemptionPolicy:"); sb.append(preemptionPolicy + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } - public A withGlobalDefault() { return withGlobalDefault(true); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1PriorityClassFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1PriorityClassFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1PriorityClassFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java index 2ccbc7d5a7..307dffa79f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1PriorityClassListBuilder - extends V1PriorityClassListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1PriorityClassListBuilder extends V1PriorityClassListFluentImpl implements VisitableBuilder{ public V1PriorityClassListBuilder() { this(false); } - public V1PriorityClassListBuilder(Boolean validationEnabled) { this(new V1PriorityClassList(), validationEnabled); } - public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent) { this(fluent, false); } - - public V1PriorityClassListBuilder( - V1PriorityClassListFluent fluent, Boolean validationEnabled) { + public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,Boolean validationEnabled) { this(fluent, new V1PriorityClassList(), validationEnabled); } - - public V1PriorityClassListBuilder( - V1PriorityClassListFluent fluent, V1PriorityClassList instance) { + public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,V1PriorityClassList instance) { this(fluent, instance, false); } - - public V1PriorityClassListBuilder( - V1PriorityClassListFluent fluent, - V1PriorityClassList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,V1PriorityClassList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1PriorityClassListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1PriorityClassListBuilder(V1PriorityClassList instance) { - this(instance, false); + this(instance,false); } - - public V1PriorityClassListBuilder(V1PriorityClassList instance, Boolean validationEnabled) { - this.fluent = this; + public V1PriorityClassListBuilder(V1PriorityClassList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1PriorityClassListBuilder(V1PriorityClassList instance, Boolean validati this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1PriorityClassListFluent fluent; Boolean validationEnabled; - public V1PriorityClassList build() { V1PriorityClassList buildable = new V1PriorityClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1PriorityClassList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java index 8598c18d62..cb59ff69c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1PriorityClassListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1PriorityClassListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1PriorityClass item); - - public A setToItems(Integer index, V1PriorityClass item); - + public A addToItems(Integer index,V1PriorityClass item); + public A setToItems(Integer index,V1PriorityClass item); public A addToItems(io.kubernetes.client.openapi.models.V1PriorityClass... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityClass... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1PriorityClass buildItem(Integer index); - public V1PriorityClass buildFirstItem(); - public V1PriorityClass buildLastItem(); - public V1PriorityClass buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items); - public Boolean hasItems(); - public V1PriorityClassListFluent.ItemsNested addNewItem(); - public V1PriorityClassListFluent.ItemsNested addNewItemLike(V1PriorityClass item); - - public V1PriorityClassListFluent.ItemsNested setNewItemLike( - Integer index, V1PriorityClass item); - + public V1PriorityClassListFluent.ItemsNested setNewItemLike(Integer index,V1PriorityClass item); public V1PriorityClassListFluent.ItemsNested editItem(Integer index); - public V1PriorityClassListFluent.ItemsNested editFirstItem(); - public V1PriorityClassListFluent.ItemsNested editLastItem(); - - public V1PriorityClassListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1PriorityClassListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1PriorityClassListFluent.MetadataNested withNewMetadata(); - public V1PriorityClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1PriorityClassListFluent.MetadataNested editMetadata(); - public V1PriorityClassListFluent.MetadataNested editOrNewMetadata(); - public V1PriorityClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1PriorityClassFluent> { + public interface ItemsNested extends Nested,V1PriorityClassFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java index 9368917485..b96503e384 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1PriorityClassListFluentImpl> - extends BaseFluent implements V1PriorityClassListFluent { - public V1PriorityClassListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1PriorityClassListFluentImpl> extends BaseFluent implements V1PriorityClassListFluent{ + public V1PriorityClassListFluentImpl() { + } public V1PriorityClassListFluentImpl(V1PriorityClassList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1PriorityClassListFluentImpl(V1PriorityClassList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1PriorityClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1PriorityClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1PriorityClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1PriorityClass item) { + if (this.items == null) {this.items = new ArrayList();} V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1PriorityClass buildItem(Integer index) { return this.items.get(index).build(); } - public V1PriorityClass buildFirstItem() { return this.items.get(0).build(); } - public V1PriorityClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1PriorityClass buildMatchingItem(Predicate predicate) { - for (V1PriorityClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PriorityClassBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1PriorityClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PriorityClassBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PriorityClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1PriorityClass item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1PriorityClass item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1PriorityClass item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1PriorityClassListFluent.ItemsNested addNewItem() { return new V1PriorityClassListFluentImpl.ItemsNestedImpl(); } - public V1PriorityClassListFluent.ItemsNested addNewItemLike(V1PriorityClass item) { return new V1PriorityClassListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1PriorityClassListFluent.ItemsNested setNewItemLike( - Integer index, V1PriorityClass item) { + public V1PriorityClassListFluent.ItemsNested setNewItemLike(Integer index,V1PriorityClass item) { return new V1PriorityClassListFluentImpl.ItemsNestedImpl(index, item); } - public V1PriorityClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1PriorityClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1PriorityClassListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1PriorityClassListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1PriorityClassListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1PriorityClassListFluentImpl.MetadataNestedImpl(); } - public V1PriorityClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1PriorityClassListFluentImpl.MetadataNestedImpl(item); } - public V1PriorityClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1PriorityClassListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1PriorityClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1PriorityClassListFluentImpl that = (V1PriorityClassListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1PriorityClassFluentImpl> - implements V1PriorityClassListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1PriorityClass item) { + class ItemsNestedImpl extends V1PriorityClassFluentImpl> implements V1PriorityClassListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1PriorityClass item) { this.index = index; this.builder = new V1PriorityClassBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1PriorityClassBuilder(this); } - V1PriorityClassBuilder builder; Integer index; - public N and() { - return (N) V1PriorityClassListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1PriorityClassListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1PriorityClassListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1PriorityClassListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1PriorityClassListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java index 568a91dd26..cbf9a3c293 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ProbeBuilder extends V1ProbeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ProbeBuilder extends V1ProbeFluentImpl implements VisitableBuilder{ public V1ProbeBuilder() { this(false); } - public V1ProbeBuilder(Boolean validationEnabled) { this(new V1Probe(), validationEnabled); } - public V1ProbeBuilder(V1ProbeFluent fluent) { this(fluent, false); } - - public V1ProbeBuilder(V1ProbeFluent fluent, Boolean validationEnabled) { + public V1ProbeBuilder(V1ProbeFluent fluent,Boolean validationEnabled) { this(fluent, new V1Probe(), validationEnabled); } - - public V1ProbeBuilder(V1ProbeFluent fluent, V1Probe instance) { + public V1ProbeBuilder(V1ProbeFluent fluent,V1Probe instance) { this(fluent, instance, false); } - - public V1ProbeBuilder(V1ProbeFluent fluent, V1Probe instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ProbeBuilder(V1ProbeFluent fluent,V1Probe instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withExec(instance.getExec()); fluent.withFailureThreshold(instance.getFailureThreshold()); @@ -58,15 +40,13 @@ public V1ProbeBuilder(V1ProbeFluent fluent, V1Probe instance, Boolean validat fluent.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ProbeBuilder(V1Probe instance) { - this(instance, false); + this(instance,false); } - - public V1ProbeBuilder(V1Probe instance, Boolean validationEnabled) { - this.fluent = this; + public V1ProbeBuilder(V1Probe instance,Boolean validationEnabled) { + this.fluent = this; this.withExec(instance.getExec()); this.withFailureThreshold(instance.getFailureThreshold()); @@ -87,12 +67,10 @@ public V1ProbeBuilder(V1Probe instance, Boolean validationEnabled) { this.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ProbeFluent fluent; Boolean validationEnabled; - public V1Probe build() { V1Probe buildable = new V1Probe(); buildable.setExec(fluent.getExec()); @@ -107,4 +85,5 @@ public V1Probe build() { buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java index 1339428ada..da3b41cb76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java @@ -1,180 +1,113 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ProbeFluent> extends Fluent { - +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ProbeFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildExec instead. - * * @return The buildable object. */ @Deprecated public V1ExecAction getExec(); - public V1ExecAction buildExec(); - public A withExec(V1ExecAction exec); - public Boolean hasExec(); - public V1ProbeFluent.ExecNested withNewExec(); - public V1ProbeFluent.ExecNested withNewExecLike(V1ExecAction item); - public V1ProbeFluent.ExecNested editExec(); - public V1ProbeFluent.ExecNested editOrNewExec(); - public V1ProbeFluent.ExecNested editOrNewExecLike(V1ExecAction item); - public Integer getFailureThreshold(); - public A withFailureThreshold(Integer failureThreshold); - public Boolean hasFailureThreshold(); - + /** * This method has been deprecated, please use method buildGrpc instead. - * * @return The buildable object. */ @Deprecated public V1GRPCAction getGrpc(); - public V1GRPCAction buildGrpc(); - public A withGrpc(V1GRPCAction grpc); - public Boolean hasGrpc(); - public V1ProbeFluent.GrpcNested withNewGrpc(); - public V1ProbeFluent.GrpcNested withNewGrpcLike(V1GRPCAction item); - public V1ProbeFluent.GrpcNested editGrpc(); - public V1ProbeFluent.GrpcNested editOrNewGrpc(); - public V1ProbeFluent.GrpcNested editOrNewGrpcLike(V1GRPCAction item); - + /** * This method has been deprecated, please use method buildHttpGet instead. - * * @return The buildable object. */ @Deprecated public V1HTTPGetAction getHttpGet(); - public V1HTTPGetAction buildHttpGet(); - public A withHttpGet(V1HTTPGetAction httpGet); - public Boolean hasHttpGet(); - public V1ProbeFluent.HttpGetNested withNewHttpGet(); - public V1ProbeFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item); - public V1ProbeFluent.HttpGetNested editHttpGet(); - public V1ProbeFluent.HttpGetNested editOrNewHttpGet(); - public V1ProbeFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item); - public Integer getInitialDelaySeconds(); - public A withInitialDelaySeconds(Integer initialDelaySeconds); - public Boolean hasInitialDelaySeconds(); - public Integer getPeriodSeconds(); - public A withPeriodSeconds(Integer periodSeconds); - public Boolean hasPeriodSeconds(); - public Integer getSuccessThreshold(); - public A withSuccessThreshold(Integer successThreshold); - public Boolean hasSuccessThreshold(); - + /** * This method has been deprecated, please use method buildTcpSocket instead. - * * @return The buildable object. */ @Deprecated public V1TCPSocketAction getTcpSocket(); - public V1TCPSocketAction buildTcpSocket(); - public A withTcpSocket(V1TCPSocketAction tcpSocket); - public Boolean hasTcpSocket(); - public V1ProbeFluent.TcpSocketNested withNewTcpSocket(); - public V1ProbeFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item); - public V1ProbeFluent.TcpSocketNested editTcpSocket(); - public V1ProbeFluent.TcpSocketNested editOrNewTcpSocket(); - public V1ProbeFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item); - public Long getTerminationGracePeriodSeconds(); - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds); - public Boolean hasTerminationGracePeriodSeconds(); - public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(Integer timeoutSeconds); - public Boolean hasTimeoutSeconds(); - - public interface ExecNested - extends Nested, V1ExecActionFluent> { + public interface ExecNested extends Nested,V1ExecActionFluent>{ public N and(); - public N endExec(); + } - - public interface GrpcNested - extends Nested, V1GRPCActionFluent> { + public interface GrpcNested extends Nested,V1GRPCActionFluent>{ public N and(); - public N endGrpc(); + } - - public interface HttpGetNested - extends Nested, V1HTTPGetActionFluent> { + public interface HttpGetNested extends Nested,V1HTTPGetActionFluent>{ public N and(); - public N endHttpGet(); + } - - public interface TcpSocketNested - extends Nested, V1TCPSocketActionFluent> { + public interface TcpSocketNested extends Nested,V1TCPSocketActionFluent>{ public N and(); - public N endTcpSocket(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java index fd80d104b3..19e3954aee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java @@ -1,26 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ProbeFluentImpl> extends BaseFluent - implements V1ProbeFluent { - public V1ProbeFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Object; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ProbeFluentImpl> extends BaseFluent implements V1ProbeFluent{ + public V1ProbeFluentImpl() { + } public V1ProbeFluentImpl(V1Probe instance) { this.withExec(instance.getExec()); @@ -41,8 +37,8 @@ public V1ProbeFluentImpl(V1Probe instance) { this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + } private V1ExecActionBuilder exec; private Integer failureThreshold; private V1GRPCActionBuilder grpc; @@ -53,460 +49,294 @@ public V1ProbeFluentImpl(V1Probe instance) { private V1TCPSocketActionBuilder tcpSocket; private Long terminationGracePeriodSeconds; private Integer timeoutSeconds; - + /** * This method has been deprecated, please use method buildExec instead. - * * @return The buildable object. */ @Deprecated public V1ExecAction getExec() { - return this.exec != null ? this.exec.build() : null; + return this.exec!=null ?this.exec.build():null; } - public V1ExecAction buildExec() { - return this.exec != null ? this.exec.build() : null; + return this.exec!=null ?this.exec.build():null; } - public A withExec(V1ExecAction exec) { _visitables.get("exec").remove(this.exec); - if (exec != null) { - this.exec = new V1ExecActionBuilder(exec); - _visitables.get("exec").add(this.exec); - } else { - this.exec = null; - _visitables.get("exec").remove(this.exec); - } - return (A) this; + if (exec!=null){ this.exec= new V1ExecActionBuilder(exec); _visitables.get("exec").add(this.exec);} else { this.exec = null; _visitables.get("exec").remove(this.exec); } return (A) this; } - public Boolean hasExec() { return this.exec != null; } - public V1ProbeFluent.ExecNested withNewExec() { return new V1ProbeFluentImpl.ExecNestedImpl(); } - public V1ProbeFluent.ExecNested withNewExecLike(V1ExecAction item) { return new V1ProbeFluentImpl.ExecNestedImpl(item); } - public V1ProbeFluent.ExecNested editExec() { return withNewExecLike(getExec()); } - public V1ProbeFluent.ExecNested editOrNewExec() { - return withNewExecLike(getExec() != null ? getExec() : new V1ExecActionBuilder().build()); + return withNewExecLike(getExec() != null ? getExec(): new V1ExecActionBuilder().build()); } - public V1ProbeFluent.ExecNested editOrNewExecLike(V1ExecAction item) { - return withNewExecLike(getExec() != null ? getExec() : item); + return withNewExecLike(getExec() != null ? getExec(): item); } - public Integer getFailureThreshold() { return this.failureThreshold; } - public A withFailureThreshold(Integer failureThreshold) { - this.failureThreshold = failureThreshold; - return (A) this; + this.failureThreshold=failureThreshold; return (A) this; } - public Boolean hasFailureThreshold() { return this.failureThreshold != null; } - + /** * This method has been deprecated, please use method buildGrpc instead. - * * @return The buildable object. */ @Deprecated public V1GRPCAction getGrpc() { - return this.grpc != null ? this.grpc.build() : null; + return this.grpc!=null ?this.grpc.build():null; } - public V1GRPCAction buildGrpc() { - return this.grpc != null ? this.grpc.build() : null; + return this.grpc!=null ?this.grpc.build():null; } - public A withGrpc(V1GRPCAction grpc) { _visitables.get("grpc").remove(this.grpc); - if (grpc != null) { - this.grpc = new V1GRPCActionBuilder(grpc); - _visitables.get("grpc").add(this.grpc); - } else { - this.grpc = null; - _visitables.get("grpc").remove(this.grpc); - } - return (A) this; + if (grpc!=null){ this.grpc= new V1GRPCActionBuilder(grpc); _visitables.get("grpc").add(this.grpc);} else { this.grpc = null; _visitables.get("grpc").remove(this.grpc); } return (A) this; } - public Boolean hasGrpc() { return this.grpc != null; } - public V1ProbeFluent.GrpcNested withNewGrpc() { return new V1ProbeFluentImpl.GrpcNestedImpl(); } - public V1ProbeFluent.GrpcNested withNewGrpcLike(V1GRPCAction item) { return new V1ProbeFluentImpl.GrpcNestedImpl(item); } - public V1ProbeFluent.GrpcNested editGrpc() { return withNewGrpcLike(getGrpc()); } - public V1ProbeFluent.GrpcNested editOrNewGrpc() { - return withNewGrpcLike(getGrpc() != null ? getGrpc() : new V1GRPCActionBuilder().build()); + return withNewGrpcLike(getGrpc() != null ? getGrpc(): new V1GRPCActionBuilder().build()); } - public V1ProbeFluent.GrpcNested editOrNewGrpcLike(V1GRPCAction item) { - return withNewGrpcLike(getGrpc() != null ? getGrpc() : item); + return withNewGrpcLike(getGrpc() != null ? getGrpc(): item); } - + /** * This method has been deprecated, please use method buildHttpGet instead. - * * @return The buildable object. */ @Deprecated public V1HTTPGetAction getHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; + return this.httpGet!=null ?this.httpGet.build():null; } - public V1HTTPGetAction buildHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; + return this.httpGet!=null ?this.httpGet.build():null; } - public A withHttpGet(V1HTTPGetAction httpGet) { _visitables.get("httpGet").remove(this.httpGet); - if (httpGet != null) { - this.httpGet = new V1HTTPGetActionBuilder(httpGet); - _visitables.get("httpGet").add(this.httpGet); - } else { - this.httpGet = null; - _visitables.get("httpGet").remove(this.httpGet); - } - return (A) this; + if (httpGet!=null){ this.httpGet= new V1HTTPGetActionBuilder(httpGet); _visitables.get("httpGet").add(this.httpGet);} else { this.httpGet = null; _visitables.get("httpGet").remove(this.httpGet); } return (A) this; } - public Boolean hasHttpGet() { return this.httpGet != null; } - public V1ProbeFluent.HttpGetNested withNewHttpGet() { return new V1ProbeFluentImpl.HttpGetNestedImpl(); } - public V1ProbeFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { return new V1ProbeFluentImpl.HttpGetNestedImpl(item); } - public V1ProbeFluent.HttpGetNested editHttpGet() { return withNewHttpGetLike(getHttpGet()); } - public V1ProbeFluent.HttpGetNested editOrNewHttpGet() { - return withNewHttpGetLike( - getHttpGet() != null ? getHttpGet() : new V1HTTPGetActionBuilder().build()); + return withNewHttpGetLike(getHttpGet() != null ? getHttpGet(): new V1HTTPGetActionBuilder().build()); } - public V1ProbeFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { - return withNewHttpGetLike(getHttpGet() != null ? getHttpGet() : item); + return withNewHttpGetLike(getHttpGet() != null ? getHttpGet(): item); } - public Integer getInitialDelaySeconds() { return this.initialDelaySeconds; } - public A withInitialDelaySeconds(Integer initialDelaySeconds) { - this.initialDelaySeconds = initialDelaySeconds; - return (A) this; + this.initialDelaySeconds=initialDelaySeconds; return (A) this; } - public Boolean hasInitialDelaySeconds() { return this.initialDelaySeconds != null; } - public Integer getPeriodSeconds() { return this.periodSeconds; } - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; + this.periodSeconds=periodSeconds; return (A) this; } - public Boolean hasPeriodSeconds() { return this.periodSeconds != null; } - public Integer getSuccessThreshold() { return this.successThreshold; } - public A withSuccessThreshold(Integer successThreshold) { - this.successThreshold = successThreshold; - return (A) this; + this.successThreshold=successThreshold; return (A) this; } - public Boolean hasSuccessThreshold() { return this.successThreshold != null; } - + /** * This method has been deprecated, please use method buildTcpSocket instead. - * * @return The buildable object. */ @Deprecated public V1TCPSocketAction getTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; + return this.tcpSocket!=null ?this.tcpSocket.build():null; } - public V1TCPSocketAction buildTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; + return this.tcpSocket!=null ?this.tcpSocket.build():null; } - public A withTcpSocket(V1TCPSocketAction tcpSocket) { _visitables.get("tcpSocket").remove(this.tcpSocket); - if (tcpSocket != null) { - this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); - _visitables.get("tcpSocket").add(this.tcpSocket); - } else { - this.tcpSocket = null; - _visitables.get("tcpSocket").remove(this.tcpSocket); - } - return (A) this; + if (tcpSocket!=null){ this.tcpSocket= new V1TCPSocketActionBuilder(tcpSocket); _visitables.get("tcpSocket").add(this.tcpSocket);} else { this.tcpSocket = null; _visitables.get("tcpSocket").remove(this.tcpSocket); } return (A) this; } - public Boolean hasTcpSocket() { return this.tcpSocket != null; } - public V1ProbeFluent.TcpSocketNested withNewTcpSocket() { return new V1ProbeFluentImpl.TcpSocketNestedImpl(); } - public V1ProbeFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { return new V1ProbeFluentImpl.TcpSocketNestedImpl(item); } - public V1ProbeFluent.TcpSocketNested editTcpSocket() { return withNewTcpSocketLike(getTcpSocket()); } - public V1ProbeFluent.TcpSocketNested editOrNewTcpSocket() { - return withNewTcpSocketLike( - getTcpSocket() != null ? getTcpSocket() : new V1TCPSocketActionBuilder().build()); + return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket(): new V1TCPSocketActionBuilder().build()); } - public V1ProbeFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { - return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket() : item); + return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket(): item); } - public Long getTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds; } - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { - this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - return (A) this; + this.terminationGracePeriodSeconds=terminationGracePeriodSeconds; return (A) this; } - public Boolean hasTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds != null; } - public Integer getTimeoutSeconds() { return this.timeoutSeconds; } - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return (A) this; + this.timeoutSeconds=timeoutSeconds; return (A) this; } - public Boolean hasTimeoutSeconds() { return this.timeoutSeconds != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ProbeFluentImpl that = (V1ProbeFluentImpl) o; - if (exec != null ? !exec.equals(that.exec) : that.exec != null) return false; - if (failureThreshold != null - ? !failureThreshold.equals(that.failureThreshold) - : that.failureThreshold != null) return false; - if (grpc != null ? !grpc.equals(that.grpc) : that.grpc != null) return false; - if (httpGet != null ? !httpGet.equals(that.httpGet) : that.httpGet != null) return false; - if (initialDelaySeconds != null - ? !initialDelaySeconds.equals(that.initialDelaySeconds) - : that.initialDelaySeconds != null) return false; - if (periodSeconds != null - ? !periodSeconds.equals(that.periodSeconds) - : that.periodSeconds != null) return false; - if (successThreshold != null - ? !successThreshold.equals(that.successThreshold) - : that.successThreshold != null) return false; - if (tcpSocket != null ? !tcpSocket.equals(that.tcpSocket) : that.tcpSocket != null) - return false; - if (terminationGracePeriodSeconds != null - ? !terminationGracePeriodSeconds.equals(that.terminationGracePeriodSeconds) - : that.terminationGracePeriodSeconds != null) return false; - if (timeoutSeconds != null - ? !timeoutSeconds.equals(that.timeoutSeconds) - : that.timeoutSeconds != null) return false; + if (exec != null ? !exec.equals(that.exec) :that.exec != null) return false; + if (failureThreshold != null ? !failureThreshold.equals(that.failureThreshold) :that.failureThreshold != null) return false; + if (grpc != null ? !grpc.equals(that.grpc) :that.grpc != null) return false; + if (httpGet != null ? !httpGet.equals(that.httpGet) :that.httpGet != null) return false; + if (initialDelaySeconds != null ? !initialDelaySeconds.equals(that.initialDelaySeconds) :that.initialDelaySeconds != null) return false; + if (periodSeconds != null ? !periodSeconds.equals(that.periodSeconds) :that.periodSeconds != null) return false; + if (successThreshold != null ? !successThreshold.equals(that.successThreshold) :that.successThreshold != null) return false; + if (tcpSocket != null ? !tcpSocket.equals(that.tcpSocket) :that.tcpSocket != null) return false; + if (terminationGracePeriodSeconds != null ? !terminationGracePeriodSeconds.equals(that.terminationGracePeriodSeconds) :that.terminationGracePeriodSeconds != null) return false; + if (timeoutSeconds != null ? !timeoutSeconds.equals(that.timeoutSeconds) :that.timeoutSeconds != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - exec, - failureThreshold, - grpc, - httpGet, - initialDelaySeconds, - periodSeconds, - successThreshold, - tcpSocket, - terminationGracePeriodSeconds, - timeoutSeconds, - super.hashCode()); + return java.util.Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (exec != null) { - sb.append("exec:"); - sb.append(exec + ","); - } - if (failureThreshold != null) { - sb.append("failureThreshold:"); - sb.append(failureThreshold + ","); - } - if (grpc != null) { - sb.append("grpc:"); - sb.append(grpc + ","); - } - if (httpGet != null) { - sb.append("httpGet:"); - sb.append(httpGet + ","); - } - if (initialDelaySeconds != null) { - sb.append("initialDelaySeconds:"); - sb.append(initialDelaySeconds + ","); - } - if (periodSeconds != null) { - sb.append("periodSeconds:"); - sb.append(periodSeconds + ","); - } - if (successThreshold != null) { - sb.append("successThreshold:"); - sb.append(successThreshold + ","); - } - if (tcpSocket != null) { - sb.append("tcpSocket:"); - sb.append(tcpSocket + ","); - } - if (terminationGracePeriodSeconds != null) { - sb.append("terminationGracePeriodSeconds:"); - sb.append(terminationGracePeriodSeconds + ","); - } - if (timeoutSeconds != null) { - sb.append("timeoutSeconds:"); - sb.append(timeoutSeconds); - } + if (exec != null) { sb.append("exec:"); sb.append(exec + ","); } + if (failureThreshold != null) { sb.append("failureThreshold:"); sb.append(failureThreshold + ","); } + if (grpc != null) { sb.append("grpc:"); sb.append(grpc + ","); } + if (httpGet != null) { sb.append("httpGet:"); sb.append(httpGet + ","); } + if (initialDelaySeconds != null) { sb.append("initialDelaySeconds:"); sb.append(initialDelaySeconds + ","); } + if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } + if (successThreshold != null) { sb.append("successThreshold:"); sb.append(successThreshold + ","); } + if (tcpSocket != null) { sb.append("tcpSocket:"); sb.append(tcpSocket + ","); } + if (terminationGracePeriodSeconds != null) { sb.append("terminationGracePeriodSeconds:"); sb.append(terminationGracePeriodSeconds + ","); } + if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } sb.append("}"); return sb.toString(); } - - class ExecNestedImpl extends V1ExecActionFluentImpl> - implements V1ProbeFluent.ExecNested, Nested { + class ExecNestedImpl extends V1ExecActionFluentImpl> implements V1ProbeFluent.ExecNested,Nested{ ExecNestedImpl(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } - ExecNestedImpl() { this.builder = new V1ExecActionBuilder(this); } - V1ExecActionBuilder builder; - public N and() { return (N) V1ProbeFluentImpl.this.withExec(builder.build()); } - public N endExec() { return and(); } + } - - class GrpcNestedImpl extends V1GRPCActionFluentImpl> - implements V1ProbeFluent.GrpcNested, Nested { + class GrpcNestedImpl extends V1GRPCActionFluentImpl> implements V1ProbeFluent.GrpcNested,Nested{ GrpcNestedImpl(V1GRPCAction item) { this.builder = new V1GRPCActionBuilder(this, item); } - GrpcNestedImpl() { this.builder = new V1GRPCActionBuilder(this); } - V1GRPCActionBuilder builder; - public N and() { return (N) V1ProbeFluentImpl.this.withGrpc(builder.build()); } - public N endGrpc() { return and(); } + } - - class HttpGetNestedImpl extends V1HTTPGetActionFluentImpl> - implements V1ProbeFluent.HttpGetNested, Nested { + class HttpGetNestedImpl extends V1HTTPGetActionFluentImpl> implements V1ProbeFluent.HttpGetNested,Nested{ HttpGetNestedImpl(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } - HttpGetNestedImpl() { this.builder = new V1HTTPGetActionBuilder(this); } - V1HTTPGetActionBuilder builder; - public N and() { return (N) V1ProbeFluentImpl.this.withHttpGet(builder.build()); } - public N endHttpGet() { return and(); } + } - - class TcpSocketNestedImpl extends V1TCPSocketActionFluentImpl> - implements V1ProbeFluent.TcpSocketNested, Nested { + class TcpSocketNestedImpl extends V1TCPSocketActionFluentImpl> implements V1ProbeFluent.TcpSocketNested,Nested{ TcpSocketNestedImpl(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } - TcpSocketNestedImpl() { this.builder = new V1TCPSocketActionBuilder(this); } - V1TCPSocketActionBuilder builder; - public N and() { return (N) V1ProbeFluentImpl.this.withTcpSocket(builder.build()); } - public N endTcpSocket() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java index 48212006a9..4ef14e4105 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ProjectedVolumeSourceBuilder - extends V1ProjectedVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ProjectedVolumeSourceBuilder extends V1ProjectedVolumeSourceFluentImpl implements VisitableBuilder{ public V1ProjectedVolumeSourceBuilder() { this(false); } - public V1ProjectedVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ProjectedVolumeSource(), validationEnabled); } - public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent) { this(fluent, false); } - - public V1ProjectedVolumeSourceBuilder( - V1ProjectedVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ProjectedVolumeSource(), validationEnabled); } - - public V1ProjectedVolumeSourceBuilder( - V1ProjectedVolumeSourceFluent fluent, V1ProjectedVolumeSource instance) { + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1ProjectedVolumeSource instance) { this(fluent, instance, false); } - - public V1ProjectedVolumeSourceBuilder( - V1ProjectedVolumeSourceFluent fluent, - V1ProjectedVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1ProjectedVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); fluent.withSources(instance.getSources()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1ProjectedVolumeSourceBuilder( - V1ProjectedVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); this.withSources(instance.getSources()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ProjectedVolumeSourceFluent fluent; Boolean validationEnabled; - public V1ProjectedVolumeSource build() { V1ProjectedVolumeSource buildable = new V1ProjectedVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); buildable.setSources(fluent.getSources()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java index 033ad580d5..1f4b5f4aa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java @@ -1,92 +1,58 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ProjectedVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ProjectedVolumeSourceFluent> extends Fluent{ public Integer getDefaultMode(); - public A withDefaultMode(Integer defaultMode); - public Boolean hasDefaultMode(); - - public A addToSources(Integer index, V1VolumeProjection item); - - public A setToSources(Integer index, V1VolumeProjection item); - + public A addToSources(Integer index,V1VolumeProjection item); + public A setToSources(Integer index,V1VolumeProjection item); public A addToSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items); - public A addAllToSources(Collection items); - public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items); - public A removeAllFromSources(Collection items); - public A removeMatchingFromSources(Predicate predicate); - + /** * This method has been deprecated, please use method buildSources instead. - * * @return The buildable object. */ @Deprecated public List getSources(); - public List buildSources(); - public V1VolumeProjection buildSource(Integer index); - public V1VolumeProjection buildFirstSource(); - public V1VolumeProjection buildLastSource(); - public V1VolumeProjection buildMatchingSource(Predicate predicate); - public Boolean hasMatchingSource(Predicate predicate); - public A withSources(List sources); - public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... sources); - public Boolean hasSources(); - public V1ProjectedVolumeSourceFluent.SourcesNested addNewSource(); - public V1ProjectedVolumeSourceFluent.SourcesNested addNewSourceLike(V1VolumeProjection item); - - public V1ProjectedVolumeSourceFluent.SourcesNested setNewSourceLike( - Integer index, V1VolumeProjection item); - + public V1ProjectedVolumeSourceFluent.SourcesNested setNewSourceLike(Integer index,V1VolumeProjection item); public V1ProjectedVolumeSourceFluent.SourcesNested editSource(Integer index); - public V1ProjectedVolumeSourceFluent.SourcesNested editFirstSource(); - public V1ProjectedVolumeSourceFluent.SourcesNested editLastSource(); - - public V1ProjectedVolumeSourceFluent.SourcesNested editMatchingSource( - Predicate predicate); - - public interface SourcesNested - extends Nested, V1VolumeProjectionFluent> { + public V1ProjectedVolumeSourceFluent.SourcesNested editMatchingSource(Predicate predicate); + public interface SourcesNested extends Nested,V1VolumeProjectionFluent>{ public N and(); - public N endSource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java index 70bb4afb4f..321a67cecf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java @@ -1,127 +1,69 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ProjectedVolumeSourceFluentImpl> - extends BaseFluent implements V1ProjectedVolumeSourceFluent { - public V1ProjectedVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ProjectedVolumeSourceFluentImpl> extends BaseFluent implements V1ProjectedVolumeSourceFluent{ + public V1ProjectedVolumeSourceFluentImpl() { + } public V1ProjectedVolumeSourceFluentImpl(V1ProjectedVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); this.withSources(instance.getSources()); - } + } private Integer defaultMode; private ArrayList sources; - public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + this.defaultMode=defaultMode; return (A) this; } - public Boolean hasDefaultMode() { return this.defaultMode != null; } - - public A addToSources(Integer index, V1VolumeProjection item) { - if (this.sources == null) { - this.sources = new ArrayList(); - } - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").add(index >= 0 ? index : _visitables.get("sources").size(), builder); - this.sources.add(index >= 0 ? index : sources.size(), builder); - return (A) this; + public A addToSources(Integer index,V1VolumeProjection item) { + if (this.sources == null) {this.sources = new ArrayList();} + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(index >= 0 ? index : _visitables.get("sources").size(), builder);this.sources.add(index >= 0 ? index : sources.size(), builder); return (A)this; } - - public A setToSources(Integer index, V1VolumeProjection item) { - if (this.sources == null) { - this.sources = new ArrayList(); - } + public A setToSources(Integer index,V1VolumeProjection item) { + if (this.sources == null) {this.sources = new ArrayList();} V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= _visitables.get("sources").size()) { - _visitables.get("sources").add(builder); - } else { - _visitables.get("sources").set(index, builder); - } - if (index < 0 || index >= sources.size()) { - sources.add(builder); - } else { - sources.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("sources").size()) { _visitables.get("sources").add(builder); } else { _visitables.get("sources").set(index, builder);} + if (index < 0 || index >= sources.size()) { sources.add(builder); } else { sources.set(index, builder);} + return (A)this; } - public A addToSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - if (this.sources == null) { - this.sources = new ArrayList(); - } - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").add(builder); - this.sources.add(builder); - } - return (A) this; + if (this.sources == null) {this.sources = new ArrayList();} + for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(builder);this.sources.add(builder);} return (A)this; } - public A addAllToSources(Collection items) { - if (this.sources == null) { - this.sources = new ArrayList(); - } - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").add(builder); - this.sources.add(builder); - } - return (A) this; + if (this.sources == null) {this.sources = new ArrayList();} + for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(builder);this.sources.add(builder);} return (A)this; } - public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").remove(builder); - if (this.sources != null) { - this.sources.remove(builder); - } - } - return (A) this; + for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").remove(builder);if (this.sources != null) {this.sources.remove(builder);}} return (A)this; } - public A removeAllFromSources(Collection items) { - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").remove(builder); - if (this.sources != null) { - this.sources.remove(builder); - } - } - return (A) this; + for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").remove(builder);if (this.sources != null) {this.sources.remove(builder);}} return (A)this; } - public A removeMatchingFromSources(Predicate predicate) { if (sources == null) return (A) this; final Iterator each = sources.iterator(); @@ -133,179 +75,113 @@ public A removeMatchingFromSources(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSources instead. - * * @return The buildable object. */ @Deprecated public List getSources() { return sources != null ? build(sources) : null; } - public List buildSources() { return sources != null ? build(sources) : null; } - public V1VolumeProjection buildSource(Integer index) { return this.sources.get(index).build(); } - public V1VolumeProjection buildFirstSource() { return this.sources.get(0).build(); } - public V1VolumeProjection buildLastSource() { return this.sources.get(sources.size() - 1).build(); } - public V1VolumeProjection buildMatchingSource(Predicate predicate) { - for (V1VolumeProjectionBuilder item : sources) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeProjectionBuilder item: sources) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSource(Predicate predicate) { - for (V1VolumeProjectionBuilder item : sources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeProjectionBuilder item: sources) { if(predicate.test(item)){ return true;} } return false; } - public A withSources(List sources) { - if (this.sources != null) { - _visitables.get("sources").removeAll(this.sources); - } - if (sources != null) { - this.sources = new ArrayList(); - for (V1VolumeProjection item : sources) { - this.addToSources(item); - } - } else { - this.sources = null; - } - return (A) this; + if (this.sources != null) { _visitables.get("sources").removeAll(this.sources);} + if (sources != null) {this.sources = new ArrayList(); for (V1VolumeProjection item : sources){this.addToSources(item);}} else { this.sources = null;} return (A) this; } - public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... sources) { - if (this.sources != null) { - this.sources.clear(); - } - if (sources != null) { - for (V1VolumeProjection item : sources) { - this.addToSources(item); - } - } - return (A) this; + if (this.sources != null) {this.sources.clear();} + if (sources != null) {for (V1VolumeProjection item :sources){ this.addToSources(item);}} return (A) this; } - public Boolean hasSources() { return sources != null && !sources.isEmpty(); } - public V1ProjectedVolumeSourceFluent.SourcesNested addNewSource() { return new V1ProjectedVolumeSourceFluentImpl.SourcesNestedImpl(); } - public V1ProjectedVolumeSourceFluent.SourcesNested addNewSourceLike(V1VolumeProjection item) { return new V1ProjectedVolumeSourceFluentImpl.SourcesNestedImpl(-1, item); } - - public V1ProjectedVolumeSourceFluent.SourcesNested setNewSourceLike( - Integer index, V1VolumeProjection item) { + public V1ProjectedVolumeSourceFluent.SourcesNested setNewSourceLike(Integer index,V1VolumeProjection item) { return new V1ProjectedVolumeSourceFluentImpl.SourcesNestedImpl(index, item); } - public V1ProjectedVolumeSourceFluent.SourcesNested editSource(Integer index) { - if (sources.size() <= index) - throw new RuntimeException("Can't edit sources. Index exceeds size."); + if (sources.size() <= index) throw new RuntimeException("Can't edit sources. Index exceeds size."); return setNewSourceLike(index, buildSource(index)); } - public V1ProjectedVolumeSourceFluent.SourcesNested editFirstSource() { - if (sources.size() == 0) - throw new RuntimeException("Can't edit first sources. The list is empty."); + if (sources.size() == 0) throw new RuntimeException("Can't edit first sources. The list is empty."); return setNewSourceLike(0, buildSource(0)); } - public V1ProjectedVolumeSourceFluent.SourcesNested editLastSource() { int index = sources.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last sources. The list is empty."); return setNewSourceLike(index, buildSource(index)); } - - public V1ProjectedVolumeSourceFluent.SourcesNested editMatchingSource( - Predicate predicate) { + public V1ProjectedVolumeSourceFluent.SourcesNested editMatchingSource(Predicate predicate) { int index = -1; - for (int i = 0; i < sources.size(); i++) { - if (predicate.test(sources.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1VolumeProjectionFluentImpl> - implements V1ProjectedVolumeSourceFluent.SourcesNested, Nested { - SourcesNestedImpl(Integer index, V1VolumeProjection item) { + class SourcesNestedImpl extends V1VolumeProjectionFluentImpl> implements V1ProjectedVolumeSourceFluent.SourcesNested,Nested{ + SourcesNestedImpl(Integer index,V1VolumeProjection item) { this.index = index; this.builder = new V1VolumeProjectionBuilder(this, item); } - SourcesNestedImpl() { this.index = -1; this.builder = new V1VolumeProjectionBuilder(this); } - V1VolumeProjectionBuilder builder; Integer index; - public N and() { - return (N) V1ProjectedVolumeSourceFluentImpl.this.setToSources(index, builder.build()); + return (N) V1ProjectedVolumeSourceFluentImpl.this.setToSources(index,builder.build()); } - public N endSource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java index 121fc3a7b8..eef523559d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1QuobyteVolumeSourceBuilder - extends V1QuobyteVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1QuobyteVolumeSourceBuilder extends V1QuobyteVolumeSourceFluentImpl implements VisitableBuilder{ public V1QuobyteVolumeSourceBuilder() { this(false); } - public V1QuobyteVolumeSourceBuilder(Boolean validationEnabled) { this(new V1QuobyteVolumeSource(), validationEnabled); } - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent) { this(fluent, false); } - - public V1QuobyteVolumeSourceBuilder( - V1QuobyteVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1QuobyteVolumeSource(), validationEnabled); } - - public V1QuobyteVolumeSourceBuilder( - V1QuobyteVolumeSourceFluent fluent, V1QuobyteVolumeSource instance) { + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,V1QuobyteVolumeSource instance) { this(fluent, instance, false); } - - public V1QuobyteVolumeSourceBuilder( - V1QuobyteVolumeSourceFluent fluent, - V1QuobyteVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,V1QuobyteVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withGroup(instance.getGroup()); fluent.withReadOnly(instance.getReadOnly()); @@ -56,15 +32,13 @@ public V1QuobyteVolumeSourceBuilder( fluent.withVolume(instance.getVolume()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withGroup(instance.getGroup()); this.withReadOnly(instance.getReadOnly()); @@ -77,12 +51,10 @@ public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance, Boolean vali this.withVolume(instance.getVolume()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1QuobyteVolumeSourceFluent fluent; Boolean validationEnabled; - public V1QuobyteVolumeSource build() { V1QuobyteVolumeSource buildable = new V1QuobyteVolumeSource(); buildable.setGroup(fluent.getGroup()); @@ -93,4 +65,5 @@ public V1QuobyteVolumeSource build() { buildable.setVolume(fluent.getVolume()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java index db0acb42b7..e30cd8c220 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java @@ -1,57 +1,31 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1QuobyteVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1QuobyteVolumeSourceFluent> extends Fluent{ public String getGroup(); - public A withGroup(String group); - public Boolean hasGroup(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getRegistry(); - public A withRegistry(String registry); - public Boolean hasRegistry(); - public String getTenant(); - public A withTenant(String tenant); - public Boolean hasTenant(); - public String getUser(); - public A withUser(String user); - public Boolean hasUser(); - public String getVolume(); - public A withVolume(String volume); - public Boolean hasVolume(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java index bf9d5bf8f8..ff4b9de3c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1QuobyteVolumeSourceFluentImpl> - extends BaseFluent implements V1QuobyteVolumeSourceFluent { - public V1QuobyteVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1QuobyteVolumeSourceFluentImpl> extends BaseFluent implements V1QuobyteVolumeSourceFluent{ + public V1QuobyteVolumeSourceFluentImpl() { + } public V1QuobyteVolumeSourceFluentImpl(V1QuobyteVolumeSource instance) { this.withGroup(instance.getGroup()); @@ -32,143 +25,97 @@ public V1QuobyteVolumeSourceFluentImpl(V1QuobyteVolumeSource instance) { this.withUser(instance.getUser()); this.withVolume(instance.getVolume()); - } + } private String group; private Boolean readOnly; private String registry; private String tenant; private String user; private String volume; - public String getGroup() { return this.group; } - public A withGroup(String group) { - this.group = group; - return (A) this; + this.group=group; return (A) this; } - public Boolean hasGroup() { return this.group != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getRegistry() { return this.registry; } - public A withRegistry(String registry) { - this.registry = registry; - return (A) this; + this.registry=registry; return (A) this; } - public Boolean hasRegistry() { return this.registry != null; } - public String getTenant() { return this.tenant; } - public A withTenant(String tenant) { - this.tenant = tenant; - return (A) this; + this.tenant=tenant; return (A) this; } - public Boolean hasTenant() { return this.tenant != null; } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public String getVolume() { return this.volume; } - public A withVolume(String volume) { - this.volume = volume; - return (A) this; + this.volume=volume; return (A) this; } - public Boolean hasVolume() { return this.volume != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1QuobyteVolumeSourceFluentImpl that = (V1QuobyteVolumeSourceFluentImpl) o; - if (group != null ? !group.equals(that.group) : that.group != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (registry != null ? !registry.equals(that.registry) : that.registry != null) return false; - if (tenant != null ? !tenant.equals(that.tenant) : that.tenant != null) return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; - if (volume != null ? !volume.equals(that.volume) : that.volume != null) return false; + if (group != null ? !group.equals(that.group) :that.group != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (registry != null ? !registry.equals(that.registry) :that.registry != null) return false; + if (tenant != null ? !tenant.equals(that.tenant) :that.tenant != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; + if (volume != null ? !volume.equals(that.volume) :that.volume != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - group, readOnly, registry, tenant, user, volume, super.hashCode()); + return java.util.Objects.hash(group, readOnly, registry, tenant, user, volume, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { - sb.append("group:"); - sb.append(group + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (registry != null) { - sb.append("registry:"); - sb.append(registry + ","); - } - if (tenant != null) { - sb.append("tenant:"); - sb.append(tenant + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user + ","); - } - if (volume != null) { - sb.append("volume:"); - sb.append(volume); - } + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (registry != null) { sb.append("registry:"); sb.append(registry + ","); } + if (tenant != null) { sb.append("tenant:"); sb.append(tenant + ","); } + if (user != null) { sb.append("user:"); sb.append(user + ","); } + if (volume != null) { sb.append("volume:"); sb.append(volume); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java index 2f800eaba3..8ffbf617b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RBDPersistentVolumeSourceBuilder - extends V1RBDPersistentVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RBDPersistentVolumeSourceBuilder extends V1RBDPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1RBDPersistentVolumeSourceBuilder() { this(false); } - public V1RBDPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1RBDPersistentVolumeSource(), validationEnabled); } - public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1RBDPersistentVolumeSourceBuilder( - V1RBDPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1RBDPersistentVolumeSource(), validationEnabled); } - - public V1RBDPersistentVolumeSourceBuilder( - V1RBDPersistentVolumeSourceFluent fluent, V1RBDPersistentVolumeSource instance) { + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,V1RBDPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1RBDPersistentVolumeSourceBuilder( - V1RBDPersistentVolumeSourceFluent fluent, - V1RBDPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,V1RBDPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withImage(instance.getImage()); @@ -60,16 +36,13 @@ public V1RBDPersistentVolumeSourceBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1RBDPersistentVolumeSourceBuilder( - V1RBDPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withImage(instance.getImage()); @@ -86,12 +59,10 @@ public V1RBDPersistentVolumeSourceBuilder( this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RBDPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1RBDPersistentVolumeSource build() { V1RBDPersistentVolumeSource buildable = new V1RBDPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -104,4 +75,5 @@ public V1RBDPersistentVolumeSource build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java index d0d030c4b0..ffbca746f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java @@ -1,125 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RBDPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1RBDPersistentVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getImage(); - public A withImage(String image); - public Boolean hasImage(); - public String getKeyring(); - public A withKeyring(String keyring); - public Boolean hasKeyring(); - - public A addToMonitors(Integer index, String item); - - public A setToMonitors(Integer index, String item); - + public A addToMonitors(Integer index,String item); + public A setToMonitors(Integer index,String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); - public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(Collection items); - public List getMonitors(); - public String getMonitor(Integer index); - public String getFirstMonitor(); - public String getLastMonitor(); - public String getMatchingMonitor(Predicate predicate); - public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(List monitors); - public A withMonitors(java.lang.String... monitors); - public Boolean hasMonitors(); - public String getPool(); - public A withPool(String pool); - public Boolean hasPool(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef(); - public V1SecretReference buildSecretRef(); - public A withSecretRef(V1SecretReference secretRef); - public Boolean hasSecretRef(); - public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item); - + public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item); public V1RBDPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item); - + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item); public String getUser(); - public A withUser(String user); - public Boolean hasUser(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface SecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java index 982db29b32..fbe9e7fda6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RBDPersistentVolumeSourceFluentImpl> - extends BaseFluent implements V1RBDPersistentVolumeSourceFluent { - public V1RBDPersistentVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RBDPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1RBDPersistentVolumeSourceFluent{ + public V1RBDPersistentVolumeSourceFluentImpl() { + } public V1RBDPersistentVolumeSourceFluentImpl(V1RBDPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -41,8 +36,8 @@ public V1RBDPersistentVolumeSourceFluentImpl(V1RBDPersistentVolumeSource instanc this.withSecretRef(instance.getSecretRef()); this.withUser(instance.getUser()); - } + } private String fsType; private String image; private String keyring; @@ -51,337 +46,194 @@ public V1RBDPersistentVolumeSourceFluentImpl(V1RBDPersistentVolumeSource instanc private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String user; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getImage() { return this.image; } - public A withImage(String image) { - this.image = image; - return (A) this; + this.image=image; return (A) this; } - public Boolean hasImage() { return this.image != null; } - public String getKeyring() { return this.keyring; } - public A withKeyring(String keyring) { - this.keyring = keyring; - return (A) this; + this.keyring=keyring; return (A) this; } - public Boolean hasKeyring() { return this.keyring != null; } - - public A addToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } + public A addToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} this.monitors.add(index, item); - return (A) this; + return (A)this; } - - public A setToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - this.monitors.set(index, item); - return (A) this; + public A setToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} + this.monitors.set(index, item); return (A)this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A removeFromMonitors(java.lang.String... items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public A removeAllFromMonitors(Collection items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public List getMonitors() { return this.monitors; } - public String getMonitor(Integer index) { return this.monitors.get(index); } - public String getFirstMonitor() { return this.monitors.get(0); } - public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public String getMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: monitors) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: monitors) { if(predicate.test(item)){ return true;} } return false; } - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; + if (monitors != null) {this.monitors = new ArrayList(); for (String item : monitors){this.addToMonitors(item);}} else { this.monitors = null;} return (A) this; } - public A withMonitors(java.lang.String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + if (this.monitors != null) {this.monitors.clear();} + if (monitors != null) {for (String item :monitors){ this.addToMonitors(item);}} return (A) this; } - public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public String getPool() { return this.pool; } - public A withPool(String pool) { - this.pool = pool; - return (A) this; + this.pool=pool; return (A) this; } - public Boolean hasPool() { return this.pool != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1RBDPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item) { + public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new V1RBDPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1RBDPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RBDPersistentVolumeSourceFluentImpl that = (V1RBDPersistentVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (image != null ? !image.equals(that.image) : that.image != null) return false; - if (keyring != null ? !keyring.equals(that.keyring) : that.keyring != null) return false; - if (monitors != null ? !monitors.equals(that.monitors) : that.monitors != null) return false; - if (pool != null ? !pool.equals(that.pool) : that.pool != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (image != null ? !image.equals(that.image) :that.image != null) return false; + if (keyring != null ? !keyring.equals(that.keyring) :that.keyring != null) return false; + if (monitors != null ? !monitors.equals(that.monitors) :that.monitors != null) return false; + if (pool != null ? !pool.equals(that.pool) :that.pool != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); + return java.util.Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (image != null) { - sb.append("image:"); - sb.append(image + ","); - } - if (keyring != null) { - sb.append("keyring:"); - sb.append(keyring + ","); - } - if (monitors != null && !monitors.isEmpty()) { - sb.append("monitors:"); - sb.append(monitors + ","); - } - if (pool != null) { - sb.append("pool:"); - sb.append(pool + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (image != null) { sb.append("image:"); sb.append(image + ","); } + if (keyring != null) { sb.append("keyring:"); sb.append(keyring + ","); } + if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } + if (pool != null) { sb.append("pool:"); sb.append(pool + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1SecretReferenceFluentImpl> - implements V1RBDPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1RBDPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1RBDPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java index a6bbf20ab2..b9fc89b650 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluentImpl implements VisitableBuilder{ public V1RBDVolumeSourceBuilder() { this(false); } - public V1RBDVolumeSourceBuilder(Boolean validationEnabled) { this(new V1RBDVolumeSource(), validationEnabled); } - public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent) { this(fluent, false); } - - public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1RBDVolumeSource(), validationEnabled); } - - public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent, V1RBDVolumeSource instance) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,V1RBDVolumeSource instance) { this(fluent, instance, false); } - - public V1RBDVolumeSourceBuilder( - V1RBDVolumeSourceFluent fluent, V1RBDVolumeSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,V1RBDVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withImage(instance.getImage()); @@ -55,15 +36,13 @@ public V1RBDVolumeSourceBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withImage(instance.getImage()); @@ -80,12 +59,10 @@ public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance, Boolean validationEn this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RBDVolumeSourceFluent fluent; Boolean validationEnabled; - public V1RBDVolumeSource build() { V1RBDVolumeSource buildable = new V1RBDVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -98,4 +75,5 @@ public V1RBDVolumeSource build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java index 0df76a6965..495bfc8256 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java @@ -1,123 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RBDVolumeSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1RBDVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getImage(); - public A withImage(String image); - public Boolean hasImage(); - public String getKeyring(); - public A withKeyring(String keyring); - public Boolean hasKeyring(); - - public A addToMonitors(Integer index, String item); - - public A setToMonitors(Integer index, String item); - + public A addToMonitors(Integer index,String item); + public A setToMonitors(Integer index,String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); - public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(Collection items); - public List getMonitors(); - public String getMonitor(Integer index); - public String getFirstMonitor(); - public String getLastMonitor(); - public String getMatchingMonitor(Predicate predicate); - public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(List monitors); - public A withMonitors(java.lang.String... monitors); - public Boolean hasMonitors(); - public String getPool(); - public A withPool(String pool); - public Boolean hasPool(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1RBDVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public String getUser(); - public A withUser(String user); - public Boolean hasUser(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java index 1de3fde629..3e0fd8744b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RBDVolumeSourceFluentImpl> extends BaseFluent - implements V1RBDVolumeSourceFluent { - public V1RBDVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RBDVolumeSourceFluentImpl> extends BaseFluent implements V1RBDVolumeSourceFluent{ + public V1RBDVolumeSourceFluentImpl() { + } public V1RBDVolumeSourceFluentImpl(V1RBDVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -41,8 +36,8 @@ public V1RBDVolumeSourceFluentImpl(V1RBDVolumeSource instance) { this.withSecretRef(instance.getSecretRef()); this.withUser(instance.getUser()); - } + } private String fsType; private String image; private String keyring; @@ -51,337 +46,194 @@ public V1RBDVolumeSourceFluentImpl(V1RBDVolumeSource instance) { private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String user; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getImage() { return this.image; } - public A withImage(String image) { - this.image = image; - return (A) this; + this.image=image; return (A) this; } - public Boolean hasImage() { return this.image != null; } - public String getKeyring() { return this.keyring; } - public A withKeyring(String keyring) { - this.keyring = keyring; - return (A) this; + this.keyring=keyring; return (A) this; } - public Boolean hasKeyring() { return this.keyring != null; } - - public A addToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } + public A addToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} this.monitors.add(index, item); - return (A) this; + return (A)this; } - - public A setToMonitors(Integer index, String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - this.monitors.set(index, item); - return (A) this; + public A setToMonitors(Integer index,String item) { + if (this.monitors == null) {this.monitors = new ArrayList();} + this.monitors.set(index, item); return (A)this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - for (String item : items) { - this.monitors.add(item); - } - return (A) this; + if (this.monitors == null) {this.monitors = new ArrayList();} + for (String item : items) {this.monitors.add(item);} return (A)this; } - public A removeFromMonitors(java.lang.String... items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public A removeAllFromMonitors(Collection items) { - for (String item : items) { - if (this.monitors != null) { - this.monitors.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.monitors!= null){ this.monitors.remove(item);}} return (A)this; } - public List getMonitors() { return this.monitors; } - public String getMonitor(Integer index) { return this.monitors.get(index); } - public String getFirstMonitor() { return this.monitors.get(0); } - public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public String getMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: monitors) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: monitors) { if(predicate.test(item)){ return true;} } return false; } - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; + if (monitors != null) {this.monitors = new ArrayList(); for (String item : monitors){this.addToMonitors(item);}} else { this.monitors = null;} return (A) this; } - public A withMonitors(java.lang.String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + if (this.monitors != null) {this.monitors.clear();} + if (monitors != null) {for (String item :monitors){ this.addToMonitors(item);}} return (A) this; } - public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public String getPool() { return this.pool; } - public A withPool(String pool) { - this.pool = pool; - return (A) this; + this.pool=pool; return (A) this; } - public Boolean hasPool() { return this.pool != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1RBDVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1RBDVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1RBDVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RBDVolumeSourceFluentImpl that = (V1RBDVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (image != null ? !image.equals(that.image) : that.image != null) return false; - if (keyring != null ? !keyring.equals(that.keyring) : that.keyring != null) return false; - if (monitors != null ? !monitors.equals(that.monitors) : that.monitors != null) return false; - if (pool != null ? !pool.equals(that.pool) : that.pool != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (image != null ? !image.equals(that.image) :that.image != null) return false; + if (keyring != null ? !keyring.equals(that.keyring) :that.keyring != null) return false; + if (monitors != null ? !monitors.equals(that.monitors) :that.monitors != null) return false; + if (pool != null ? !pool.equals(that.pool) :that.pool != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); + return java.util.Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (image != null) { - sb.append("image:"); - sb.append(image + ","); - } - if (keyring != null) { - sb.append("keyring:"); - sb.append(keyring + ","); - } - if (monitors != null && !monitors.isEmpty()) { - sb.append("monitors:"); - sb.append(monitors + ","); - } - if (pool != null) { - sb.append("pool:"); - sb.append(pool + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (image != null) { sb.append("image:"); sb.append(image + ","); } + if (keyring != null) { sb.append("keyring:"); sb.append(keyring + ","); } + if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } + if (pool != null) { sb.append("pool:"); sb.append(pool + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1RBDVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1RBDVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1RBDVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java index 465f37440d..4dee285c8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicaSetBuilder extends V1ReplicaSetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicaSetBuilder extends V1ReplicaSetFluentImpl implements VisitableBuilder{ public V1ReplicaSetBuilder() { this(false); } - public V1ReplicaSetBuilder(Boolean validationEnabled) { this(new V1ReplicaSet(), validationEnabled); } - public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent) { this(fluent, false); } - - public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent, Boolean validationEnabled) { + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicaSet(), validationEnabled); } - - public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent, V1ReplicaSet instance) { + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,V1ReplicaSet instance) { this(fluent, instance, false); } - - public V1ReplicaSetBuilder( - V1ReplicaSetFluent fluent, V1ReplicaSet instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,V1ReplicaSet instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1ReplicaSetBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicaSetBuilder(V1ReplicaSet instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicaSetBuilder(V1ReplicaSet instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicaSetBuilder(V1ReplicaSet instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1ReplicaSetBuilder(V1ReplicaSet instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicaSetFluent fluent; Boolean validationEnabled; - public V1ReplicaSet build() { V1ReplicaSet buildable = new V1ReplicaSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1ReplicaSet build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java index bdc47d95da..950a357f31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicaSetConditionBuilder - extends V1ReplicaSetConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicaSetConditionBuilder extends V1ReplicaSetConditionFluentImpl implements VisitableBuilder{ public V1ReplicaSetConditionBuilder() { this(false); } - public V1ReplicaSetConditionBuilder(Boolean validationEnabled) { this(new V1ReplicaSetCondition(), validationEnabled); } - public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent) { this(fluent, false); } - - public V1ReplicaSetConditionBuilder( - V1ReplicaSetConditionFluent fluent, Boolean validationEnabled) { + public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicaSetCondition(), validationEnabled); } - - public V1ReplicaSetConditionBuilder( - V1ReplicaSetConditionFluent fluent, V1ReplicaSetCondition instance) { + public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,V1ReplicaSetCondition instance) { this(fluent, instance, false); } - - public V1ReplicaSetConditionBuilder( - V1ReplicaSetConditionFluent fluent, - V1ReplicaSetCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,V1ReplicaSetCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,15 +30,13 @@ public V1ReplicaSetConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -73,12 +47,10 @@ public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance, Boolean vali this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicaSetConditionFluent fluent; Boolean validationEnabled; - public V1ReplicaSetCondition build() { V1ReplicaSetCondition buildable = new V1ReplicaSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -88,4 +60,5 @@ public V1ReplicaSetCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java index ffda47b0ee..db0940c0e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicaSetConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ReplicaSetConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java index 11265fedf2..a9e53e9cd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicaSetConditionFluentImpl> - extends BaseFluent implements V1ReplicaSetConditionFluent { - public V1ReplicaSetConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicaSetConditionFluentImpl> extends BaseFluent implements V1ReplicaSetConditionFluent{ + public V1ReplicaSetConditionFluentImpl() { + } public V1ReplicaSetConditionFluentImpl(V1ReplicaSetCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1ReplicaSetConditionFluentImpl(V1ReplicaSetCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicaSetConditionFluentImpl that = (V1ReplicaSetConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java index 634544f268..b1b7430004 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ReplicaSetFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ReplicaSetFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ReplicaSetFluent.MetadataNested withNewMetadata(); - public V1ReplicaSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ReplicaSetFluent.MetadataNested editMetadata(); - public V1ReplicaSetFluent.MetadataNested editOrNewMetadata(); - public V1ReplicaSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ReplicaSetSpec getSpec(); - public V1ReplicaSetSpec buildSpec(); - public A withSpec(V1ReplicaSetSpec spec); - public Boolean hasSpec(); - public V1ReplicaSetFluent.SpecNested withNewSpec(); - public V1ReplicaSetFluent.SpecNested withNewSpecLike(V1ReplicaSetSpec item); - public V1ReplicaSetFluent.SpecNested editSpec(); - public V1ReplicaSetFluent.SpecNested editOrNewSpec(); - public V1ReplicaSetFluent.SpecNested editOrNewSpecLike(V1ReplicaSetSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ReplicaSetStatus getStatus(); - public V1ReplicaSetStatus buildStatus(); - public A withStatus(V1ReplicaSetStatus status); - public Boolean hasStatus(); - public V1ReplicaSetFluent.StatusNested withNewStatus(); - public V1ReplicaSetFluent.StatusNested withNewStatusLike(V1ReplicaSetStatus item); - public V1ReplicaSetFluent.StatusNested editStatus(); - public V1ReplicaSetFluent.StatusNested editOrNewStatus(); - public V1ReplicaSetFluent.StatusNested editOrNewStatusLike(V1ReplicaSetStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1ReplicaSetSpecFluent> { + public interface SpecNested extends Nested,V1ReplicaSetSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1ReplicaSetStatusFluent> { + public interface StatusNested extends Nested,V1ReplicaSetStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java index 0f1ab46e2f..925061c4d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicaSetFluentImpl> extends BaseFluent - implements V1ReplicaSetFluent { - public V1ReplicaSetFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicaSetFluentImpl> extends BaseFluent implements V1ReplicaSetFluent{ + public V1ReplicaSetFluentImpl() { + } public V1ReplicaSetFluentImpl(V1ReplicaSet instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1ReplicaSetFluentImpl(V1ReplicaSet instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ReplicaSetSpecBuilder spec; private V1ReplicaSetStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ReplicaSetFluent.MetadataNested withNewMetadata() { return new V1ReplicaSetFluentImpl.MetadataNestedImpl(); } - public V1ReplicaSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ReplicaSetFluentImpl.MetadataNestedImpl(item); } - public V1ReplicaSetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ReplicaSetFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ReplicaSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ReplicaSetSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1ReplicaSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1ReplicaSetSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1ReplicaSetSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1ReplicaSetSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1ReplicaSetFluent.SpecNested withNewSpec() { return new V1ReplicaSetFluentImpl.SpecNestedImpl(); } - public V1ReplicaSetFluent.SpecNested withNewSpecLike(V1ReplicaSetSpec item) { return new V1ReplicaSetFluentImpl.SpecNestedImpl(item); } - public V1ReplicaSetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1ReplicaSetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1ReplicaSetSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1ReplicaSetSpecBuilder().build()); } - public V1ReplicaSetFluent.SpecNested editOrNewSpecLike(V1ReplicaSetSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ReplicaSetStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1ReplicaSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1ReplicaSetStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1ReplicaSetStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1ReplicaSetStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1ReplicaSetFluent.StatusNested withNewStatus() { return new V1ReplicaSetFluentImpl.StatusNestedImpl(); } - public V1ReplicaSetFluent.StatusNested withNewStatusLike(V1ReplicaSetStatus item) { return new V1ReplicaSetFluentImpl.StatusNestedImpl(item); } - public V1ReplicaSetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1ReplicaSetFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1ReplicaSetStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1ReplicaSetStatusBuilder().build()); } - public V1ReplicaSetFluent.StatusNested editOrNewStatusLike(V1ReplicaSetStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicaSetFluentImpl that = (V1ReplicaSetFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1ReplicaSetFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ReplicaSetFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ReplicaSetFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1ReplicaSetSpecFluentImpl> - implements V1ReplicaSetFluent.SpecNested, Nested { + class SpecNestedImpl extends V1ReplicaSetSpecFluentImpl> implements V1ReplicaSetFluent.SpecNested,Nested{ SpecNestedImpl(V1ReplicaSetSpec item) { this.builder = new V1ReplicaSetSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1ReplicaSetSpecBuilder(this); } - V1ReplicaSetSpecBuilder builder; - public N and() { return (N) V1ReplicaSetFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1ReplicaSetStatusFluentImpl> - implements V1ReplicaSetFluent.StatusNested, Nested { + class StatusNestedImpl extends V1ReplicaSetStatusFluentImpl> implements V1ReplicaSetFluent.StatusNested,Nested{ StatusNestedImpl(V1ReplicaSetStatus item) { this.builder = new V1ReplicaSetStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1ReplicaSetStatusBuilder(this); } - V1ReplicaSetStatusBuilder builder; - public N and() { return (N) V1ReplicaSetFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java index 310909ecd4..743fa14afe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluentImpl implements VisitableBuilder{ public V1ReplicaSetListBuilder() { this(false); } - public V1ReplicaSetListBuilder(Boolean validationEnabled) { this(new V1ReplicaSetList(), validationEnabled); } - public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent) { this(fluent, false); } - - public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent, Boolean validationEnabled) { + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicaSetList(), validationEnabled); } - - public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent, V1ReplicaSetList instance) { + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,V1ReplicaSetList instance) { this(fluent, instance, false); } - - public V1ReplicaSetListBuilder( - V1ReplicaSetListFluent fluent, V1ReplicaSetList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,V1ReplicaSetList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1ReplicaSetListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicaSetListBuilder(V1ReplicaSetList instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicaSetListBuilder(V1ReplicaSetList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicaSetListBuilder(V1ReplicaSetList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1ReplicaSetListBuilder(V1ReplicaSetList instance, Boolean validationEnab this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicaSetListFluent fluent; Boolean validationEnabled; - public V1ReplicaSetList build() { V1ReplicaSetList buildable = new V1ReplicaSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1ReplicaSetList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java index ae8cd5c738..3416556abb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicaSetListFluent> extends Fluent { + /** + * Generated + */ +public interface V1ReplicaSetListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ReplicaSet item); - - public A setToItems(Integer index, V1ReplicaSet item); - + public A addToItems(Integer index,V1ReplicaSet item); + public A setToItems(Integer index,V1ReplicaSet item); public A addToItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ReplicaSet buildItem(Integer index); - public V1ReplicaSet buildFirstItem(); - public V1ReplicaSet buildLastItem(); - public V1ReplicaSet buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items); - public Boolean hasItems(); - public V1ReplicaSetListFluent.ItemsNested addNewItem(); - public V1ReplicaSetListFluent.ItemsNested addNewItemLike(V1ReplicaSet item); - - public V1ReplicaSetListFluent.ItemsNested setNewItemLike(Integer index, V1ReplicaSet item); - + public V1ReplicaSetListFluent.ItemsNested setNewItemLike(Integer index,V1ReplicaSet item); public V1ReplicaSetListFluent.ItemsNested editItem(Integer index); - public V1ReplicaSetListFluent.ItemsNested editFirstItem(); - public V1ReplicaSetListFluent.ItemsNested editLastItem(); - - public V1ReplicaSetListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ReplicaSetListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ReplicaSetListFluent.MetadataNested withNewMetadata(); - public V1ReplicaSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ReplicaSetListFluent.MetadataNested editMetadata(); - public V1ReplicaSetListFluent.MetadataNested editOrNewMetadata(); - public V1ReplicaSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ReplicaSetFluent> { + public interface ItemsNested extends Nested,V1ReplicaSetFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java index 9ae1440124..e9c5414775 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicaSetListFluentImpl> extends BaseFluent - implements V1ReplicaSetListFluent { - public V1ReplicaSetListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicaSetListFluentImpl> extends BaseFluent implements V1ReplicaSetListFluent{ + public V1ReplicaSetListFluentImpl() { + } public V1ReplicaSetListFluentImpl(V1ReplicaSetList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ReplicaSetListFluentImpl(V1ReplicaSetList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ReplicaSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ReplicaSet item) { + if (this.items == null) {this.items = new ArrayList();} + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ReplicaSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ReplicaSet item) { + if (this.items == null) {this.items = new ArrayList();} V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ReplicaSet buildItem(Integer index) { return this.items.get(index).build(); } - public V1ReplicaSet buildFirstItem() { return this.items.get(0).build(); } - public V1ReplicaSet buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ReplicaSet buildMatchingItem(Predicate predicate) { - for (V1ReplicaSetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ReplicaSetBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ReplicaSetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ReplicaSetBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ReplicaSet item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ReplicaSet item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ReplicaSet item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ReplicaSet item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ReplicaSetListFluent.ItemsNested addNewItem() { return new V1ReplicaSetListFluentImpl.ItemsNestedImpl(); } - public V1ReplicaSetListFluent.ItemsNested addNewItemLike(V1ReplicaSet item) { return new V1ReplicaSetListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ReplicaSetListFluent.ItemsNested setNewItemLike(Integer index, V1ReplicaSet item) { + public V1ReplicaSetListFluent.ItemsNested setNewItemLike(Integer index,V1ReplicaSet item) { return new V1ReplicaSetListFluentImpl.ItemsNestedImpl(index, item); } - public V1ReplicaSetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ReplicaSetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ReplicaSetListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ReplicaSetListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ReplicaSetListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ReplicaSetListFluentImpl.MetadataNestedImpl(); } - public V1ReplicaSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ReplicaSetListFluentImpl.MetadataNestedImpl(item); } - public V1ReplicaSetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ReplicaSetListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ReplicaSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicaSetListFluentImpl that = (V1ReplicaSetListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1ReplicaSetFluentImpl> - implements V1ReplicaSetListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ReplicaSet item) { + class ItemsNestedImpl extends V1ReplicaSetFluentImpl> implements V1ReplicaSetListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ReplicaSet item) { this.index = index; this.builder = new V1ReplicaSetBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ReplicaSetBuilder(this); } - V1ReplicaSetBuilder builder; Integer index; - public N and() { - return (N) V1ReplicaSetListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ReplicaSetListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1ReplicaSetListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ReplicaSetListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ReplicaSetListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java index 4ebbde84c8..2c40af47bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluentImpl implements VisitableBuilder{ public V1ReplicaSetSpecBuilder() { this(false); } - public V1ReplicaSetSpecBuilder(Boolean validationEnabled) { this(new V1ReplicaSetSpec(), validationEnabled); } - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent) { this(fluent, false); } - - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent, Boolean validationEnabled) { + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicaSetSpec(), validationEnabled); } - - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent, V1ReplicaSetSpec instance) { + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,V1ReplicaSetSpec instance) { this(fluent, instance, false); } - - public V1ReplicaSetSpecBuilder( - V1ReplicaSetSpecFluent fluent, V1ReplicaSetSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,V1ReplicaSetSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); fluent.withReplicas(instance.getReplicas()); @@ -47,15 +28,13 @@ public V1ReplicaSetSpecBuilder( fluent.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); this.withReplicas(instance.getReplicas()); @@ -64,12 +43,10 @@ public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance, Boolean validationEnab this.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicaSetSpecFluent fluent; Boolean validationEnabled; - public V1ReplicaSetSpec build() { V1ReplicaSetSpec buildable = new V1ReplicaSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -78,4 +55,5 @@ public V1ReplicaSetSpec build() { buildable.setTemplate(fluent.getTemplate()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java index c28f9dfc9b..8e1b326af4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java @@ -1,93 +1,60 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicaSetSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1ReplicaSetSpecFluent> extends Fluent{ public Integer getMinReadySeconds(); - public A withMinReadySeconds(Integer minReadySeconds); - public Boolean hasMinReadySeconds(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1ReplicaSetSpecFluent.SelectorNested withNewSelector(); - public V1ReplicaSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V1ReplicaSetSpecFluent.SelectorNested editSelector(); - public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelector(); - public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1ReplicaSetSpecFluent.TemplateNested withNewTemplate(); - public V1ReplicaSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public V1ReplicaSetSpecFluent.TemplateNested editTemplate(); - public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplate(); - public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } - - public interface TemplateNested - extends Nested, V1PodTemplateSpecFluent> { + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java index 05acbd92fb..8e68ce58b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicaSetSpecFluentImpl> extends BaseFluent - implements V1ReplicaSetSpecFluent { - public V1ReplicaSetSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicaSetSpecFluentImpl> extends BaseFluent implements V1ReplicaSetSpecFluent{ + public V1ReplicaSetSpecFluentImpl() { + } public V1ReplicaSetSpecFluentImpl(V1ReplicaSetSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -29,222 +24,152 @@ public V1ReplicaSetSpecFluentImpl(V1ReplicaSetSpec instance) { this.withSelector(instance.getSelector()); this.withTemplate(instance.getTemplate()); - } + } private Integer minReadySeconds; private Integer replicas; private V1LabelSelectorBuilder selector; private V1PodTemplateSpecBuilder template; - public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + this.minReadySeconds=minReadySeconds; return (A) this; } - public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + this.replicas=replicas; return (A) this; } - public Boolean hasReplicas() { return this.replicas != null; } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1ReplicaSetSpecFluent.SelectorNested withNewSelector() { return new V1ReplicaSetSpecFluentImpl.SelectorNestedImpl(); } - public V1ReplicaSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1ReplicaSetSpecFluentImpl.SelectorNestedImpl(item); } - public V1ReplicaSetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1ReplicaSetSpecFluent.TemplateNested withNewTemplate() { return new V1ReplicaSetSpecFluentImpl.TemplateNestedImpl(); } - public V1ReplicaSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1ReplicaSetSpecFluentImpl.TemplateNestedImpl(item); } - public V1ReplicaSetSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicaSetSpecFluentImpl that = (V1ReplicaSetSpecFluentImpl) o; - if (minReadySeconds != null - ? !minReadySeconds.equals(that.minReadySeconds) - : that.minReadySeconds != null) return false; - if (replicas != null ? !replicas.equals(that.replicas) : that.replicas != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (template != null ? !template.equals(that.template) : that.template != null) return false; + if (minReadySeconds != null ? !minReadySeconds.equals(that.minReadySeconds) :that.minReadySeconds != null) return false; + if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (template != null ? !template.equals(that.template) :that.template != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); + return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { - sb.append("minReadySeconds:"); - sb.append(minReadySeconds + ","); - } - if (replicas != null) { - sb.append("replicas:"); - sb.append(replicas + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (template != null) { - sb.append("template:"); - sb.append(template); - } + if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } + if (template != null) { sb.append("template:"); sb.append(template); } sb.append("}"); return sb.toString(); } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1ReplicaSetSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1ReplicaSetSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1ReplicaSetSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } - - class TemplateNestedImpl - extends V1PodTemplateSpecFluentImpl> - implements V1ReplicaSetSpecFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1ReplicaSetSpecFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1ReplicaSetSpecFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java index e1474480cd..9a9f4720f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicaSetStatusBuilder - extends V1ReplicaSetStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluentImpl implements VisitableBuilder{ public V1ReplicaSetStatusBuilder() { this(false); } - public V1ReplicaSetStatusBuilder(Boolean validationEnabled) { this(new V1ReplicaSetStatus(), validationEnabled); } - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent) { this(fluent, false); } - - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent, Boolean validationEnabled) { + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicaSetStatus(), validationEnabled); } - - public V1ReplicaSetStatusBuilder( - V1ReplicaSetStatusFluent fluent, V1ReplicaSetStatus instance) { + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance) { this(fluent, instance, false); } - - public V1ReplicaSetStatusBuilder( - V1ReplicaSetStatusFluent fluent, V1ReplicaSetStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); fluent.withConditions(instance.getConditions()); @@ -53,15 +32,13 @@ public V1ReplicaSetStatusBuilder( fluent.withReplicas(instance.getReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); this.withConditions(instance.getConditions()); @@ -74,12 +51,10 @@ public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance, Boolean validation this.withReplicas(instance.getReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicaSetStatusFluent fluent; Boolean validationEnabled; - public V1ReplicaSetStatus build() { V1ReplicaSetStatus buildable = new V1ReplicaSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -90,4 +65,5 @@ public V1ReplicaSetStatus build() { buildable.setReplicas(fluent.getReplicas()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java index 45b41aafaa..12f16e4f09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java @@ -1,117 +1,71 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicaSetStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1ReplicaSetStatusFluent> extends Fluent{ public Integer getAvailableReplicas(); - public A withAvailableReplicas(Integer availableReplicas); - public Boolean hasAvailableReplicas(); - - public A addToConditions(Integer index, V1ReplicaSetCondition item); - - public A setToConditions(Integer index, V1ReplicaSetCondition item); - + public A addToConditions(Integer index,V1ReplicaSetCondition item); + public A setToConditions(Integer index,V1ReplicaSetCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1ReplicaSetCondition buildCondition(Integer index); - public V1ReplicaSetCondition buildFirstCondition(); - public V1ReplicaSetCondition buildLastCondition(); - - public V1ReplicaSetCondition buildMatchingCondition( - Predicate predicate); - + public V1ReplicaSetCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... conditions); - public Boolean hasConditions(); - public V1ReplicaSetStatusFluent.ConditionsNested addNewCondition(); - - public V1ReplicaSetStatusFluent.ConditionsNested addNewConditionLike( - V1ReplicaSetCondition item); - - public V1ReplicaSetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1ReplicaSetCondition item); - + public V1ReplicaSetStatusFluent.ConditionsNested addNewConditionLike(V1ReplicaSetCondition item); + public V1ReplicaSetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1ReplicaSetCondition item); public V1ReplicaSetStatusFluent.ConditionsNested editCondition(Integer index); - public V1ReplicaSetStatusFluent.ConditionsNested editFirstCondition(); - public V1ReplicaSetStatusFluent.ConditionsNested editLastCondition(); - - public V1ReplicaSetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1ReplicaSetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Integer getFullyLabeledReplicas(); - public A withFullyLabeledReplicas(Integer fullyLabeledReplicas); - public Boolean hasFullyLabeledReplicas(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public Integer getReadyReplicas(); - public A withReadyReplicas(Integer readyReplicas); - public Boolean hasReadyReplicas(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - - public interface ConditionsNested - extends Nested, V1ReplicaSetConditionFluent> { + public interface ConditionsNested extends Nested,V1ReplicaSetConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java index ea36f9a325..f32bd4acc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java @@ -1,31 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicaSetStatusFluentImpl> - extends BaseFluent implements V1ReplicaSetStatusFluent { - public V1ReplicaSetStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicaSetStatusFluentImpl> extends BaseFluent implements V1ReplicaSetStatusFluent{ + public V1ReplicaSetStatusFluentImpl() { + } public V1ReplicaSetStatusFluentImpl(V1ReplicaSetStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -38,105 +35,48 @@ public V1ReplicaSetStatusFluentImpl(V1ReplicaSetStatus instance) { this.withReadyReplicas(instance.getReadyReplicas()); this.withReplicas(instance.getReplicas()); - } + } private Integer availableReplicas; private ArrayList conditions; private Integer fullyLabeledReplicas; private Long observedGeneration; private Integer readyReplicas; private Integer replicas; - public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; + this.availableReplicas=availableReplicas; return (A) this; } - public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - - public A addToConditions(Integer index, V1ReplicaSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(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 addToConditions(Integer index,V1ReplicaSetCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(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(Integer index, V1ReplicaSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1ReplicaSetCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(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; + 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.V1ReplicaSetCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(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 ArrayList(); - } - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { + for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(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(); @@ -148,268 +88,157 @@ public A removeMatchingFromConditions(Predicate pr each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1ReplicaSetCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1ReplicaSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1ReplicaSetCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1ReplicaSetCondition buildMatchingCondition( - Predicate predicate) { - for (V1ReplicaSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ReplicaSetCondition buildMatchingCondition(Predicate predicate) { + for (V1ReplicaSetConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1ReplicaSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ReplicaSetConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ReplicaSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1ReplicaSetCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1ReplicaSetCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1ReplicaSetCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1ReplicaSetStatusFluent.ConditionsNested addNewCondition() { return new V1ReplicaSetStatusFluentImpl.ConditionsNestedImpl(); } - - public V1ReplicaSetStatusFluent.ConditionsNested addNewConditionLike( - V1ReplicaSetCondition item) { + public V1ReplicaSetStatusFluent.ConditionsNested addNewConditionLike(V1ReplicaSetCondition item) { return new V1ReplicaSetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1ReplicaSetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1ReplicaSetCondition item) { + public V1ReplicaSetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1ReplicaSetCondition item) { return new V1ReplicaSetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1ReplicaSetStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1ReplicaSetStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1ReplicaSetStatusFluent.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 V1ReplicaSetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1ReplicaSetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ReplicaSetConditionFluentImpl> - implements V1ReplicaSetStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1ReplicaSetCondition item) { + class ConditionsNestedImpl extends V1ReplicaSetConditionFluentImpl> implements V1ReplicaSetStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1ReplicaSetCondition item) { this.index = index; this.builder = new V1ReplicaSetConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1ReplicaSetConditionBuilder(this); } - V1ReplicaSetConditionBuilder builder; Integer index; - public N and() { - return (N) V1ReplicaSetStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1ReplicaSetStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java index 138eb2bf4e..08e99c2379 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicationControllerBuilder - extends V1ReplicationControllerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicationControllerBuilder extends V1ReplicationControllerFluentImpl implements VisitableBuilder{ public V1ReplicationControllerBuilder() { this(false); } - public V1ReplicationControllerBuilder(Boolean validationEnabled) { this(new V1ReplicationController(), validationEnabled); } - public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent) { this(fluent, false); } - - public V1ReplicationControllerBuilder( - V1ReplicationControllerFluent fluent, Boolean validationEnabled) { + public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicationController(), validationEnabled); } - - public V1ReplicationControllerBuilder( - V1ReplicationControllerFluent fluent, V1ReplicationController instance) { + public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,V1ReplicationController instance) { this(fluent, instance, false); } - - public V1ReplicationControllerBuilder( - V1ReplicationControllerFluent fluent, - V1ReplicationController instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,V1ReplicationController instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1ReplicationControllerBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicationControllerBuilder(V1ReplicationController instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicationControllerBuilder( - V1ReplicationController instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicationControllerBuilder(V1ReplicationController instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1ReplicationControllerBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicationControllerFluent fluent; Boolean validationEnabled; - public V1ReplicationController build() { V1ReplicationController buildable = new V1ReplicationController(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1ReplicationController build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java index f082b36dee..ebb142e9d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicationControllerConditionBuilder - extends V1ReplicationControllerConditionFluentImpl - implements VisitableBuilder< - V1ReplicationControllerCondition, V1ReplicationControllerConditionBuilder> { +import java.lang.Boolean; +public class V1ReplicationControllerConditionBuilder extends V1ReplicationControllerConditionFluentImpl implements VisitableBuilder{ public V1ReplicationControllerConditionBuilder() { this(false); } - public V1ReplicationControllerConditionBuilder(Boolean validationEnabled) { this(new V1ReplicationControllerCondition(), validationEnabled); } - public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent) { this(fluent, false); } - - public V1ReplicationControllerConditionBuilder( - V1ReplicationControllerConditionFluent fluent, Boolean validationEnabled) { + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicationControllerCondition(), validationEnabled); } - - public V1ReplicationControllerConditionBuilder( - V1ReplicationControllerConditionFluent fluent, V1ReplicationControllerCondition instance) { + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,V1ReplicationControllerCondition instance) { this(fluent, instance, false); } - - public V1ReplicationControllerConditionBuilder( - V1ReplicationControllerConditionFluent fluent, - V1ReplicationControllerCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,V1ReplicationControllerCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -55,16 +30,13 @@ public V1ReplicationControllerConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicationControllerConditionBuilder(V1ReplicationControllerCondition instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicationControllerConditionBuilder( - V1ReplicationControllerCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -75,12 +47,10 @@ public V1ReplicationControllerConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicationControllerConditionFluent fluent; Boolean validationEnabled; - public V1ReplicationControllerCondition build() { V1ReplicationControllerCondition buildable = new V1ReplicationControllerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -90,4 +60,5 @@ public V1ReplicationControllerCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java index 8fb27e9be1..084fa005c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java @@ -1,51 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicationControllerConditionFluent< - A extends V1ReplicationControllerConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ReplicationControllerConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java index 628afa03f3..0f900e9f10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java @@ -1,27 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicationControllerConditionFluentImpl< - A extends V1ReplicationControllerConditionFluent> - extends BaseFluent implements V1ReplicationControllerConditionFluent { - public V1ReplicationControllerConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicationControllerConditionFluentImpl> extends BaseFluent implements V1ReplicationControllerConditionFluent{ + public V1ReplicationControllerConditionFluentImpl() { + } public V1ReplicationControllerConditionFluentImpl(V1ReplicationControllerCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -32,123 +24,82 @@ public V1ReplicationControllerConditionFluentImpl(V1ReplicationControllerConditi this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1ReplicationControllerConditionFluentImpl that = - (V1ReplicationControllerConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1ReplicationControllerConditionFluentImpl that = (V1ReplicationControllerConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java index 8c9aa391cd..6b25c763d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java @@ -1,131 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ReplicationControllerFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ReplicationControllerFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ReplicationControllerFluent.MetadataNested withNewMetadata(); - public V1ReplicationControllerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ReplicationControllerFluent.MetadataNested editMetadata(); - public V1ReplicationControllerFluent.MetadataNested editOrNewMetadata(); - public V1ReplicationControllerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ReplicationControllerSpec getSpec(); - public V1ReplicationControllerSpec buildSpec(); - public A withSpec(V1ReplicationControllerSpec spec); - public Boolean hasSpec(); - public V1ReplicationControllerFluent.SpecNested withNewSpec(); - - public V1ReplicationControllerFluent.SpecNested withNewSpecLike( - V1ReplicationControllerSpec item); - + public V1ReplicationControllerFluent.SpecNested withNewSpecLike(V1ReplicationControllerSpec item); public V1ReplicationControllerFluent.SpecNested editSpec(); - public V1ReplicationControllerFluent.SpecNested editOrNewSpec(); - - public V1ReplicationControllerFluent.SpecNested editOrNewSpecLike( - V1ReplicationControllerSpec item); - + public V1ReplicationControllerFluent.SpecNested editOrNewSpecLike(V1ReplicationControllerSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ReplicationControllerStatus getStatus(); - public V1ReplicationControllerStatus buildStatus(); - public A withStatus(V1ReplicationControllerStatus status); - public Boolean hasStatus(); - public V1ReplicationControllerFluent.StatusNested withNewStatus(); - - public V1ReplicationControllerFluent.StatusNested withNewStatusLike( - V1ReplicationControllerStatus item); - + public V1ReplicationControllerFluent.StatusNested withNewStatusLike(V1ReplicationControllerStatus item); public V1ReplicationControllerFluent.StatusNested editStatus(); - public V1ReplicationControllerFluent.StatusNested editOrNewStatus(); - - public V1ReplicationControllerFluent.StatusNested editOrNewStatusLike( - V1ReplicationControllerStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1ReplicationControllerFluent.StatusNested editOrNewStatusLike(V1ReplicationControllerStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1ReplicationControllerSpecFluent> { + public interface SpecNested extends Nested,V1ReplicationControllerSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1ReplicationControllerStatusFluent> { + public interface StatusNested extends Nested,V1ReplicationControllerStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java index 3f6ea1b2b1..347b74c7d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicationControllerFluentImpl> - extends BaseFluent implements V1ReplicationControllerFluent { - public V1ReplicationControllerFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicationControllerFluentImpl> extends BaseFluent implements V1ReplicationControllerFluent{ + public V1ReplicationControllerFluentImpl() { + } public V1ReplicationControllerFluentImpl(V1ReplicationController instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,304 +25,205 @@ public V1ReplicationControllerFluentImpl(V1ReplicationController instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ReplicationControllerSpecBuilder spec; private V1ReplicationControllerStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ReplicationControllerFluent.MetadataNested withNewMetadata() { return new V1ReplicationControllerFluentImpl.MetadataNestedImpl(); } - public V1ReplicationControllerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ReplicationControllerFluentImpl.MetadataNestedImpl(item); } - public V1ReplicationControllerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ReplicationControllerFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ReplicationControllerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ReplicationControllerSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1ReplicationControllerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1ReplicationControllerSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1ReplicationControllerSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1ReplicationControllerSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1ReplicationControllerFluent.SpecNested withNewSpec() { return new V1ReplicationControllerFluentImpl.SpecNestedImpl(); } - - public V1ReplicationControllerFluent.SpecNested withNewSpecLike( - V1ReplicationControllerSpec item) { + public V1ReplicationControllerFluent.SpecNested withNewSpecLike(V1ReplicationControllerSpec item) { return new V1ReplicationControllerFluentImpl.SpecNestedImpl(item); } - public V1ReplicationControllerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1ReplicationControllerFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1ReplicationControllerSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1ReplicationControllerSpecBuilder().build()); } - - public V1ReplicationControllerFluent.SpecNested editOrNewSpecLike( - V1ReplicationControllerSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1ReplicationControllerFluent.SpecNested editOrNewSpecLike(V1ReplicationControllerSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ReplicationControllerStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1ReplicationControllerStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1ReplicationControllerStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1ReplicationControllerStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1ReplicationControllerStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1ReplicationControllerFluent.StatusNested withNewStatus() { return new V1ReplicationControllerFluentImpl.StatusNestedImpl(); } - - public V1ReplicationControllerFluent.StatusNested withNewStatusLike( - V1ReplicationControllerStatus item) { + public V1ReplicationControllerFluent.StatusNested withNewStatusLike(V1ReplicationControllerStatus item) { return new V1ReplicationControllerFluentImpl.StatusNestedImpl(item); } - public V1ReplicationControllerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1ReplicationControllerFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1ReplicationControllerStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1ReplicationControllerStatusBuilder().build()); } - - public V1ReplicationControllerFluent.StatusNested editOrNewStatusLike( - V1ReplicationControllerStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1ReplicationControllerFluent.StatusNested editOrNewStatusLike(V1ReplicationControllerStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicationControllerFluentImpl that = (V1ReplicationControllerFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1ReplicationControllerFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ReplicationControllerFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ReplicationControllerFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1ReplicationControllerSpecFluentImpl> - implements V1ReplicationControllerFluent.SpecNested, Nested { + class SpecNestedImpl extends V1ReplicationControllerSpecFluentImpl> implements V1ReplicationControllerFluent.SpecNested,Nested{ SpecNestedImpl(V1ReplicationControllerSpec item) { this.builder = new V1ReplicationControllerSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1ReplicationControllerSpecBuilder(this); } - V1ReplicationControllerSpecBuilder builder; - public N and() { return (N) V1ReplicationControllerFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1ReplicationControllerStatusFluentImpl> - implements V1ReplicationControllerFluent.StatusNested, Nested { + class StatusNestedImpl extends V1ReplicationControllerStatusFluentImpl> implements V1ReplicationControllerFluent.StatusNested,Nested{ StatusNestedImpl(V1ReplicationControllerStatus item) { this.builder = new V1ReplicationControllerStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1ReplicationControllerStatusBuilder(this); } - V1ReplicationControllerStatusBuilder builder; - public N and() { return (N) V1ReplicationControllerFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java index f0699eeeb2..1ca7e958d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicationControllerListBuilder - extends V1ReplicationControllerListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicationControllerListBuilder extends V1ReplicationControllerListFluentImpl implements VisitableBuilder{ public V1ReplicationControllerListBuilder() { this(false); } - public V1ReplicationControllerListBuilder(Boolean validationEnabled) { this(new V1ReplicationControllerList(), validationEnabled); } - public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent) { this(fluent, false); } - - public V1ReplicationControllerListBuilder( - V1ReplicationControllerListFluent fluent, Boolean validationEnabled) { + public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicationControllerList(), validationEnabled); } - - public V1ReplicationControllerListBuilder( - V1ReplicationControllerListFluent fluent, V1ReplicationControllerList instance) { + public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,V1ReplicationControllerList instance) { this(fluent, instance, false); } - - public V1ReplicationControllerListBuilder( - V1ReplicationControllerListFluent fluent, - V1ReplicationControllerList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,V1ReplicationControllerList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1ReplicationControllerListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicationControllerListBuilder(V1ReplicationControllerList instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicationControllerListBuilder( - V1ReplicationControllerList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicationControllerListBuilder(V1ReplicationControllerList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1ReplicationControllerListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicationControllerListFluent fluent; Boolean validationEnabled; - public V1ReplicationControllerList build() { V1ReplicationControllerList buildable = new V1ReplicationControllerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1ReplicationControllerList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java index 798dd10ebd..ffa63f7dfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java @@ -1,132 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicationControllerListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ReplicationControllerListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ReplicationController item); - - public A setToItems(Integer index, V1ReplicationController item); - + public A addToItems(Integer index,V1ReplicationController item); + public A setToItems(Integer index,V1ReplicationController item); public A addToItems(io.kubernetes.client.openapi.models.V1ReplicationController... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationController... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ReplicationController buildItem(Integer index); - public V1ReplicationController buildFirstItem(); - public V1ReplicationController buildLastItem(); - - public V1ReplicationController buildMatchingItem( - Predicate predicate); - + public V1ReplicationController buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController... items); - public Boolean hasItems(); - public V1ReplicationControllerListFluent.ItemsNested addNewItem(); - - public V1ReplicationControllerListFluent.ItemsNested addNewItemLike( - V1ReplicationController item); - - public V1ReplicationControllerListFluent.ItemsNested setNewItemLike( - Integer index, V1ReplicationController item); - + public V1ReplicationControllerListFluent.ItemsNested addNewItemLike(V1ReplicationController item); + public V1ReplicationControllerListFluent.ItemsNested setNewItemLike(Integer index,V1ReplicationController item); public V1ReplicationControllerListFluent.ItemsNested editItem(Integer index); - public V1ReplicationControllerListFluent.ItemsNested editFirstItem(); - public V1ReplicationControllerListFluent.ItemsNested editLastItem(); - - public V1ReplicationControllerListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ReplicationControllerListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ReplicationControllerListFluent.MetadataNested withNewMetadata(); - public V1ReplicationControllerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ReplicationControllerListFluent.MetadataNested editMetadata(); - public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadata(); - public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1ReplicationControllerFluent> { + public interface ItemsNested extends Nested,V1ReplicationControllerFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java index d2346415fa..f430f26077 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicationControllerListFluentImpl> - extends BaseFluent implements V1ReplicationControllerListFluent { - public V1ReplicationControllerListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicationControllerListFluentImpl> extends BaseFluent implements V1ReplicationControllerListFluent{ + public V1ReplicationControllerListFluentImpl() { + } public V1ReplicationControllerListFluentImpl(V1ReplicationControllerList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ReplicationControllerListFluentImpl(V1ReplicationControllerList instanc this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ReplicationController item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ReplicationController item) { + if (this.items == null) {this.items = new ArrayList();} + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ReplicationController item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ReplicationController item) { + if (this.items == null) {this.items = new ArrayList();} V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,276 +81,176 @@ public A removeMatchingFromItems(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ReplicationController buildItem(Integer index) { return this.items.get(index).build(); } - public V1ReplicationController buildFirstItem() { return this.items.get(0).build(); } - public V1ReplicationController buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1ReplicationController buildMatchingItem( - Predicate predicate) { - for (V1ReplicationControllerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ReplicationController buildMatchingItem(Predicate predicate) { + for (V1ReplicationControllerBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ReplicationControllerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ReplicationControllerBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ReplicationController item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ReplicationController item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ReplicationController item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ReplicationController item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ReplicationControllerListFluent.ItemsNested addNewItem() { return new V1ReplicationControllerListFluentImpl.ItemsNestedImpl(); } - - public V1ReplicationControllerListFluent.ItemsNested addNewItemLike( - V1ReplicationController item) { + public V1ReplicationControllerListFluent.ItemsNested addNewItemLike(V1ReplicationController item) { return new V1ReplicationControllerListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ReplicationControllerListFluent.ItemsNested setNewItemLike( - Integer index, V1ReplicationController item) { + public V1ReplicationControllerListFluent.ItemsNested setNewItemLike(Integer index,V1ReplicationController item) { return new V1ReplicationControllerListFluentImpl.ItemsNestedImpl(index, item); } - public V1ReplicationControllerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ReplicationControllerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ReplicationControllerListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ReplicationControllerListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ReplicationControllerListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ReplicationControllerListFluentImpl.MetadataNestedImpl(); } - public V1ReplicationControllerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ReplicationControllerListFluentImpl.MetadataNestedImpl(item); } - public V1ReplicationControllerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicationControllerListFluentImpl that = (V1ReplicationControllerListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ReplicationControllerFluentImpl> - implements V1ReplicationControllerListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ReplicationController item) { + class ItemsNestedImpl extends V1ReplicationControllerFluentImpl> implements V1ReplicationControllerListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ReplicationController item) { this.index = index; this.builder = new V1ReplicationControllerBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ReplicationControllerBuilder(this); } - V1ReplicationControllerBuilder builder; Integer index; - public N and() { - return (N) V1ReplicationControllerListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ReplicationControllerListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ReplicationControllerListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ReplicationControllerListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ReplicationControllerListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java index 7831585664..31e9a634ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicationControllerSpecBuilder - extends V1ReplicationControllerSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ReplicationControllerSpecBuilder extends V1ReplicationControllerSpecFluentImpl implements VisitableBuilder{ public V1ReplicationControllerSpecBuilder() { this(false); } - public V1ReplicationControllerSpecBuilder(Boolean validationEnabled) { this(new V1ReplicationControllerSpec(), validationEnabled); } - public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent) { this(fluent, false); } - - public V1ReplicationControllerSpecBuilder( - V1ReplicationControllerSpecFluent fluent, Boolean validationEnabled) { + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicationControllerSpec(), validationEnabled); } - - public V1ReplicationControllerSpecBuilder( - V1ReplicationControllerSpecFluent fluent, V1ReplicationControllerSpec instance) { + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,V1ReplicationControllerSpec instance) { this(fluent, instance, false); } - - public V1ReplicationControllerSpecBuilder( - V1ReplicationControllerSpecFluent fluent, - V1ReplicationControllerSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,V1ReplicationControllerSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); fluent.withReplicas(instance.getReplicas()); @@ -52,16 +28,13 @@ public V1ReplicationControllerSpecBuilder( fluent.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpec instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicationControllerSpecBuilder( - V1ReplicationControllerSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); this.withReplicas(instance.getReplicas()); @@ -70,12 +43,10 @@ public V1ReplicationControllerSpecBuilder( this.withTemplate(instance.getTemplate()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicationControllerSpecFluent fluent; Boolean validationEnabled; - public V1ReplicationControllerSpec build() { V1ReplicationControllerSpec buildable = new V1ReplicationControllerSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -84,4 +55,5 @@ public V1ReplicationControllerSpec build() { buildable.setTemplate(fluent.getTemplate()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java index b4422d3411..8b47bdd11b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java @@ -1,81 +1,50 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1ReplicationControllerSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ReplicationControllerSpecFluent> extends Fluent{ public Integer getMinReadySeconds(); - public A withMinReadySeconds(Integer minReadySeconds); - public Boolean hasMinReadySeconds(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - - public A addToSelector(String key, String value); - - public A addToSelector(Map map); - + public A addToSelector(String key,String value); + public A addToSelector(Map map); public A removeFromSelector(String key); - - public A removeFromSelector(Map map); - - public Map getSelector(); - - public A withSelector(Map selector); - + public A removeFromSelector(Map map); + public Map getSelector(); + public A withSelector(Map selector); public Boolean hasSelector(); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplate(); - - public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplateLike( - V1PodTemplateSpec item); - + public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); public V1ReplicationControllerSpecFluent.TemplateNested editTemplate(); - public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplate(); - - public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplateLike( - V1PodTemplateSpec item); - - public interface TemplateNested - extends Nested, - V1PodTemplateSpecFluent> { + public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java index 175ece8d78..1a24cea0fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java @@ -1,28 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicationControllerSpecFluentImpl> - extends BaseFluent implements V1ReplicationControllerSpecFluent { - public V1ReplicationControllerSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicationControllerSpecFluentImpl> extends BaseFluent implements V1ReplicationControllerSpecFluent{ + public V1ReplicationControllerSpecFluentImpl() { + } public V1ReplicationControllerSpecFluentImpl(V1ReplicationControllerSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -31,212 +26,127 @@ public V1ReplicationControllerSpecFluentImpl(V1ReplicationControllerSpec instanc this.withSelector(instance.getSelector()); this.withTemplate(instance.getTemplate()); - } + } private Integer minReadySeconds; private Integer replicas; - private Map selector; + private Map selector; private V1PodTemplateSpecBuilder template; - public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + this.minReadySeconds=minReadySeconds; return (A) this; } - public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + this.replicas=replicas; return (A) this; } - public Boolean hasReplicas() { return this.replicas != null; } - - public A addToSelector(String key, String value) { - if (this.selector == null && key != null && value != null) { - this.selector = new LinkedHashMap(); - } - if (key != null && value != null) { - this.selector.put(key, value); - } - return (A) this; + public A addToSelector(String key,String value) { + if(this.selector == null && key != null && value != null) { this.selector = new LinkedHashMap(); } + if(key != null && value != null) {this.selector.put(key, value);} return (A)this; } - - public A addToSelector(Map map) { - if (this.selector == null && map != null) { - this.selector = new LinkedHashMap(); - } - if (map != null) { - this.selector.putAll(map); - } - return (A) this; + public A addToSelector(Map map) { + if(this.selector == null && map != null) { this.selector = new LinkedHashMap(); } + if(map != null) { this.selector.putAll(map);} return (A)this; } - public A removeFromSelector(String key) { - if (this.selector == null) { - return (A) this; - } - if (key != null && this.selector != null) { - this.selector.remove(key); - } - return (A) this; + if(this.selector == null) { return (A) this; } + if(key != null && this.selector != null) {this.selector.remove(key);} return (A)this; } - - public A removeFromSelector(Map map) { - if (this.selector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.selector != null) { - this.selector.remove(key); - } - } - } - return (A) this; + public A removeFromSelector(Map map) { + if(this.selector == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.selector != null){this.selector.remove(key);}}} return (A)this; } - - public Map getSelector() { + public Map getSelector() { return this.selector; } - - public A withSelector(Map selector) { - if (selector == null) { - this.selector = null; - } else { - this.selector = new LinkedHashMap(selector); - } - return (A) this; + public A withSelector(Map selector) { + if (selector == null) { this.selector = null;} else {this.selector = new LinkedHashMap(selector);} return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplate() { return new V1ReplicationControllerSpecFluentImpl.TemplateNestedImpl(); } - - public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplateLike( - V1PodTemplateSpec item) { + public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1ReplicationControllerSpecFluentImpl.TemplateNestedImpl(item); } - public V1ReplicationControllerSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - - public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplateLike( - V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ReplicationControllerSpecFluentImpl that = (V1ReplicationControllerSpecFluentImpl) o; - if (minReadySeconds != null - ? !minReadySeconds.equals(that.minReadySeconds) - : that.minReadySeconds != null) return false; - if (replicas != null ? !replicas.equals(that.replicas) : that.replicas != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (template != null ? !template.equals(that.template) : that.template != null) return false; + if (minReadySeconds != null ? !minReadySeconds.equals(that.minReadySeconds) :that.minReadySeconds != null) return false; + if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (template != null ? !template.equals(that.template) :that.template != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); + return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { - sb.append("minReadySeconds:"); - sb.append(minReadySeconds + ","); - } - if (replicas != null) { - sb.append("replicas:"); - sb.append(replicas + ","); - } - if (selector != null && !selector.isEmpty()) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (template != null) { - sb.append("template:"); - sb.append(template); - } + if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (selector != null && !selector.isEmpty()) { sb.append("selector:"); sb.append(selector + ","); } + if (template != null) { sb.append("template:"); sb.append(template); } sb.append("}"); return sb.toString(); } - - class TemplateNestedImpl - extends V1PodTemplateSpecFluentImpl> - implements V1ReplicationControllerSpecFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1ReplicationControllerSpecFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1ReplicationControllerSpecFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java index 6194813413..7a17587f30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ReplicationControllerStatusBuilder - extends V1ReplicationControllerStatusFluentImpl - implements VisitableBuilder< - V1ReplicationControllerStatus, V1ReplicationControllerStatusBuilder> { +import java.lang.Boolean; +public class V1ReplicationControllerStatusBuilder extends V1ReplicationControllerStatusFluentImpl implements VisitableBuilder{ public V1ReplicationControllerStatusBuilder() { this(false); } - public V1ReplicationControllerStatusBuilder(Boolean validationEnabled) { this(new V1ReplicationControllerStatus(), validationEnabled); } - public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent) { this(fluent, false); } - - public V1ReplicationControllerStatusBuilder( - V1ReplicationControllerStatusFluent fluent, Boolean validationEnabled) { + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ReplicationControllerStatus(), validationEnabled); } - - public V1ReplicationControllerStatusBuilder( - V1ReplicationControllerStatusFluent fluent, V1ReplicationControllerStatus instance) { + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,V1ReplicationControllerStatus instance) { this(fluent, instance, false); } - - public V1ReplicationControllerStatusBuilder( - V1ReplicationControllerStatusFluent fluent, - V1ReplicationControllerStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,V1ReplicationControllerStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); fluent.withConditions(instance.getConditions()); @@ -57,16 +32,13 @@ public V1ReplicationControllerStatusBuilder( fluent.withReplicas(instance.getReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ReplicationControllerStatusBuilder( - V1ReplicationControllerStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); this.withConditions(instance.getConditions()); @@ -79,12 +51,10 @@ public V1ReplicationControllerStatusBuilder( this.withReplicas(instance.getReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ReplicationControllerStatusFluent fluent; Boolean validationEnabled; - public V1ReplicationControllerStatus build() { V1ReplicationControllerStatus buildable = new V1ReplicationControllerStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -95,4 +65,5 @@ public V1ReplicationControllerStatus build() { buildable.setReplicas(fluent.getReplicas()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java index e328195701..22e6b5c2fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java @@ -1,125 +1,71 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ReplicationControllerStatusFluent< - A extends V1ReplicationControllerStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ReplicationControllerStatusFluent> extends Fluent{ public Integer getAvailableReplicas(); - public A withAvailableReplicas(Integer availableReplicas); - public Boolean hasAvailableReplicas(); - - public A addToConditions(Integer index, V1ReplicationControllerCondition item); - - public A setToConditions(Integer index, V1ReplicationControllerCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items); - + public A addToConditions(Integer index,V1ReplicationControllerCondition item); + public A setToConditions(Integer index,V1ReplicationControllerCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1ReplicationControllerCondition buildCondition(Integer index); - public V1ReplicationControllerCondition buildFirstCondition(); - public V1ReplicationControllerCondition buildLastCondition(); - - public V1ReplicationControllerCondition buildMatchingCondition( - Predicate predicate); - + public V1ReplicationControllerCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions); public Boolean hasConditions(); - public V1ReplicationControllerStatusFluent.ConditionsNested addNewCondition(); - - public V1ReplicationControllerStatusFluent.ConditionsNested addNewConditionLike( - V1ReplicationControllerCondition item); - - public V1ReplicationControllerStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1ReplicationControllerCondition item); - + public V1ReplicationControllerStatusFluent.ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item); + public V1ReplicationControllerStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1ReplicationControllerCondition item); public V1ReplicationControllerStatusFluent.ConditionsNested editCondition(Integer index); - public V1ReplicationControllerStatusFluent.ConditionsNested editFirstCondition(); - public V1ReplicationControllerStatusFluent.ConditionsNested editLastCondition(); - - public V1ReplicationControllerStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1ReplicationControllerStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Integer getFullyLabeledReplicas(); - public A withFullyLabeledReplicas(Integer fullyLabeledReplicas); - public Boolean hasFullyLabeledReplicas(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public Integer getReadyReplicas(); - public A withReadyReplicas(Integer readyReplicas); - public Boolean hasReadyReplicas(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - - public interface ConditionsNested - extends Nested, - V1ReplicationControllerConditionFluent< - V1ReplicationControllerStatusFluent.ConditionsNested> { + public interface ConditionsNested extends Nested,V1ReplicationControllerConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java index d47b1b7c29..520a624156 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java @@ -1,32 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ReplicationControllerStatusFluentImpl< - A extends V1ReplicationControllerStatusFluent> - extends BaseFluent implements V1ReplicationControllerStatusFluent { - public V1ReplicationControllerStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ReplicationControllerStatusFluentImpl> extends BaseFluent implements V1ReplicationControllerStatusFluent{ + public V1ReplicationControllerStatusFluentImpl() { + } public V1ReplicationControllerStatusFluentImpl(V1ReplicationControllerStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -39,114 +35,49 @@ public V1ReplicationControllerStatusFluentImpl(V1ReplicationControllerStatus ins this.withReadyReplicas(instance.getReadyReplicas()); this.withReplicas(instance.getReplicas()); - } + } private Integer availableReplicas; private ArrayList conditions; private Integer fullyLabeledReplicas; private Long observedGeneration; private Integer readyReplicas; private Integer replicas; - public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; + this.availableReplicas=availableReplicas; return (A) this; } - public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - - public A addToConditions(Integer index, V1ReplicationControllerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ReplicationControllerConditionBuilder builder = - new V1ReplicationControllerConditionBuilder(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 addToConditions(Integer index,V1ReplicationControllerCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(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(Integer index, V1ReplicationControllerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ReplicationControllerConditionBuilder builder = - new V1ReplicationControllerConditionBuilder(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 setToConditions(Integer index,V1ReplicationControllerCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(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.V1ReplicationControllerCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = - new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(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 ArrayList(); - } - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = - new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = - new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { + for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = - new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -157,272 +88,157 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1ReplicationControllerCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1ReplicationControllerCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1ReplicationControllerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1ReplicationControllerCondition buildMatchingCondition( - Predicate predicate) { - for (V1ReplicationControllerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ReplicationControllerCondition buildMatchingCondition(Predicate predicate) { + for (V1ReplicationControllerConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V1ReplicationControllerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1ReplicationControllerConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ReplicationControllerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1ReplicationControllerCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1ReplicationControllerCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1ReplicationControllerCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1ReplicationControllerStatusFluent.ConditionsNested addNewCondition() { return new V1ReplicationControllerStatusFluentImpl.ConditionsNestedImpl(); } - - public V1ReplicationControllerStatusFluent.ConditionsNested addNewConditionLike( - V1ReplicationControllerCondition item) { + public V1ReplicationControllerStatusFluent.ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item) { return new V1ReplicationControllerStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1ReplicationControllerStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1ReplicationControllerCondition item) { + public V1ReplicationControllerStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1ReplicationControllerCondition item) { return new V1ReplicationControllerStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1ReplicationControllerStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1ReplicationControllerStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1ReplicationControllerStatusFluent.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 V1ReplicationControllerStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1ReplicationControllerStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ReplicationControllerConditionFluentImpl< - V1ReplicationControllerStatusFluent.ConditionsNested> - implements V1ReplicationControllerStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1ReplicationControllerCondition item) { + class ConditionsNestedImpl extends V1ReplicationControllerConditionFluentImpl> implements V1ReplicationControllerStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1ReplicationControllerCondition item) { this.index = index; this.builder = new V1ReplicationControllerConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1ReplicationControllerConditionBuilder(this); } - V1ReplicationControllerConditionBuilder builder; Integer index; - public N and() { - return (N) - V1ReplicationControllerStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1ReplicationControllerStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java index 17cfcf990f..089140c91b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ResourceAttributesBuilder - extends V1ResourceAttributesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceAttributesBuilder extends V1ResourceAttributesFluentImpl implements VisitableBuilder{ public V1ResourceAttributesBuilder() { this(false); } - public V1ResourceAttributesBuilder(Boolean validationEnabled) { this(new V1ResourceAttributes(), validationEnabled); } - public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent) { this(fluent, false); } - - public V1ResourceAttributesBuilder( - V1ResourceAttributesFluent fluent, Boolean validationEnabled) { + public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceAttributes(), validationEnabled); } - - public V1ResourceAttributesBuilder( - V1ResourceAttributesFluent fluent, V1ResourceAttributes instance) { + public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,V1ResourceAttributes instance) { this(fluent, instance, false); } - - public V1ResourceAttributesBuilder( - V1ResourceAttributesFluent fluent, - V1ResourceAttributes instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,V1ResourceAttributes instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withGroup(instance.getGroup()); fluent.withName(instance.getName()); @@ -58,15 +34,13 @@ public V1ResourceAttributesBuilder( fluent.withVersion(instance.getVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceAttributesBuilder(V1ResourceAttributes instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceAttributesBuilder(V1ResourceAttributes instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceAttributesBuilder(V1ResourceAttributes instance,Boolean validationEnabled) { + this.fluent = this; this.withGroup(instance.getGroup()); this.withName(instance.getName()); @@ -81,12 +55,10 @@ public V1ResourceAttributesBuilder(V1ResourceAttributes instance, Boolean valida this.withVersion(instance.getVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceAttributesFluent fluent; Boolean validationEnabled; - public V1ResourceAttributes build() { V1ResourceAttributes buildable = new V1ResourceAttributes(); buildable.setGroup(fluent.getGroup()); @@ -98,4 +70,5 @@ public V1ResourceAttributes build() { buildable.setVersion(fluent.getVersion()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java index 7bb2b65613..ffcf215142 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java @@ -1,61 +1,33 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ResourceAttributesFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ResourceAttributesFluent> extends Fluent{ public String getGroup(); - public A withGroup(String group); - public Boolean hasGroup(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); - public String getResource(); - public A withResource(String resource); - public Boolean hasResource(); - public String getSubresource(); - public A withSubresource(String subresource); - public Boolean hasSubresource(); - public String getVerb(); - public A withVerb(String verb); - public Boolean hasVerb(); - public String getVersion(); - public A withVersion(String version); - public Boolean hasVersion(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java index a8d2492ef0..b213ff5bcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceAttributesFluentImpl> - extends BaseFluent implements V1ResourceAttributesFluent { - public V1ResourceAttributesFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceAttributesFluentImpl> extends BaseFluent implements V1ResourceAttributesFluent{ + public V1ResourceAttributesFluentImpl() { + } public V1ResourceAttributesFluentImpl(V1ResourceAttributes instance) { this.withGroup(instance.getGroup()); @@ -34,8 +27,8 @@ public V1ResourceAttributesFluentImpl(V1ResourceAttributes instance) { this.withVerb(instance.getVerb()); this.withVersion(instance.getVersion()); - } + } private String group; private String name; private String namespace; @@ -43,151 +36,97 @@ public V1ResourceAttributesFluentImpl(V1ResourceAttributes instance) { private String subresource; private String verb; private String version; - public String getGroup() { return this.group; } - public A withGroup(String group) { - this.group = group; - return (A) this; + this.group=group; return (A) this; } - public Boolean hasGroup() { return this.group != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public String getResource() { return this.resource; } - public A withResource(String resource) { - this.resource = resource; - return (A) this; + this.resource=resource; return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public String getSubresource() { return this.subresource; } - public A withSubresource(String subresource) { - this.subresource = subresource; - return (A) this; + this.subresource=subresource; return (A) this; } - public Boolean hasSubresource() { return this.subresource != null; } - public String getVerb() { return this.verb; } - public A withVerb(String verb) { - this.verb = verb; - return (A) this; + this.verb=verb; return (A) this; } - public Boolean hasVerb() { return this.verb != null; } - public String getVersion() { return this.version; } - public A withVersion(String version) { - this.version = version; - return (A) this; + this.version=version; return (A) this; } - public Boolean hasVersion() { return this.version != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceAttributesFluentImpl that = (V1ResourceAttributesFluentImpl) o; - if (group != null ? !group.equals(that.group) : that.group != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (subresource != null ? !subresource.equals(that.subresource) : that.subresource != null) - return false; - if (verb != null ? !verb.equals(that.verb) : that.verb != null) return false; - if (version != null ? !version.equals(that.version) : that.version != null) return false; + if (group != null ? !group.equals(that.group) :that.group != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; + if (subresource != null ? !subresource.equals(that.subresource) :that.subresource != null) return false; + if (verb != null ? !verb.equals(that.verb) :that.verb != null) return false; + if (version != null ? !version.equals(that.version) :that.version != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - group, name, namespace, resource, subresource, verb, version, super.hashCode()); + return java.util.Objects.hash(group, name, namespace, resource, subresource, verb, version, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { - sb.append("group:"); - sb.append(group + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace + ","); - } - if (resource != null) { - sb.append("resource:"); - sb.append(resource + ","); - } - if (subresource != null) { - sb.append("subresource:"); - sb.append(subresource + ","); - } - if (verb != null) { - sb.append("verb:"); - sb.append(verb + ","); - } - if (version != null) { - sb.append("version:"); - sb.append(version); - } + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (subresource != null) { sb.append("subresource:"); sb.append(subresource + ","); } + if (verb != null) { sb.append("verb:"); sb.append(verb + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java index 3932eda6d9..24a23cfc6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ResourceFieldSelectorBuilder - extends V1ResourceFieldSelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceFieldSelectorBuilder extends V1ResourceFieldSelectorFluentImpl implements VisitableBuilder{ public V1ResourceFieldSelectorBuilder() { this(false); } - public V1ResourceFieldSelectorBuilder(Boolean validationEnabled) { this(new V1ResourceFieldSelector(), validationEnabled); } - public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent) { this(fluent, false); } - - public V1ResourceFieldSelectorBuilder( - V1ResourceFieldSelectorFluent fluent, Boolean validationEnabled) { + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceFieldSelector(), validationEnabled); } - - public V1ResourceFieldSelectorBuilder( - V1ResourceFieldSelectorFluent fluent, V1ResourceFieldSelector instance) { + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,V1ResourceFieldSelector instance) { this(fluent, instance, false); } - - public V1ResourceFieldSelectorBuilder( - V1ResourceFieldSelectorFluent fluent, - V1ResourceFieldSelector instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,V1ResourceFieldSelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerName(instance.getContainerName()); fluent.withDivisor(instance.getDivisor()); fluent.withResource(instance.getResource()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelector instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceFieldSelectorBuilder( - V1ResourceFieldSelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelector instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerName(instance.getContainerName()); this.withDivisor(instance.getDivisor()); this.withResource(instance.getResource()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceFieldSelectorFluent fluent; Boolean validationEnabled; - public V1ResourceFieldSelector build() { V1ResourceFieldSelector buildable = new V1ResourceFieldSelector(); buildable.setContainerName(fluent.getContainerName()); @@ -79,4 +50,5 @@ public V1ResourceFieldSelector build() { buildable.setResource(fluent.getResource()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java index ab02ae1954..b54fa5c09c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java @@ -1,40 +1,23 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ResourceFieldSelectorFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ResourceFieldSelectorFluent> extends Fluent{ public String getContainerName(); - public A withContainerName(String containerName); - public Boolean hasContainerName(); - public Quantity getDivisor(); - public A withDivisor(Quantity divisor); - public Boolean hasDivisor(); - public A withNewDivisor(String value); - public String getResource(); - public A withResource(String resource); - public Boolean hasResource(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java index e54a614c9a..ec786b2ed7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java @@ -1,113 +1,80 @@ -/* -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.custom.Quantity; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceFieldSelectorFluentImpl> - extends BaseFluent implements V1ResourceFieldSelectorFluent { - public V1ResourceFieldSelectorFluentImpl() {} - +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceFieldSelectorFluentImpl> extends BaseFluent implements V1ResourceFieldSelectorFluent{ + public V1ResourceFieldSelectorFluentImpl() { + } public V1ResourceFieldSelectorFluentImpl(V1ResourceFieldSelector instance) { this.withContainerName(instance.getContainerName()); this.withDivisor(instance.getDivisor()); this.withResource(instance.getResource()); - } + } private String containerName; private Quantity divisor; private String resource; - public String getContainerName() { return this.containerName; } - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; + this.containerName=containerName; return (A) this; } - public Boolean hasContainerName() { return this.containerName != null; } - public Quantity getDivisor() { return this.divisor; } - public A withDivisor(Quantity divisor) { - this.divisor = divisor; - return (A) this; + this.divisor=divisor; return (A) this; } - public Boolean hasDivisor() { return this.divisor != null; } - public A withNewDivisor(String value) { - return (A) withDivisor(new Quantity(value)); + return (A)withDivisor(new Quantity(value)); } - public String getResource() { return this.resource; } - public A withResource(String resource) { - this.resource = resource; - return (A) this; + this.resource=resource; return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceFieldSelectorFluentImpl that = (V1ResourceFieldSelectorFluentImpl) o; - if (containerName != null - ? !containerName.equals(that.containerName) - : that.containerName != null) return false; - if (divisor != null ? !divisor.equals(that.divisor) : that.divisor != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; + if (containerName != null ? !containerName.equals(that.containerName) :that.containerName != null) return false; + if (divisor != null ? !divisor.equals(that.divisor) :that.divisor != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(containerName, divisor, resource, super.hashCode()); + return java.util.Objects.hash(containerName, divisor, resource, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerName != null) { - sb.append("containerName:"); - sb.append(containerName + ","); - } - if (divisor != null) { - sb.append("divisor:"); - sb.append(divisor + ","); - } - if (resource != null) { - sb.append("resource:"); - sb.append(resource); - } + if (containerName != null) { sb.append("containerName:"); sb.append(containerName + ","); } + if (divisor != null) { sb.append("divisor:"); sb.append(divisor + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java index 7a69e91a9e..295097fc6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluentImpl implements VisitableBuilder{ public V1ResourceQuotaBuilder() { this(false); } - public V1ResourceQuotaBuilder(Boolean validationEnabled) { this(new V1ResourceQuota(), validationEnabled); } - public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent) { this(fluent, false); } - - public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent, Boolean validationEnabled) { + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceQuota(), validationEnabled); } - - public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent, V1ResourceQuota instance) { + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,V1ResourceQuota instance) { this(fluent, instance, false); } - - public V1ResourceQuotaBuilder( - V1ResourceQuotaFluent fluent, V1ResourceQuota instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,V1ResourceQuota instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1ResourceQuotaBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceQuotaBuilder(V1ResourceQuota instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceQuotaBuilder(V1ResourceQuota instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceQuotaBuilder(V1ResourceQuota instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1ResourceQuotaBuilder(V1ResourceQuota instance, Boolean validationEnable this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceQuotaFluent fluent; Boolean validationEnabled; - public V1ResourceQuota build() { V1ResourceQuota buildable = new V1ResourceQuota(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1ResourceQuota build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java index a801710e8c..4f8c91ed06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ResourceQuotaFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ResourceQuotaFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ResourceQuotaFluent.MetadataNested withNewMetadata(); - public V1ResourceQuotaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ResourceQuotaFluent.MetadataNested editMetadata(); - public V1ResourceQuotaFluent.MetadataNested editOrNewMetadata(); - public V1ResourceQuotaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ResourceQuotaSpec getSpec(); - public V1ResourceQuotaSpec buildSpec(); - public A withSpec(V1ResourceQuotaSpec spec); - public Boolean hasSpec(); - public V1ResourceQuotaFluent.SpecNested withNewSpec(); - public V1ResourceQuotaFluent.SpecNested withNewSpecLike(V1ResourceQuotaSpec item); - public V1ResourceQuotaFluent.SpecNested editSpec(); - public V1ResourceQuotaFluent.SpecNested editOrNewSpec(); - public V1ResourceQuotaFluent.SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ResourceQuotaStatus getStatus(); - public V1ResourceQuotaStatus buildStatus(); - public A withStatus(V1ResourceQuotaStatus status); - public Boolean hasStatus(); - public V1ResourceQuotaFluent.StatusNested withNewStatus(); - public V1ResourceQuotaFluent.StatusNested withNewStatusLike(V1ResourceQuotaStatus item); - public V1ResourceQuotaFluent.StatusNested editStatus(); - public V1ResourceQuotaFluent.StatusNested editOrNewStatus(); - public V1ResourceQuotaFluent.StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1ResourceQuotaSpecFluent> { + public interface SpecNested extends Nested,V1ResourceQuotaSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1ResourceQuotaStatusFluent> { + public interface StatusNested extends Nested,V1ResourceQuotaStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java index 1b84684555..938063ebc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceQuotaFluentImpl> extends BaseFluent - implements V1ResourceQuotaFluent { - public V1ResourceQuotaFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceQuotaFluentImpl> extends BaseFluent implements V1ResourceQuotaFluent{ + public V1ResourceQuotaFluentImpl() { + } public V1ResourceQuotaFluentImpl(V1ResourceQuota instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,299 +25,205 @@ public V1ResourceQuotaFluentImpl(V1ResourceQuota instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ResourceQuotaSpecBuilder spec; private V1ResourceQuotaStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ResourceQuotaFluent.MetadataNested withNewMetadata() { return new V1ResourceQuotaFluentImpl.MetadataNestedImpl(); } - public V1ResourceQuotaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ResourceQuotaFluentImpl.MetadataNestedImpl(item); } - public V1ResourceQuotaFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ResourceQuotaFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ResourceQuotaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ResourceQuotaSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1ResourceQuotaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1ResourceQuotaSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1ResourceQuotaSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1ResourceQuotaSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1ResourceQuotaFluent.SpecNested withNewSpec() { return new V1ResourceQuotaFluentImpl.SpecNestedImpl(); } - public V1ResourceQuotaFluent.SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { return new V1ResourceQuotaFluentImpl.SpecNestedImpl(item); } - public V1ResourceQuotaFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1ResourceQuotaFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1ResourceQuotaSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1ResourceQuotaSpecBuilder().build()); } - public V1ResourceQuotaFluent.SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ResourceQuotaStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1ResourceQuotaStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1ResourceQuotaStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1ResourceQuotaStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1ResourceQuotaStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1ResourceQuotaFluent.StatusNested withNewStatus() { return new V1ResourceQuotaFluentImpl.StatusNestedImpl(); } - public V1ResourceQuotaFluent.StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { return new V1ResourceQuotaFluentImpl.StatusNestedImpl(item); } - public V1ResourceQuotaFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1ResourceQuotaFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1ResourceQuotaStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1ResourceQuotaStatusBuilder().build()); } - public V1ResourceQuotaFluent.StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceQuotaFluentImpl that = (V1ResourceQuotaFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1ResourceQuotaFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ResourceQuotaFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ResourceQuotaFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1ResourceQuotaSpecFluentImpl> - implements V1ResourceQuotaFluent.SpecNested, Nested { + class SpecNestedImpl extends V1ResourceQuotaSpecFluentImpl> implements V1ResourceQuotaFluent.SpecNested,Nested{ SpecNestedImpl(V1ResourceQuotaSpec item) { this.builder = new V1ResourceQuotaSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1ResourceQuotaSpecBuilder(this); } - V1ResourceQuotaSpecBuilder builder; - public N and() { return (N) V1ResourceQuotaFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1ResourceQuotaStatusFluentImpl> - implements V1ResourceQuotaFluent.StatusNested, Nested { + class StatusNestedImpl extends V1ResourceQuotaStatusFluentImpl> implements V1ResourceQuotaFluent.StatusNested,Nested{ StatusNestedImpl(V1ResourceQuotaStatus item) { this.builder = new V1ResourceQuotaStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1ResourceQuotaStatusBuilder(this); } - V1ResourceQuotaStatusBuilder builder; - public N and() { return (N) V1ResourceQuotaFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java index d8c3222adc..c018fe3895 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ResourceQuotaListBuilder - extends V1ResourceQuotaListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceQuotaListBuilder extends V1ResourceQuotaListFluentImpl implements VisitableBuilder{ public V1ResourceQuotaListBuilder() { this(false); } - public V1ResourceQuotaListBuilder(Boolean validationEnabled) { this(new V1ResourceQuotaList(), validationEnabled); } - public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent) { this(fluent, false); } - - public V1ResourceQuotaListBuilder( - V1ResourceQuotaListFluent fluent, Boolean validationEnabled) { + public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceQuotaList(), validationEnabled); } - - public V1ResourceQuotaListBuilder( - V1ResourceQuotaListFluent fluent, V1ResourceQuotaList instance) { + public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,V1ResourceQuotaList instance) { this(fluent, instance, false); } - - public V1ResourceQuotaListBuilder( - V1ResourceQuotaListFluent fluent, - V1ResourceQuotaList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,V1ResourceQuotaList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1ResourceQuotaListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance, Boolean validati this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceQuotaListFluent fluent; Boolean validationEnabled; - public V1ResourceQuotaList build() { V1ResourceQuotaList buildable = new V1ResourceQuotaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1ResourceQuotaList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java index 2e162875cd..626492990e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ResourceQuotaListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ResourceQuotaListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ResourceQuota item); - - public A setToItems(Integer index, V1ResourceQuota item); - + public A addToItems(Integer index,V1ResourceQuota item); + public A setToItems(Integer index,V1ResourceQuota item); public A addToItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ResourceQuota buildItem(Integer index); - public V1ResourceQuota buildFirstItem(); - public V1ResourceQuota buildLastItem(); - public V1ResourceQuota buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items); - public Boolean hasItems(); - public V1ResourceQuotaListFluent.ItemsNested addNewItem(); - public V1ResourceQuotaListFluent.ItemsNested addNewItemLike(V1ResourceQuota item); - - public V1ResourceQuotaListFluent.ItemsNested setNewItemLike( - Integer index, V1ResourceQuota item); - + public V1ResourceQuotaListFluent.ItemsNested setNewItemLike(Integer index,V1ResourceQuota item); public V1ResourceQuotaListFluent.ItemsNested editItem(Integer index); - public V1ResourceQuotaListFluent.ItemsNested editFirstItem(); - public V1ResourceQuotaListFluent.ItemsNested editLastItem(); - - public V1ResourceQuotaListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ResourceQuotaListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ResourceQuotaListFluent.MetadataNested withNewMetadata(); - public V1ResourceQuotaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ResourceQuotaListFluent.MetadataNested editMetadata(); - public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadata(); - public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ResourceQuotaFluent> { + public interface ItemsNested extends Nested,V1ResourceQuotaFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java index 575f245f17..807514cebf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceQuotaListFluentImpl> - extends BaseFluent implements V1ResourceQuotaListFluent { - public V1ResourceQuotaListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceQuotaListFluentImpl> extends BaseFluent implements V1ResourceQuotaListFluent{ + public V1ResourceQuotaListFluentImpl() { + } public V1ResourceQuotaListFluentImpl(V1ResourceQuotaList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ResourceQuotaListFluentImpl(V1ResourceQuotaList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ResourceQuota item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ResourceQuota item) { + if (this.items == null) {this.items = new ArrayList();} + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ResourceQuota item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ResourceQuota item) { + if (this.items == null) {this.items = new ArrayList();} V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ResourceQuota buildItem(Integer index) { return this.items.get(index).build(); } - public V1ResourceQuota buildFirstItem() { return this.items.get(0).build(); } - public V1ResourceQuota buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ResourceQuota buildMatchingItem(Predicate predicate) { - for (V1ResourceQuotaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ResourceQuotaBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ResourceQuotaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ResourceQuotaBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ResourceQuota item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ResourceQuota item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ResourceQuota item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ResourceQuota item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ResourceQuotaListFluent.ItemsNested addNewItem() { return new V1ResourceQuotaListFluentImpl.ItemsNestedImpl(); } - public V1ResourceQuotaListFluent.ItemsNested addNewItemLike(V1ResourceQuota item) { return new V1ResourceQuotaListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ResourceQuotaListFluent.ItemsNested setNewItemLike( - Integer index, V1ResourceQuota item) { + public V1ResourceQuotaListFluent.ItemsNested setNewItemLike(Integer index,V1ResourceQuota item) { return new V1ResourceQuotaListFluentImpl.ItemsNestedImpl(index, item); } - public V1ResourceQuotaListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ResourceQuotaListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ResourceQuotaListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ResourceQuotaListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ResourceQuotaListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ResourceQuotaListFluentImpl.MetadataNestedImpl(); } - public V1ResourceQuotaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ResourceQuotaListFluentImpl.MetadataNestedImpl(item); } - public V1ResourceQuotaListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceQuotaListFluentImpl that = (V1ResourceQuotaListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ResourceQuotaFluentImpl> - implements V1ResourceQuotaListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ResourceQuota item) { + class ItemsNestedImpl extends V1ResourceQuotaFluentImpl> implements V1ResourceQuotaListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ResourceQuota item) { this.index = index; this.builder = new V1ResourceQuotaBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ResourceQuotaBuilder(this); } - V1ResourceQuotaBuilder builder; Integer index; - public N and() { - return (N) V1ResourceQuotaListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ResourceQuotaListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ResourceQuotaListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ResourceQuotaListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ResourceQuotaListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java index cca668d4f4..cde0eb94e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ResourceQuotaSpecBuilder - extends V1ResourceQuotaSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceQuotaSpecBuilder extends V1ResourceQuotaSpecFluentImpl implements VisitableBuilder{ public V1ResourceQuotaSpecBuilder() { this(false); } - public V1ResourceQuotaSpecBuilder(Boolean validationEnabled) { this(new V1ResourceQuotaSpec(), validationEnabled); } - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent) { this(fluent, false); } - - public V1ResourceQuotaSpecBuilder( - V1ResourceQuotaSpecFluent fluent, Boolean validationEnabled) { + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceQuotaSpec(), validationEnabled); } - - public V1ResourceQuotaSpecBuilder( - V1ResourceQuotaSpecFluent fluent, V1ResourceQuotaSpec instance) { + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,V1ResourceQuotaSpec instance) { this(fluent, instance, false); } - - public V1ResourceQuotaSpecBuilder( - V1ResourceQuotaSpecFluent fluent, - V1ResourceQuotaSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,V1ResourceQuotaSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHard(instance.getHard()); fluent.withScopeSelector(instance.getScopeSelector()); fluent.withScopes(instance.getScopes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withHard(instance.getHard()); this.withScopeSelector(instance.getScopeSelector()); this.withScopes(instance.getScopes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceQuotaSpecFluent fluent; Boolean validationEnabled; - public V1ResourceQuotaSpec build() { V1ResourceQuotaSpec buildable = new V1ResourceQuotaSpec(); buildable.setHard(fluent.getHard()); @@ -78,4 +50,5 @@ public V1ResourceQuotaSpec build() { buildable.setScopes(fluent.getScopes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java index 3b5fc30037..03ea6ecda1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java @@ -1,102 +1,64 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ResourceQuotaSpecFluent> - extends Fluent { - public A addToHard(String key, Quantity value); - - public A addToHard(Map map); + /** + * Generated + */ +public interface V1ResourceQuotaSpecFluent> extends Fluent{ + public A addToHard(String key,Quantity value); + public A addToHard(Map map); public A removeFromHard(String key); - - public A removeFromHard(Map map); - - public Map getHard(); - - public A withHard(Map hard); - + public A removeFromHard(Map map); + public Map getHard(); + public A withHard(Map hard); public Boolean hasHard(); - + /** * This method has been deprecated, please use method buildScopeSelector instead. - * * @return The buildable object. */ @Deprecated public V1ScopeSelector getScopeSelector(); - public V1ScopeSelector buildScopeSelector(); - public A withScopeSelector(V1ScopeSelector scopeSelector); - public Boolean hasScopeSelector(); - public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelector(); - - public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelectorLike( - V1ScopeSelector item); - + public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item); public V1ResourceQuotaSpecFluent.ScopeSelectorNested editScopeSelector(); - public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelector(); - - public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelectorLike( - V1ScopeSelector item); - - public A addToScopes(Integer index, String item); - - public A setToScopes(Integer index, String item); - + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelectorLike(V1ScopeSelector item); + public A addToScopes(Integer index,String item); + public A setToScopes(Integer index,String item); public A addToScopes(java.lang.String... items); - public A addAllToScopes(Collection items); - public A removeFromScopes(java.lang.String... items); - public A removeAllFromScopes(Collection items); - public List getScopes(); - public String getScope(Integer index); - public String getFirstScope(); - public String getLastScope(); - public String getMatchingScope(Predicate predicate); - public Boolean hasMatchingScope(Predicate predicate); - public A withScopes(List scopes); - public A withScopes(java.lang.String... scopes); - public Boolean hasScopes(); - - public interface ScopeSelectorNested - extends Nested, V1ScopeSelectorFluent> { + public interface ScopeSelectorNested extends Nested,V1ScopeSelectorFluent>{ public N and(); - public N endScopeSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java index 00b947414c..ba2d17d2db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java @@ -1,329 +1,185 @@ -/* -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.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceQuotaSpecFluentImpl> - extends BaseFluent implements V1ResourceQuotaSpecFluent { - public V1ResourceQuotaSpecFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceQuotaSpecFluentImpl> extends BaseFluent implements V1ResourceQuotaSpecFluent{ + public V1ResourceQuotaSpecFluentImpl() { + } public V1ResourceQuotaSpecFluentImpl(V1ResourceQuotaSpec instance) { this.withHard(instance.getHard()); this.withScopeSelector(instance.getScopeSelector()); this.withScopes(instance.getScopes()); - } - private Map hard; + } + private Map hard; private V1ScopeSelectorBuilder scopeSelector; private List scopes; - - public A addToHard(String key, Quantity value) { - if (this.hard == null && key != null && value != null) { - this.hard = new LinkedHashMap(); - } - if (key != null && value != null) { - this.hard.put(key, value); - } - return (A) this; + public A addToHard(String key,Quantity value) { + if(this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } + if(key != null && value != null) {this.hard.put(key, value);} return (A)this; } - - public A addToHard(Map map) { - if (this.hard == null && map != null) { - this.hard = new LinkedHashMap(); - } - if (map != null) { - this.hard.putAll(map); - } - return (A) this; + public A addToHard(Map map) { + if(this.hard == null && map != null) { this.hard = new LinkedHashMap(); } + if(map != null) { this.hard.putAll(map);} return (A)this; } - public A removeFromHard(String key) { - if (this.hard == null) { - return (A) this; - } - if (key != null && this.hard != null) { - this.hard.remove(key); - } - return (A) this; + if(this.hard == null) { return (A) this; } + if(key != null && this.hard != null) {this.hard.remove(key);} return (A)this; } - - public A removeFromHard(Map map) { - if (this.hard == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.hard != null) { - this.hard.remove(key); - } - } - } - return (A) this; + public A removeFromHard(Map map) { + if(this.hard == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.hard != null){this.hard.remove(key);}}} return (A)this; } - - public Map getHard() { + public Map getHard() { return this.hard; } - - public A withHard(Map hard) { - if (hard == null) { - this.hard = null; - } else { - this.hard = new LinkedHashMap(hard); - } - return (A) this; + public A withHard(Map hard) { + if (hard == null) { this.hard = null;} else {this.hard = new LinkedHashMap(hard);} return (A) this; } - public Boolean hasHard() { return this.hard != null; } - + /** * This method has been deprecated, please use method buildScopeSelector instead. - * * @return The buildable object. */ @Deprecated public V1ScopeSelector getScopeSelector() { - return this.scopeSelector != null ? this.scopeSelector.build() : null; + return this.scopeSelector!=null ?this.scopeSelector.build():null; } - public V1ScopeSelector buildScopeSelector() { - return this.scopeSelector != null ? this.scopeSelector.build() : null; + return this.scopeSelector!=null ?this.scopeSelector.build():null; } - public A withScopeSelector(V1ScopeSelector scopeSelector) { _visitables.get("scopeSelector").remove(this.scopeSelector); - if (scopeSelector != null) { - this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); - _visitables.get("scopeSelector").add(this.scopeSelector); - } else { - this.scopeSelector = null; - _visitables.get("scopeSelector").remove(this.scopeSelector); - } - return (A) this; + if (scopeSelector!=null){ this.scopeSelector= new V1ScopeSelectorBuilder(scopeSelector); _visitables.get("scopeSelector").add(this.scopeSelector);} else { this.scopeSelector = null; _visitables.get("scopeSelector").remove(this.scopeSelector); } return (A) this; } - public Boolean hasScopeSelector() { return this.scopeSelector != null; } - public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelector() { return new V1ResourceQuotaSpecFluentImpl.ScopeSelectorNestedImpl(); } - - public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelectorLike( - V1ScopeSelector item) { + public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { return new V1ResourceQuotaSpecFluentImpl.ScopeSelectorNestedImpl(item); } - public V1ResourceQuotaSpecFluent.ScopeSelectorNested editScopeSelector() { return withNewScopeSelectorLike(getScopeSelector()); } - public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelector() { - return withNewScopeSelectorLike( - getScopeSelector() != null ? getScopeSelector() : new V1ScopeSelectorBuilder().build()); + return withNewScopeSelectorLike(getScopeSelector() != null ? getScopeSelector(): new V1ScopeSelectorBuilder().build()); } - - public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelectorLike( - V1ScopeSelector item) { - return withNewScopeSelectorLike(getScopeSelector() != null ? getScopeSelector() : item); + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelectorLike(V1ScopeSelector item) { + return withNewScopeSelectorLike(getScopeSelector() != null ? getScopeSelector(): item); } - - public A addToScopes(Integer index, String item) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } + public A addToScopes(Integer index,String item) { + if (this.scopes == null) {this.scopes = new ArrayList();} this.scopes.add(index, item); - return (A) this; + return (A)this; } - - public A setToScopes(Integer index, String item) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } - this.scopes.set(index, item); - return (A) this; + public A setToScopes(Integer index,String item) { + if (this.scopes == null) {this.scopes = new ArrayList();} + this.scopes.set(index, item); return (A)this; } - public A addToScopes(java.lang.String... items) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } - for (String item : items) { - this.scopes.add(item); - } - return (A) this; + if (this.scopes == null) {this.scopes = new ArrayList();} + for (String item : items) {this.scopes.add(item);} return (A)this; } - public A addAllToScopes(Collection items) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } - for (String item : items) { - this.scopes.add(item); - } - return (A) this; + if (this.scopes == null) {this.scopes = new ArrayList();} + for (String item : items) {this.scopes.add(item);} return (A)this; } - public A removeFromScopes(java.lang.String... items) { - for (String item : items) { - if (this.scopes != null) { - this.scopes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.scopes!= null){ this.scopes.remove(item);}} return (A)this; } - public A removeAllFromScopes(Collection items) { - for (String item : items) { - if (this.scopes != null) { - this.scopes.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.scopes!= null){ this.scopes.remove(item);}} return (A)this; } - public List getScopes() { return this.scopes; } - public String getScope(Integer index) { return this.scopes.get(index); } - public String getFirstScope() { return this.scopes.get(0); } - public String getLastScope() { return this.scopes.get(scopes.size() - 1); } - public String getMatchingScope(Predicate predicate) { - for (String item : scopes) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: scopes) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingScope(Predicate predicate) { - for (String item : scopes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: scopes) { if(predicate.test(item)){ return true;} } return false; } - public A withScopes(List scopes) { - if (scopes != null) { - this.scopes = new ArrayList(); - for (String item : scopes) { - this.addToScopes(item); - } - } else { - this.scopes = null; - } - return (A) this; + if (scopes != null) {this.scopes = new ArrayList(); for (String item : scopes){this.addToScopes(item);}} else { this.scopes = null;} return (A) this; } - public A withScopes(java.lang.String... scopes) { - if (this.scopes != null) { - this.scopes.clear(); - } - if (scopes != null) { - for (String item : scopes) { - this.addToScopes(item); - } - } - return (A) this; + if (this.scopes != null) {this.scopes.clear();} + if (scopes != null) {for (String item :scopes){ this.addToScopes(item);}} return (A) this; } - public Boolean hasScopes() { return scopes != null && !scopes.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceQuotaSpecFluentImpl that = (V1ResourceQuotaSpecFluentImpl) o; - if (hard != null ? !hard.equals(that.hard) : that.hard != null) return false; - if (scopeSelector != null - ? !scopeSelector.equals(that.scopeSelector) - : that.scopeSelector != null) return false; - if (scopes != null ? !scopes.equals(that.scopes) : that.scopes != null) return false; + if (hard != null ? !hard.equals(that.hard) :that.hard != null) return false; + if (scopeSelector != null ? !scopeSelector.equals(that.scopeSelector) :that.scopeSelector != null) return false; + if (scopes != null ? !scopes.equals(that.scopes) :that.scopes != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(hard, scopeSelector, scopes, super.hashCode()); + return java.util.Objects.hash(hard, scopeSelector, scopes, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hard != null && !hard.isEmpty()) { - sb.append("hard:"); - sb.append(hard + ","); - } - if (scopeSelector != null) { - sb.append("scopeSelector:"); - sb.append(scopeSelector + ","); - } - if (scopes != null && !scopes.isEmpty()) { - sb.append("scopes:"); - sb.append(scopes); - } + if (hard != null && !hard.isEmpty()) { sb.append("hard:"); sb.append(hard + ","); } + if (scopeSelector != null) { sb.append("scopeSelector:"); sb.append(scopeSelector + ","); } + if (scopes != null && !scopes.isEmpty()) { sb.append("scopes:"); sb.append(scopes); } sb.append("}"); return sb.toString(); } - - class ScopeSelectorNestedImpl - extends V1ScopeSelectorFluentImpl> - implements V1ResourceQuotaSpecFluent.ScopeSelectorNested, Nested { + class ScopeSelectorNestedImpl extends V1ScopeSelectorFluentImpl> implements V1ResourceQuotaSpecFluent.ScopeSelectorNested,Nested{ ScopeSelectorNestedImpl(V1ScopeSelector item) { this.builder = new V1ScopeSelectorBuilder(this, item); } - ScopeSelectorNestedImpl() { this.builder = new V1ScopeSelectorBuilder(this); } - V1ScopeSelectorBuilder builder; - public N and() { return (N) V1ResourceQuotaSpecFluentImpl.this.withScopeSelector(builder.build()); } - public N endScopeSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java index 0a8dba1242..6e32d127b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ResourceQuotaStatusBuilder - extends V1ResourceQuotaStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceQuotaStatusBuilder extends V1ResourceQuotaStatusFluentImpl implements VisitableBuilder{ public V1ResourceQuotaStatusBuilder() { this(false); } - public V1ResourceQuotaStatusBuilder(Boolean validationEnabled) { this(new V1ResourceQuotaStatus(), validationEnabled); } - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent) { this(fluent, false); } - - public V1ResourceQuotaStatusBuilder( - V1ResourceQuotaStatusFluent fluent, Boolean validationEnabled) { + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceQuotaStatus(), validationEnabled); } - - public V1ResourceQuotaStatusBuilder( - V1ResourceQuotaStatusFluent fluent, V1ResourceQuotaStatus instance) { + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,V1ResourceQuotaStatus instance) { this(fluent, instance, false); } - - public V1ResourceQuotaStatusBuilder( - V1ResourceQuotaStatusFluent fluent, - V1ResourceQuotaStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,V1ResourceQuotaStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHard(instance.getHard()); fluent.withUsed(instance.getUsed()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withHard(instance.getHard()); this.withUsed(instance.getUsed()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceQuotaStatusFluent fluent; Boolean validationEnabled; - public V1ResourceQuotaStatus build() { V1ResourceQuotaStatus buildable = new V1ResourceQuotaStatus(); buildable.setHard(fluent.getHard()); buildable.setUsed(fluent.getUsed()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java index 940b185760..d0e90617d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java @@ -1,49 +1,29 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; - -/** Generated */ -public interface V1ResourceQuotaStatusFluent> - extends Fluent { - public A addToHard(String key, Quantity value); - - public A addToHard(Map map); - +import java.util.LinkedHashMap; + + /** + * Generated + */ +public interface V1ResourceQuotaStatusFluent> extends Fluent{ + public A addToHard(String key,Quantity value); + public A addToHard(Map map); public A removeFromHard(String key); - - public A removeFromHard(Map map); - - public Map getHard(); - - public A withHard(Map hard); - + public A removeFromHard(Map map); + public Map getHard(); + public A withHard(Map hard); public Boolean hasHard(); - - public A addToUsed(String key, Quantity value); - - public A addToUsed(Map map); - + public A addToUsed(String key,Quantity value); + public A addToUsed(Map map); public A removeFromUsed(String key); - - public A removeFromUsed(Map map); - - public Map getUsed(); - - public A withUsed(Map used); - + public A removeFromUsed(Map map); + public Map getUsed(); + public A withUsed(Map used); public Boolean hasUsed(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java index 8d241dccaf..27d8c3d8ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java @@ -1,184 +1,97 @@ -/* -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.custom.Quantity; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.LinkedHashMap; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceQuotaStatusFluentImpl> - extends BaseFluent implements V1ResourceQuotaStatusFluent { - public V1ResourceQuotaStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceQuotaStatusFluentImpl> extends BaseFluent implements V1ResourceQuotaStatusFluent{ + public V1ResourceQuotaStatusFluentImpl() { + } public V1ResourceQuotaStatusFluentImpl(V1ResourceQuotaStatus instance) { this.withHard(instance.getHard()); this.withUsed(instance.getUsed()); - } - private Map hard; - private Map used; - - public A addToHard(String key, Quantity value) { - if (this.hard == null && key != null && value != null) { - this.hard = new LinkedHashMap(); - } - if (key != null && value != null) { - this.hard.put(key, value); - } - return (A) this; } - - public A addToHard(Map map) { - if (this.hard == null && map != null) { - this.hard = new LinkedHashMap(); - } - if (map != null) { - this.hard.putAll(map); - } - return (A) this; + private Map hard; + private Map used; + public A addToHard(String key,Quantity value) { + if(this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } + if(key != null && value != null) {this.hard.put(key, value);} return (A)this; + } + public A addToHard(Map map) { + if(this.hard == null && map != null) { this.hard = new LinkedHashMap(); } + if(map != null) { this.hard.putAll(map);} return (A)this; } - public A removeFromHard(String key) { - if (this.hard == null) { - return (A) this; - } - if (key != null && this.hard != null) { - this.hard.remove(key); - } - return (A) this; + if(this.hard == null) { return (A) this; } + if(key != null && this.hard != null) {this.hard.remove(key);} return (A)this; } - - public A removeFromHard(Map map) { - if (this.hard == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.hard != null) { - this.hard.remove(key); - } - } - } - return (A) this; + public A removeFromHard(Map map) { + if(this.hard == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.hard != null){this.hard.remove(key);}}} return (A)this; } - - public Map getHard() { + public Map getHard() { return this.hard; } - - public A withHard(Map hard) { - if (hard == null) { - this.hard = null; - } else { - this.hard = new LinkedHashMap(hard); - } - return (A) this; + public A withHard(Map hard) { + if (hard == null) { this.hard = null;} else {this.hard = new LinkedHashMap(hard);} return (A) this; } - public Boolean hasHard() { return this.hard != null; } - - public A addToUsed(String key, Quantity value) { - if (this.used == null && key != null && value != null) { - this.used = new LinkedHashMap(); - } - if (key != null && value != null) { - this.used.put(key, value); - } - return (A) this; + public A addToUsed(String key,Quantity value) { + if(this.used == null && key != null && value != null) { this.used = new LinkedHashMap(); } + if(key != null && value != null) {this.used.put(key, value);} return (A)this; } - - public A addToUsed(Map map) { - if (this.used == null && map != null) { - this.used = new LinkedHashMap(); - } - if (map != null) { - this.used.putAll(map); - } - return (A) this; + public A addToUsed(Map map) { + if(this.used == null && map != null) { this.used = new LinkedHashMap(); } + if(map != null) { this.used.putAll(map);} return (A)this; } - public A removeFromUsed(String key) { - if (this.used == null) { - return (A) this; - } - if (key != null && this.used != null) { - this.used.remove(key); - } - return (A) this; + if(this.used == null) { return (A) this; } + if(key != null && this.used != null) {this.used.remove(key);} return (A)this; } - - public A removeFromUsed(Map map) { - if (this.used == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.used != null) { - this.used.remove(key); - } - } - } - return (A) this; + public A removeFromUsed(Map map) { + if(this.used == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.used != null){this.used.remove(key);}}} return (A)this; } - - public Map getUsed() { + public Map getUsed() { return this.used; } - - public A withUsed(Map used) { - if (used == null) { - this.used = null; - } else { - this.used = new LinkedHashMap(used); - } - return (A) this; + public A withUsed(Map used) { + if (used == null) { this.used = null;} else {this.used = new LinkedHashMap(used);} return (A) this; } - public Boolean hasUsed() { return this.used != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceQuotaStatusFluentImpl that = (V1ResourceQuotaStatusFluentImpl) o; - if (hard != null ? !hard.equals(that.hard) : that.hard != null) return false; - if (used != null ? !used.equals(that.used) : that.used != null) return false; + if (hard != null ? !hard.equals(that.hard) :that.hard != null) return false; + if (used != null ? !used.equals(that.used) :that.used != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(hard, used, super.hashCode()); + return java.util.Objects.hash(hard, used, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hard != null && !hard.isEmpty()) { - sb.append("hard:"); - sb.append(hard + ","); - } - if (used != null && !used.isEmpty()) { - sb.append("used:"); - sb.append(used); - } + if (hard != null && !hard.isEmpty()) { sb.append("hard:"); sb.append(hard + ","); } + if (used != null && !used.isEmpty()) { sb.append("used:"); sb.append(used); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java index 995f1498ec..127f68e820 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ResourceRequirementsBuilder - extends V1ResourceRequirementsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceRequirementsBuilder extends V1ResourceRequirementsFluentImpl implements VisitableBuilder{ public V1ResourceRequirementsBuilder() { this(false); } - public V1ResourceRequirementsBuilder(Boolean validationEnabled) { this(new V1ResourceRequirements(), validationEnabled); } - public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent) { this(fluent, false); } - - public V1ResourceRequirementsBuilder( - V1ResourceRequirementsFluent fluent, Boolean validationEnabled) { + public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceRequirements(), validationEnabled); } - - public V1ResourceRequirementsBuilder( - V1ResourceRequirementsFluent fluent, V1ResourceRequirements instance) { + public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,V1ResourceRequirements instance) { this(fluent, instance, false); } - - public V1ResourceRequirementsBuilder( - V1ResourceRequirementsFluent fluent, - V1ResourceRequirements instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,V1ResourceRequirements instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLimits(instance.getLimits()); fluent.withRequests(instance.getRequests()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceRequirementsBuilder(V1ResourceRequirements instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceRequirementsBuilder(V1ResourceRequirements instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceRequirementsBuilder(V1ResourceRequirements instance,Boolean validationEnabled) { + this.fluent = this; this.withLimits(instance.getLimits()); this.withRequests(instance.getRequests()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceRequirementsFluent fluent; Boolean validationEnabled; - public V1ResourceRequirements build() { V1ResourceRequirements buildable = new V1ResourceRequirements(); buildable.setLimits(fluent.getLimits()); buildable.setRequests(fluent.getRequests()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java index a9aadcae6b..4b83fa1a60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java @@ -1,49 +1,29 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; - -/** Generated */ -public interface V1ResourceRequirementsFluent> - extends Fluent { - public A addToLimits(String key, Quantity value); - - public A addToLimits(Map map); - +import java.util.LinkedHashMap; + + /** + * Generated + */ +public interface V1ResourceRequirementsFluent> extends Fluent{ + public A addToLimits(String key,Quantity value); + public A addToLimits(Map map); public A removeFromLimits(String key); - - public A removeFromLimits(Map map); - - public Map getLimits(); - - public A withLimits(Map limits); - + public A removeFromLimits(Map map); + public Map getLimits(); + public A withLimits(Map limits); public Boolean hasLimits(); - - public A addToRequests(String key, Quantity value); - - public A addToRequests(Map map); - + public A addToRequests(String key,Quantity value); + public A addToRequests(Map map); public A removeFromRequests(String key); - - public A removeFromRequests(Map map); - - public Map getRequests(); - - public A withRequests(Map requests); - + public A removeFromRequests(Map map); + public Map getRequests(); + public A withRequests(Map requests); public Boolean hasRequests(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java index 44fec9f09a..b419f70be6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java @@ -1,184 +1,97 @@ -/* -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.custom.Quantity; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.LinkedHashMap; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceRequirementsFluentImpl> - extends BaseFluent implements V1ResourceRequirementsFluent { - public V1ResourceRequirementsFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceRequirementsFluentImpl> extends BaseFluent implements V1ResourceRequirementsFluent{ + public V1ResourceRequirementsFluentImpl() { + } public V1ResourceRequirementsFluentImpl(V1ResourceRequirements instance) { this.withLimits(instance.getLimits()); this.withRequests(instance.getRequests()); - } - private Map limits; - private Map requests; - - public A addToLimits(String key, Quantity value) { - if (this.limits == null && key != null && value != null) { - this.limits = new LinkedHashMap(); - } - if (key != null && value != null) { - this.limits.put(key, value); - } - return (A) this; } - - public A addToLimits(Map map) { - if (this.limits == null && map != null) { - this.limits = new LinkedHashMap(); - } - if (map != null) { - this.limits.putAll(map); - } - return (A) this; + private Map limits; + private Map requests; + public A addToLimits(String key,Quantity value) { + if(this.limits == null && key != null && value != null) { this.limits = new LinkedHashMap(); } + if(key != null && value != null) {this.limits.put(key, value);} return (A)this; + } + public A addToLimits(Map map) { + if(this.limits == null && map != null) { this.limits = new LinkedHashMap(); } + if(map != null) { this.limits.putAll(map);} return (A)this; } - public A removeFromLimits(String key) { - if (this.limits == null) { - return (A) this; - } - if (key != null && this.limits != null) { - this.limits.remove(key); - } - return (A) this; + if(this.limits == null) { return (A) this; } + if(key != null && this.limits != null) {this.limits.remove(key);} return (A)this; } - - public A removeFromLimits(Map map) { - if (this.limits == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.limits != null) { - this.limits.remove(key); - } - } - } - return (A) this; + public A removeFromLimits(Map map) { + if(this.limits == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.limits != null){this.limits.remove(key);}}} return (A)this; } - - public Map getLimits() { + public Map getLimits() { return this.limits; } - - public A withLimits(Map limits) { - if (limits == null) { - this.limits = null; - } else { - this.limits = new LinkedHashMap(limits); - } - return (A) this; + public A withLimits(Map limits) { + if (limits == null) { this.limits = null;} else {this.limits = new LinkedHashMap(limits);} return (A) this; } - public Boolean hasLimits() { return this.limits != null; } - - public A addToRequests(String key, Quantity value) { - if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); - } - if (key != null && value != null) { - this.requests.put(key, value); - } - return (A) this; + public A addToRequests(String key,Quantity value) { + if(this.requests == null && key != null && value != null) { this.requests = new LinkedHashMap(); } + if(key != null && value != null) {this.requests.put(key, value);} return (A)this; } - - public A addToRequests(Map map) { - if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); - } - if (map != null) { - this.requests.putAll(map); - } - return (A) this; + public A addToRequests(Map map) { + if(this.requests == null && map != null) { this.requests = new LinkedHashMap(); } + if(map != null) { this.requests.putAll(map);} return (A)this; } - public A removeFromRequests(String key) { - if (this.requests == null) { - return (A) this; - } - if (key != null && this.requests != null) { - this.requests.remove(key); - } - return (A) this; + if(this.requests == null) { return (A) this; } + if(key != null && this.requests != null) {this.requests.remove(key);} return (A)this; } - - public A removeFromRequests(Map map) { - if (this.requests == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.requests != null) { - this.requests.remove(key); - } - } - } - return (A) this; + public A removeFromRequests(Map map) { + if(this.requests == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.requests != null){this.requests.remove(key);}}} return (A)this; } - - public Map getRequests() { + public Map getRequests() { return this.requests; } - - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); - } - return (A) this; + public A withRequests(Map requests) { + if (requests == null) { this.requests = null;} else {this.requests = new LinkedHashMap(requests);} return (A) this; } - public Boolean hasRequests() { return this.requests != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceRequirementsFluentImpl that = (V1ResourceRequirementsFluentImpl) o; - if (limits != null ? !limits.equals(that.limits) : that.limits != null) return false; - if (requests != null ? !requests.equals(that.requests) : that.requests != null) return false; + if (limits != null ? !limits.equals(that.limits) :that.limits != null) return false; + if (requests != null ? !requests.equals(that.requests) :that.requests != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(limits, requests, super.hashCode()); + return java.util.Objects.hash(limits, requests, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (limits != null && !limits.isEmpty()) { - sb.append("limits:"); - sb.append(limits + ","); - } - if (requests != null && !requests.isEmpty()) { - sb.append("requests:"); - sb.append(requests); - } + if (limits != null && !limits.isEmpty()) { sb.append("limits:"); sb.append(limits + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java index edca04eb3c..6cb21c5d93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ResourceRuleBuilder extends V1ResourceRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ResourceRuleBuilder extends V1ResourceRuleFluentImpl implements VisitableBuilder{ public V1ResourceRuleBuilder() { this(false); } - public V1ResourceRuleBuilder(Boolean validationEnabled) { this(new V1ResourceRule(), validationEnabled); } - public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent) { this(fluent, false); } - - public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent, Boolean validationEnabled) { + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1ResourceRule(), validationEnabled); } - - public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent, V1ResourceRule instance) { + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance) { this(fluent, instance, false); } - - public V1ResourceRuleBuilder( - V1ResourceRuleFluent fluent, V1ResourceRule instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); fluent.withResourceNames(instance.getResourceNames()); @@ -47,15 +28,13 @@ public V1ResourceRuleBuilder( fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ResourceRuleBuilder(V1ResourceRule instance) { - this(instance, false); + this(instance,false); } - - public V1ResourceRuleBuilder(V1ResourceRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1ResourceRuleBuilder(V1ResourceRule instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroups(instance.getApiGroups()); this.withResourceNames(instance.getResourceNames()); @@ -64,12 +43,10 @@ public V1ResourceRuleBuilder(V1ResourceRule instance, Boolean validationEnabled) this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ResourceRuleFluent fluent; Boolean validationEnabled; - public V1ResourceRule build() { V1ResourceRule buildable = new V1ResourceRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -78,4 +55,5 @@ public V1ResourceRule build() { buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java index f31c70964e..df357ce80a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java @@ -1,141 +1,77 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1ResourceRuleFluent> extends Fluent { - public A addToApiGroups(Integer index, String item); - - public A setToApiGroups(Integer index, String item); - + /** + * Generated + */ +public interface V1ResourceRuleFluent> extends Fluent{ + public A addToApiGroups(Integer index,String item); + public A setToApiGroups(Integer index,String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); - public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); - public String getApiGroup(Integer index); - public String getFirstApiGroup(); - public String getLastApiGroup(); - public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(List apiGroups); - public A withApiGroups(java.lang.String... apiGroups); - public Boolean hasApiGroups(); - - public A addToResourceNames(Integer index, String item); - - public A setToResourceNames(Integer index, String item); - + public A addToResourceNames(Integer index,String item); + public A setToResourceNames(Integer index,String item); public A addToResourceNames(java.lang.String... items); - public A addAllToResourceNames(Collection items); - public A removeFromResourceNames(java.lang.String... items); - public A removeAllFromResourceNames(Collection items); - public List getResourceNames(); - public String getResourceName(Integer index); - public String getFirstResourceName(); - public String getLastResourceName(); - public String getMatchingResourceName(Predicate predicate); - public Boolean hasMatchingResourceName(Predicate predicate); - public A withResourceNames(List resourceNames); - public A withResourceNames(java.lang.String... resourceNames); - public Boolean hasResourceNames(); - - public A addToResources(Integer index, String item); - - public A setToResources(Integer index, String item); - + public A addToResources(Integer index,String item); + public A setToResources(Integer index,String item); public A addToResources(java.lang.String... items); - public A addAllToResources(Collection items); - public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(Collection items); - public List getResources(); - public String getResource(Integer index); - public String getFirstResource(); - public String getLastResource(); - public String getMatchingResource(Predicate predicate); - public Boolean hasMatchingResource(Predicate predicate); - public A withResources(List resources); - public A withResources(java.lang.String... resources); - public Boolean hasResources(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java index a6169ac4ba..84c88987a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ResourceRuleFluentImpl> extends BaseFluent - implements V1ResourceRuleFluent { - public V1ResourceRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ResourceRuleFluentImpl> extends BaseFluent implements V1ResourceRuleFluent{ + public V1ResourceRuleFluentImpl() { + } public V1ResourceRuleFluentImpl(V1ResourceRule instance) { this.withApiGroups(instance.getApiGroups()); @@ -32,516 +26,238 @@ public V1ResourceRuleFluentImpl(V1ResourceRule instance) { this.withResources(instance.getResources()); this.withVerbs(instance.getVerbs()); - } + } private List apiGroups; private List resourceNames; private List resources; private List verbs; - - public A addToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } + public A addToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} this.apiGroups.add(index, item); - return (A) this; + return (A)this; } - - public A setToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.set(index, item); - return (A) this; + public A setToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A removeFromApiGroups(java.lang.String... items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public A removeAllFromApiGroups(Collection items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public List getApiGroups() { return this.apiGroups; } - public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public String getFirstApiGroup() { return this.apiGroups.get(0); } - public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: apiGroups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: apiGroups) { if(predicate.test(item)){ return true;} } return false; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; + if (apiGroups != null) {this.apiGroups = new ArrayList(); for (String item : apiGroups){this.addToApiGroups(item);}} else { this.apiGroups = null;} return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; + if (this.apiGroups != null) {this.apiGroups.clear();} + if (apiGroups != null) {for (String item :apiGroups){ this.addToApiGroups(item);}} return (A) this; } - public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - - public A addToResourceNames(Integer index, String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } + public A addToResourceNames(Integer index,String item) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} this.resourceNames.add(index, item); - return (A) this; + return (A)this; } - - public A setToResourceNames(Integer index, String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.set(index, item); - return (A) this; + public A setToResourceNames(Integer index,String item) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + this.resourceNames.set(index, item); return (A)this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + for (String item : items) {this.resourceNames.add(item);} return (A)this; } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + for (String item : items) {this.resourceNames.add(item);} return (A)this; } - public A removeFromResourceNames(java.lang.String... items) { - for (String item : items) { - if (this.resourceNames != null) { - this.resourceNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resourceNames!= null){ this.resourceNames.remove(item);}} return (A)this; } - public A removeAllFromResourceNames(Collection items) { - for (String item : items) { - if (this.resourceNames != null) { - this.resourceNames.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resourceNames!= null){ this.resourceNames.remove(item);}} return (A)this; } - public List getResourceNames() { return this.resourceNames; } - public String getResourceName(Integer index) { return this.resourceNames.get(index); } - public String getFirstResourceName() { return this.resourceNames.get(0); } - public String getLastResourceName() { return this.resourceNames.get(resourceNames.size() - 1); } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resourceNames) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resourceNames) { if(predicate.test(item)){ return true;} } return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } else { - this.resourceNames = null; - } - return (A) this; + if (resourceNames != null) {this.resourceNames = new ArrayList(); for (String item : resourceNames){this.addToResourceNames(item);}} else { this.resourceNames = null;} return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - } - if (resourceNames != null) { - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } - return (A) this; + if (this.resourceNames != null) {this.resourceNames.clear();} + if (resourceNames != null) {for (String item :resourceNames){ this.addToResourceNames(item);}} return (A) this; } - public Boolean hasResourceNames() { return resourceNames != null && !resourceNames.isEmpty(); } - - public A addToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } + public A addToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} this.resources.add(index, item); - return (A) this; + return (A)this; } - - public A setToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public A setToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A removeFromResources(java.lang.String... items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public A removeAllFromResources(Collection items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public List getResources() { return this.resources; } - public String getResource(Integer index) { return this.resources.get(index); } - public String getFirstResource() { return this.resources.get(0); } - public String getLastResource() { return this.resources.get(resources.size() - 1); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resources) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resources) { if(predicate.test(item)){ return true;} } return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; + if (resources != null) {this.resources = new ArrayList(); for (String item : resources){this.addToResources(item);}} else { this.resources = null;} return (A) this; } - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; + if (this.resources != null) {this.resources.clear();} + if (resources != null) {for (String item :resources){ this.addToResources(item);}} return (A) this; } - public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ResourceRuleFluentImpl that = (V1ResourceRuleFluentImpl) o; - if (apiGroups != null ? !apiGroups.equals(that.apiGroups) : that.apiGroups != null) - return false; - if (resourceNames != null - ? !resourceNames.equals(that.resourceNames) - : that.resourceNames != null) return false; - if (resources != null ? !resources.equals(that.resources) : that.resources != null) - return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (apiGroups != null ? !apiGroups.equals(that.apiGroups) :that.apiGroups != null) return false; + if (resourceNames != null ? !resourceNames.equals(that.resourceNames) :that.resourceNames != null) return false; + if (resources != null ? !resources.equals(that.resources) :that.resources != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiGroups, resourceNames, resources, verbs, super.hashCode()); + return java.util.Objects.hash(apiGroups, resourceNames, resources, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { - sb.append("apiGroups:"); - sb.append(apiGroups + ","); - } - if (resourceNames != null && !resourceNames.isEmpty()) { - sb.append("resourceNames:"); - sb.append(resourceNames + ","); - } - if (resources != null && !resources.isEmpty()) { - sb.append("resources:"); - sb.append(resources + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java index 6e76aa0a69..3e68a90223 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RoleBindingBuilder extends V1RoleBindingFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RoleBindingBuilder extends V1RoleBindingFluentImpl implements VisitableBuilder{ public V1RoleBindingBuilder() { this(false); } - public V1RoleBindingBuilder(Boolean validationEnabled) { this(new V1RoleBinding(), validationEnabled); } - public V1RoleBindingBuilder(V1RoleBindingFluent fluent) { this(fluent, false); } - - public V1RoleBindingBuilder(V1RoleBindingFluent fluent, Boolean validationEnabled) { + public V1RoleBindingBuilder(V1RoleBindingFluent fluent,Boolean validationEnabled) { this(fluent, new V1RoleBinding(), validationEnabled); } - - public V1RoleBindingBuilder(V1RoleBindingFluent fluent, V1RoleBinding instance) { + public V1RoleBindingBuilder(V1RoleBindingFluent fluent,V1RoleBinding instance) { this(fluent, instance, false); } - - public V1RoleBindingBuilder( - V1RoleBindingFluent fluent, V1RoleBinding instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RoleBindingBuilder(V1RoleBindingFluent fluent,V1RoleBinding instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1RoleBindingBuilder( fluent.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RoleBindingBuilder(V1RoleBinding instance) { - this(instance, false); + this(instance,false); } - - public V1RoleBindingBuilder(V1RoleBinding instance, Boolean validationEnabled) { - this.fluent = this; + public V1RoleBindingBuilder(V1RoleBinding instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1RoleBindingBuilder(V1RoleBinding instance, Boolean validationEnabled) { this.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RoleBindingFluent fluent; Boolean validationEnabled; - public V1RoleBinding build() { V1RoleBinding buildable = new V1RoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1RoleBinding build() { buildable.setSubjects(fluent.getSubjects()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java index e2b904bc51..bc12eeb293 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java @@ -1,158 +1,102 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RoleBindingFluent> extends Fluent { + /** + * Generated + */ +public interface V1RoleBindingFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1RoleBindingFluent.MetadataNested withNewMetadata(); - public V1RoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1RoleBindingFluent.MetadataNested editMetadata(); - public V1RoleBindingFluent.MetadataNested editOrNewMetadata(); - public V1RoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildRoleRef instead. - * * @return The buildable object. */ @Deprecated public V1RoleRef getRoleRef(); - public V1RoleRef buildRoleRef(); - public A withRoleRef(V1RoleRef roleRef); - public Boolean hasRoleRef(); - public V1RoleBindingFluent.RoleRefNested withNewRoleRef(); - public V1RoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item); - public V1RoleBindingFluent.RoleRefNested editRoleRef(); - public V1RoleBindingFluent.RoleRefNested editOrNewRoleRef(); - public V1RoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item); - - public A addToSubjects(Integer index, V1Subject item); - - public A setToSubjects(Integer index, V1Subject item); - + public A addToSubjects(Integer index,V1Subject item); + public A setToSubjects(Integer index,V1Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A addAllToSubjects(Collection items); - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A removeAllFromSubjects(Collection items); - public A removeMatchingFromSubjects(Predicate predicate); - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects(); - public List buildSubjects(); - public V1Subject buildSubject(Integer index); - public V1Subject buildFirstSubject(); - public V1Subject buildLastSubject(); - public V1Subject buildMatchingSubject(Predicate predicate); - public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects(List subjects); - public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects); - public Boolean hasSubjects(); - public V1RoleBindingFluent.SubjectsNested addNewSubject(); - public V1RoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item); - - public V1RoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index, V1Subject item); - + public V1RoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index,V1Subject item); public V1RoleBindingFluent.SubjectsNested editSubject(Integer index); - public V1RoleBindingFluent.SubjectsNested editFirstSubject(); - public V1RoleBindingFluent.SubjectsNested editLastSubject(); - - public V1RoleBindingFluent.SubjectsNested editMatchingSubject( - Predicate predicate); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1RoleBindingFluent.SubjectsNested editMatchingSubject(Predicate predicate); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface RoleRefNested - extends Nested, V1RoleRefFluent> { + public interface RoleRefNested extends Nested,V1RoleRefFluent>{ public N and(); - public N endRoleRef(); + } - - public interface SubjectsNested - extends Nested, V1SubjectFluent> { + public interface SubjectsNested extends Nested,V1SubjectFluent>{ public N and(); - public N endSubject(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java index 27e9d99525..1accbdc2cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RoleBindingFluentImpl> extends BaseFluent - implements V1RoleBindingFluent { - public V1RoleBindingFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RoleBindingFluentImpl> extends BaseFluent implements V1RoleBindingFluent{ + public V1RoleBindingFluentImpl() { + } public V1RoleBindingFluentImpl(V1RoleBinding instance) { this.withApiVersion(instance.getApiVersion()); @@ -36,217 +32,124 @@ public V1RoleBindingFluentImpl(V1RoleBinding instance) { this.withRoleRef(instance.getRoleRef()); this.withSubjects(instance.getSubjects()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; private ArrayList subjects; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1RoleBindingFluent.MetadataNested withNewMetadata() { return new V1RoleBindingFluentImpl.MetadataNestedImpl(); } - public V1RoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1RoleBindingFluentImpl.MetadataNestedImpl(item); } - public V1RoleBindingFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1RoleBindingFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1RoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildRoleRef instead. - * * @return The buildable object. */ @Deprecated public V1RoleRef getRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; + return this.roleRef!=null ?this.roleRef.build():null; } - public V1RoleRef buildRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; + return this.roleRef!=null ?this.roleRef.build():null; } - public A withRoleRef(V1RoleRef roleRef) { _visitables.get("roleRef").remove(this.roleRef); - if (roleRef != null) { - this.roleRef = new V1RoleRefBuilder(roleRef); - _visitables.get("roleRef").add(this.roleRef); - } else { - this.roleRef = null; - _visitables.get("roleRef").remove(this.roleRef); - } - return (A) this; + if (roleRef!=null){ this.roleRef= new V1RoleRefBuilder(roleRef); _visitables.get("roleRef").add(this.roleRef);} else { this.roleRef = null; _visitables.get("roleRef").remove(this.roleRef); } return (A) this; } - public Boolean hasRoleRef() { return this.roleRef != null; } - public V1RoleBindingFluent.RoleRefNested withNewRoleRef() { return new V1RoleBindingFluentImpl.RoleRefNestedImpl(); } - public V1RoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item) { return new V1RoleBindingFluentImpl.RoleRefNestedImpl(item); } - public V1RoleBindingFluent.RoleRefNested editRoleRef() { return withNewRoleRefLike(getRoleRef()); } - public V1RoleBindingFluent.RoleRefNested editOrNewRoleRef() { - return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : new V1RoleRefBuilder().build()); + return withNewRoleRefLike(getRoleRef() != null ? getRoleRef(): new V1RoleRefBuilder().build()); } - public V1RoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : item); + return withNewRoleRefLike(getRoleRef() != null ? getRoleRef(): item); } - - public A addToSubjects(Integer index, V1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables - .get("subjects") - .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); - this.subjects.add(index >= 0 ? index : subjects.size(), builder); - return (A) this; + public A addToSubjects(Integer index,V1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(index >= 0 ? index : _visitables.get("subjects").size(), builder);this.subjects.add(index >= 0 ? index : subjects.size(), builder); return (A)this; } - - public A setToSubjects(Integer index, V1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } + public A setToSubjects(Integer index,V1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} V1SubjectBuilder builder = new V1SubjectBuilder(item); - if (index < 0 || index >= _visitables.get("subjects").size()) { - _visitables.get("subjects").add(builder); - } else { - _visitables.get("subjects").set(index, builder); - } - if (index < 0 || index >= subjects.size()) { - subjects.add(builder); - } else { - subjects.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { _visitables.get("subjects").set(index, builder);} + if (index < 0 || index >= subjects.size()) { subjects.add(builder); } else { subjects.set(index, builder);} + return (A)this; } - public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A addAllToSubjects(Collection items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeAllFromSubjects(Collection items) { - for (V1Subject item : items) { - V1SubjectBuilder builder = new V1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; final Iterator each = subjects.iterator(); @@ -258,234 +161,151 @@ public A removeMatchingFromSubjects(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects() { return subjects != null ? build(subjects) : null; } - public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public V1Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public V1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public V1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public V1Subject buildMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1SubjectBuilder item: subjects) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1SubjectBuilder item: subjects) { if(predicate.test(item)){ return true;} } return false; } - public A withSubjects(List subjects) { - if (this.subjects != null) { - _visitables.get("subjects").removeAll(this.subjects); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (V1Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; + if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects);} + if (subjects != null) {this.subjects = new ArrayList(); for (V1Subject item : subjects){this.addToSubjects(item);}} else { this.subjects = null;} return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - } - if (subjects != null) { - for (V1Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; + if (this.subjects != null) {this.subjects.clear();} + if (subjects != null) {for (V1Subject item :subjects){ this.addToSubjects(item);}} return (A) this; } - public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } - public V1RoleBindingFluent.SubjectsNested addNewSubject() { return new V1RoleBindingFluentImpl.SubjectsNestedImpl(); } - public V1RoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item) { return new V1RoleBindingFluentImpl.SubjectsNestedImpl(-1, item); } - - public V1RoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index, V1Subject item) { + public V1RoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index,V1Subject item) { return new V1RoleBindingFluentImpl.SubjectsNestedImpl(index, item); } - public V1RoleBindingFluent.SubjectsNested editSubject(Integer index) { - if (subjects.size() <= index) - throw new RuntimeException("Can't edit subjects. Index exceeds size."); + if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public V1RoleBindingFluent.SubjectsNested editFirstSubject() { - if (subjects.size() == 0) - throw new RuntimeException("Can't edit first subjects. The list is empty."); + if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public V1RoleBindingFluent.SubjectsNested editLastSubject() { int index = subjects.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); return setNewSubjectLike(index, buildSubject(index)); } - - public V1RoleBindingFluent.SubjectsNested editMatchingSubject( - Predicate predicate) { + public V1RoleBindingFluent.SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i = 0; i < subjects.size(); i++) { - if (predicate.test(subjects.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1ObjectMetaFluentImpl> - implements V1RoleBindingFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1RoleBindingFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1RoleBindingFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class RoleRefNestedImpl extends V1RoleRefFluentImpl> - implements V1RoleBindingFluent.RoleRefNested, Nested { + class RoleRefNestedImpl extends V1RoleRefFluentImpl> implements V1RoleBindingFluent.RoleRefNested,Nested{ RoleRefNestedImpl(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } - RoleRefNestedImpl() { this.builder = new V1RoleRefBuilder(this); } - V1RoleRefBuilder builder; - public N and() { return (N) V1RoleBindingFluentImpl.this.withRoleRef(builder.build()); } - public N endRoleRef() { return and(); } + } - - class SubjectsNestedImpl extends V1SubjectFluentImpl> - implements V1RoleBindingFluent.SubjectsNested, Nested { - SubjectsNestedImpl(Integer index, V1Subject item) { + class SubjectsNestedImpl extends V1SubjectFluentImpl> implements V1RoleBindingFluent.SubjectsNested,Nested{ + SubjectsNestedImpl(Integer index,V1Subject item) { this.index = index; this.builder = new V1SubjectBuilder(this, item); } - SubjectsNestedImpl() { this.index = -1; this.builder = new V1SubjectBuilder(this); } - V1SubjectBuilder builder; Integer index; - public N and() { - return (N) V1RoleBindingFluentImpl.this.setToSubjects(index, builder.build()); + return (N) V1RoleBindingFluentImpl.this.setToSubjects(index,builder.build()); } - public N endSubject() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java index 0d3a56f184..45cc70519b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RoleBindingListBuilder extends V1RoleBindingListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RoleBindingListBuilder extends V1RoleBindingListFluentImpl implements VisitableBuilder{ public V1RoleBindingListBuilder() { this(false); } - public V1RoleBindingListBuilder(Boolean validationEnabled) { this(new V1RoleBindingList(), validationEnabled); } - public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent) { this(fluent, false); } - - public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent, Boolean validationEnabled) { + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,Boolean validationEnabled) { this(fluent, new V1RoleBindingList(), validationEnabled); } - - public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent, V1RoleBindingList instance) { + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,V1RoleBindingList instance) { this(fluent, instance, false); } - - public V1RoleBindingListBuilder( - V1RoleBindingListFluent fluent, V1RoleBindingList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,V1RoleBindingList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1RoleBindingListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RoleBindingListBuilder(V1RoleBindingList instance) { - this(instance, false); + this(instance,false); } - - public V1RoleBindingListBuilder(V1RoleBindingList instance, Boolean validationEnabled) { - this.fluent = this; + public V1RoleBindingListBuilder(V1RoleBindingList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1RoleBindingListBuilder(V1RoleBindingList instance, Boolean validationEn this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RoleBindingListFluent fluent; Boolean validationEnabled; - public V1RoleBindingList build() { V1RoleBindingList buildable = new V1RoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1RoleBindingList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java index a52799fdda..ec4dce7777 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RoleBindingListFluent> extends Fluent { + /** + * Generated + */ +public interface V1RoleBindingListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1RoleBinding item); - - public A setToItems(Integer index, V1RoleBinding item); - + public A addToItems(Integer index,V1RoleBinding item); + public A setToItems(Integer index,V1RoleBinding item); public A addToItems(io.kubernetes.client.openapi.models.V1RoleBinding... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1RoleBinding... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1RoleBinding buildItem(Integer index); - public V1RoleBinding buildFirstItem(); - public V1RoleBinding buildLastItem(); - public V1RoleBinding buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items); - public Boolean hasItems(); - public V1RoleBindingListFluent.ItemsNested addNewItem(); - public V1RoleBindingListFluent.ItemsNested addNewItemLike(V1RoleBinding item); - - public V1RoleBindingListFluent.ItemsNested setNewItemLike(Integer index, V1RoleBinding item); - + public V1RoleBindingListFluent.ItemsNested setNewItemLike(Integer index,V1RoleBinding item); public V1RoleBindingListFluent.ItemsNested editItem(Integer index); - public V1RoleBindingListFluent.ItemsNested editFirstItem(); - public V1RoleBindingListFluent.ItemsNested editLastItem(); - - public V1RoleBindingListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1RoleBindingListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1RoleBindingListFluent.MetadataNested withNewMetadata(); - public V1RoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1RoleBindingListFluent.MetadataNested editMetadata(); - public V1RoleBindingListFluent.MetadataNested editOrNewMetadata(); - public V1RoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1RoleBindingFluent> { + public interface ItemsNested extends Nested,V1RoleBindingFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java index a2efedfa88..2e3abcb68f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RoleBindingListFluentImpl> extends BaseFluent - implements V1RoleBindingListFluent { - public V1RoleBindingListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RoleBindingListFluentImpl> extends BaseFluent implements V1RoleBindingListFluent{ + public V1RoleBindingListFluentImpl() { + } public V1RoleBindingListFluentImpl(V1RoleBindingList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1RoleBindingListFluentImpl(V1RoleBindingList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1RoleBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1RoleBinding item) { + if (this.items == null) {this.items = new ArrayList();} + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1RoleBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1RoleBinding item) { + if (this.items == null) {this.items = new ArrayList();} V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,271 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1RoleBinding buildItem(Integer index) { return this.items.get(index).build(); } - public V1RoleBinding buildFirstItem() { return this.items.get(0).build(); } - public V1RoleBinding buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1RoleBinding buildMatchingItem(Predicate predicate) { - for (V1RoleBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1RoleBindingBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1RoleBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1RoleBindingBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1RoleBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1RoleBinding item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1RoleBinding item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1RoleBinding item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1RoleBindingListFluent.ItemsNested addNewItem() { return new V1RoleBindingListFluentImpl.ItemsNestedImpl(); } - public V1RoleBindingListFluent.ItemsNested addNewItemLike(V1RoleBinding item) { return new V1RoleBindingListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1RoleBindingListFluent.ItemsNested setNewItemLike(Integer index, V1RoleBinding item) { + public V1RoleBindingListFluent.ItemsNested setNewItemLike(Integer index,V1RoleBinding item) { return new V1RoleBindingListFluentImpl.ItemsNestedImpl(index, item); } - public V1RoleBindingListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1RoleBindingListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1RoleBindingListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1RoleBindingListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1RoleBindingListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1RoleBindingListFluentImpl.MetadataNestedImpl(); } - public V1RoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1RoleBindingListFluentImpl.MetadataNestedImpl(item); } - public V1RoleBindingListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1RoleBindingListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1RoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RoleBindingListFluentImpl that = (V1RoleBindingListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1RoleBindingFluentImpl> - implements V1RoleBindingListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1RoleBinding item) { + class ItemsNestedImpl extends V1RoleBindingFluentImpl> implements V1RoleBindingListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1RoleBinding item) { this.index = index; this.builder = new V1RoleBindingBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1RoleBindingBuilder(this); } - V1RoleBindingBuilder builder; Integer index; - public N and() { - return (N) V1RoleBindingListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1RoleBindingListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1RoleBindingListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1RoleBindingListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1RoleBindingListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java index 5257d28558..d23c74e868 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RoleBuilder extends V1RoleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RoleBuilder extends V1RoleFluentImpl implements VisitableBuilder{ public V1RoleBuilder() { this(false); } - public V1RoleBuilder(Boolean validationEnabled) { this(new V1Role(), validationEnabled); } - public V1RoleBuilder(V1RoleFluent fluent) { this(fluent, false); } - - public V1RoleBuilder(V1RoleFluent fluent, Boolean validationEnabled) { + public V1RoleBuilder(V1RoleFluent fluent,Boolean validationEnabled) { this(fluent, new V1Role(), validationEnabled); } - - public V1RoleBuilder(V1RoleFluent fluent, V1Role instance) { + public V1RoleBuilder(V1RoleFluent fluent,V1Role instance) { this(fluent, instance, false); } - - public V1RoleBuilder(V1RoleFluent fluent, V1Role instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RoleBuilder(V1RoleFluent fluent,V1Role instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -46,15 +28,13 @@ public V1RoleBuilder(V1RoleFluent fluent, V1Role instance, Boolean validation fluent.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RoleBuilder(V1Role instance) { - this(instance, false); + this(instance,false); } - - public V1RoleBuilder(V1Role instance, Boolean validationEnabled) { - this.fluent = this; + public V1RoleBuilder(V1Role instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -63,12 +43,10 @@ public V1RoleBuilder(V1Role instance, Boolean validationEnabled) { this.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RoleFluent fluent; Boolean validationEnabled; - public V1Role build() { V1Role buildable = new V1Role(); buildable.setApiVersion(fluent.getApiVersion()); @@ -77,4 +55,5 @@ public V1Role build() { buildable.setRules(fluent.getRules()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java index 77b35554f7..97fb6221bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RoleFluent> extends Fluent { + /** + * Generated + */ +public interface V1RoleFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1RoleFluent.MetadataNested withNewMetadata(); - public V1RoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1RoleFluent.MetadataNested editMetadata(); - public V1RoleFluent.MetadataNested editOrNewMetadata(); - public V1RoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToRules(Integer index, V1PolicyRule item); - - public A setToRules(Integer index, V1PolicyRule item); - + public A addToRules(Integer index,V1PolicyRule item); + public A setToRules(Integer index,V1PolicyRule item); public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A addAllToRules(Collection items); - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1PolicyRule buildRule(Integer index); - public V1PolicyRule buildFirstRule(); - public V1PolicyRule buildLastRule(); - public V1PolicyRule buildMatchingRule(Predicate predicate); - public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules); - public Boolean hasRules(); - public V1RoleFluent.RulesNested addNewRule(); - public V1RoleFluent.RulesNested addNewRuleLike(V1PolicyRule item); - - public V1RoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item); - + public V1RoleFluent.RulesNested setNewRuleLike(Integer index,V1PolicyRule item); public V1RoleFluent.RulesNested editRule(Integer index); - public V1RoleFluent.RulesNested editFirstRule(); - public V1RoleFluent.RulesNested editLastRule(); - public V1RoleFluent.RulesNested editMatchingRule(Predicate predicate); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface RulesNested - extends Nested, V1PolicyRuleFluent> { + public interface RulesNested extends Nested,V1PolicyRuleFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java index b3b35fc3e6..4fce862a83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RoleFluentImpl> extends BaseFluent - implements V1RoleFluent { - public V1RoleFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RoleFluentImpl> extends BaseFluent implements V1RoleFluent{ + public V1RoleFluentImpl() { + } public V1RoleFluentImpl(V1Role instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,164 +30,89 @@ public V1RoleFluentImpl(V1Role instance) { this.withMetadata(instance.getMetadata()); this.withRules(instance.getRules()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList rules; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1RoleFluent.MetadataNested withNewMetadata() { return new V1RoleFluentImpl.MetadataNestedImpl(); } - public V1RoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1RoleFluentImpl.MetadataNestedImpl(item); } - public V1RoleFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1RoleFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1RoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToRules(Integer index, V1PolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1PolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1PolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1PolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -203,205 +124,133 @@ public A removeMatchingFromRules(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1PolicyRule buildRule(Integer index) { return this.rules.get(index).build(); } - public V1PolicyRule buildFirstRule() { return this.rules.get(0).build(); } - public V1PolicyRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public V1PolicyRule buildMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1PolicyRuleBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1PolicyRuleBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1PolicyRule item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1PolicyRule item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1RoleFluent.RulesNested addNewRule() { return new V1RoleFluentImpl.RulesNestedImpl(); } - public V1RoleFluent.RulesNested addNewRuleLike(V1PolicyRule item) { return new V1RoleFluentImpl.RulesNestedImpl(-1, item); } - - public V1RoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item) { + public V1RoleFluent.RulesNested setNewRuleLike(Integer index,V1PolicyRule item) { return new V1RoleFluentImpl.RulesNestedImpl(index, item); } - public V1RoleFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1RoleFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1RoleFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - public V1RoleFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1ObjectMetaFluentImpl> - implements V1RoleFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1RoleFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1RoleFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class RulesNestedImpl extends V1PolicyRuleFluentImpl> - implements V1RoleFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1PolicyRule item) { + class RulesNestedImpl extends V1PolicyRuleFluentImpl> implements V1RoleFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1PolicyRuleBuilder(this); } - V1PolicyRuleBuilder builder; Integer index; - public N and() { - return (N) V1RoleFluentImpl.this.setToRules(index, builder.build()); + return (N) V1RoleFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java index 51847b0f11..6c73676f8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RoleListBuilder extends V1RoleListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RoleListBuilder extends V1RoleListFluentImpl implements VisitableBuilder{ public V1RoleListBuilder() { this(false); } - public V1RoleListBuilder(Boolean validationEnabled) { this(new V1RoleList(), validationEnabled); } - public V1RoleListBuilder(V1RoleListFluent fluent) { this(fluent, false); } - - public V1RoleListBuilder(V1RoleListFluent fluent, Boolean validationEnabled) { + public V1RoleListBuilder(V1RoleListFluent fluent,Boolean validationEnabled) { this(fluent, new V1RoleList(), validationEnabled); } - - public V1RoleListBuilder(V1RoleListFluent fluent, V1RoleList instance) { + public V1RoleListBuilder(V1RoleListFluent fluent,V1RoleList instance) { this(fluent, instance, false); } - - public V1RoleListBuilder( - V1RoleListFluent fluent, V1RoleList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RoleListBuilder(V1RoleListFluent fluent,V1RoleList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1RoleListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RoleListBuilder(V1RoleList instance) { - this(instance, false); + this(instance,false); } - - public V1RoleListBuilder(V1RoleList instance, Boolean validationEnabled) { - this.fluent = this; + public V1RoleListBuilder(V1RoleList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1RoleListBuilder(V1RoleList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RoleListFluent fluent; Boolean validationEnabled; - public V1RoleList build() { V1RoleList buildable = new V1RoleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1RoleList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java index fbe6e0c3e7..9d466e54a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java @@ -1,125 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RoleListFluent> extends Fluent { + /** + * Generated + */ +public interface V1RoleListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Role item); - - public A setToItems(Integer index, V1Role item); - + public A addToItems(Integer index,V1Role item); + public A setToItems(Integer index,V1Role item); public A addToItems(io.kubernetes.client.openapi.models.V1Role... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Role buildItem(Integer index); - public V1Role buildFirstItem(); - public V1Role buildLastItem(); - public V1Role buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Role... items); - public Boolean hasItems(); - public V1RoleListFluent.ItemsNested addNewItem(); - public V1RoleListFluent.ItemsNested addNewItemLike(V1Role item); - - public V1RoleListFluent.ItemsNested setNewItemLike(Integer index, V1Role item); - + public V1RoleListFluent.ItemsNested setNewItemLike(Integer index,V1Role item); public V1RoleListFluent.ItemsNested editItem(Integer index); - public V1RoleListFluent.ItemsNested editFirstItem(); - public V1RoleListFluent.ItemsNested editLastItem(); - public V1RoleListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1RoleListFluent.MetadataNested withNewMetadata(); - public V1RoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1RoleListFluent.MetadataNested editMetadata(); - public V1RoleListFluent.MetadataNested editOrNewMetadata(); - public V1RoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested extends Nested, V1RoleFluent> { + public interface ItemsNested extends Nested,V1RoleFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java index 10429b5c91..2dcd4b2967 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RoleListFluentImpl> extends BaseFluent - implements V1RoleListFluent { - public V1RoleListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RoleListFluentImpl> extends BaseFluent implements V1RoleListFluent{ + public V1RoleListFluentImpl() { + } public V1RoleListFluentImpl(V1RoleList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1RoleListFluentImpl(V1RoleList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Role item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Role item) { + if (this.items == null) {this.items = new ArrayList();} + V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Role item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Role item) { + if (this.items == null) {this.items = new ArrayList();} V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Role... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items) { - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,269 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Role buildItem(Integer index) { return this.items.get(index).build(); } - public V1Role buildFirstItem() { return this.items.get(0).build(); } - public V1Role buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Role buildMatchingItem(Predicate predicate) { - for (V1RoleBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1RoleBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1RoleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1RoleBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Role item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Role item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Role... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Role item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Role item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1RoleListFluent.ItemsNested addNewItem() { return new V1RoleListFluentImpl.ItemsNestedImpl(); } - public V1RoleListFluent.ItemsNested addNewItemLike(V1Role item) { return new V1RoleListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1RoleListFluent.ItemsNested setNewItemLike(Integer index, V1Role item) { + public V1RoleListFluent.ItemsNested setNewItemLike(Integer index,V1Role item) { return new V1RoleListFluentImpl.ItemsNestedImpl(index, item); } - public V1RoleListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1RoleListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1RoleListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - public V1RoleListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1RoleListFluentImpl.MetadataNestedImpl(); } - public V1RoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1RoleListFluentImpl.MetadataNestedImpl(item); } - public V1RoleListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1RoleListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1RoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RoleListFluentImpl that = (V1RoleListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1RoleFluentImpl> - implements V1RoleListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Role item) { + class ItemsNestedImpl extends V1RoleFluentImpl> implements V1RoleListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Role item) { this.index = index; this.builder = new V1RoleBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1RoleBuilder(this); } - V1RoleBuilder builder; Integer index; - public N and() { - return (N) V1RoleListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1RoleListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1RoleListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1RoleListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1RoleListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java index c384d629b7..d0a578b45d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1RoleRefBuilder extends V1RoleRefFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RoleRefBuilder extends V1RoleRefFluentImpl implements VisitableBuilder{ public V1RoleRefBuilder() { this(false); } - public V1RoleRefBuilder(Boolean validationEnabled) { this(new V1RoleRef(), validationEnabled); } - public V1RoleRefBuilder(V1RoleRefFluent fluent) { this(fluent, false); } - - public V1RoleRefBuilder(V1RoleRefFluent fluent, Boolean validationEnabled) { + public V1RoleRefBuilder(V1RoleRefFluent fluent,Boolean validationEnabled) { this(fluent, new V1RoleRef(), validationEnabled); } - - public V1RoleRefBuilder(V1RoleRefFluent fluent, V1RoleRef instance) { + public V1RoleRefBuilder(V1RoleRefFluent fluent,V1RoleRef instance) { this(fluent, instance, false); } - - public V1RoleRefBuilder( - V1RoleRefFluent fluent, V1RoleRef instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RoleRefBuilder(V1RoleRefFluent fluent,V1RoleRef instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); fluent.withKind(instance.getKind()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RoleRefBuilder(V1RoleRef instance) { - this(instance, false); + this(instance,false); } - - public V1RoleRefBuilder(V1RoleRef instance, Boolean validationEnabled) { - this.fluent = this; + public V1RoleRefBuilder(V1RoleRef instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RoleRefFluent fluent; Boolean validationEnabled; - public V1RoleRef build() { V1RoleRef buildable = new V1RoleRef(); buildable.setApiGroup(fluent.getApiGroup()); @@ -73,4 +50,5 @@ public V1RoleRef build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java index a18f842be8..482164bbb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java @@ -1,36 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1RoleRefFluent> extends Fluent { + /** + * Generated + */ +public interface V1RoleRefFluent> extends Fluent{ public String getApiGroup(); - public A withApiGroup(String apiGroup); - public Boolean hasApiGroup(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java index f2d2eafa82..18c1e0d225 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java @@ -1,106 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RoleRefFluentImpl> extends BaseFluent - implements V1RoleRefFluent { - public V1RoleRefFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RoleRefFluentImpl> extends BaseFluent implements V1RoleRefFluent{ + public V1RoleRefFluentImpl() { + } public V1RoleRefFluentImpl(V1RoleRef instance) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); this.withName(instance.getName()); - } + } private String apiGroup; private String kind; private String name; - public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + this.apiGroup=apiGroup; return (A) this; } - public Boolean hasApiGroup() { return this.apiGroup != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RoleRefFluentImpl that = (V1RoleRefFluentImpl) o; - if (apiGroup != null ? !apiGroup.equals(that.apiGroup) : that.apiGroup != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (apiGroup != null ? !apiGroup.equals(that.apiGroup) :that.apiGroup != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); + return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { - sb.append("apiGroup:"); - sb.append(apiGroup + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java index 0caa0387c5..e362a96a89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1RollingUpdateDaemonSetBuilder - extends V1RollingUpdateDaemonSetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RollingUpdateDaemonSetBuilder extends V1RollingUpdateDaemonSetFluentImpl implements VisitableBuilder{ public V1RollingUpdateDaemonSetBuilder() { this(false); } - public V1RollingUpdateDaemonSetBuilder(Boolean validationEnabled) { this(new V1RollingUpdateDaemonSet(), validationEnabled); } - public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent) { this(fluent, false); } - - public V1RollingUpdateDaemonSetBuilder( - V1RollingUpdateDaemonSetFluent fluent, Boolean validationEnabled) { + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,Boolean validationEnabled) { this(fluent, new V1RollingUpdateDaemonSet(), validationEnabled); } - - public V1RollingUpdateDaemonSetBuilder( - V1RollingUpdateDaemonSetFluent fluent, V1RollingUpdateDaemonSet instance) { + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,V1RollingUpdateDaemonSet instance) { this(fluent, instance, false); } - - public V1RollingUpdateDaemonSetBuilder( - V1RollingUpdateDaemonSetFluent fluent, - V1RollingUpdateDaemonSet instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,V1RollingUpdateDaemonSet instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMaxSurge(instance.getMaxSurge()); fluent.withMaxUnavailable(instance.getMaxUnavailable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSet instance) { - this(instance, false); + this(instance,false); } - - public V1RollingUpdateDaemonSetBuilder( - V1RollingUpdateDaemonSet instance, Boolean validationEnabled) { - this.fluent = this; + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSet instance,Boolean validationEnabled) { + this.fluent = this; this.withMaxSurge(instance.getMaxSurge()); this.withMaxUnavailable(instance.getMaxUnavailable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RollingUpdateDaemonSetFluent fluent; Boolean validationEnabled; - public V1RollingUpdateDaemonSet build() { V1RollingUpdateDaemonSet buildable = new V1RollingUpdateDaemonSet(); buildable.setMaxSurge(fluent.getMaxSurge()); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java index 44b02dd259..ab2225cffb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java @@ -1,40 +1,23 @@ -/* -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.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1RollingUpdateDaemonSetFluent> - extends Fluent { + /** + * Generated + */ +public interface V1RollingUpdateDaemonSetFluent> extends Fluent{ public IntOrString getMaxSurge(); - public A withMaxSurge(IntOrString maxSurge); - public Boolean hasMaxSurge(); - public A withNewMaxSurge(int value); - public A withNewMaxSurge(String value); - public IntOrString getMaxUnavailable(); - public A withMaxUnavailable(IntOrString maxUnavailable); - public Boolean hasMaxUnavailable(); - public A withNewMaxUnavailable(int value); - public A withNewMaxUnavailable(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluentImpl.java index fcc23ff070..caa87bf536 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluentImpl.java @@ -1,104 +1,75 @@ -/* -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.custom.IntOrString; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RollingUpdateDaemonSetFluentImpl> - extends BaseFluent implements V1RollingUpdateDaemonSetFluent { - public V1RollingUpdateDaemonSetFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RollingUpdateDaemonSetFluentImpl> extends BaseFluent implements V1RollingUpdateDaemonSetFluent{ + public V1RollingUpdateDaemonSetFluentImpl() { + } public V1RollingUpdateDaemonSetFluentImpl(V1RollingUpdateDaemonSet instance) { this.withMaxSurge(instance.getMaxSurge()); this.withMaxUnavailable(instance.getMaxUnavailable()); - } + } private IntOrString maxSurge; private IntOrString maxUnavailable; - public IntOrString getMaxSurge() { return this.maxSurge; } - public A withMaxSurge(IntOrString maxSurge) { - this.maxSurge = maxSurge; - return (A) this; + this.maxSurge=maxSurge; return (A) this; } - public Boolean hasMaxSurge() { return this.maxSurge != null; } - public A withNewMaxSurge(int value) { - return (A) withMaxSurge(new IntOrString(value)); + return (A)withMaxSurge(new IntOrString(value)); } - public A withNewMaxSurge(String value) { - return (A) withMaxSurge(new IntOrString(value)); + return (A)withMaxSurge(new IntOrString(value)); } - public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; + this.maxUnavailable=maxUnavailable; return (A) this; } - public Boolean hasMaxUnavailable() { return this.maxUnavailable != null; } - public A withNewMaxUnavailable(int value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public A withNewMaxUnavailable(String value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RollingUpdateDaemonSetFluentImpl that = (V1RollingUpdateDaemonSetFluentImpl) o; - if (maxSurge != null ? !maxSurge.equals(that.maxSurge) : that.maxSurge != null) return false; - if (maxUnavailable != null - ? !maxUnavailable.equals(that.maxUnavailable) - : that.maxUnavailable != null) return false; + if (maxSurge != null ? !maxSurge.equals(that.maxSurge) :that.maxSurge != null) return false; + if (maxUnavailable != null ? !maxUnavailable.equals(that.maxUnavailable) :that.maxUnavailable != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); + return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxSurge != null) { - sb.append("maxSurge:"); - sb.append(maxSurge + ","); - } - if (maxUnavailable != null) { - sb.append("maxUnavailable:"); - sb.append(maxUnavailable); - } + if (maxSurge != null) { sb.append("maxSurge:"); sb.append(maxSurge + ","); } + if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java index 126a852305..3ee98ff85e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1RollingUpdateDeploymentBuilder - extends V1RollingUpdateDeploymentFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RollingUpdateDeploymentBuilder extends V1RollingUpdateDeploymentFluentImpl implements VisitableBuilder{ public V1RollingUpdateDeploymentBuilder() { this(false); } - public V1RollingUpdateDeploymentBuilder(Boolean validationEnabled) { this(new V1RollingUpdateDeployment(), validationEnabled); } - public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent) { this(fluent, false); } - - public V1RollingUpdateDeploymentBuilder( - V1RollingUpdateDeploymentFluent fluent, Boolean validationEnabled) { + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,Boolean validationEnabled) { this(fluent, new V1RollingUpdateDeployment(), validationEnabled); } - - public V1RollingUpdateDeploymentBuilder( - V1RollingUpdateDeploymentFluent fluent, V1RollingUpdateDeployment instance) { + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,V1RollingUpdateDeployment instance) { this(fluent, instance, false); } - - public V1RollingUpdateDeploymentBuilder( - V1RollingUpdateDeploymentFluent fluent, - V1RollingUpdateDeployment instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,V1RollingUpdateDeployment instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMaxSurge(instance.getMaxSurge()); fluent.withMaxUnavailable(instance.getMaxUnavailable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeployment instance) { - this(instance, false); + this(instance,false); } - - public V1RollingUpdateDeploymentBuilder( - V1RollingUpdateDeployment instance, Boolean validationEnabled) { - this.fluent = this; + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeployment instance,Boolean validationEnabled) { + this.fluent = this; this.withMaxSurge(instance.getMaxSurge()); this.withMaxUnavailable(instance.getMaxUnavailable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RollingUpdateDeploymentFluent fluent; Boolean validationEnabled; - public V1RollingUpdateDeployment build() { V1RollingUpdateDeployment buildable = new V1RollingUpdateDeployment(); buildable.setMaxSurge(fluent.getMaxSurge()); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java index d1f9250c6e..cce3efd00a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java @@ -1,40 +1,23 @@ -/* -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.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1RollingUpdateDeploymentFluent> - extends Fluent { + /** + * Generated + */ +public interface V1RollingUpdateDeploymentFluent> extends Fluent{ public IntOrString getMaxSurge(); - public A withMaxSurge(IntOrString maxSurge); - public Boolean hasMaxSurge(); - public A withNewMaxSurge(int value); - public A withNewMaxSurge(String value); - public IntOrString getMaxUnavailable(); - public A withMaxUnavailable(IntOrString maxUnavailable); - public Boolean hasMaxUnavailable(); - public A withNewMaxUnavailable(int value); - public A withNewMaxUnavailable(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluentImpl.java index 382bbd2996..21fc77dacd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluentImpl.java @@ -1,104 +1,75 @@ -/* -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.custom.IntOrString; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RollingUpdateDeploymentFluentImpl> - extends BaseFluent implements V1RollingUpdateDeploymentFluent { - public V1RollingUpdateDeploymentFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RollingUpdateDeploymentFluentImpl> extends BaseFluent implements V1RollingUpdateDeploymentFluent{ + public V1RollingUpdateDeploymentFluentImpl() { + } public V1RollingUpdateDeploymentFluentImpl(V1RollingUpdateDeployment instance) { this.withMaxSurge(instance.getMaxSurge()); this.withMaxUnavailable(instance.getMaxUnavailable()); - } + } private IntOrString maxSurge; private IntOrString maxUnavailable; - public IntOrString getMaxSurge() { return this.maxSurge; } - public A withMaxSurge(IntOrString maxSurge) { - this.maxSurge = maxSurge; - return (A) this; + this.maxSurge=maxSurge; return (A) this; } - public Boolean hasMaxSurge() { return this.maxSurge != null; } - public A withNewMaxSurge(int value) { - return (A) withMaxSurge(new IntOrString(value)); + return (A)withMaxSurge(new IntOrString(value)); } - public A withNewMaxSurge(String value) { - return (A) withMaxSurge(new IntOrString(value)); + return (A)withMaxSurge(new IntOrString(value)); } - public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; + this.maxUnavailable=maxUnavailable; return (A) this; } - public Boolean hasMaxUnavailable() { return this.maxUnavailable != null; } - public A withNewMaxUnavailable(int value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public A withNewMaxUnavailable(String value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RollingUpdateDeploymentFluentImpl that = (V1RollingUpdateDeploymentFluentImpl) o; - if (maxSurge != null ? !maxSurge.equals(that.maxSurge) : that.maxSurge != null) return false; - if (maxUnavailable != null - ? !maxUnavailable.equals(that.maxUnavailable) - : that.maxUnavailable != null) return false; + if (maxSurge != null ? !maxSurge.equals(that.maxSurge) :that.maxSurge != null) return false; + if (maxUnavailable != null ? !maxUnavailable.equals(that.maxUnavailable) :that.maxUnavailable != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); + return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxSurge != null) { - sb.append("maxSurge:"); - sb.append(maxSurge + ","); - } - if (maxUnavailable != null) { - sb.append("maxUnavailable:"); - sb.append(maxUnavailable); - } + if (maxSurge != null) { sb.append("maxSurge:"); sb.append(maxSurge + ","); } + if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java index 540a141478..6abca8f948 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java @@ -1,80 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1RollingUpdateStatefulSetStrategyBuilder - extends V1RollingUpdateStatefulSetStrategyFluentImpl - implements VisitableBuilder< - V1RollingUpdateStatefulSetStrategy, V1RollingUpdateStatefulSetStrategyBuilder> { +import java.lang.Boolean; +public class V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluentImpl implements VisitableBuilder{ public V1RollingUpdateStatefulSetStrategyBuilder() { this(false); } - public V1RollingUpdateStatefulSetStrategyBuilder(Boolean validationEnabled) { this(new V1RollingUpdateStatefulSetStrategy(), validationEnabled); } - - public V1RollingUpdateStatefulSetStrategyBuilder( - V1RollingUpdateStatefulSetStrategyFluent fluent) { + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent) { this(fluent, false); } - - public V1RollingUpdateStatefulSetStrategyBuilder( - V1RollingUpdateStatefulSetStrategyFluent fluent, Boolean validationEnabled) { + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,Boolean validationEnabled) { this(fluent, new V1RollingUpdateStatefulSetStrategy(), validationEnabled); } - - public V1RollingUpdateStatefulSetStrategyBuilder( - V1RollingUpdateStatefulSetStrategyFluent fluent, - V1RollingUpdateStatefulSetStrategy instance) { + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance) { this(fluent, instance, false); } - - public V1RollingUpdateStatefulSetStrategyBuilder( - V1RollingUpdateStatefulSetStrategyFluent fluent, - V1RollingUpdateStatefulSetStrategy instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMaxUnavailable(instance.getMaxUnavailable()); fluent.withPartition(instance.getPartition()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance) { - this(instance, false); + this(instance,false); } - - public V1RollingUpdateStatefulSetStrategyBuilder( - V1RollingUpdateStatefulSetStrategy instance, Boolean validationEnabled) { - this.fluent = this; + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance,Boolean validationEnabled) { + this.fluent = this; this.withMaxUnavailable(instance.getMaxUnavailable()); this.withPartition(instance.getPartition()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RollingUpdateStatefulSetStrategyFluent fluent; Boolean validationEnabled; - public V1RollingUpdateStatefulSetStrategy build() { V1RollingUpdateStatefulSetStrategy buildable = new V1RollingUpdateStatefulSetStrategy(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); buildable.setPartition(fluent.getPartition()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java index 35044ee0bf..9d9516c098 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java @@ -1,37 +1,22 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1RollingUpdateStatefulSetStrategyFluent< - A extends V1RollingUpdateStatefulSetStrategyFluent> - extends Fluent { + /** + * Generated + */ +public interface V1RollingUpdateStatefulSetStrategyFluent> extends Fluent{ public IntOrString getMaxUnavailable(); - public A withMaxUnavailable(IntOrString maxUnavailable); - public Boolean hasMaxUnavailable(); - public A withNewMaxUnavailable(int value); - public A withNewMaxUnavailable(String value); - public Integer getPartition(); - public A withPartition(Integer partition); - public Boolean hasPartition(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java index 3e7982c215..7198f61106 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java @@ -1,99 +1,70 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.custom.IntOrString; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RollingUpdateStatefulSetStrategyFluentImpl< - A extends V1RollingUpdateStatefulSetStrategyFluent> - extends BaseFluent implements V1RollingUpdateStatefulSetStrategyFluent { - public V1RollingUpdateStatefulSetStrategyFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RollingUpdateStatefulSetStrategyFluentImpl> extends BaseFluent implements V1RollingUpdateStatefulSetStrategyFluent{ + public V1RollingUpdateStatefulSetStrategyFluentImpl() { + } public V1RollingUpdateStatefulSetStrategyFluentImpl(V1RollingUpdateStatefulSetStrategy instance) { this.withMaxUnavailable(instance.getMaxUnavailable()); this.withPartition(instance.getPartition()); - } + } private IntOrString maxUnavailable; private Integer partition; - public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; + this.maxUnavailable=maxUnavailable; return (A) this; } - public Boolean hasMaxUnavailable() { return this.maxUnavailable != null; } - public A withNewMaxUnavailable(int value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public A withNewMaxUnavailable(String value) { - return (A) withMaxUnavailable(new IntOrString(value)); + return (A)withMaxUnavailable(new IntOrString(value)); } - public Integer getPartition() { return this.partition; } - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; + this.partition=partition; return (A) this; } - public Boolean hasPartition() { return this.partition != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1RollingUpdateStatefulSetStrategyFluentImpl that = - (V1RollingUpdateStatefulSetStrategyFluentImpl) o; - if (maxUnavailable != null - ? !maxUnavailable.equals(that.maxUnavailable) - : that.maxUnavailable != null) return false; - if (partition != null ? !partition.equals(that.partition) : that.partition != null) - return false; + V1RollingUpdateStatefulSetStrategyFluentImpl that = (V1RollingUpdateStatefulSetStrategyFluentImpl) o; + if (maxUnavailable != null ? !maxUnavailable.equals(that.maxUnavailable) :that.maxUnavailable != null) return false; + if (partition != null ? !partition.equals(that.partition) :that.partition != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(maxUnavailable, partition, super.hashCode()); + return java.util.Objects.hash(maxUnavailable, partition, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxUnavailable != null) { - sb.append("maxUnavailable:"); - sb.append(maxUnavailable + ","); - } - if (partition != null) { - sb.append("partition:"); - sb.append(partition); - } + if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable + ","); } + if (partition != null) { sb.append("partition:"); sb.append(partition); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java index 1f332f6191..05704ab536 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RuleWithOperationsBuilder - extends V1RuleWithOperationsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RuleWithOperationsBuilder extends V1RuleWithOperationsFluentImpl implements VisitableBuilder{ public V1RuleWithOperationsBuilder() { this(false); } - public V1RuleWithOperationsBuilder(Boolean validationEnabled) { this(new V1RuleWithOperations(), validationEnabled); } - public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent) { this(fluent, false); } - - public V1RuleWithOperationsBuilder( - V1RuleWithOperationsFluent fluent, Boolean validationEnabled) { + public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,Boolean validationEnabled) { this(fluent, new V1RuleWithOperations(), validationEnabled); } - - public V1RuleWithOperationsBuilder( - V1RuleWithOperationsFluent fluent, V1RuleWithOperations instance) { + public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,V1RuleWithOperations instance) { this(fluent, instance, false); } - - public V1RuleWithOperationsBuilder( - V1RuleWithOperationsFluent fluent, - V1RuleWithOperations instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,V1RuleWithOperations instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); fluent.withApiVersions(instance.getApiVersions()); @@ -54,15 +30,13 @@ public V1RuleWithOperationsBuilder( fluent.withScope(instance.getScope()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RuleWithOperationsBuilder(V1RuleWithOperations instance) { - this(instance, false); + this(instance,false); } - - public V1RuleWithOperationsBuilder(V1RuleWithOperations instance, Boolean validationEnabled) { - this.fluent = this; + public V1RuleWithOperationsBuilder(V1RuleWithOperations instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroups(instance.getApiGroups()); this.withApiVersions(instance.getApiVersions()); @@ -73,12 +47,10 @@ public V1RuleWithOperationsBuilder(V1RuleWithOperations instance, Boolean valida this.withScope(instance.getScope()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RuleWithOperationsFluent fluent; Boolean validationEnabled; - public V1RuleWithOperations build() { V1RuleWithOperations buildable = new V1RuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -88,4 +60,5 @@ public V1RuleWithOperations build() { buildable.setScope(fluent.getScope()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java index 138f7ceef3..18a092e0fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java @@ -1,148 +1,80 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1RuleWithOperationsFluent> - extends Fluent { - public A addToApiGroups(Integer index, String item); - - public A setToApiGroups(Integer index, String item); - + /** + * Generated + */ +public interface V1RuleWithOperationsFluent> extends Fluent{ + public A addToApiGroups(Integer index,String item); + public A setToApiGroups(Integer index,String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); - public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); - public String getApiGroup(Integer index); - public String getFirstApiGroup(); - public String getLastApiGroup(); - public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(List apiGroups); - public A withApiGroups(java.lang.String... apiGroups); - public Boolean hasApiGroups(); - - public A addToApiVersions(Integer index, String item); - - public A setToApiVersions(Integer index, String item); - + public A addToApiVersions(Integer index,String item); + public A setToApiVersions(Integer index,String item); public A addToApiVersions(java.lang.String... items); - public A addAllToApiVersions(Collection items); - public A removeFromApiVersions(java.lang.String... items); - public A removeAllFromApiVersions(Collection items); - public List getApiVersions(); - public String getApiVersion(Integer index); - public String getFirstApiVersion(); - public String getLastApiVersion(); - public String getMatchingApiVersion(Predicate predicate); - public Boolean hasMatchingApiVersion(Predicate predicate); - public A withApiVersions(List apiVersions); - public A withApiVersions(java.lang.String... apiVersions); - public Boolean hasApiVersions(); - - public A addToOperations(Integer index, String item); - - public A setToOperations(Integer index, String item); - + public A addToOperations(Integer index,String item); + public A setToOperations(Integer index,String item); public A addToOperations(java.lang.String... items); - public A addAllToOperations(Collection items); - public A removeFromOperations(java.lang.String... items); - public A removeAllFromOperations(Collection items); - public List getOperations(); - public String getOperation(Integer index); - public String getFirstOperation(); - public String getLastOperation(); - public String getMatchingOperation(Predicate predicate); - public Boolean hasMatchingOperation(Predicate predicate); - public A withOperations(List operations); - public A withOperations(java.lang.String... operations); - public Boolean hasOperations(); - - public A addToResources(Integer index, String item); - - public A setToResources(Integer index, String item); - + public A addToResources(Integer index,String item); + public A setToResources(Integer index,String item); public A addToResources(java.lang.String... items); - public A addAllToResources(Collection items); - public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(Collection items); - public List getResources(); - public String getResource(Integer index); - public String getFirstResource(); - public String getLastResource(); - public String getMatchingResource(Predicate predicate); - public Boolean hasMatchingResource(Predicate predicate); - public A withResources(List resources); - public A withResources(java.lang.String... resources); - public Boolean hasResources(); - public String getScope(); - public A withScope(String scope); - public Boolean hasScope(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java index 15d183ad0e..e49cb1178e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RuleWithOperationsFluentImpl> - extends BaseFluent implements V1RuleWithOperationsFluent { - public V1RuleWithOperationsFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RuleWithOperationsFluentImpl> extends BaseFluent implements V1RuleWithOperationsFluent{ + public V1RuleWithOperationsFluentImpl() { + } public V1RuleWithOperationsFluentImpl(V1RuleWithOperations instance) { this.withApiGroups(instance.getApiGroups()); @@ -34,536 +28,250 @@ public V1RuleWithOperationsFluentImpl(V1RuleWithOperations instance) { this.withResources(instance.getResources()); this.withScope(instance.getScope()); - } + } private List apiGroups; private List apiVersions; private List operations; private List resources; private String scope; - - public A addToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } + public A addToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} this.apiGroups.add(index, item); - return (A) this; + return (A)this; } - - public A setToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.set(index, item); - return (A) this; + public A setToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A removeFromApiGroups(java.lang.String... items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public A removeAllFromApiGroups(Collection items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public List getApiGroups() { return this.apiGroups; } - public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public String getFirstApiGroup() { return this.apiGroups.get(0); } - public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: apiGroups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: apiGroups) { if(predicate.test(item)){ return true;} } return false; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; + if (apiGroups != null) {this.apiGroups = new ArrayList(); for (String item : apiGroups){this.addToApiGroups(item);}} else { this.apiGroups = null;} return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; + if (this.apiGroups != null) {this.apiGroups.clear();} + if (apiGroups != null) {for (String item :apiGroups){ this.addToApiGroups(item);}} return (A) this; } - public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - - public A addToApiVersions(Integer index, String item) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } + public A addToApiVersions(Integer index,String item) { + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} this.apiVersions.add(index, item); - return (A) this; + return (A)this; } - - public A setToApiVersions(Integer index, String item) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - this.apiVersions.set(index, item); - return (A) this; + public A setToApiVersions(Integer index,String item) { + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + this.apiVersions.set(index, item); return (A)this; } - public A addToApiVersions(java.lang.String... items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - for (String item : items) { - this.apiVersions.add(item); - } - return (A) this; + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + for (String item : items) {this.apiVersions.add(item);} return (A)this; } - public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - for (String item : items) { - this.apiVersions.add(item); - } - return (A) this; + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + for (String item : items) {this.apiVersions.add(item);} return (A)this; } - public A removeFromApiVersions(java.lang.String... items) { - for (String item : items) { - if (this.apiVersions != null) { - this.apiVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiVersions!= null){ this.apiVersions.remove(item);}} return (A)this; } - public A removeAllFromApiVersions(Collection items) { - for (String item : items) { - if (this.apiVersions != null) { - this.apiVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiVersions!= null){ this.apiVersions.remove(item);}} return (A)this; } - public List getApiVersions() { return this.apiVersions; } - public String getApiVersion(Integer index) { return this.apiVersions.get(index); } - public String getFirstApiVersion() { return this.apiVersions.get(0); } - public String getLastApiVersion() { return this.apiVersions.get(apiVersions.size() - 1); } - public String getMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: apiVersions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: apiVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withApiVersions(List apiVersions) { - if (apiVersions != null) { - this.apiVersions = new ArrayList(); - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } else { - this.apiVersions = null; - } - return (A) this; + if (apiVersions != null) {this.apiVersions = new ArrayList(); for (String item : apiVersions){this.addToApiVersions(item);}} else { this.apiVersions = null;} return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { - if (this.apiVersions != null) { - this.apiVersions.clear(); - } - if (apiVersions != null) { - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } - return (A) this; + if (this.apiVersions != null) {this.apiVersions.clear();} + if (apiVersions != null) {for (String item :apiVersions){ this.addToApiVersions(item);}} return (A) this; } - public Boolean hasApiVersions() { return apiVersions != null && !apiVersions.isEmpty(); } - - public A addToOperations(Integer index, String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } + public A addToOperations(Integer index,String item) { + if (this.operations == null) {this.operations = new ArrayList();} this.operations.add(index, item); - return (A) this; + return (A)this; } - - public A setToOperations(Integer index, String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.set(index, item); - return (A) this; + public A setToOperations(Integer index,String item) { + if (this.operations == null) {this.operations = new ArrayList();} + this.operations.set(index, item); return (A)this; } - public A addToOperations(java.lang.String... items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + if (this.operations == null) {this.operations = new ArrayList();} + for (String item : items) {this.operations.add(item);} return (A)this; } - public A addAllToOperations(Collection items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + if (this.operations == null) {this.operations = new ArrayList();} + for (String item : items) {this.operations.add(item);} return (A)this; } - public A removeFromOperations(java.lang.String... items) { - for (String item : items) { - if (this.operations != null) { - this.operations.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.operations!= null){ this.operations.remove(item);}} return (A)this; } - public A removeAllFromOperations(Collection items) { - for (String item : items) { - if (this.operations != null) { - this.operations.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.operations!= null){ this.operations.remove(item);}} return (A)this; } - public List getOperations() { return this.operations; } - public String getOperation(Integer index) { return this.operations.get(index); } - public String getFirstOperation() { return this.operations.get(0); } - public String getLastOperation() { return this.operations.get(operations.size() - 1); } - public String getMatchingOperation(Predicate predicate) { - for (String item : operations) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: operations) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingOperation(Predicate predicate) { - for (String item : operations) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: operations) { if(predicate.test(item)){ return true;} } return false; } - public A withOperations(List operations) { - if (operations != null) { - this.operations = new ArrayList(); - for (String item : operations) { - this.addToOperations(item); - } - } else { - this.operations = null; - } - return (A) this; + if (operations != null) {this.operations = new ArrayList(); for (String item : operations){this.addToOperations(item);}} else { this.operations = null;} return (A) this; } - public A withOperations(java.lang.String... operations) { - if (this.operations != null) { - this.operations.clear(); - } - if (operations != null) { - for (String item : operations) { - this.addToOperations(item); - } - } - return (A) this; + if (this.operations != null) {this.operations.clear();} + if (operations != null) {for (String item :operations){ this.addToOperations(item);}} return (A) this; } - public Boolean hasOperations() { return operations != null && !operations.isEmpty(); } - - public A addToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } + public A addToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} this.resources.add(index, item); - return (A) this; + return (A)this; } - - public A setToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public A setToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A removeFromResources(java.lang.String... items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public A removeAllFromResources(Collection items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public List getResources() { return this.resources; } - public String getResource(Integer index) { return this.resources.get(index); } - public String getFirstResource() { return this.resources.get(0); } - public String getLastResource() { return this.resources.get(resources.size() - 1); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resources) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resources) { if(predicate.test(item)){ return true;} } return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; + if (resources != null) {this.resources = new ArrayList(); for (String item : resources){this.addToResources(item);}} else { this.resources = null;} return (A) this; } - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; + if (this.resources != null) {this.resources.clear();} + if (resources != null) {for (String item :resources){ this.addToResources(item);}} return (A) this; } - public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public String getScope() { return this.scope; } - public A withScope(String scope) { - this.scope = scope; - return (A) this; + this.scope=scope; return (A) this; } - public Boolean hasScope() { return this.scope != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RuleWithOperationsFluentImpl that = (V1RuleWithOperationsFluentImpl) o; - if (apiGroups != null ? !apiGroups.equals(that.apiGroups) : that.apiGroups != null) - return false; - if (apiVersions != null ? !apiVersions.equals(that.apiVersions) : that.apiVersions != null) - return false; - if (operations != null ? !operations.equals(that.operations) : that.operations != null) - return false; - if (resources != null ? !resources.equals(that.resources) : that.resources != null) - return false; - if (scope != null ? !scope.equals(that.scope) : that.scope != null) return false; + if (apiGroups != null ? !apiGroups.equals(that.apiGroups) :that.apiGroups != null) return false; + if (apiVersions != null ? !apiVersions.equals(that.apiVersions) :that.apiVersions != null) return false; + if (operations != null ? !operations.equals(that.operations) :that.operations != null) return false; + if (resources != null ? !resources.equals(that.resources) :that.resources != null) return false; + if (scope != null ? !scope.equals(that.scope) :that.scope != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiGroups, apiVersions, operations, resources, scope, super.hashCode()); + return java.util.Objects.hash(apiGroups, apiVersions, operations, resources, scope, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { - sb.append("apiGroups:"); - sb.append(apiGroups + ","); - } - if (apiVersions != null && !apiVersions.isEmpty()) { - sb.append("apiVersions:"); - sb.append(apiVersions + ","); - } - if (operations != null && !operations.isEmpty()) { - sb.append("operations:"); - sb.append(operations + ","); - } - if (resources != null && !resources.isEmpty()) { - sb.append("resources:"); - sb.append(resources + ","); - } - if (scope != null) { - sb.append("scope:"); - sb.append(scope); - } + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (apiVersions != null && !apiVersions.isEmpty()) { sb.append("apiVersions:"); sb.append(apiVersions + ","); } + if (operations != null && !operations.isEmpty()) { sb.append("operations:"); sb.append(operations + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (scope != null) { sb.append("scope:"); sb.append(scope); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java index c908875dac..4b1d77838c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RuntimeClassBuilder extends V1RuntimeClassFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RuntimeClassBuilder extends V1RuntimeClassFluentImpl implements VisitableBuilder{ public V1RuntimeClassBuilder() { this(false); } - public V1RuntimeClassBuilder(Boolean validationEnabled) { this(new V1RuntimeClass(), validationEnabled); } - public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent) { this(fluent, false); } - - public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent, Boolean validationEnabled) { + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,Boolean validationEnabled) { this(fluent, new V1RuntimeClass(), validationEnabled); } - - public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent, V1RuntimeClass instance) { + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,V1RuntimeClass instance) { this(fluent, instance, false); } - - public V1RuntimeClassBuilder( - V1RuntimeClassFluent fluent, V1RuntimeClass instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,V1RuntimeClass instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withHandler(instance.getHandler()); @@ -51,15 +32,13 @@ public V1RuntimeClassBuilder( fluent.withScheduling(instance.getScheduling()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RuntimeClassBuilder(V1RuntimeClass instance) { - this(instance, false); + this(instance,false); } - - public V1RuntimeClassBuilder(V1RuntimeClass instance, Boolean validationEnabled) { - this.fluent = this; + public V1RuntimeClassBuilder(V1RuntimeClass instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withHandler(instance.getHandler()); @@ -72,12 +51,10 @@ public V1RuntimeClassBuilder(V1RuntimeClass instance, Boolean validationEnabled) this.withScheduling(instance.getScheduling()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RuntimeClassFluent fluent; Boolean validationEnabled; - public V1RuntimeClass build() { V1RuntimeClass buildable = new V1RuntimeClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +65,5 @@ public V1RuntimeClass build() { buildable.setScheduling(fluent.getScheduling()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java index c8cb20da81..223f55e229 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java @@ -1,130 +1,83 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1RuntimeClassFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1RuntimeClassFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getHandler(); - public A withHandler(String handler); - public Boolean hasHandler(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1RuntimeClassFluent.MetadataNested withNewMetadata(); - public V1RuntimeClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1RuntimeClassFluent.MetadataNested editMetadata(); - public V1RuntimeClassFluent.MetadataNested editOrNewMetadata(); - public V1RuntimeClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildOverhead instead. - * * @return The buildable object. */ @Deprecated public V1Overhead getOverhead(); - public V1Overhead buildOverhead(); - public A withOverhead(V1Overhead overhead); - public Boolean hasOverhead(); - public V1RuntimeClassFluent.OverheadNested withNewOverhead(); - public V1RuntimeClassFluent.OverheadNested withNewOverheadLike(V1Overhead item); - public V1RuntimeClassFluent.OverheadNested editOverhead(); - public V1RuntimeClassFluent.OverheadNested editOrNewOverhead(); - public V1RuntimeClassFluent.OverheadNested editOrNewOverheadLike(V1Overhead item); - + /** * This method has been deprecated, please use method buildScheduling instead. - * * @return The buildable object. */ @Deprecated public V1Scheduling getScheduling(); - public V1Scheduling buildScheduling(); - public A withScheduling(V1Scheduling scheduling); - public Boolean hasScheduling(); - public V1RuntimeClassFluent.SchedulingNested withNewScheduling(); - public V1RuntimeClassFluent.SchedulingNested withNewSchedulingLike(V1Scheduling item); - public V1RuntimeClassFluent.SchedulingNested editScheduling(); - public V1RuntimeClassFluent.SchedulingNested editOrNewScheduling(); - public V1RuntimeClassFluent.SchedulingNested editOrNewSchedulingLike(V1Scheduling item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface OverheadNested - extends Nested, V1OverheadFluent> { + public interface OverheadNested extends Nested,V1OverheadFluent>{ public N and(); - public N endOverhead(); + } - - public interface SchedulingNested - extends Nested, V1SchedulingFluent> { + public interface SchedulingNested extends Nested,V1SchedulingFluent>{ public N and(); - public N endScheduling(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java index 36818f8eed..2ba6943e7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RuntimeClassFluentImpl> extends BaseFluent - implements V1RuntimeClassFluent { - public V1RuntimeClassFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RuntimeClassFluentImpl> extends BaseFluent implements V1RuntimeClassFluent{ + public V1RuntimeClassFluentImpl() { + } public V1RuntimeClassFluentImpl(V1RuntimeClass instance) { this.withApiVersion(instance.getApiVersion()); @@ -33,319 +27,217 @@ public V1RuntimeClassFluentImpl(V1RuntimeClass instance) { this.withOverhead(instance.getOverhead()); this.withScheduling(instance.getScheduling()); - } + } private String apiVersion; private String handler; private String kind; private V1ObjectMetaBuilder metadata; private V1OverheadBuilder overhead; private V1SchedulingBuilder scheduling; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getHandler() { return this.handler; } - public A withHandler(String handler) { - this.handler = handler; - return (A) this; + this.handler=handler; return (A) this; } - public Boolean hasHandler() { return this.handler != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1RuntimeClassFluent.MetadataNested withNewMetadata() { return new V1RuntimeClassFluentImpl.MetadataNestedImpl(); } - public V1RuntimeClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1RuntimeClassFluentImpl.MetadataNestedImpl(item); } - public V1RuntimeClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1RuntimeClassFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1RuntimeClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildOverhead instead. - * * @return The buildable object. */ @Deprecated public V1Overhead getOverhead() { - return this.overhead != null ? this.overhead.build() : null; + return this.overhead!=null ?this.overhead.build():null; } - public V1Overhead buildOverhead() { - return this.overhead != null ? this.overhead.build() : null; + return this.overhead!=null ?this.overhead.build():null; } - public A withOverhead(V1Overhead overhead) { _visitables.get("overhead").remove(this.overhead); - if (overhead != null) { - this.overhead = new V1OverheadBuilder(overhead); - _visitables.get("overhead").add(this.overhead); - } else { - this.overhead = null; - _visitables.get("overhead").remove(this.overhead); - } - return (A) this; + if (overhead!=null){ this.overhead= new V1OverheadBuilder(overhead); _visitables.get("overhead").add(this.overhead);} else { this.overhead = null; _visitables.get("overhead").remove(this.overhead); } return (A) this; } - public Boolean hasOverhead() { return this.overhead != null; } - public V1RuntimeClassFluent.OverheadNested withNewOverhead() { return new V1RuntimeClassFluentImpl.OverheadNestedImpl(); } - public V1RuntimeClassFluent.OverheadNested withNewOverheadLike(V1Overhead item) { return new V1RuntimeClassFluentImpl.OverheadNestedImpl(item); } - public V1RuntimeClassFluent.OverheadNested editOverhead() { return withNewOverheadLike(getOverhead()); } - public V1RuntimeClassFluent.OverheadNested editOrNewOverhead() { - return withNewOverheadLike( - getOverhead() != null ? getOverhead() : new V1OverheadBuilder().build()); + return withNewOverheadLike(getOverhead() != null ? getOverhead(): new V1OverheadBuilder().build()); } - public V1RuntimeClassFluent.OverheadNested editOrNewOverheadLike(V1Overhead item) { - return withNewOverheadLike(getOverhead() != null ? getOverhead() : item); + return withNewOverheadLike(getOverhead() != null ? getOverhead(): item); } - + /** * This method has been deprecated, please use method buildScheduling instead. - * * @return The buildable object. */ @Deprecated public V1Scheduling getScheduling() { - return this.scheduling != null ? this.scheduling.build() : null; + return this.scheduling!=null ?this.scheduling.build():null; } - public V1Scheduling buildScheduling() { - return this.scheduling != null ? this.scheduling.build() : null; + return this.scheduling!=null ?this.scheduling.build():null; } - public A withScheduling(V1Scheduling scheduling) { _visitables.get("scheduling").remove(this.scheduling); - if (scheduling != null) { - this.scheduling = new V1SchedulingBuilder(scheduling); - _visitables.get("scheduling").add(this.scheduling); - } else { - this.scheduling = null; - _visitables.get("scheduling").remove(this.scheduling); - } - return (A) this; + if (scheduling!=null){ this.scheduling= new V1SchedulingBuilder(scheduling); _visitables.get("scheduling").add(this.scheduling);} else { this.scheduling = null; _visitables.get("scheduling").remove(this.scheduling); } return (A) this; } - public Boolean hasScheduling() { return this.scheduling != null; } - public V1RuntimeClassFluent.SchedulingNested withNewScheduling() { return new V1RuntimeClassFluentImpl.SchedulingNestedImpl(); } - public V1RuntimeClassFluent.SchedulingNested withNewSchedulingLike(V1Scheduling item) { return new V1RuntimeClassFluentImpl.SchedulingNestedImpl(item); } - public V1RuntimeClassFluent.SchedulingNested editScheduling() { return withNewSchedulingLike(getScheduling()); } - public V1RuntimeClassFluent.SchedulingNested editOrNewScheduling() { - return withNewSchedulingLike( - getScheduling() != null ? getScheduling() : new V1SchedulingBuilder().build()); + return withNewSchedulingLike(getScheduling() != null ? getScheduling(): new V1SchedulingBuilder().build()); } - public V1RuntimeClassFluent.SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { - return withNewSchedulingLike(getScheduling() != null ? getScheduling() : item); + return withNewSchedulingLike(getScheduling() != null ? getScheduling(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RuntimeClassFluentImpl that = (V1RuntimeClassFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (handler != null ? !handler.equals(that.handler) : that.handler != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (overhead != null ? !overhead.equals(that.overhead) : that.overhead != null) return false; - if (scheduling != null ? !scheduling.equals(that.scheduling) : that.scheduling != null) - return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (handler != null ? !handler.equals(that.handler) :that.handler != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (overhead != null ? !overhead.equals(that.overhead) :that.overhead != null) return false; + if (scheduling != null ? !scheduling.equals(that.scheduling) :that.scheduling != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, handler, kind, metadata, overhead, scheduling, super.hashCode()); + return java.util.Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (handler != null) { - sb.append("handler:"); - sb.append(handler + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (overhead != null) { - sb.append("overhead:"); - sb.append(overhead + ","); - } - if (scheduling != null) { - sb.append("scheduling:"); - sb.append(scheduling); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (handler != null) { sb.append("handler:"); sb.append(handler + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (overhead != null) { sb.append("overhead:"); sb.append(overhead + ","); } + if (scheduling != null) { sb.append("scheduling:"); sb.append(scheduling); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1RuntimeClassFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1RuntimeClassFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1RuntimeClassFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class OverheadNestedImpl extends V1OverheadFluentImpl> - implements V1RuntimeClassFluent.OverheadNested, Nested { + class OverheadNestedImpl extends V1OverheadFluentImpl> implements V1RuntimeClassFluent.OverheadNested,Nested{ OverheadNestedImpl(V1Overhead item) { this.builder = new V1OverheadBuilder(this, item); } - OverheadNestedImpl() { this.builder = new V1OverheadBuilder(this); } - V1OverheadBuilder builder; - public N and() { return (N) V1RuntimeClassFluentImpl.this.withOverhead(builder.build()); } - public N endOverhead() { return and(); } + } - - class SchedulingNestedImpl - extends V1SchedulingFluentImpl> - implements V1RuntimeClassFluent.SchedulingNested, Nested { + class SchedulingNestedImpl extends V1SchedulingFluentImpl> implements V1RuntimeClassFluent.SchedulingNested,Nested{ SchedulingNestedImpl(V1Scheduling item) { this.builder = new V1SchedulingBuilder(this, item); } - SchedulingNestedImpl() { this.builder = new V1SchedulingBuilder(this); } - V1SchedulingBuilder builder; - public N and() { return (N) V1RuntimeClassFluentImpl.this.withScheduling(builder.build()); } - public N endScheduling() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java index 6e4e37125b..ca4e4a03d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1RuntimeClassListBuilder - extends V1RuntimeClassListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1RuntimeClassListBuilder extends V1RuntimeClassListFluentImpl implements VisitableBuilder{ public V1RuntimeClassListBuilder() { this(false); } - public V1RuntimeClassListBuilder(Boolean validationEnabled) { this(new V1RuntimeClassList(), validationEnabled); } - public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent) { this(fluent, false); } - - public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent, Boolean validationEnabled) { + public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,Boolean validationEnabled) { this(fluent, new V1RuntimeClassList(), validationEnabled); } - - public V1RuntimeClassListBuilder( - V1RuntimeClassListFluent fluent, V1RuntimeClassList instance) { + public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,V1RuntimeClassList instance) { this(fluent, instance, false); } - - public V1RuntimeClassListBuilder( - V1RuntimeClassListFluent fluent, V1RuntimeClassList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,V1RuntimeClassList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -49,15 +28,13 @@ public V1RuntimeClassListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1RuntimeClassListBuilder(V1RuntimeClassList instance) { - this(instance, false); + this(instance,false); } - - public V1RuntimeClassListBuilder(V1RuntimeClassList instance, Boolean validationEnabled) { - this.fluent = this; + public V1RuntimeClassListBuilder(V1RuntimeClassList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -66,12 +43,10 @@ public V1RuntimeClassListBuilder(V1RuntimeClassList instance, Boolean validation this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1RuntimeClassListFluent fluent; Boolean validationEnabled; - public V1RuntimeClassList build() { V1RuntimeClassList buildable = new V1RuntimeClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -80,4 +55,5 @@ public V1RuntimeClassList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java index 9baa7cfc07..9696052135 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1RuntimeClassListFluent> extends Fluent { + /** + * Generated + */ +public interface V1RuntimeClassListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1RuntimeClass item); - - public A setToItems(Integer index, V1RuntimeClass item); - + public A addToItems(Integer index,V1RuntimeClass item); + public A setToItems(Integer index,V1RuntimeClass item); public A addToItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1RuntimeClass buildItem(Integer index); - public V1RuntimeClass buildFirstItem(); - public V1RuntimeClass buildLastItem(); - public V1RuntimeClass buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items); - public Boolean hasItems(); - public V1RuntimeClassListFluent.ItemsNested addNewItem(); - public V1RuntimeClassListFluent.ItemsNested addNewItemLike(V1RuntimeClass item); - - public V1RuntimeClassListFluent.ItemsNested setNewItemLike(Integer index, V1RuntimeClass item); - + public V1RuntimeClassListFluent.ItemsNested setNewItemLike(Integer index,V1RuntimeClass item); public V1RuntimeClassListFluent.ItemsNested editItem(Integer index); - public V1RuntimeClassListFluent.ItemsNested editFirstItem(); - public V1RuntimeClassListFluent.ItemsNested editLastItem(); - - public V1RuntimeClassListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1RuntimeClassListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1RuntimeClassListFluent.MetadataNested withNewMetadata(); - public V1RuntimeClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1RuntimeClassListFluent.MetadataNested editMetadata(); - public V1RuntimeClassListFluent.MetadataNested editOrNewMetadata(); - public V1RuntimeClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1RuntimeClassFluent> { + public interface ItemsNested extends Nested,V1RuntimeClassFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java index 58aba954d6..df4e7d114e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1RuntimeClassListFluentImpl> - extends BaseFluent implements V1RuntimeClassListFluent { - public V1RuntimeClassListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1RuntimeClassListFluentImpl> extends BaseFluent implements V1RuntimeClassListFluent{ + public V1RuntimeClassListFluentImpl() { + } public V1RuntimeClassListFluentImpl(V1RuntimeClassList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1RuntimeClassListFluentImpl(V1RuntimeClassList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1RuntimeClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1RuntimeClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1RuntimeClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1RuntimeClass item) { + if (this.items == null) {this.items = new ArrayList();} V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,272 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1RuntimeClass buildItem(Integer index) { return this.items.get(index).build(); } - public V1RuntimeClass buildFirstItem() { return this.items.get(0).build(); } - public V1RuntimeClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1RuntimeClass buildMatchingItem(Predicate predicate) { - for (V1RuntimeClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1RuntimeClassBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1RuntimeClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1RuntimeClassBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1RuntimeClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1RuntimeClass item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1RuntimeClass item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1RuntimeClass item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1RuntimeClassListFluent.ItemsNested addNewItem() { return new V1RuntimeClassListFluentImpl.ItemsNestedImpl(); } - public V1RuntimeClassListFluent.ItemsNested addNewItemLike(V1RuntimeClass item) { return new V1RuntimeClassListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1RuntimeClassListFluent.ItemsNested setNewItemLike( - Integer index, V1RuntimeClass item) { + public V1RuntimeClassListFluent.ItemsNested setNewItemLike(Integer index,V1RuntimeClass item) { return new V1RuntimeClassListFluentImpl.ItemsNestedImpl(index, item); } - public V1RuntimeClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1RuntimeClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1RuntimeClassListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1RuntimeClassListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1RuntimeClassListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1RuntimeClassListFluentImpl.MetadataNestedImpl(); } - public V1RuntimeClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1RuntimeClassListFluentImpl.MetadataNestedImpl(item); } - public V1RuntimeClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1RuntimeClassListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1RuntimeClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1RuntimeClassListFluentImpl that = (V1RuntimeClassListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1RuntimeClassFluentImpl> - implements V1RuntimeClassListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1RuntimeClass item) { + class ItemsNestedImpl extends V1RuntimeClassFluentImpl> implements V1RuntimeClassListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1RuntimeClass item) { this.index = index; this.builder = new V1RuntimeClassBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1RuntimeClassBuilder(this); } - V1RuntimeClassBuilder builder; Integer index; - public N and() { - return (N) V1RuntimeClassListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1RuntimeClassListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1RuntimeClassListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1RuntimeClassListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1RuntimeClassListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java index 7aabea8a22..59737e0478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluentImpl implements VisitableBuilder{ public V1SELinuxOptionsBuilder() { this(false); } - public V1SELinuxOptionsBuilder(Boolean validationEnabled) { this(new V1SELinuxOptions(), validationEnabled); } - public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent) { this(fluent, false); } - - public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent, Boolean validationEnabled) { + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,Boolean validationEnabled) { this(fluent, new V1SELinuxOptions(), validationEnabled); } - - public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent, V1SELinuxOptions instance) { + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,V1SELinuxOptions instance) { this(fluent, instance, false); } - - public V1SELinuxOptionsBuilder( - V1SELinuxOptionsFluent fluent, V1SELinuxOptions instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,V1SELinuxOptions instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLevel(instance.getLevel()); fluent.withRole(instance.getRole()); @@ -47,15 +28,13 @@ public V1SELinuxOptionsBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SELinuxOptionsBuilder(V1SELinuxOptions instance) { - this(instance, false); + this(instance,false); } - - public V1SELinuxOptionsBuilder(V1SELinuxOptions instance, Boolean validationEnabled) { - this.fluent = this; + public V1SELinuxOptionsBuilder(V1SELinuxOptions instance,Boolean validationEnabled) { + this.fluent = this; this.withLevel(instance.getLevel()); this.withRole(instance.getRole()); @@ -64,12 +43,10 @@ public V1SELinuxOptionsBuilder(V1SELinuxOptions instance, Boolean validationEnab this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SELinuxOptionsFluent fluent; Boolean validationEnabled; - public V1SELinuxOptions build() { V1SELinuxOptions buildable = new V1SELinuxOptions(); buildable.setLevel(fluent.getLevel()); @@ -78,4 +55,5 @@ public V1SELinuxOptions build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java index 92a7604bff..1ebd4064e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java @@ -1,42 +1,24 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SELinuxOptionsFluent> extends Fluent { + /** + * Generated + */ +public interface V1SELinuxOptionsFluent> extends Fluent{ public String getLevel(); - public A withLevel(String level); - public Boolean hasLevel(); - public String getRole(); - public A withRole(String role); - public Boolean hasRole(); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public String getUser(); - public A withUser(String user); - public Boolean hasUser(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java index f2044a6850..16e3f7b8c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SELinuxOptionsFluentImpl> extends BaseFluent - implements V1SELinuxOptionsFluent { - public V1SELinuxOptionsFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SELinuxOptionsFluentImpl> extends BaseFluent implements V1SELinuxOptionsFluent{ + public V1SELinuxOptionsFluentImpl() { + } public V1SELinuxOptionsFluentImpl(V1SELinuxOptions instance) { this.withLevel(instance.getLevel()); @@ -28,100 +21,70 @@ public V1SELinuxOptionsFluentImpl(V1SELinuxOptions instance) { this.withType(instance.getType()); this.withUser(instance.getUser()); - } + } private String level; private String role; private String type; private String user; - public String getLevel() { return this.level; } - public A withLevel(String level) { - this.level = level; - return (A) this; + this.level=level; return (A) this; } - public Boolean hasLevel() { return this.level != null; } - public String getRole() { return this.role; } - public A withRole(String role) { - this.role = role; - return (A) this; + this.role=role; return (A) this; } - public Boolean hasRole() { return this.role != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SELinuxOptionsFluentImpl that = (V1SELinuxOptionsFluentImpl) o; - if (level != null ? !level.equals(that.level) : that.level != null) return false; - if (role != null ? !role.equals(that.role) : that.role != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (level != null ? !level.equals(that.level) :that.level != null) return false; + if (role != null ? !role.equals(that.role) :that.role != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(level, role, type, user, super.hashCode()); + return java.util.Objects.hash(level, role, type, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (level != null) { - sb.append("level:"); - sb.append(level + ","); - } - if (role != null) { - sb.append("role:"); - sb.append(role + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (level != null) { sb.append("level:"); sb.append(level + ","); } + if (role != null) { sb.append("role:"); sb.append(role + ","); } + if (type != null) { sb.append("type:"); sb.append(type + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java index 01ec02fcd7..4a147ba3ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ScaleBuilder extends V1ScaleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ScaleBuilder extends V1ScaleFluentImpl implements VisitableBuilder{ public V1ScaleBuilder() { this(false); } - public V1ScaleBuilder(Boolean validationEnabled) { this(new V1Scale(), validationEnabled); } - public V1ScaleBuilder(V1ScaleFluent fluent) { this(fluent, false); } - - public V1ScaleBuilder(V1ScaleFluent fluent, Boolean validationEnabled) { + public V1ScaleBuilder(V1ScaleFluent fluent,Boolean validationEnabled) { this(fluent, new V1Scale(), validationEnabled); } - - public V1ScaleBuilder(V1ScaleFluent fluent, V1Scale instance) { + public V1ScaleBuilder(V1ScaleFluent fluent,V1Scale instance) { this(fluent, instance, false); } - - public V1ScaleBuilder(V1ScaleFluent fluent, V1Scale instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ScaleBuilder(V1ScaleFluent fluent,V1Scale instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -48,15 +30,13 @@ public V1ScaleBuilder(V1ScaleFluent fluent, V1Scale instance, Boolean validat fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScaleBuilder(V1Scale instance) { - this(instance, false); + this(instance,false); } - - public V1ScaleBuilder(V1Scale instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScaleBuilder(V1Scale instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -67,12 +47,10 @@ public V1ScaleBuilder(V1Scale instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScaleFluent fluent; Boolean validationEnabled; - public V1Scale build() { V1Scale buildable = new V1Scale(); buildable.setApiVersion(fluent.getApiVersion()); @@ -82,4 +60,5 @@ public V1Scale build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java index 96ed51fd29..2ab4a4b6f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java @@ -1,123 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ScaleFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ScaleFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ScaleFluent.MetadataNested withNewMetadata(); - public V1ScaleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ScaleFluent.MetadataNested editMetadata(); - public V1ScaleFluent.MetadataNested editOrNewMetadata(); - public V1ScaleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ScaleSpec getSpec(); - public V1ScaleSpec buildSpec(); - public A withSpec(V1ScaleSpec spec); - public Boolean hasSpec(); - public V1ScaleFluent.SpecNested withNewSpec(); - public V1ScaleFluent.SpecNested withNewSpecLike(V1ScaleSpec item); - public V1ScaleFluent.SpecNested editSpec(); - public V1ScaleFluent.SpecNested editOrNewSpec(); - public V1ScaleFluent.SpecNested editOrNewSpecLike(V1ScaleSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ScaleStatus getStatus(); - public V1ScaleStatus buildStatus(); - public A withStatus(V1ScaleStatus status); - public Boolean hasStatus(); - public V1ScaleFluent.StatusNested withNewStatus(); - public V1ScaleFluent.StatusNested withNewStatusLike(V1ScaleStatus item); - public V1ScaleFluent.StatusNested editStatus(); - public V1ScaleFluent.StatusNested editOrNewStatus(); - public V1ScaleFluent.StatusNested editOrNewStatusLike(V1ScaleStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested extends Nested, V1ScaleSpecFluent> { + public interface SpecNested extends Nested,V1ScaleSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1ScaleStatusFluent> { + public interface StatusNested extends Nested,V1ScaleStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java index 8f9dde13d8..0504a51acf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScaleFluentImpl> extends BaseFluent - implements V1ScaleFluent { - public V1ScaleFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScaleFluentImpl> extends BaseFluent implements V1ScaleFluent{ + public V1ScaleFluentImpl() { + } public V1ScaleFluentImpl(V1Scale instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1ScaleFluentImpl(V1Scale instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ScaleSpecBuilder spec; private V1ScaleStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ScaleFluent.MetadataNested withNewMetadata() { return new V1ScaleFluentImpl.MetadataNestedImpl(); } - public V1ScaleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ScaleFluentImpl.MetadataNestedImpl(item); } - public V1ScaleFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ScaleFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ScaleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ScaleSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1ScaleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1ScaleSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1ScaleSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1ScaleSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1ScaleFluent.SpecNested withNewSpec() { return new V1ScaleFluentImpl.SpecNestedImpl(); } - public V1ScaleFluent.SpecNested withNewSpecLike(V1ScaleSpec item) { return new V1ScaleFluentImpl.SpecNestedImpl(item); } - public V1ScaleFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1ScaleFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1ScaleSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1ScaleSpecBuilder().build()); } - public V1ScaleFluent.SpecNested editOrNewSpecLike(V1ScaleSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ScaleStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1ScaleStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1ScaleStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1ScaleStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1ScaleStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1ScaleFluent.StatusNested withNewStatus() { return new V1ScaleFluentImpl.StatusNestedImpl(); } - public V1ScaleFluent.StatusNested withNewStatusLike(V1ScaleStatus item) { return new V1ScaleFluentImpl.StatusNestedImpl(item); } - public V1ScaleFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1ScaleFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1ScaleStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1ScaleStatusBuilder().build()); } - public V1ScaleFluent.StatusNested editOrNewStatusLike(V1ScaleStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ScaleFluentImpl that = (V1ScaleFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1ScaleFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ScaleFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ScaleFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1ScaleSpecFluentImpl> - implements V1ScaleFluent.SpecNested, Nested { + class SpecNestedImpl extends V1ScaleSpecFluentImpl> implements V1ScaleFluent.SpecNested,Nested{ SpecNestedImpl(V1ScaleSpec item) { this.builder = new V1ScaleSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1ScaleSpecBuilder(this); } - V1ScaleSpecBuilder builder; - public N and() { return (N) V1ScaleFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1ScaleStatusFluentImpl> - implements V1ScaleFluent.StatusNested, Nested { + class StatusNestedImpl extends V1ScaleStatusFluentImpl> implements V1ScaleFluent.StatusNested,Nested{ StatusNestedImpl(V1ScaleStatus item) { this.builder = new V1ScaleStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1ScaleStatusBuilder(this); } - V1ScaleStatusBuilder builder; - public N and() { return (N) V1ScaleFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java index 04403938d2..0b99bdae58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ScaleIOPersistentVolumeSourceBuilder - extends V1ScaleIOPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1ScaleIOPersistentVolumeSource, V1ScaleIOPersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1ScaleIOPersistentVolumeSourceBuilder extends V1ScaleIOPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1ScaleIOPersistentVolumeSourceBuilder() { this(false); } - public V1ScaleIOPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ScaleIOPersistentVolumeSource(), validationEnabled); } - public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1ScaleIOPersistentVolumeSourceBuilder( - V1ScaleIOPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ScaleIOPersistentVolumeSource(), validationEnabled); } - - public V1ScaleIOPersistentVolumeSourceBuilder( - V1ScaleIOPersistentVolumeSourceFluent fluent, V1ScaleIOPersistentVolumeSource instance) { + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,V1ScaleIOPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1ScaleIOPersistentVolumeSourceBuilder( - V1ScaleIOPersistentVolumeSourceFluent fluent, - V1ScaleIOPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,V1ScaleIOPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withGateway(instance.getGateway()); @@ -65,16 +40,13 @@ public V1ScaleIOPersistentVolumeSourceBuilder( fluent.withVolumeName(instance.getVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1ScaleIOPersistentVolumeSourceBuilder( - V1ScaleIOPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withGateway(instance.getGateway()); @@ -95,12 +67,10 @@ public V1ScaleIOPersistentVolumeSourceBuilder( this.withVolumeName(instance.getVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScaleIOPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1ScaleIOPersistentVolumeSource build() { V1ScaleIOPersistentVolumeSource buildable = new V1ScaleIOPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -115,4 +85,5 @@ public V1ScaleIOPersistentVolumeSource build() { buildable.setVolumeName(fluent.getVolumeName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java index 3bf4181a4e..1cb262a6c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java @@ -1,113 +1,63 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ScaleIOPersistentVolumeSourceFluent< - A extends V1ScaleIOPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ScaleIOPersistentVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getGateway(); - public A withGateway(String gateway); - public Boolean hasGateway(); - public String getProtectionDomain(); - public A withProtectionDomain(String protectionDomain); - public Boolean hasProtectionDomain(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef(); - public V1SecretReference buildSecretRef(); - public A withSecretRef(V1SecretReference secretRef); - public Boolean hasSecretRef(); - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item); - + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item); public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item); - + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item); public Boolean getSslEnabled(); - public A withSslEnabled(Boolean sslEnabled); - public Boolean hasSslEnabled(); - public String getStorageMode(); - public A withStorageMode(String storageMode); - public Boolean hasStorageMode(); - public String getStoragePool(); - public A withStoragePool(String storagePool); - public Boolean hasStoragePool(); - public String getSystem(); - public A withSystem(String system); - public Boolean hasSystem(); - public String getVolumeName(); - public A withVolumeName(String volumeName); - public Boolean hasVolumeName(); - public A withReadOnly(); - public A withSslEnabled(); - - public interface SecretRefNested - extends Nested, - V1SecretReferenceFluent> { + public interface SecretRefNested extends Nested,V1SecretReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java index f04b41ec6d..6a2f190226 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScaleIOPersistentVolumeSourceFluentImpl< - A extends V1ScaleIOPersistentVolumeSourceFluent> - extends BaseFluent implements V1ScaleIOPersistentVolumeSourceFluent { - public V1ScaleIOPersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScaleIOPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1ScaleIOPersistentVolumeSourceFluent{ + public V1ScaleIOPersistentVolumeSourceFluentImpl() { + } public V1ScaleIOPersistentVolumeSourceFluentImpl(V1ScaleIOPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -42,8 +35,8 @@ public V1ScaleIOPersistentVolumeSourceFluentImpl(V1ScaleIOPersistentVolumeSource this.withSystem(instance.getSystem()); this.withVolumeName(instance.getVolumeName()); - } + } private String fsType; private String gateway; private String protectionDomain; @@ -54,290 +47,177 @@ public V1ScaleIOPersistentVolumeSourceFluentImpl(V1ScaleIOPersistentVolumeSource private String storagePool; private String system; private String volumeName; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getGateway() { return this.gateway; } - public A withGateway(String gateway) { - this.gateway = gateway; - return (A) this; + this.gateway=gateway; return (A) this; } - public Boolean hasGateway() { return this.gateway != null; } - public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(String protectionDomain) { - this.protectionDomain = protectionDomain; - return (A) this; + this.protectionDomain=protectionDomain; return (A) this; } - public Boolean hasProtectionDomain() { return this.protectionDomain != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1SecretReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1ScaleIOPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1SecretReference item) { + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new V1ScaleIOPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1SecretReferenceBuilder().build()); } - - public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1SecretReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public Boolean getSslEnabled() { return this.sslEnabled; } - public A withSslEnabled(Boolean sslEnabled) { - this.sslEnabled = sslEnabled; - return (A) this; + this.sslEnabled=sslEnabled; return (A) this; } - public Boolean hasSslEnabled() { return this.sslEnabled != null; } - public String getStorageMode() { return this.storageMode; } - public A withStorageMode(String storageMode) { - this.storageMode = storageMode; - return (A) this; + this.storageMode=storageMode; return (A) this; } - public Boolean hasStorageMode() { return this.storageMode != null; } - public String getStoragePool() { return this.storagePool; } - public A withStoragePool(String storagePool) { - this.storagePool = storagePool; - return (A) this; + this.storagePool=storagePool; return (A) this; } - public Boolean hasStoragePool() { return this.storagePool != null; } - public String getSystem() { return this.system; } - public A withSystem(String system) { - this.system = system; - return (A) this; + this.system=system; return (A) this; } - public Boolean hasSystem() { return this.system != null; } - public String getVolumeName() { return this.volumeName; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + this.volumeName=volumeName; return (A) this; } - public Boolean hasVolumeName() { return this.volumeName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ScaleIOPersistentVolumeSourceFluentImpl that = (V1ScaleIOPersistentVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (gateway != null ? !gateway.equals(that.gateway) : that.gateway != null) return false; - if (protectionDomain != null - ? !protectionDomain.equals(that.protectionDomain) - : that.protectionDomain != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (sslEnabled != null ? !sslEnabled.equals(that.sslEnabled) : that.sslEnabled != null) - return false; - if (storageMode != null ? !storageMode.equals(that.storageMode) : that.storageMode != null) - return false; - if (storagePool != null ? !storagePool.equals(that.storagePool) : that.storagePool != null) - return false; - if (system != null ? !system.equals(that.system) : that.system != null) return false; - if (volumeName != null ? !volumeName.equals(that.volumeName) : that.volumeName != null) - return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (gateway != null ? !gateway.equals(that.gateway) :that.gateway != null) return false; + if (protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) :that.protectionDomain != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (sslEnabled != null ? !sslEnabled.equals(that.sslEnabled) :that.sslEnabled != null) return false; + if (storageMode != null ? !storageMode.equals(that.storageMode) :that.storageMode != null) return false; + if (storagePool != null ? !storagePool.equals(that.storagePool) :that.storagePool != null) return false; + if (system != null ? !system.equals(that.system) :that.system != null) return false; + if (volumeName != null ? !volumeName.equals(that.volumeName) :that.volumeName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, - gateway, - protectionDomain, - readOnly, - secretRef, - sslEnabled, - storageMode, - storagePool, - system, - volumeName, - super.hashCode()); + return java.util.Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (gateway != null) { - sb.append("gateway:"); - sb.append(gateway + ","); - } - if (protectionDomain != null) { - sb.append("protectionDomain:"); - sb.append(protectionDomain + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (sslEnabled != null) { - sb.append("sslEnabled:"); - sb.append(sslEnabled + ","); - } - if (storageMode != null) { - sb.append("storageMode:"); - sb.append(storageMode + ","); - } - if (storagePool != null) { - sb.append("storagePool:"); - sb.append(storagePool + ","); - } - if (system != null) { - sb.append("system:"); - sb.append(system + ","); - } - if (volumeName != null) { - sb.append("volumeName:"); - sb.append(volumeName); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (gateway != null) { sb.append("gateway:"); sb.append(gateway + ","); } + if (protectionDomain != null) { sb.append("protectionDomain:"); sb.append(protectionDomain + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (sslEnabled != null) { sb.append("sslEnabled:"); sb.append(sslEnabled + ","); } + if (storageMode != null) { sb.append("storageMode:"); sb.append(storageMode + ","); } + if (storagePool != null) { sb.append("storagePool:"); sb.append(storagePool + ","); } + if (system != null) { sb.append("system:"); sb.append(system + ","); } + if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - public A withSslEnabled() { return withSslEnabled(true); } - - class SecretRefNestedImpl - extends V1SecretReferenceFluentImpl> - implements V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> implements V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1SecretReferenceBuilder(this); } - V1SecretReferenceBuilder builder; - public N and() { return (N) V1ScaleIOPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java index 8f5f976715..42cd323d2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ScaleIOVolumeSourceBuilder - extends V1ScaleIOVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ScaleIOVolumeSourceBuilder extends V1ScaleIOVolumeSourceFluentImpl implements VisitableBuilder{ public V1ScaleIOVolumeSourceBuilder() { this(false); } - public V1ScaleIOVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ScaleIOVolumeSource(), validationEnabled); } - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent) { this(fluent, false); } - - public V1ScaleIOVolumeSourceBuilder( - V1ScaleIOVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1ScaleIOVolumeSource(), validationEnabled); } - - public V1ScaleIOVolumeSourceBuilder( - V1ScaleIOVolumeSourceFluent fluent, V1ScaleIOVolumeSource instance) { + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,V1ScaleIOVolumeSource instance) { this(fluent, instance, false); } - - public V1ScaleIOVolumeSourceBuilder( - V1ScaleIOVolumeSourceFluent fluent, - V1ScaleIOVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,V1ScaleIOVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withGateway(instance.getGateway()); @@ -64,15 +40,13 @@ public V1ScaleIOVolumeSourceBuilder( fluent.withVolumeName(instance.getVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withGateway(instance.getGateway()); @@ -93,12 +67,10 @@ public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance, Boolean vali this.withVolumeName(instance.getVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScaleIOVolumeSourceFluent fluent; Boolean validationEnabled; - public V1ScaleIOVolumeSource build() { V1ScaleIOVolumeSource buildable = new V1ScaleIOVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -113,4 +85,5 @@ public V1ScaleIOVolumeSource build() { buildable.setVolumeName(fluent.getVolumeName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java index 7e90589305..a7e95c8cf5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java @@ -1,112 +1,63 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ScaleIOVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ScaleIOVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getGateway(); - public A withGateway(String gateway); - public Boolean hasGateway(); - public String getProtectionDomain(); - public A withProtectionDomain(String protectionDomain); - public Boolean hasProtectionDomain(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1ScaleIOVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public Boolean getSslEnabled(); - public A withSslEnabled(Boolean sslEnabled); - public Boolean hasSslEnabled(); - public String getStorageMode(); - public A withStorageMode(String storageMode); - public Boolean hasStorageMode(); - public String getStoragePool(); - public A withStoragePool(String storagePool); - public Boolean hasStoragePool(); - public String getSystem(); - public A withSystem(String system); - public Boolean hasSystem(); - public String getVolumeName(); - public A withVolumeName(String volumeName); - public Boolean hasVolumeName(); - public A withReadOnly(); - public A withSslEnabled(); - - public interface SecretRefNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java index c978ed9c13..109fa7a79f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScaleIOVolumeSourceFluentImpl> - extends BaseFluent implements V1ScaleIOVolumeSourceFluent { - public V1ScaleIOVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScaleIOVolumeSourceFluentImpl> extends BaseFluent implements V1ScaleIOVolumeSourceFluent{ + public V1ScaleIOVolumeSourceFluentImpl() { + } public V1ScaleIOVolumeSourceFluentImpl(V1ScaleIOVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -41,8 +35,8 @@ public V1ScaleIOVolumeSourceFluentImpl(V1ScaleIOVolumeSource instance) { this.withSystem(instance.getSystem()); this.withVolumeName(instance.getVolumeName()); - } + } private String fsType; private String gateway; private String protectionDomain; @@ -53,290 +47,177 @@ public V1ScaleIOVolumeSourceFluentImpl(V1ScaleIOVolumeSource instance) { private String storagePool; private String system; private String volumeName; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getGateway() { return this.gateway; } - public A withGateway(String gateway) { - this.gateway = gateway; - return (A) this; + this.gateway=gateway; return (A) this; } - public Boolean hasGateway() { return this.gateway != null; } - public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(String protectionDomain) { - this.protectionDomain = protectionDomain; - return (A) this; + this.protectionDomain=protectionDomain; return (A) this; } - public Boolean hasProtectionDomain() { return this.protectionDomain != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1ScaleIOVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1ScaleIOVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1ScaleIOVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public Boolean getSslEnabled() { return this.sslEnabled; } - public A withSslEnabled(Boolean sslEnabled) { - this.sslEnabled = sslEnabled; - return (A) this; + this.sslEnabled=sslEnabled; return (A) this; } - public Boolean hasSslEnabled() { return this.sslEnabled != null; } - public String getStorageMode() { return this.storageMode; } - public A withStorageMode(String storageMode) { - this.storageMode = storageMode; - return (A) this; + this.storageMode=storageMode; return (A) this; } - public Boolean hasStorageMode() { return this.storageMode != null; } - public String getStoragePool() { return this.storagePool; } - public A withStoragePool(String storagePool) { - this.storagePool = storagePool; - return (A) this; + this.storagePool=storagePool; return (A) this; } - public Boolean hasStoragePool() { return this.storagePool != null; } - public String getSystem() { return this.system; } - public A withSystem(String system) { - this.system = system; - return (A) this; + this.system=system; return (A) this; } - public Boolean hasSystem() { return this.system != null; } - public String getVolumeName() { return this.volumeName; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + this.volumeName=volumeName; return (A) this; } - public Boolean hasVolumeName() { return this.volumeName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ScaleIOVolumeSourceFluentImpl that = (V1ScaleIOVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (gateway != null ? !gateway.equals(that.gateway) : that.gateway != null) return false; - if (protectionDomain != null - ? !protectionDomain.equals(that.protectionDomain) - : that.protectionDomain != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (sslEnabled != null ? !sslEnabled.equals(that.sslEnabled) : that.sslEnabled != null) - return false; - if (storageMode != null ? !storageMode.equals(that.storageMode) : that.storageMode != null) - return false; - if (storagePool != null ? !storagePool.equals(that.storagePool) : that.storagePool != null) - return false; - if (system != null ? !system.equals(that.system) : that.system != null) return false; - if (volumeName != null ? !volumeName.equals(that.volumeName) : that.volumeName != null) - return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (gateway != null ? !gateway.equals(that.gateway) :that.gateway != null) return false; + if (protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) :that.protectionDomain != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (sslEnabled != null ? !sslEnabled.equals(that.sslEnabled) :that.sslEnabled != null) return false; + if (storageMode != null ? !storageMode.equals(that.storageMode) :that.storageMode != null) return false; + if (storagePool != null ? !storagePool.equals(that.storagePool) :that.storagePool != null) return false; + if (system != null ? !system.equals(that.system) :that.system != null) return false; + if (volumeName != null ? !volumeName.equals(that.volumeName) :that.volumeName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, - gateway, - protectionDomain, - readOnly, - secretRef, - sslEnabled, - storageMode, - storagePool, - system, - volumeName, - super.hashCode()); + return java.util.Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (gateway != null) { - sb.append("gateway:"); - sb.append(gateway + ","); - } - if (protectionDomain != null) { - sb.append("protectionDomain:"); - sb.append(protectionDomain + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (sslEnabled != null) { - sb.append("sslEnabled:"); - sb.append(sslEnabled + ","); - } - if (storageMode != null) { - sb.append("storageMode:"); - sb.append(storageMode + ","); - } - if (storagePool != null) { - sb.append("storagePool:"); - sb.append(storagePool + ","); - } - if (system != null) { - sb.append("system:"); - sb.append(system + ","); - } - if (volumeName != null) { - sb.append("volumeName:"); - sb.append(volumeName); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (gateway != null) { sb.append("gateway:"); sb.append(gateway + ","); } + if (protectionDomain != null) { sb.append("protectionDomain:"); sb.append(protectionDomain + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (sslEnabled != null) { sb.append("sslEnabled:"); sb.append(sslEnabled + ","); } + if (storageMode != null) { sb.append("storageMode:"); sb.append(storageMode + ","); } + if (storagePool != null) { sb.append("storagePool:"); sb.append(storagePool + ","); } + if (system != null) { sb.append("system:"); sb.append(system + ","); } + if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - public A withSslEnabled() { return withSslEnabled(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1ScaleIOVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1ScaleIOVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1ScaleIOVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java index 8415a0d041..93e49c4e25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1ScaleSpecBuilder extends V1ScaleSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ScaleSpecBuilder extends V1ScaleSpecFluentImpl implements VisitableBuilder{ public V1ScaleSpecBuilder() { this(false); } - public V1ScaleSpecBuilder(Boolean validationEnabled) { this(new V1ScaleSpec(), validationEnabled); } - public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent) { this(fluent, false); } - - public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent, Boolean validationEnabled) { + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1ScaleSpec(), validationEnabled); } - - public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent, V1ScaleSpec instance) { + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,V1ScaleSpec instance) { this(fluent, instance, false); } - - public V1ScaleSpecBuilder( - V1ScaleSpecFluent fluent, V1ScaleSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,V1ScaleSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withReplicas(instance.getReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScaleSpecBuilder(V1ScaleSpec instance) { - this(instance, false); + this(instance,false); } - - public V1ScaleSpecBuilder(V1ScaleSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScaleSpecBuilder(V1ScaleSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withReplicas(instance.getReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScaleSpecFluent fluent; Boolean validationEnabled; - public V1ScaleSpec build() { V1ScaleSpec buildable = new V1ScaleSpec(); buildable.setReplicas(fluent.getReplicas()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java index 8cc460a2ce..219bb0447d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java @@ -1,24 +1,15 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1ScaleSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1ScaleSpecFluent> extends Fluent{ public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java index a0b00d9be8..f5821ef2fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java @@ -1,64 +1,49 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScaleSpecFluentImpl> extends BaseFluent - implements V1ScaleSpecFluent { - public V1ScaleSpecFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScaleSpecFluentImpl> extends BaseFluent implements V1ScaleSpecFluent{ + public V1ScaleSpecFluentImpl() { + } public V1ScaleSpecFluentImpl(V1ScaleSpec instance) { this.withReplicas(instance.getReplicas()); - } + } private Integer replicas; - public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + this.replicas=replicas; return (A) this; } - public Boolean hasReplicas() { return this.replicas != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ScaleSpecFluentImpl that = (V1ScaleSpecFluentImpl) o; - if (replicas != null ? !replicas.equals(that.replicas) : that.replicas != null) return false; + if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(replicas, super.hashCode()); + return java.util.Objects.hash(replicas, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (replicas != null) { - sb.append("replicas:"); - sb.append(replicas); - } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java index 5e5c160da6..e4ef92d2ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ScaleStatusBuilder extends V1ScaleStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ScaleStatusBuilder extends V1ScaleStatusFluentImpl implements VisitableBuilder{ public V1ScaleStatusBuilder() { this(false); } - public V1ScaleStatusBuilder(Boolean validationEnabled) { this(new V1ScaleStatus(), validationEnabled); } - public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent) { this(fluent, false); } - - public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent, Boolean validationEnabled) { + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ScaleStatus(), validationEnabled); } - - public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent, V1ScaleStatus instance) { + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,V1ScaleStatus instance) { this(fluent, instance, false); } - - public V1ScaleStatusBuilder( - V1ScaleStatusFluent fluent, V1ScaleStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,V1ScaleStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withReplicas(instance.getReplicas()); fluent.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScaleStatusBuilder(V1ScaleStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ScaleStatusBuilder(V1ScaleStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScaleStatusBuilder(V1ScaleStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withReplicas(instance.getReplicas()); this.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScaleStatusFluent fluent; Boolean validationEnabled; - public V1ScaleStatus build() { V1ScaleStatus buildable = new V1ScaleStatus(); buildable.setReplicas(fluent.getReplicas()); buildable.setSelector(fluent.getSelector()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java index 4da39dbcb1..c5e4d4573b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java @@ -1,30 +1,19 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ScaleStatusFluent> extends Fluent { + /** + * Generated + */ +public interface V1ScaleStatusFluent> extends Fluent{ public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - public String getSelector(); - public A withSelector(String selector); - public Boolean hasSelector(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java index 791ce2e83b..cc0aa47ed5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java @@ -1,85 +1,63 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScaleStatusFluentImpl> extends BaseFluent - implements V1ScaleStatusFluent { - public V1ScaleStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScaleStatusFluentImpl> extends BaseFluent implements V1ScaleStatusFluent{ + public V1ScaleStatusFluentImpl() { + } public V1ScaleStatusFluentImpl(V1ScaleStatus instance) { this.withReplicas(instance.getReplicas()); this.withSelector(instance.getSelector()); - } + } private Integer replicas; private String selector; - public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + this.replicas=replicas; return (A) this; } - public Boolean hasReplicas() { return this.replicas != null; } - public String getSelector() { return this.selector; } - public A withSelector(String selector) { - this.selector = selector; - return (A) this; + this.selector=selector; return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ScaleStatusFluentImpl that = (V1ScaleStatusFluentImpl) o; - if (replicas != null ? !replicas.equals(that.replicas) : that.replicas != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; + if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(replicas, selector, super.hashCode()); + return java.util.Objects.hash(replicas, selector, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (replicas != null) { - sb.append("replicas:"); - sb.append(replicas + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector); - } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java index aa7ba8f96d..0fa478b76e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1SchedulingBuilder extends V1SchedulingFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SchedulingBuilder extends V1SchedulingFluentImpl implements VisitableBuilder{ public V1SchedulingBuilder() { this(false); } - public V1SchedulingBuilder(Boolean validationEnabled) { this(new V1Scheduling(), validationEnabled); } - public V1SchedulingBuilder(V1SchedulingFluent fluent) { this(fluent, false); } - - public V1SchedulingBuilder(V1SchedulingFluent fluent, Boolean validationEnabled) { + public V1SchedulingBuilder(V1SchedulingFluent fluent,Boolean validationEnabled) { this(fluent, new V1Scheduling(), validationEnabled); } - - public V1SchedulingBuilder(V1SchedulingFluent fluent, V1Scheduling instance) { + public V1SchedulingBuilder(V1SchedulingFluent fluent,V1Scheduling instance) { this(fluent, instance, false); } - - public V1SchedulingBuilder( - V1SchedulingFluent fluent, V1Scheduling instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SchedulingBuilder(V1SchedulingFluent fluent,V1Scheduling instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNodeSelector(instance.getNodeSelector()); fluent.withTolerations(instance.getTolerations()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SchedulingBuilder(V1Scheduling instance) { - this(instance, false); + this(instance,false); } - - public V1SchedulingBuilder(V1Scheduling instance, Boolean validationEnabled) { - this.fluent = this; + public V1SchedulingBuilder(V1Scheduling instance,Boolean validationEnabled) { + this.fluent = this; this.withNodeSelector(instance.getNodeSelector()); this.withTolerations(instance.getTolerations()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SchedulingFluent fluent; Boolean validationEnabled; - public V1Scheduling build() { V1Scheduling buildable = new V1Scheduling(); buildable.setNodeSelector(fluent.getNodeSelector()); buildable.setTolerations(fluent.getTolerations()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java index 1d31ecf7cd..705c76a402 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java @@ -1,100 +1,65 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1SchedulingFluent> extends Fluent { - public A addToNodeSelector(String key, String value); - - public A addToNodeSelector(Map map); + /** + * Generated + */ +public interface V1SchedulingFluent> extends Fluent{ + public A addToNodeSelector(String key,String value); + public A addToNodeSelector(Map map); public A removeFromNodeSelector(String key); - - public A removeFromNodeSelector(Map map); - - public Map getNodeSelector(); - - public A withNodeSelector(Map nodeSelector); - + public A removeFromNodeSelector(Map map); + public Map getNodeSelector(); + public A withNodeSelector(Map nodeSelector); public Boolean hasNodeSelector(); - - public A addToTolerations(Integer index, V1Toleration item); - - public A setToTolerations(Integer index, V1Toleration item); - + public A addToTolerations(Integer index,V1Toleration item); + public A setToTolerations(Integer index,V1Toleration item); public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A addAllToTolerations(Collection items); - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A removeAllFromTolerations(Collection items); - public A removeMatchingFromTolerations(Predicate predicate); - + /** * This method has been deprecated, please use method buildTolerations instead. - * * @return The buildable object. */ @Deprecated public List getTolerations(); - public List buildTolerations(); - public V1Toleration buildToleration(Integer index); - public V1Toleration buildFirstToleration(); - public V1Toleration buildLastToleration(); - public V1Toleration buildMatchingToleration(Predicate predicate); - public Boolean hasMatchingToleration(Predicate predicate); - public A withTolerations(List tolerations); - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations); - public Boolean hasTolerations(); - public V1SchedulingFluent.TolerationsNested addNewToleration(); - public V1SchedulingFluent.TolerationsNested addNewTolerationLike(V1Toleration item); - - public V1SchedulingFluent.TolerationsNested setNewTolerationLike( - Integer index, V1Toleration item); - + public V1SchedulingFluent.TolerationsNested setNewTolerationLike(Integer index,V1Toleration item); public V1SchedulingFluent.TolerationsNested editToleration(Integer index); - public V1SchedulingFluent.TolerationsNested editFirstToleration(); - public V1SchedulingFluent.TolerationsNested editLastToleration(); - - public V1SchedulingFluent.TolerationsNested editMatchingToleration( - Predicate predicate); - - public interface TolerationsNested - extends Nested, V1TolerationFluent> { + public V1SchedulingFluent.TolerationsNested editMatchingToleration(Predicate predicate); + public interface TolerationsNested extends Nested,V1TolerationFluent>{ public N and(); - public N endToleration(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java index f9a692eafc..ca5aa1e4b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java @@ -1,179 +1,87 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SchedulingFluentImpl> extends BaseFluent - implements V1SchedulingFluent { - public V1SchedulingFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SchedulingFluentImpl> extends BaseFluent implements V1SchedulingFluent{ + public V1SchedulingFluentImpl() { + } public V1SchedulingFluentImpl(V1Scheduling instance) { this.withNodeSelector(instance.getNodeSelector()); this.withTolerations(instance.getTolerations()); - } - private Map nodeSelector; + } + private Map nodeSelector; private ArrayList tolerations; - - public A addToNodeSelector(String key, String value) { - if (this.nodeSelector == null && key != null && value != null) { - this.nodeSelector = new LinkedHashMap(); - } - if (key != null && value != null) { - this.nodeSelector.put(key, value); - } - return (A) this; + public A addToNodeSelector(String key,String value) { + if(this.nodeSelector == null && key != null && value != null) { this.nodeSelector = new LinkedHashMap(); } + if(key != null && value != null) {this.nodeSelector.put(key, value);} return (A)this; } - - public A addToNodeSelector(Map map) { - if (this.nodeSelector == null && map != null) { - this.nodeSelector = new LinkedHashMap(); - } - if (map != null) { - this.nodeSelector.putAll(map); - } - return (A) this; + public A addToNodeSelector(Map map) { + if(this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); } + if(map != null) { this.nodeSelector.putAll(map);} return (A)this; } - public A removeFromNodeSelector(String key) { - if (this.nodeSelector == null) { - return (A) this; - } - if (key != null && this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - return (A) this; + if(this.nodeSelector == null) { return (A) this; } + if(key != null && this.nodeSelector != null) {this.nodeSelector.remove(key);} return (A)this; } - - public A removeFromNodeSelector(Map map) { - if (this.nodeSelector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - } - } - return (A) this; + public A removeFromNodeSelector(Map map) { + if(this.nodeSelector == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.nodeSelector != null){this.nodeSelector.remove(key);}}} return (A)this; } - - public Map getNodeSelector() { + public Map getNodeSelector() { return this.nodeSelector; } - - public A withNodeSelector(Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; - } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); - } - return (A) this; + public A withNodeSelector(Map nodeSelector) { + if (nodeSelector == null) { this.nodeSelector = null;} else {this.nodeSelector = new LinkedHashMap(nodeSelector);} return (A) this; } - public Boolean hasNodeSelector() { return this.nodeSelector != null; } - - public A addToTolerations(Integer index, V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables - .get("tolerations") - .add(index >= 0 ? index : _visitables.get("tolerations").size(), builder); - this.tolerations.add(index >= 0 ? index : tolerations.size(), builder); - return (A) this; + public A addToTolerations(Integer index,V1Toleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(index >= 0 ? index : _visitables.get("tolerations").size(), builder);this.tolerations.add(index >= 0 ? index : tolerations.size(), builder); return (A)this; } - - public A setToTolerations(Integer index, V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } + public A setToTolerations(Integer index,V1Toleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= _visitables.get("tolerations").size()) { - _visitables.get("tolerations").add(builder); - } else { - _visitables.get("tolerations").set(index, builder); - } - if (index < 0 || index >= tolerations.size()) { - tolerations.add(builder); - } else { - tolerations.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("tolerations").size()) { _visitables.get("tolerations").add(builder); } else { _visitables.get("tolerations").set(index, builder);} + if (index < 0 || index >= tolerations.size()) { tolerations.add(builder); } else { tolerations.set(index, builder);} + return (A)this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - if (this.tolerations != null) { - this.tolerations.remove(builder); - } - } - return (A) this; + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder);if (this.tolerations != null) {this.tolerations.remove(builder);}} return (A)this; } - public A removeAllFromTolerations(Collection items) { - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - if (this.tolerations != null) { - this.tolerations.remove(builder); - } - } - return (A) this; + for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder);if (this.tolerations != null) {this.tolerations.remove(builder);}} return (A)this; } - public A removeMatchingFromTolerations(Predicate predicate) { if (tolerations == null) return (A) this; final Iterator each = tolerations.iterator(); @@ -185,180 +93,113 @@ public A removeMatchingFromTolerations(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildTolerations instead. - * * @return The buildable object. */ @Deprecated public List getTolerations() { return tolerations != null ? build(tolerations) : null; } - public List buildTolerations() { return tolerations != null ? build(tolerations) : null; } - public V1Toleration buildToleration(Integer index) { return this.tolerations.get(index).build(); } - public V1Toleration buildFirstToleration() { return this.tolerations.get(0).build(); } - public V1Toleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } - public V1Toleration buildMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1TolerationBuilder item: tolerations) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1TolerationBuilder item: tolerations) { if(predicate.test(item)){ return true;} } return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - _visitables.get("tolerations").removeAll(this.tolerations); - } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; + if (this.tolerations != null) { _visitables.get("tolerations").removeAll(this.tolerations);} + if (tolerations != null) {this.tolerations = new ArrayList(); for (V1Toleration item : tolerations){this.addToTolerations(item);}} else { this.tolerations = null;} return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - } - if (tolerations != null) { - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; + if (this.tolerations != null) {this.tolerations.clear();} + if (tolerations != null) {for (V1Toleration item :tolerations){ this.addToTolerations(item);}} return (A) this; } - public Boolean hasTolerations() { return tolerations != null && !tolerations.isEmpty(); } - public V1SchedulingFluent.TolerationsNested addNewToleration() { return new V1SchedulingFluentImpl.TolerationsNestedImpl(); } - public V1SchedulingFluent.TolerationsNested addNewTolerationLike(V1Toleration item) { return new V1SchedulingFluentImpl.TolerationsNestedImpl(-1, item); } - - public V1SchedulingFluent.TolerationsNested setNewTolerationLike( - Integer index, V1Toleration item) { + public V1SchedulingFluent.TolerationsNested setNewTolerationLike(Integer index,V1Toleration item) { return new V1SchedulingFluentImpl.TolerationsNestedImpl(index, item); } - public V1SchedulingFluent.TolerationsNested editToleration(Integer index) { - if (tolerations.size() <= index) - throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); return setNewTolerationLike(index, buildToleration(index)); } - public V1SchedulingFluent.TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) - throw new RuntimeException("Can't edit first tolerations. The list is empty."); + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); return setNewTolerationLike(0, buildToleration(0)); } - public V1SchedulingFluent.TolerationsNested editLastToleration() { int index = tolerations.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); return setNewTolerationLike(index, buildToleration(index)); } - - public V1SchedulingFluent.TolerationsNested editMatchingToleration( - Predicate predicate) { + public V1SchedulingFluent.TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i = 0; i < tolerations.size(); i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1TolerationFluentImpl> - implements V1SchedulingFluent.TolerationsNested, Nested { - TolerationsNestedImpl(Integer index, V1Toleration item) { + class TolerationsNestedImpl extends V1TolerationFluentImpl> implements V1SchedulingFluent.TolerationsNested,Nested{ + TolerationsNestedImpl(Integer index,V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } - TolerationsNestedImpl() { this.index = -1; this.builder = new V1TolerationBuilder(this); } - V1TolerationBuilder builder; Integer index; - public N and() { - return (N) V1SchedulingFluentImpl.this.setToTolerations(index, builder.build()); + return (N) V1SchedulingFluentImpl.this.setToTolerations(index,builder.build()); } - public N endToleration() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java index c86c80a4f2..1334ffdde0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java @@ -1,66 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1ScopeSelectorBuilder extends V1ScopeSelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ScopeSelectorBuilder extends V1ScopeSelectorFluentImpl implements VisitableBuilder{ public V1ScopeSelectorBuilder() { this(false); } - public V1ScopeSelectorBuilder(Boolean validationEnabled) { this(new V1ScopeSelector(), validationEnabled); } - public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent) { this(fluent, false); } - - public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent, Boolean validationEnabled) { + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1ScopeSelector(), validationEnabled); } - - public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent, V1ScopeSelector instance) { + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,V1ScopeSelector instance) { this(fluent, instance, false); } - - public V1ScopeSelectorBuilder( - V1ScopeSelectorFluent fluent, V1ScopeSelector instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,V1ScopeSelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMatchExpressions(instance.getMatchExpressions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScopeSelectorBuilder(V1ScopeSelector instance) { - this(instance, false); + this(instance,false); } - - public V1ScopeSelectorBuilder(V1ScopeSelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScopeSelectorBuilder(V1ScopeSelector instance,Boolean validationEnabled) { + this.fluent = this; this.withMatchExpressions(instance.getMatchExpressions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScopeSelectorFluent fluent; Boolean validationEnabled; - public V1ScopeSelector build() { V1ScopeSelector buildable = new V1ScopeSelector(); buildable.setMatchExpressions(fluent.getMatchExpressions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java index 55ab926bfd..6824d5dc48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java @@ -1,94 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ScopeSelectorFluent> extends Fluent { - public A addToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item); - - public A setToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item); - - public A addToMatchExpressions( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ScopeSelectorFluent> extends Fluent{ + public A addToMatchExpressions(Integer index,V1ScopedResourceSelectorRequirement item); + public A setToMatchExpressions(Integer index,V1ScopedResourceSelectorRequirement item); + public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items); public A addAllToMatchExpressions(Collection items); - - public A removeFromMatchExpressions( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items); - + public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items); public A removeAllFromMatchExpressions(Collection items); - - public A removeMatchingFromMatchExpressions( - Predicate predicate); - + public A removeMatchingFromMatchExpressions(Predicate predicate); + /** * This method has been deprecated, please use method buildMatchExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchExpressions(); - public List buildMatchExpressions(); - public V1ScopedResourceSelectorRequirement buildMatchExpression(Integer index); - public V1ScopedResourceSelectorRequirement buildFirstMatchExpression(); - public V1ScopedResourceSelectorRequirement buildLastMatchExpression(); - - public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression( - Predicate predicate); - - public Boolean hasMatchingMatchExpression( - Predicate predicate); - + public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression(Predicate predicate); + public Boolean hasMatchingMatchExpression(Predicate predicate); public A withMatchExpressions(List matchExpressions); - - public A withMatchExpressions( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions); - + public A withMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions); public Boolean hasMatchExpressions(); - public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpression(); - - public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( - V1ScopedResourceSelectorRequirement item); - - public V1ScopeSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( - Integer index, V1ScopedResourceSelectorRequirement item); - + public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item); + public V1ScopeSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike(Integer index,V1ScopedResourceSelectorRequirement item); public V1ScopeSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index); - public V1ScopeSelectorFluent.MatchExpressionsNested editFirstMatchExpression(); - public V1ScopeSelectorFluent.MatchExpressionsNested editLastMatchExpression(); - - public V1ScopeSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( - Predicate predicate); - - public interface MatchExpressionsNested - extends Nested, - V1ScopedResourceSelectorRequirementFluent< - V1ScopeSelectorFluent.MatchExpressionsNested> { + public V1ScopeSelectorFluent.MatchExpressionsNested editMatchingMatchExpression(Predicate predicate); + public interface MatchExpressionsNested extends Nested,V1ScopedResourceSelectorRequirementFluent>{ public N and(); - public N endMatchExpression(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java index 354fd93dac..a14d8eb109 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java @@ -1,123 +1,58 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScopeSelectorFluentImpl> extends BaseFluent - implements V1ScopeSelectorFluent { - public V1ScopeSelectorFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScopeSelectorFluentImpl> extends BaseFluent implements V1ScopeSelectorFluent{ + public V1ScopeSelectorFluentImpl() { + } public V1ScopeSelectorFluentImpl(V1ScopeSelector instance) { this.withMatchExpressions(instance.getMatchExpressions()); - } + } private ArrayList matchExpressions; - - public A addToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - V1ScopedResourceSelectorRequirementBuilder builder = - new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables - .get("matchExpressions") - .add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder); - this.matchExpressions.add(index >= 0 ? index : matchExpressions.size(), builder); - return (A) this; + public A addToMatchExpressions(Integer index,V1ScopedResourceSelectorRequirement item) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder);this.matchExpressions.add(index >= 0 ? index : matchExpressions.size(), builder); return (A)this; } - - public A setToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - V1ScopedResourceSelectorRequirementBuilder builder = - new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= _visitables.get("matchExpressions").size()) { - _visitables.get("matchExpressions").add(builder); - } else { - _visitables.get("matchExpressions").set(index, builder); - } - if (index < 0 || index >= matchExpressions.size()) { - matchExpressions.add(builder); - } else { - matchExpressions.set(index, builder); - } - return (A) this; + public A setToMatchExpressions(Integer index,V1ScopedResourceSelectorRequirement item) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + if (index < 0 || index >= _visitables.get("matchExpressions").size()) { _visitables.get("matchExpressions").add(builder); } else { _visitables.get("matchExpressions").set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { matchExpressions.add(builder); } else { matchExpressions.set(index, builder);} + return (A)this; } - - public A addToMatchExpressions( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = - new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; + public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; } - public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = - new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; + if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; } - - public A removeFromMatchExpressions( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = - new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - if (this.matchExpressions != null) { - this.matchExpressions.remove(builder); - } - } - return (A) this; + public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { + for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder);if (this.matchExpressions != null) {this.matchExpressions.remove(builder);}} return (A)this; } - public A removeAllFromMatchExpressions(Collection items) { - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = - new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - if (this.matchExpressions != null) { - this.matchExpressions.remove(builder); - } - } - return (A) this; + for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder);if (this.matchExpressions != null) {this.matchExpressions.remove(builder);}} return (A)this; } - - public A removeMatchingFromMatchExpressions( - Predicate predicate) { + public A removeMatchingFromMatchExpressions(Predicate predicate) { if (matchExpressions == null) return (A) this; final Iterator each = matchExpressions.iterator(); final List visitables = _visitables.get("matchExpressions"); @@ -128,182 +63,111 @@ public A removeMatchingFromMatchExpressions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildMatchExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public List buildMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public V1ScopedResourceSelectorRequirement buildMatchExpression(Integer index) { return this.matchExpressions.get(index).build(); } - public V1ScopedResourceSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } - public V1ScopedResourceSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - - public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression( - Predicate predicate) { - for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { + for (V1ScopedResourceSelectorRequirementBuilder item: matchExpressions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingMatchExpression( - Predicate predicate) { - for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1ScopedResourceSelectorRequirementBuilder item: matchExpressions) { if(predicate.test(item)){ return true;} } return false; } - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - _visitables.get("matchExpressions").removeAll(this.matchExpressions); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1ScopedResourceSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; - } - return (A) this; + if (this.matchExpressions != null) { _visitables.get("matchExpressions").removeAll(this.matchExpressions);} + if (matchExpressions != null) {this.matchExpressions = new ArrayList(); for (V1ScopedResourceSelectorRequirement item : matchExpressions){this.addToMatchExpressions(item);}} else { this.matchExpressions = null;} return (A) this; } - - public A withMatchExpressions( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - } - if (matchExpressions != null) { - for (V1ScopedResourceSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } - return (A) this; + public A withMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) {this.matchExpressions.clear();} + if (matchExpressions != null) {for (V1ScopedResourceSelectorRequirement item :matchExpressions){ this.addToMatchExpressions(item);}} return (A) this; } - public Boolean hasMatchExpressions() { return matchExpressions != null && !matchExpressions.isEmpty(); } - public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpression() { return new V1ScopeSelectorFluentImpl.MatchExpressionsNestedImpl(); } - - public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( - V1ScopedResourceSelectorRequirement item) { + public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item) { return new V1ScopeSelectorFluentImpl.MatchExpressionsNestedImpl(-1, item); } - - public V1ScopeSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( - Integer index, V1ScopedResourceSelectorRequirement item) { + public V1ScopeSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike(Integer index,V1ScopedResourceSelectorRequirement item) { return new V1ScopeSelectorFluentImpl.MatchExpressionsNestedImpl(index, item); } - public V1ScopeSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index) { - if (matchExpressions.size() <= index) - throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); + if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public V1ScopeSelectorFluent.MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) - throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); + if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); return setNewMatchExpressionLike(0, buildMatchExpression(0)); } - public V1ScopeSelectorFluent.MatchExpressionsNested editLastMatchExpression() { int index = matchExpressions.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - - public V1ScopeSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( - Predicate predicate) { + public V1ScopeSelectorFluent.MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; - for (int i = 0; i < matchExpressions.size(); i++) { - if (predicate.test(matchExpressions.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching matchExpressions. No match found."); + for (int i=0;i - extends V1ScopedResourceSelectorRequirementFluentImpl< - V1ScopeSelectorFluent.MatchExpressionsNested> - implements V1ScopeSelectorFluent.MatchExpressionsNested, Nested { - MatchExpressionsNestedImpl(Integer index, V1ScopedResourceSelectorRequirement item) { + class MatchExpressionsNestedImpl extends V1ScopedResourceSelectorRequirementFluentImpl> implements V1ScopeSelectorFluent.MatchExpressionsNested,Nested{ + MatchExpressionsNestedImpl(Integer index,V1ScopedResourceSelectorRequirement item) { this.index = index; this.builder = new V1ScopedResourceSelectorRequirementBuilder(this, item); } - MatchExpressionsNestedImpl() { this.index = -1; this.builder = new V1ScopedResourceSelectorRequirementBuilder(this); } - V1ScopedResourceSelectorRequirementBuilder builder; Integer index; - public N and() { - return (N) V1ScopeSelectorFluentImpl.this.setToMatchExpressions(index, builder.build()); + return (N) V1ScopeSelectorFluentImpl.this.setToMatchExpressions(index,builder.build()); } - public N endMatchExpression() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java index 9473a810ec..d57cd8cb74 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java @@ -1,81 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ScopedResourceSelectorRequirementBuilder - extends V1ScopedResourceSelectorRequirementFluentImpl< - V1ScopedResourceSelectorRequirementBuilder> - implements VisitableBuilder< - V1ScopedResourceSelectorRequirement, V1ScopedResourceSelectorRequirementBuilder> { +import java.lang.Boolean; +public class V1ScopedResourceSelectorRequirementBuilder extends V1ScopedResourceSelectorRequirementFluentImpl implements VisitableBuilder{ public V1ScopedResourceSelectorRequirementBuilder() { this(false); } - public V1ScopedResourceSelectorRequirementBuilder(Boolean validationEnabled) { this(new V1ScopedResourceSelectorRequirement(), validationEnabled); } - - public V1ScopedResourceSelectorRequirementBuilder( - V1ScopedResourceSelectorRequirementFluent fluent) { + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent) { this(fluent, false); } - - public V1ScopedResourceSelectorRequirementBuilder( - V1ScopedResourceSelectorRequirementFluent fluent, Boolean validationEnabled) { + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,Boolean validationEnabled) { this(fluent, new V1ScopedResourceSelectorRequirement(), validationEnabled); } - - public V1ScopedResourceSelectorRequirementBuilder( - V1ScopedResourceSelectorRequirementFluent fluent, - V1ScopedResourceSelectorRequirement instance) { + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,V1ScopedResourceSelectorRequirement instance) { this(fluent, instance, false); } - - public V1ScopedResourceSelectorRequirementBuilder( - V1ScopedResourceSelectorRequirementFluent fluent, - V1ScopedResourceSelectorRequirement instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,V1ScopedResourceSelectorRequirement instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withOperator(instance.getOperator()); fluent.withScopeName(instance.getScopeName()); fluent.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirement instance) { - this(instance, false); + this(instance,false); } - - public V1ScopedResourceSelectorRequirementBuilder( - V1ScopedResourceSelectorRequirement instance, Boolean validationEnabled) { - this.fluent = this; + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirement instance,Boolean validationEnabled) { + this.fluent = this; this.withOperator(instance.getOperator()); this.withScopeName(instance.getScopeName()); this.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ScopedResourceSelectorRequirementFluent fluent; Boolean validationEnabled; - public V1ScopedResourceSelectorRequirement build() { V1ScopedResourceSelectorRequirement buildable = new V1ScopedResourceSelectorRequirement(); buildable.setOperator(fluent.getOperator()); @@ -83,4 +50,5 @@ public V1ScopedResourceSelectorRequirement build() { buildable.setValues(fluent.getValues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java index da0b8834f0..461b1670ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java @@ -1,65 +1,38 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1ScopedResourceSelectorRequirementFluent< - A extends V1ScopedResourceSelectorRequirementFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ScopedResourceSelectorRequirementFluent> extends Fluent{ public String getOperator(); - public A withOperator(String operator); - public Boolean hasOperator(); - public String getScopeName(); - public A withScopeName(String scopeName); - public Boolean hasScopeName(); - - public A addToValues(Integer index, String item); - - public A setToValues(Integer index, String item); - + public A addToValues(Integer index,String item); + public A setToValues(Integer index,String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); - public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(Collection items); - public List getValues(); - public String getValue(Integer index); - public String getFirstValue(); - public String getLastValue(); - public String getMatchingValue(Predicate predicate); - public Boolean hasMatchingValue(Predicate predicate); - public A withValues(List values); - public A withValues(java.lang.String... values); - public Boolean hasValues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java index 7bca80a686..5388ca595e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java @@ -1,217 +1,123 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ScopedResourceSelectorRequirementFluentImpl< - A extends V1ScopedResourceSelectorRequirementFluent> - extends BaseFluent implements V1ScopedResourceSelectorRequirementFluent { - public V1ScopedResourceSelectorRequirementFluentImpl() {} - - public V1ScopedResourceSelectorRequirementFluentImpl( - V1ScopedResourceSelectorRequirement instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ScopedResourceSelectorRequirementFluentImpl> extends BaseFluent implements V1ScopedResourceSelectorRequirementFluent{ + public V1ScopedResourceSelectorRequirementFluentImpl() { + } + public V1ScopedResourceSelectorRequirementFluentImpl(V1ScopedResourceSelectorRequirement instance) { this.withOperator(instance.getOperator()); this.withScopeName(instance.getScopeName()); this.withValues(instance.getValues()); - } + } private String operator; private String scopeName; private List values; - public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + this.operator=operator; return (A) this; } - public Boolean hasOperator() { return this.operator != null; } - public String getScopeName() { return this.scopeName; } - public A withScopeName(String scopeName) { - this.scopeName = scopeName; - return (A) this; + this.scopeName=scopeName; return (A) this; } - public Boolean hasScopeName() { return this.scopeName != null; } - - public A addToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } + public A addToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} this.values.add(index, item); - return (A) this; + return (A)this; } - - public A setToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } - this.values.set(index, item); - return (A) this; + public A setToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.set(index, item); return (A)this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A addAllToValues(Collection items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A removeFromValues(java.lang.String... items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public A removeAllFromValues(Collection items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public List getValues() { return this.values; } - public String getValue(Integer index) { return this.values.get(index); } - public String getFirstValue() { return this.values.get(0); } - public String getLastValue() { return this.values.get(values.size() - 1); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: values) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: values) { if(predicate.test(item)){ return true;} } return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + if (values != null) {this.values = new ArrayList(); for (String item : values){this.addToValues(item);}} else { this.values = null;} return (A) this; } - public A withValues(java.lang.String... values) { - if (this.values != null) { - this.values.clear(); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + if (this.values != null) {this.values.clear();} + if (values != null) {for (String item :values){ this.addToValues(item);}} return (A) this; } - public Boolean hasValues() { return values != null && !values.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1ScopedResourceSelectorRequirementFluentImpl that = - (V1ScopedResourceSelectorRequirementFluentImpl) o; - if (operator != null ? !operator.equals(that.operator) : that.operator != null) return false; - if (scopeName != null ? !scopeName.equals(that.scopeName) : that.scopeName != null) - return false; - if (values != null ? !values.equals(that.values) : that.values != null) return false; + V1ScopedResourceSelectorRequirementFluentImpl that = (V1ScopedResourceSelectorRequirementFluentImpl) o; + if (operator != null ? !operator.equals(that.operator) :that.operator != null) return false; + if (scopeName != null ? !scopeName.equals(that.scopeName) :that.scopeName != null) return false; + if (values != null ? !values.equals(that.values) :that.values != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(operator, scopeName, values, super.hashCode()); + return java.util.Objects.hash(operator, scopeName, values, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (operator != null) { - sb.append("operator:"); - sb.append(operator + ","); - } - if (scopeName != null) { - sb.append("scopeName:"); - sb.append(scopeName + ","); - } - if (values != null && !values.isEmpty()) { - sb.append("values:"); - sb.append(values); - } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (scopeName != null) { sb.append("scopeName:"); sb.append(scopeName + ","); } + if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java index 08dae16a33..ab7ced9c4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1SeccompProfileBuilder extends V1SeccompProfileFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SeccompProfileBuilder extends V1SeccompProfileFluentImpl implements VisitableBuilder{ public V1SeccompProfileBuilder() { this(false); } - public V1SeccompProfileBuilder(Boolean validationEnabled) { this(new V1SeccompProfile(), validationEnabled); } - public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent) { this(fluent, false); } - - public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent, Boolean validationEnabled) { + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,Boolean validationEnabled) { this(fluent, new V1SeccompProfile(), validationEnabled); } - - public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent, V1SeccompProfile instance) { + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,V1SeccompProfile instance) { this(fluent, instance, false); } - - public V1SeccompProfileBuilder( - V1SeccompProfileFluent fluent, V1SeccompProfile instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,V1SeccompProfile instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLocalhostProfile(instance.getLocalhostProfile()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SeccompProfileBuilder(V1SeccompProfile instance) { - this(instance, false); + this(instance,false); } - - public V1SeccompProfileBuilder(V1SeccompProfile instance, Boolean validationEnabled) { - this.fluent = this; + public V1SeccompProfileBuilder(V1SeccompProfile instance,Boolean validationEnabled) { + this.fluent = this; this.withLocalhostProfile(instance.getLocalhostProfile()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SeccompProfileFluent fluent; Boolean validationEnabled; - public V1SeccompProfile build() { V1SeccompProfile buildable = new V1SeccompProfile(); buildable.setLocalhostProfile(fluent.getLocalhostProfile()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java index 6f4d22a646..175c6067d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SeccompProfileFluent> extends Fluent { + /** + * Generated + */ +public interface V1SeccompProfileFluent> extends Fluent{ public String getLocalhostProfile(); - public A withLocalhostProfile(String localhostProfile); - public Boolean hasLocalhostProfile(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java index 041fac2dbd..1c5a5d486c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java @@ -1,87 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SeccompProfileFluentImpl> extends BaseFluent - implements V1SeccompProfileFluent { - public V1SeccompProfileFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SeccompProfileFluentImpl> extends BaseFluent implements V1SeccompProfileFluent{ + public V1SeccompProfileFluentImpl() { + } public V1SeccompProfileFluentImpl(V1SeccompProfile instance) { this.withLocalhostProfile(instance.getLocalhostProfile()); this.withType(instance.getType()); - } + } private String localhostProfile; private String type; - public String getLocalhostProfile() { return this.localhostProfile; } - public A withLocalhostProfile(String localhostProfile) { - this.localhostProfile = localhostProfile; - return (A) this; + this.localhostProfile=localhostProfile; return (A) this; } - public Boolean hasLocalhostProfile() { return this.localhostProfile != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SeccompProfileFluentImpl that = (V1SeccompProfileFluentImpl) o; - if (localhostProfile != null - ? !localhostProfile.equals(that.localhostProfile) - : that.localhostProfile != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (localhostProfile != null ? !localhostProfile.equals(that.localhostProfile) :that.localhostProfile != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(localhostProfile, type, super.hashCode()); + return java.util.Objects.hash(localhostProfile, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (localhostProfile != null) { - sb.append("localhostProfile:"); - sb.append(localhostProfile + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (localhostProfile != null) { sb.append("localhostProfile:"); sb.append(localhostProfile + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java index ad58552df7..bc9254c6bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SecretBuilder extends V1SecretFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretBuilder extends V1SecretFluentImpl implements VisitableBuilder{ public V1SecretBuilder() { this(false); } - public V1SecretBuilder(Boolean validationEnabled) { this(new V1Secret(), validationEnabled); } - public V1SecretBuilder(V1SecretFluent fluent) { this(fluent, false); } - - public V1SecretBuilder(V1SecretFluent fluent, Boolean validationEnabled) { + public V1SecretBuilder(V1SecretFluent fluent,Boolean validationEnabled) { this(fluent, new V1Secret(), validationEnabled); } - - public V1SecretBuilder(V1SecretFluent fluent, V1Secret instance) { + public V1SecretBuilder(V1SecretFluent fluent,V1Secret instance) { this(fluent, instance, false); } - - public V1SecretBuilder(V1SecretFluent fluent, V1Secret instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretBuilder(V1SecretFluent fluent,V1Secret instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withData(instance.getData()); @@ -52,15 +34,13 @@ public V1SecretBuilder(V1SecretFluent fluent, V1Secret instance, Boolean vali fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretBuilder(V1Secret instance) { - this(instance, false); + this(instance,false); } - - public V1SecretBuilder(V1Secret instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretBuilder(V1Secret instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withData(instance.getData()); @@ -75,12 +55,10 @@ public V1SecretBuilder(V1Secret instance, Boolean validationEnabled) { this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretFluent fluent; Boolean validationEnabled; - public V1Secret build() { V1Secret buildable = new V1Secret(); buildable.setApiVersion(fluent.getApiVersion()); @@ -92,4 +70,5 @@ public V1Secret build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java index 5ac8d37d4e..0bb4dd566e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluentImpl implements VisitableBuilder{ public V1SecretEnvSourceBuilder() { this(false); } - public V1SecretEnvSourceBuilder(Boolean validationEnabled) { this(new V1SecretEnvSource(), validationEnabled); } - public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent) { this(fluent, false); } - - public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent, Boolean validationEnabled) { + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecretEnvSource(), validationEnabled); } - - public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent, V1SecretEnvSource instance) { + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,V1SecretEnvSource instance) { this(fluent, instance, false); } - - public V1SecretEnvSourceBuilder( - V1SecretEnvSourceFluent fluent, V1SecretEnvSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,V1SecretEnvSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretEnvSourceBuilder(V1SecretEnvSource instance) { - this(instance, false); + this(instance,false); } - - public V1SecretEnvSourceBuilder(V1SecretEnvSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretEnvSourceBuilder(V1SecretEnvSource instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretEnvSourceFluent fluent; Boolean validationEnabled; - public V1SecretEnvSource build() { V1SecretEnvSource buildable = new V1SecretEnvSource(); buildable.setName(fluent.getName()); buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java index 6b39decd38..41339c3247 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java @@ -1,32 +1,19 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SecretEnvSourceFluent> extends Fluent { + /** + * Generated + */ +public interface V1SecretEnvSourceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java index a1e3814bef..0551617c56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java @@ -1,89 +1,65 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretEnvSourceFluentImpl> extends BaseFluent - implements V1SecretEnvSourceFluent { - public V1SecretEnvSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretEnvSourceFluentImpl> extends BaseFluent implements V1SecretEnvSourceFluent{ + public V1SecretEnvSourceFluentImpl() { + } public V1SecretEnvSourceFluentImpl(V1SecretEnvSource instance) { this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private String name; private Boolean optional; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getOptional() { return this.optional; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + this.optional=optional; return (A) this; } - public Boolean hasOptional() { return this.optional != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SecretEnvSourceFluentImpl that = (V1SecretEnvSourceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (optional != null ? !optional.equals(that.optional) : that.optional != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (optional != null ? !optional.equals(that.optional) :that.optional != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, optional, super.hashCode()); + return java.util.Objects.hash(name, optional, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (optional != null) { - sb.append("optional:"); - sb.append(optional); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (optional != null) { sb.append("optional:"); sb.append(optional); } sb.append("}"); return sb.toString(); } - public A withOptional() { return withOptional(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java index eb5e2352da..50447ed658 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java @@ -1,105 +1,63 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1SecretFluent> extends Fluent { + /** + * Generated + */ +public interface V1SecretFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToData(String key, byte[] value); - - public A addToData(Map map); - + public A addToData(String key,byte[] value); + public A addToData(Map map); public A removeFromData(String key); - - public A removeFromData(Map map); - - public Map getData(); - - public A withData(Map data); - + public A removeFromData(Map map); + public Map getData(); + public A withData(Map data); public Boolean hasData(); - public Boolean getImmutable(); - public A withImmutable(Boolean immutable); - public Boolean hasImmutable(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1SecretFluent.MetadataNested withNewMetadata(); - public V1SecretFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1SecretFluent.MetadataNested editMetadata(); - public V1SecretFluent.MetadataNested editOrNewMetadata(); - public V1SecretFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToStringData(String key, String value); - - public A addToStringData(Map map); - + public A addToStringData(String key,String value); + public A addToStringData(Map map); public A removeFromStringData(String key); - - public A removeFromStringData(Map map); - - public Map getStringData(); - - public A withStringData(Map stringData); - + public A removeFromStringData(Map map); + public Map getStringData(); + public A withStringData(Map stringData); public Boolean hasStringData(); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public A withImmutable(); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java index 361e261f8a..fccf8e62c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretFluentImpl> extends BaseFluent - implements V1SecretFluent { - public V1SecretFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretFluentImpl> extends BaseFluent implements V1SecretFluent{ + public V1SecretFluentImpl() { + } public V1SecretFluentImpl(V1Secret instance) { this.withApiVersion(instance.getApiVersion()); @@ -37,320 +31,182 @@ public V1SecretFluentImpl(V1Secret instance) { this.withStringData(instance.getStringData()); this.withType(instance.getType()); - } + } private String apiVersion; - private Map data; + private Map data; private Boolean immutable; private String kind; private V1ObjectMetaBuilder metadata; - private Map stringData; + private Map stringData; private String type; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToData(String key, byte[] value) { - if (this.data == null && key != null && value != null) { - this.data = new LinkedHashMap(); - } - if (key != null && value != null) { - this.data.put(key, value); - } - return (A) this; + public A addToData(String key,byte[] value) { + if(this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } + if(key != null && value != null) {this.data.put(key, value);} return (A)this; } - - public A addToData(Map map) { - if (this.data == null && map != null) { - this.data = new LinkedHashMap(); - } - if (map != null) { - this.data.putAll(map); - } - return (A) this; + public A addToData(Map map) { + if(this.data == null && map != null) { this.data = new LinkedHashMap(); } + if(map != null) { this.data.putAll(map);} return (A)this; } - public A removeFromData(String key) { - if (this.data == null) { - return (A) this; - } - if (key != null && this.data != null) { - this.data.remove(key); - } - return (A) this; + if(this.data == null) { return (A) this; } + if(key != null && this.data != null) {this.data.remove(key);} return (A)this; } - - public A removeFromData(Map map) { - if (this.data == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.data != null) { - this.data.remove(key); - } - } - } - return (A) this; + public A removeFromData(Map map) { + if(this.data == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.data != null){this.data.remove(key);}}} return (A)this; } - - public Map getData() { + public Map getData() { return this.data; } - - public A withData(Map data) { - if (data == null) { - this.data = null; - } else { - this.data = new LinkedHashMap(data); - } - return (A) this; + public A withData(Map data) { + if (data == null) { this.data = null;} else {this.data = new LinkedHashMap(data);} return (A) this; } - public Boolean hasData() { return this.data != null; } - public Boolean getImmutable() { return this.immutable; } - public A withImmutable(Boolean immutable) { - this.immutable = immutable; - return (A) this; + this.immutable=immutable; return (A) this; } - public Boolean hasImmutable() { return this.immutable != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1SecretFluent.MetadataNested withNewMetadata() { return new V1SecretFluentImpl.MetadataNestedImpl(); } - public V1SecretFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SecretFluentImpl.MetadataNestedImpl(item); } - public V1SecretFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1SecretFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1SecretFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToStringData(String key, String value) { - if (this.stringData == null && key != null && value != null) { - this.stringData = new LinkedHashMap(); - } - if (key != null && value != null) { - this.stringData.put(key, value); - } - return (A) this; + public A addToStringData(String key,String value) { + if(this.stringData == null && key != null && value != null) { this.stringData = new LinkedHashMap(); } + if(key != null && value != null) {this.stringData.put(key, value);} return (A)this; } - - public A addToStringData(Map map) { - if (this.stringData == null && map != null) { - this.stringData = new LinkedHashMap(); - } - if (map != null) { - this.stringData.putAll(map); - } - return (A) this; + public A addToStringData(Map map) { + if(this.stringData == null && map != null) { this.stringData = new LinkedHashMap(); } + if(map != null) { this.stringData.putAll(map);} return (A)this; } - public A removeFromStringData(String key) { - if (this.stringData == null) { - return (A) this; - } - if (key != null && this.stringData != null) { - this.stringData.remove(key); - } - return (A) this; + if(this.stringData == null) { return (A) this; } + if(key != null && this.stringData != null) {this.stringData.remove(key);} return (A)this; } - - public A removeFromStringData(Map map) { - if (this.stringData == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.stringData != null) { - this.stringData.remove(key); - } - } - } - return (A) this; + public A removeFromStringData(Map map) { + if(this.stringData == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.stringData != null){this.stringData.remove(key);}}} return (A)this; } - - public Map getStringData() { + public Map getStringData() { return this.stringData; } - - public A withStringData(Map stringData) { - if (stringData == null) { - this.stringData = null; - } else { - this.stringData = new LinkedHashMap(stringData); - } - return (A) this; + public A withStringData(Map stringData) { + if (stringData == null) { this.stringData = null;} else {this.stringData = new LinkedHashMap(stringData);} return (A) this; } - public Boolean hasStringData() { return this.stringData != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SecretFluentImpl that = (V1SecretFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (data != null ? !data.equals(that.data) : that.data != null) return false; - if (immutable != null ? !immutable.equals(that.immutable) : that.immutable != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (stringData != null ? !stringData.equals(that.stringData) : that.stringData != null) - return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (data != null ? !data.equals(that.data) :that.data != null) return false; + if (immutable != null ? !immutable.equals(that.immutable) :that.immutable != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (stringData != null ? !stringData.equals(that.stringData) :that.stringData != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, data, immutable, kind, metadata, stringData, type, super.hashCode()); + return java.util.Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (data != null && !data.isEmpty()) { - sb.append("data:"); - sb.append(data + ","); - } - if (immutable != null) { - sb.append("immutable:"); - sb.append(immutable + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (stringData != null && !stringData.isEmpty()) { - sb.append("stringData:"); - sb.append(stringData + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (data != null && !data.isEmpty()) { sb.append("data:"); sb.append(data + ","); } + if (immutable != null) { sb.append("immutable:"); sb.append(immutable + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (stringData != null && !stringData.isEmpty()) { sb.append("stringData:"); sb.append(stringData + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - public A withImmutable() { return withImmutable(true); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1SecretFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1SecretFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1SecretFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java index afd219eaaa..7af59785f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1SecretKeySelectorBuilder - extends V1SecretKeySelectorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretKeySelectorBuilder extends V1SecretKeySelectorFluentImpl implements VisitableBuilder{ public V1SecretKeySelectorBuilder() { this(false); } - public V1SecretKeySelectorBuilder(Boolean validationEnabled) { this(new V1SecretKeySelector(), validationEnabled); } - public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent) { this(fluent, false); } - - public V1SecretKeySelectorBuilder( - V1SecretKeySelectorFluent fluent, Boolean validationEnabled) { + public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecretKeySelector(), validationEnabled); } - - public V1SecretKeySelectorBuilder( - V1SecretKeySelectorFluent fluent, V1SecretKeySelector instance) { + public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,V1SecretKeySelector instance) { this(fluent, instance, false); } - - public V1SecretKeySelectorBuilder( - V1SecretKeySelectorFluent fluent, - V1SecretKeySelector instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,V1SecretKeySelector instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKey(instance.getKey()); fluent.withName(instance.getName()); fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretKeySelectorBuilder(V1SecretKeySelector instance) { - this(instance, false); + this(instance,false); } - - public V1SecretKeySelectorBuilder(V1SecretKeySelector instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretKeySelectorBuilder(V1SecretKeySelector instance,Boolean validationEnabled) { + this.fluent = this; this.withKey(instance.getKey()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretKeySelectorFluent fluent; Boolean validationEnabled; - public V1SecretKeySelector build() { V1SecretKeySelector buildable = new V1SecretKeySelector(); buildable.setKey(fluent.getKey()); @@ -78,4 +50,5 @@ public V1SecretKeySelector build() { buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java index 3b462f508b..ea5869a9f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java @@ -1,39 +1,22 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SecretKeySelectorFluent> - extends Fluent { + /** + * Generated + */ +public interface V1SecretKeySelectorFluent> extends Fluent{ public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java index bf7fd0d957..d1e2f72fc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java @@ -1,110 +1,79 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretKeySelectorFluentImpl> - extends BaseFluent implements V1SecretKeySelectorFluent { - public V1SecretKeySelectorFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretKeySelectorFluentImpl> extends BaseFluent implements V1SecretKeySelectorFluent{ + public V1SecretKeySelectorFluentImpl() { + } public V1SecretKeySelectorFluentImpl(V1SecretKeySelector instance) { this.withKey(instance.getKey()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private String key; private String name; private Boolean optional; - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getOptional() { return this.optional; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + this.optional=optional; return (A) this; } - public Boolean hasOptional() { return this.optional != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SecretKeySelectorFluentImpl that = (V1SecretKeySelectorFluentImpl) o; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (optional != null ? !optional.equals(that.optional) : that.optional != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (optional != null ? !optional.equals(that.optional) :that.optional != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(key, name, optional, super.hashCode()); + return java.util.Objects.hash(key, name, optional, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (optional != null) { - sb.append("optional:"); - sb.append(optional); - } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (optional != null) { sb.append("optional:"); sb.append(optional); } sb.append("}"); return sb.toString(); } - public A withOptional() { return withOptional(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java index 919cef7fe9..5e268f2be6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SecretListBuilder extends V1SecretListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretListBuilder extends V1SecretListFluentImpl implements VisitableBuilder{ public V1SecretListBuilder() { this(false); } - public V1SecretListBuilder(Boolean validationEnabled) { this(new V1SecretList(), validationEnabled); } - public V1SecretListBuilder(V1SecretListFluent fluent) { this(fluent, false); } - - public V1SecretListBuilder(V1SecretListFluent fluent, Boolean validationEnabled) { + public V1SecretListBuilder(V1SecretListFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecretList(), validationEnabled); } - - public V1SecretListBuilder(V1SecretListFluent fluent, V1SecretList instance) { + public V1SecretListBuilder(V1SecretListFluent fluent,V1SecretList instance) { this(fluent, instance, false); } - - public V1SecretListBuilder( - V1SecretListFluent fluent, V1SecretList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretListBuilder(V1SecretListFluent fluent,V1SecretList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1SecretListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretListBuilder(V1SecretList instance) { - this(instance, false); + this(instance,false); } - - public V1SecretListBuilder(V1SecretList instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretListBuilder(V1SecretList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1SecretListBuilder(V1SecretList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretListFluent fluent; Boolean validationEnabled; - public V1SecretList build() { V1SecretList buildable = new V1SecretList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1SecretList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java index 9c4bd7ad0f..477a3b4921 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1SecretListFluent> extends Fluent { + /** + * Generated + */ +public interface V1SecretListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Secret item); - - public A setToItems(Integer index, V1Secret item); - + public A addToItems(Integer index,V1Secret item); + public A setToItems(Integer index,V1Secret item); public A addToItems(io.kubernetes.client.openapi.models.V1Secret... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Secret buildItem(Integer index); - public V1Secret buildFirstItem(); - public V1Secret buildLastItem(); - public V1Secret buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Secret... items); - public Boolean hasItems(); - public V1SecretListFluent.ItemsNested addNewItem(); - public V1SecretListFluent.ItemsNested addNewItemLike(V1Secret item); - - public V1SecretListFluent.ItemsNested setNewItemLike(Integer index, V1Secret item); - + public V1SecretListFluent.ItemsNested setNewItemLike(Integer index,V1Secret item); public V1SecretListFluent.ItemsNested editItem(Integer index); - public V1SecretListFluent.ItemsNested editFirstItem(); - public V1SecretListFluent.ItemsNested editLastItem(); - public V1SecretListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1SecretListFluent.MetadataNested withNewMetadata(); - public V1SecretListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1SecretListFluent.MetadataNested editMetadata(); - public V1SecretListFluent.MetadataNested editOrNewMetadata(); - public V1SecretListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1SecretFluent> { + public interface ItemsNested extends Nested,V1SecretFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java index c6b04a51a9..8492cb79bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretListFluentImpl> extends BaseFluent - implements V1SecretListFluent { - public V1SecretListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretListFluentImpl> extends BaseFluent implements V1SecretListFluent{ + public V1SecretListFluentImpl() { + } public V1SecretListFluentImpl(V1SecretList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1SecretListFluentImpl(V1SecretList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Secret item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Secret item) { + if (this.items == null) {this.items = new ArrayList();} + V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Secret item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Secret item) { + if (this.items == null) {this.items = new ArrayList();} V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Secret... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items) { - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,269 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Secret buildItem(Integer index) { return this.items.get(index).build(); } - public V1Secret buildFirstItem() { return this.items.get(0).build(); } - public V1Secret buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Secret buildMatchingItem(Predicate predicate) { - for (V1SecretBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1SecretBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1SecretBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1SecretBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Secret item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Secret item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Secret... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Secret item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Secret item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1SecretListFluent.ItemsNested addNewItem() { return new V1SecretListFluentImpl.ItemsNestedImpl(); } - public V1SecretListFluent.ItemsNested addNewItemLike(V1Secret item) { return new V1SecretListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1SecretListFluent.ItemsNested setNewItemLike(Integer index, V1Secret item) { + public V1SecretListFluent.ItemsNested setNewItemLike(Integer index,V1Secret item) { return new V1SecretListFluentImpl.ItemsNestedImpl(index, item); } - public V1SecretListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1SecretListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1SecretListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - public V1SecretListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1SecretListFluentImpl.MetadataNestedImpl(); } - public V1SecretListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1SecretListFluentImpl.MetadataNestedImpl(item); } - public V1SecretListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1SecretListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1SecretListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SecretListFluentImpl that = (V1SecretListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1SecretFluentImpl> - implements V1SecretListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Secret item) { + class ItemsNestedImpl extends V1SecretFluentImpl> implements V1SecretListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Secret item) { this.index = index; this.builder = new V1SecretBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1SecretBuilder(this); } - V1SecretBuilder builder; Integer index; - public N and() { - return (N) V1SecretListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1SecretListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1SecretListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1SecretListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1SecretListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java index 84ece3dafc..e39c7e70b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java @@ -1,73 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1SecretProjectionBuilder - extends V1SecretProjectionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretProjectionBuilder extends V1SecretProjectionFluentImpl implements VisitableBuilder{ public V1SecretProjectionBuilder() { this(false); } - public V1SecretProjectionBuilder(Boolean validationEnabled) { this(new V1SecretProjection(), validationEnabled); } - public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent) { this(fluent, false); } - - public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent, Boolean validationEnabled) { + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecretProjection(), validationEnabled); } - - public V1SecretProjectionBuilder( - V1SecretProjectionFluent fluent, V1SecretProjection instance) { + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,V1SecretProjection instance) { this(fluent, instance, false); } - - public V1SecretProjectionBuilder( - V1SecretProjectionFluent fluent, V1SecretProjection instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,V1SecretProjection instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withItems(instance.getItems()); fluent.withName(instance.getName()); fluent.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretProjectionBuilder(V1SecretProjection instance) { - this(instance, false); + this(instance,false); } - - public V1SecretProjectionBuilder(V1SecretProjection instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretProjectionBuilder(V1SecretProjection instance,Boolean validationEnabled) { + this.fluent = this; this.withItems(instance.getItems()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretProjectionFluent fluent; Boolean validationEnabled; - public V1SecretProjection build() { V1SecretProjection buildable = new V1SecretProjection(); buildable.setItems(fluent.getItems()); @@ -75,4 +50,5 @@ public V1SecretProjection build() { buildable.setOptional(fluent.getOptional()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java index 867561e3d4..57f9d79c31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java @@ -1,98 +1,63 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1SecretProjectionFluent> extends Fluent { - public A addToItems(Integer index, V1KeyToPath item); - - public A setToItems(Integer index, V1KeyToPath item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1SecretProjectionFluent> extends Fluent{ + public A addToItems(Integer index,V1KeyToPath item); + public A setToItems(Integer index,V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1KeyToPath buildItem(Integer index); - public V1KeyToPath buildFirstItem(); - public V1KeyToPath buildLastItem(); - public V1KeyToPath buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public Boolean hasItems(); - public V1SecretProjectionFluent.ItemsNested addNewItem(); - public V1SecretProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item); - - public V1SecretProjectionFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item); - + public V1SecretProjectionFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item); public V1SecretProjectionFluent.ItemsNested editItem(Integer index); - public V1SecretProjectionFluent.ItemsNested editFirstItem(); - public V1SecretProjectionFluent.ItemsNested editLastItem(); - - public V1SecretProjectionFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1SecretProjectionFluent.ItemsNested editMatchingItem(Predicate predicate); public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public A withOptional(); - - public interface ItemsNested - extends Nested, V1KeyToPathFluent> { + public interface ItemsNested extends Nested,V1KeyToPathFluent>{ public N and(); - public N endItem(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java index 6e682c9ce3..d099561294 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java @@ -1,117 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretProjectionFluentImpl> - extends BaseFluent implements V1SecretProjectionFluent { - public V1SecretProjectionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretProjectionFluentImpl> extends BaseFluent implements V1SecretProjectionFluent{ + public V1SecretProjectionFluentImpl() { + } public V1SecretProjectionFluentImpl(V1SecretProjection instance) { this.withItems(instance.getItems()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); - } + } private ArrayList items; private String name; private Boolean optional; - - public A addToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -123,209 +69,136 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1KeyToPath buildMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1KeyToPath item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1KeyToPath item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1SecretProjectionFluent.ItemsNested addNewItem() { return new V1SecretProjectionFluentImpl.ItemsNestedImpl(); } - public V1SecretProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1SecretProjectionFluentImpl.ItemsNestedImpl(-1, item); } - - public V1SecretProjectionFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item) { + public V1SecretProjectionFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item) { return new V1SecretProjectionFluentImpl.ItemsNestedImpl(index, item); } - public V1SecretProjectionFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1SecretProjectionFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1SecretProjectionFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1SecretProjectionFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1SecretProjectionFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1KeyToPathFluentImpl> - implements V1SecretProjectionFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1KeyToPath item) { + class ItemsNestedImpl extends V1KeyToPathFluentImpl> implements V1SecretProjectionFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1KeyToPathBuilder(this); } - V1KeyToPathBuilder builder; Integer index; - public N and() { - return (N) V1SecretProjectionFluentImpl.this.setToItems(index, builder.build()); + return (N) V1SecretProjectionFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java index 9cf0b37e5f..d015b21d0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1SecretReferenceBuilder extends V1SecretReferenceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretReferenceBuilder extends V1SecretReferenceFluentImpl implements VisitableBuilder{ public V1SecretReferenceBuilder() { this(false); } - public V1SecretReferenceBuilder(Boolean validationEnabled) { this(new V1SecretReference(), validationEnabled); } - public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent) { this(fluent, false); } - - public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent, Boolean validationEnabled) { + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecretReference(), validationEnabled); } - - public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent, V1SecretReference instance) { + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,V1SecretReference instance) { this(fluent, instance, false); } - - public V1SecretReferenceBuilder( - V1SecretReferenceFluent fluent, V1SecretReference instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,V1SecretReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretReferenceBuilder(V1SecretReference instance) { - this(instance, false); + this(instance,false); } - - public V1SecretReferenceBuilder(V1SecretReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretReferenceBuilder(V1SecretReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretReferenceFluent fluent; Boolean validationEnabled; - public V1SecretReference build() { V1SecretReference buildable = new V1SecretReference(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java index d225d14c34..fb06fb2c06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SecretReferenceFluent> extends Fluent { + /** + * Generated + */ +public interface V1SecretReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java index e6a7e3f478..8339739f56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretReferenceFluentImpl> extends BaseFluent - implements V1SecretReferenceFluent { - public V1SecretReferenceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretReferenceFluentImpl> extends BaseFluent implements V1SecretReferenceFluent{ + public V1SecretReferenceFluentImpl() { + } public V1SecretReferenceFluentImpl(V1SecretReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - } + } private String name; private String namespace; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SecretReferenceFluentImpl that = (V1SecretReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); + return java.util.Objects.hash(name, namespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java index bdcbddef8c..78bb70cd35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SecretVolumeSourceBuilder - extends V1SecretVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecretVolumeSourceBuilder extends V1SecretVolumeSourceFluentImpl implements VisitableBuilder{ public V1SecretVolumeSourceBuilder() { this(false); } - public V1SecretVolumeSourceBuilder(Boolean validationEnabled) { this(new V1SecretVolumeSource(), validationEnabled); } - public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent) { this(fluent, false); } - - public V1SecretVolumeSourceBuilder( - V1SecretVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecretVolumeSource(), validationEnabled); } - - public V1SecretVolumeSourceBuilder( - V1SecretVolumeSourceFluent fluent, V1SecretVolumeSource instance) { + public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1SecretVolumeSource instance) { this(fluent, instance, false); } - - public V1SecretVolumeSourceBuilder( - V1SecretVolumeSourceFluent fluent, - V1SecretVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1SecretVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1SecretVolumeSourceBuilder( fluent.withSecretName(instance.getSecretName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance, Boolean valida this.withSecretName(instance.getSecretName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecretVolumeSourceFluent fluent; Boolean validationEnabled; - public V1SecretVolumeSource build() { V1SecretVolumeSource buildable = new V1SecretVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -83,4 +55,5 @@ public V1SecretVolumeSource build() { buildable.setSecretName(fluent.getSecretName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java index 0e4e60c1f1..d28c1618ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java @@ -1,105 +1,66 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1SecretVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1SecretVolumeSourceFluent> extends Fluent{ public Integer getDefaultMode(); - public A withDefaultMode(Integer defaultMode); - public Boolean hasDefaultMode(); - - public A addToItems(Integer index, V1KeyToPath item); - - public A setToItems(Integer index, V1KeyToPath item); - + public A addToItems(Integer index,V1KeyToPath item); + public A setToItems(Integer index,V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1KeyToPath buildItem(Integer index); - public V1KeyToPath buildFirstItem(); - public V1KeyToPath buildLastItem(); - public V1KeyToPath buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public Boolean hasItems(); - public V1SecretVolumeSourceFluent.ItemsNested addNewItem(); - public V1SecretVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item); - - public V1SecretVolumeSourceFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item); - + public V1SecretVolumeSourceFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item); public V1SecretVolumeSourceFluent.ItemsNested editItem(Integer index); - public V1SecretVolumeSourceFluent.ItemsNested editFirstItem(); - public V1SecretVolumeSourceFluent.ItemsNested editLastItem(); - - public V1SecretVolumeSourceFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1SecretVolumeSourceFluent.ItemsNested editMatchingItem(Predicate predicate); public Boolean getOptional(); - public A withOptional(Boolean optional); - public Boolean hasOptional(); - public String getSecretName(); - public A withSecretName(String secretName); - public Boolean hasSecretName(); - public A withOptional(); - - public interface ItemsNested - extends Nested, V1KeyToPathFluent> { + public interface ItemsNested extends Nested,V1KeyToPathFluent>{ public N and(); - public N endItem(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java index 6273d02731..e00ada7322 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecretVolumeSourceFluentImpl> - extends BaseFluent implements V1SecretVolumeSourceFluent { - public V1SecretVolumeSourceFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecretVolumeSourceFluentImpl> extends BaseFluent implements V1SecretVolumeSourceFluent{ + public V1SecretVolumeSourceFluentImpl() { + } public V1SecretVolumeSourceFluentImpl(V1SecretVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); @@ -34,100 +30,46 @@ public V1SecretVolumeSourceFluentImpl(V1SecretVolumeSource instance) { this.withOptional(instance.getOptional()); this.withSecretName(instance.getSecretName()); - } + } private Integer defaultMode; private ArrayList items; private Boolean optional; private String secretName; - public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + this.defaultMode=defaultMode; return (A) this; } - public Boolean hasDefaultMode() { return this.defaultMode != null; } - - public A addToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1KeyToPath item) { + if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,216 +81,138 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1KeyToPath buildMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1KeyToPathBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1KeyToPath item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1KeyToPath item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1SecretVolumeSourceFluent.ItemsNested addNewItem() { return new V1SecretVolumeSourceFluentImpl.ItemsNestedImpl(); } - public V1SecretVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1SecretVolumeSourceFluentImpl.ItemsNestedImpl(-1, item); } - - public V1SecretVolumeSourceFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item) { + public V1SecretVolumeSourceFluent.ItemsNested setNewItemLike(Integer index,V1KeyToPath item) { return new V1SecretVolumeSourceFluentImpl.ItemsNestedImpl(index, item); } - public V1SecretVolumeSourceFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1SecretVolumeSourceFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1SecretVolumeSourceFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1SecretVolumeSourceFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1SecretVolumeSourceFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1KeyToPathFluentImpl> - implements V1SecretVolumeSourceFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1KeyToPath item) { + class ItemsNestedImpl extends V1KeyToPathFluentImpl> implements V1SecretVolumeSourceFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1KeyToPathBuilder(this); } - V1KeyToPathBuilder builder; Integer index; - public N and() { - return (N) V1SecretVolumeSourceFluentImpl.this.setToItems(index, builder.build()); + return (N) V1SecretVolumeSourceFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java index 8b7b8f6a7c..fb5d169555 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SecurityContextBuilder extends V1SecurityContextFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SecurityContextBuilder extends V1SecurityContextFluentImpl implements VisitableBuilder{ public V1SecurityContextBuilder() { this(false); } - public V1SecurityContextBuilder(Boolean validationEnabled) { this(new V1SecurityContext(), validationEnabled); } - public V1SecurityContextBuilder(V1SecurityContextFluent fluent) { this(fluent, false); } - - public V1SecurityContextBuilder(V1SecurityContextFluent fluent, Boolean validationEnabled) { + public V1SecurityContextBuilder(V1SecurityContextFluent fluent,Boolean validationEnabled) { this(fluent, new V1SecurityContext(), validationEnabled); } - - public V1SecurityContextBuilder(V1SecurityContextFluent fluent, V1SecurityContext instance) { + public V1SecurityContextBuilder(V1SecurityContextFluent fluent,V1SecurityContext instance) { this(fluent, instance, false); } - - public V1SecurityContextBuilder( - V1SecurityContextFluent fluent, V1SecurityContext instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SecurityContextBuilder(V1SecurityContextFluent fluent,V1SecurityContext instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); fluent.withCapabilities(instance.getCapabilities()); @@ -61,15 +42,13 @@ public V1SecurityContextBuilder( fluent.withWindowsOptions(instance.getWindowsOptions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SecurityContextBuilder(V1SecurityContext instance) { - this(instance, false); + this(instance,false); } - - public V1SecurityContextBuilder(V1SecurityContext instance, Boolean validationEnabled) { - this.fluent = this; + public V1SecurityContextBuilder(V1SecurityContext instance,Boolean validationEnabled) { + this.fluent = this; this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); this.withCapabilities(instance.getCapabilities()); @@ -92,12 +71,10 @@ public V1SecurityContextBuilder(V1SecurityContext instance, Boolean validationEn this.withWindowsOptions(instance.getWindowsOptions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SecurityContextFluent fluent; Boolean validationEnabled; - public V1SecurityContext build() { V1SecurityContext buildable = new V1SecurityContext(); buildable.setAllowPrivilegeEscalation(fluent.getAllowPrivilegeEscalation()); @@ -113,4 +90,5 @@ public V1SecurityContext build() { buildable.setWindowsOptions(fluent.getWindowsOptions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java index 1ce640f7cf..be51a5d128 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java @@ -1,201 +1,120 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1SecurityContextFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Long; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1SecurityContextFluent> extends Fluent{ public Boolean getAllowPrivilegeEscalation(); - public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation); - public Boolean hasAllowPrivilegeEscalation(); - + /** * This method has been deprecated, please use method buildCapabilities instead. - * * @return The buildable object. */ @Deprecated public V1Capabilities getCapabilities(); - public V1Capabilities buildCapabilities(); - public A withCapabilities(V1Capabilities capabilities); - public Boolean hasCapabilities(); - public V1SecurityContextFluent.CapabilitiesNested withNewCapabilities(); - public V1SecurityContextFluent.CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item); - public V1SecurityContextFluent.CapabilitiesNested editCapabilities(); - public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilities(); - - public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilitiesLike( - V1Capabilities item); - + public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilitiesLike(V1Capabilities item); public Boolean getPrivileged(); - public A withPrivileged(Boolean privileged); - public Boolean hasPrivileged(); - public String getProcMount(); - public A withProcMount(String procMount); - public Boolean hasProcMount(); - public Boolean getReadOnlyRootFilesystem(); - public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem); - public Boolean hasReadOnlyRootFilesystem(); - public Long getRunAsGroup(); - public A withRunAsGroup(Long runAsGroup); - public Boolean hasRunAsGroup(); - public Boolean getRunAsNonRoot(); - public A withRunAsNonRoot(Boolean runAsNonRoot); - public Boolean hasRunAsNonRoot(); - public Long getRunAsUser(); - public A withRunAsUser(Long runAsUser); - public Boolean hasRunAsUser(); - + /** * This method has been deprecated, please use method buildSeLinuxOptions instead. - * * @return The buildable object. */ @Deprecated public V1SELinuxOptions getSeLinuxOptions(); - public V1SELinuxOptions buildSeLinuxOptions(); - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions); - public Boolean hasSeLinuxOptions(); - public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions(); - - public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( - V1SELinuxOptions item); - + public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item); public V1SecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions(); - public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions(); - - public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( - V1SELinuxOptions item); - + public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item); + /** * This method has been deprecated, please use method buildSeccompProfile instead. - * * @return The buildable object. */ @Deprecated public V1SeccompProfile getSeccompProfile(); - public V1SeccompProfile buildSeccompProfile(); - public A withSeccompProfile(V1SeccompProfile seccompProfile); - public Boolean hasSeccompProfile(); - public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfile(); - - public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( - V1SeccompProfile item); - + public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item); public V1SecurityContextFluent.SeccompProfileNested editSeccompProfile(); - public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile(); - - public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( - V1SeccompProfile item); - + public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item); + /** * This method has been deprecated, please use method buildWindowsOptions instead. - * * @return The buildable object. */ @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions(); - public V1WindowsSecurityContextOptions buildWindowsOptions(); - public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions); - public Boolean hasWindowsOptions(); - public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptions(); - - public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item); - + public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item); public V1SecurityContextFluent.WindowsOptionsNested editWindowsOptions(); - public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions(); - - public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item); - + public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item); public A withAllowPrivilegeEscalation(); - public A withPrivileged(); - public A withReadOnlyRootFilesystem(); - public A withRunAsNonRoot(); - - public interface CapabilitiesNested - extends Nested, V1CapabilitiesFluent> { + public interface CapabilitiesNested extends Nested,V1CapabilitiesFluent>{ public N and(); - public N endCapabilities(); + } - - public interface SeLinuxOptionsNested - extends Nested, V1SELinuxOptionsFluent> { + public interface SeLinuxOptionsNested extends Nested,V1SELinuxOptionsFluent>{ public N and(); - public N endSeLinuxOptions(); + } - - public interface SeccompProfileNested - extends Nested, V1SeccompProfileFluent> { + public interface SeccompProfileNested extends Nested,V1SeccompProfileFluent>{ public N and(); - public N endSeccompProfile(); + } - - public interface WindowsOptionsNested - extends Nested, - V1WindowsSecurityContextOptionsFluent> { + public interface WindowsOptionsNested extends Nested,V1WindowsSecurityContextOptionsFluent>{ public N and(); - public N endWindowsOptions(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java index 39799659ae..45c61150d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SecurityContextFluentImpl> extends BaseFluent - implements V1SecurityContextFluent { - public V1SecurityContextFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SecurityContextFluentImpl> extends BaseFluent implements V1SecurityContextFluent{ + public V1SecurityContextFluentImpl() { + } public V1SecurityContextFluentImpl(V1SecurityContext instance) { this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); @@ -43,8 +38,8 @@ public V1SecurityContextFluentImpl(V1SecurityContext instance) { this.withSeccompProfile(instance.getSeccompProfile()); this.withWindowsOptions(instance.getWindowsOptions()); - } + } private Boolean allowPrivilegeEscalation; private V1CapabilitiesBuilder capabilities; private Boolean privileged; @@ -56,515 +51,317 @@ public V1SecurityContextFluentImpl(V1SecurityContext instance) { private V1SELinuxOptionsBuilder seLinuxOptions; private V1SeccompProfileBuilder seccompProfile; private V1WindowsSecurityContextOptionsBuilder windowsOptions; - public Boolean getAllowPrivilegeEscalation() { return this.allowPrivilegeEscalation; } - public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { - this.allowPrivilegeEscalation = allowPrivilegeEscalation; - return (A) this; + this.allowPrivilegeEscalation=allowPrivilegeEscalation; return (A) this; } - public Boolean hasAllowPrivilegeEscalation() { return this.allowPrivilegeEscalation != null; } - + /** * This method has been deprecated, please use method buildCapabilities instead. - * * @return The buildable object. */ @Deprecated public V1Capabilities getCapabilities() { - return this.capabilities != null ? this.capabilities.build() : null; + return this.capabilities!=null ?this.capabilities.build():null; } - public V1Capabilities buildCapabilities() { - return this.capabilities != null ? this.capabilities.build() : null; + return this.capabilities!=null ?this.capabilities.build():null; } - public A withCapabilities(V1Capabilities capabilities) { _visitables.get("capabilities").remove(this.capabilities); - if (capabilities != null) { - this.capabilities = new V1CapabilitiesBuilder(capabilities); - _visitables.get("capabilities").add(this.capabilities); - } else { - this.capabilities = null; - _visitables.get("capabilities").remove(this.capabilities); - } - return (A) this; + if (capabilities!=null){ this.capabilities= new V1CapabilitiesBuilder(capabilities); _visitables.get("capabilities").add(this.capabilities);} else { this.capabilities = null; _visitables.get("capabilities").remove(this.capabilities); } return (A) this; } - public Boolean hasCapabilities() { return this.capabilities != null; } - public V1SecurityContextFluent.CapabilitiesNested withNewCapabilities() { return new V1SecurityContextFluentImpl.CapabilitiesNestedImpl(); } - - public V1SecurityContextFluent.CapabilitiesNested withNewCapabilitiesLike( - V1Capabilities item) { + public V1SecurityContextFluent.CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { return new V1SecurityContextFluentImpl.CapabilitiesNestedImpl(item); } - public V1SecurityContextFluent.CapabilitiesNested editCapabilities() { return withNewCapabilitiesLike(getCapabilities()); } - public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilities() { - return withNewCapabilitiesLike( - getCapabilities() != null ? getCapabilities() : new V1CapabilitiesBuilder().build()); + return withNewCapabilitiesLike(getCapabilities() != null ? getCapabilities(): new V1CapabilitiesBuilder().build()); } - - public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilitiesLike( - V1Capabilities item) { - return withNewCapabilitiesLike(getCapabilities() != null ? getCapabilities() : item); + public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilitiesLike(V1Capabilities item) { + return withNewCapabilitiesLike(getCapabilities() != null ? getCapabilities(): item); } - public Boolean getPrivileged() { return this.privileged; } - public A withPrivileged(Boolean privileged) { - this.privileged = privileged; - return (A) this; + this.privileged=privileged; return (A) this; } - public Boolean hasPrivileged() { return this.privileged != null; } - public String getProcMount() { return this.procMount; } - public A withProcMount(String procMount) { - this.procMount = procMount; - return (A) this; + this.procMount=procMount; return (A) this; } - public Boolean hasProcMount() { return this.procMount != null; } - public Boolean getReadOnlyRootFilesystem() { return this.readOnlyRootFilesystem; } - public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { - this.readOnlyRootFilesystem = readOnlyRootFilesystem; - return (A) this; + this.readOnlyRootFilesystem=readOnlyRootFilesystem; return (A) this; } - public Boolean hasReadOnlyRootFilesystem() { return this.readOnlyRootFilesystem != null; } - public Long getRunAsGroup() { return this.runAsGroup; } - public A withRunAsGroup(Long runAsGroup) { - this.runAsGroup = runAsGroup; - return (A) this; + this.runAsGroup=runAsGroup; return (A) this; } - public Boolean hasRunAsGroup() { return this.runAsGroup != null; } - public Boolean getRunAsNonRoot() { return this.runAsNonRoot; } - public A withRunAsNonRoot(Boolean runAsNonRoot) { - this.runAsNonRoot = runAsNonRoot; - return (A) this; + this.runAsNonRoot=runAsNonRoot; return (A) this; } - public Boolean hasRunAsNonRoot() { return this.runAsNonRoot != null; } - public Long getRunAsUser() { return this.runAsUser; } - public A withRunAsUser(Long runAsUser) { - this.runAsUser = runAsUser; - return (A) this; + this.runAsUser=runAsUser; return (A) this; } - public Boolean hasRunAsUser() { return this.runAsUser != null; } - + /** * This method has been deprecated, please use method buildSeLinuxOptions instead. - * * @return The buildable object. */ @Deprecated public V1SELinuxOptions getSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + return this.seLinuxOptions!=null ?this.seLinuxOptions.build():null; } - public V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + return this.seLinuxOptions!=null ?this.seLinuxOptions.build():null; } - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - _visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } else { - this.seLinuxOptions = null; - _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - } - return (A) this; + if (seLinuxOptions!=null){ this.seLinuxOptions= new V1SELinuxOptionsBuilder(seLinuxOptions); _visitables.get("seLinuxOptions").add(this.seLinuxOptions);} else { this.seLinuxOptions = null; _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); } return (A) this; } - public Boolean hasSeLinuxOptions() { return this.seLinuxOptions != null; } - public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions() { return new V1SecurityContextFluentImpl.SeLinuxOptionsNestedImpl(); } - - public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( - V1SELinuxOptions item) { + public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { return new V1SecurityContextFluentImpl.SeLinuxOptionsNestedImpl(item); } - public V1SecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions() { return withNewSeLinuxOptionsLike(getSeLinuxOptions()); } - public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike( - getSeLinuxOptions() != null ? getSeLinuxOptions() : new V1SELinuxOptionsBuilder().build()); + return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions(): new V1SELinuxOptionsBuilder().build()); } - - public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( - V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions() : item); + public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions(): item); } - + /** * This method has been deprecated, please use method buildSeccompProfile instead. - * * @return The buildable object. */ @Deprecated public V1SeccompProfile getSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; + return this.seccompProfile!=null ?this.seccompProfile.build():null; } - public V1SeccompProfile buildSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; + return this.seccompProfile!=null ?this.seccompProfile.build():null; } - public A withSeccompProfile(V1SeccompProfile seccompProfile) { _visitables.get("seccompProfile").remove(this.seccompProfile); - if (seccompProfile != null) { - this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); - _visitables.get("seccompProfile").add(this.seccompProfile); - } else { - this.seccompProfile = null; - _visitables.get("seccompProfile").remove(this.seccompProfile); - } - return (A) this; + if (seccompProfile!=null){ this.seccompProfile= new V1SeccompProfileBuilder(seccompProfile); _visitables.get("seccompProfile").add(this.seccompProfile);} else { this.seccompProfile = null; _visitables.get("seccompProfile").remove(this.seccompProfile); } return (A) this; } - public Boolean hasSeccompProfile() { return this.seccompProfile != null; } - public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfile() { return new V1SecurityContextFluentImpl.SeccompProfileNestedImpl(); } - - public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( - V1SeccompProfile item) { + public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { return new V1SecurityContextFluentImpl.SeccompProfileNestedImpl(item); } - public V1SecurityContextFluent.SeccompProfileNested editSeccompProfile() { return withNewSeccompProfileLike(getSeccompProfile()); } - public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile() { - return withNewSeccompProfileLike( - getSeccompProfile() != null ? getSeccompProfile() : new V1SeccompProfileBuilder().build()); + return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile(): new V1SeccompProfileBuilder().build()); } - - public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( - V1SeccompProfile item) { - return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile() : item); + public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { + return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile(): item); } - + /** * This method has been deprecated, please use method buildWindowsOptions instead. - * * @return The buildable object. */ @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions() { - return this.windowsOptions != null ? this.windowsOptions.build() : null; + return this.windowsOptions!=null ?this.windowsOptions.build():null; } - public V1WindowsSecurityContextOptions buildWindowsOptions() { - return this.windowsOptions != null ? this.windowsOptions.build() : null; + return this.windowsOptions!=null ?this.windowsOptions.build():null; } - public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { _visitables.get("windowsOptions").remove(this.windowsOptions); - if (windowsOptions != null) { - this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); - _visitables.get("windowsOptions").add(this.windowsOptions); - } else { - this.windowsOptions = null; - _visitables.get("windowsOptions").remove(this.windowsOptions); - } - return (A) this; + if (windowsOptions!=null){ this.windowsOptions= new V1WindowsSecurityContextOptionsBuilder(windowsOptions); _visitables.get("windowsOptions").add(this.windowsOptions);} else { this.windowsOptions = null; _visitables.get("windowsOptions").remove(this.windowsOptions); } return (A) this; } - public Boolean hasWindowsOptions() { return this.windowsOptions != null; } - public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptions() { return new V1SecurityContextFluentImpl.WindowsOptionsNestedImpl(); } - - public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item) { + public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { return new V1SecurityContextFluentImpl.WindowsOptionsNestedImpl(item); } - public V1SecurityContextFluent.WindowsOptionsNested editWindowsOptions() { return withNewWindowsOptionsLike(getWindowsOptions()); } - public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions() { - return withNewWindowsOptionsLike( - getWindowsOptions() != null - ? getWindowsOptions() - : new V1WindowsSecurityContextOptionsBuilder().build()); + return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions(): new V1WindowsSecurityContextOptionsBuilder().build()); } - - public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( - V1WindowsSecurityContextOptions item) { - return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions() : item); + public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SecurityContextFluentImpl that = (V1SecurityContextFluentImpl) o; - if (allowPrivilegeEscalation != null - ? !allowPrivilegeEscalation.equals(that.allowPrivilegeEscalation) - : that.allowPrivilegeEscalation != null) return false; - if (capabilities != null ? !capabilities.equals(that.capabilities) : that.capabilities != null) - return false; - if (privileged != null ? !privileged.equals(that.privileged) : that.privileged != null) - return false; - if (procMount != null ? !procMount.equals(that.procMount) : that.procMount != null) - return false; - if (readOnlyRootFilesystem != null - ? !readOnlyRootFilesystem.equals(that.readOnlyRootFilesystem) - : that.readOnlyRootFilesystem != null) return false; - if (runAsGroup != null ? !runAsGroup.equals(that.runAsGroup) : that.runAsGroup != null) - return false; - if (runAsNonRoot != null ? !runAsNonRoot.equals(that.runAsNonRoot) : that.runAsNonRoot != null) - return false; - if (runAsUser != null ? !runAsUser.equals(that.runAsUser) : that.runAsUser != null) - return false; - if (seLinuxOptions != null - ? !seLinuxOptions.equals(that.seLinuxOptions) - : that.seLinuxOptions != null) return false; - if (seccompProfile != null - ? !seccompProfile.equals(that.seccompProfile) - : that.seccompProfile != null) return false; - if (windowsOptions != null - ? !windowsOptions.equals(that.windowsOptions) - : that.windowsOptions != null) return false; + if (allowPrivilegeEscalation != null ? !allowPrivilegeEscalation.equals(that.allowPrivilegeEscalation) :that.allowPrivilegeEscalation != null) return false; + if (capabilities != null ? !capabilities.equals(that.capabilities) :that.capabilities != null) return false; + if (privileged != null ? !privileged.equals(that.privileged) :that.privileged != null) return false; + if (procMount != null ? !procMount.equals(that.procMount) :that.procMount != null) return false; + if (readOnlyRootFilesystem != null ? !readOnlyRootFilesystem.equals(that.readOnlyRootFilesystem) :that.readOnlyRootFilesystem != null) return false; + if (runAsGroup != null ? !runAsGroup.equals(that.runAsGroup) :that.runAsGroup != null) return false; + if (runAsNonRoot != null ? !runAsNonRoot.equals(that.runAsNonRoot) :that.runAsNonRoot != null) return false; + if (runAsUser != null ? !runAsUser.equals(that.runAsUser) :that.runAsUser != null) return false; + if (seLinuxOptions != null ? !seLinuxOptions.equals(that.seLinuxOptions) :that.seLinuxOptions != null) return false; + if (seccompProfile != null ? !seccompProfile.equals(that.seccompProfile) :that.seccompProfile != null) return false; + if (windowsOptions != null ? !windowsOptions.equals(that.windowsOptions) :that.windowsOptions != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - allowPrivilegeEscalation, - capabilities, - privileged, - procMount, - readOnlyRootFilesystem, - runAsGroup, - runAsNonRoot, - runAsUser, - seLinuxOptions, - seccompProfile, - windowsOptions, - super.hashCode()); + return java.util.Objects.hash(allowPrivilegeEscalation, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowPrivilegeEscalation != null) { - sb.append("allowPrivilegeEscalation:"); - sb.append(allowPrivilegeEscalation + ","); - } - if (capabilities != null) { - sb.append("capabilities:"); - sb.append(capabilities + ","); - } - if (privileged != null) { - sb.append("privileged:"); - sb.append(privileged + ","); - } - if (procMount != null) { - sb.append("procMount:"); - sb.append(procMount + ","); - } - if (readOnlyRootFilesystem != null) { - sb.append("readOnlyRootFilesystem:"); - sb.append(readOnlyRootFilesystem + ","); - } - if (runAsGroup != null) { - sb.append("runAsGroup:"); - sb.append(runAsGroup + ","); - } - if (runAsNonRoot != null) { - sb.append("runAsNonRoot:"); - sb.append(runAsNonRoot + ","); - } - if (runAsUser != null) { - sb.append("runAsUser:"); - sb.append(runAsUser + ","); - } - if (seLinuxOptions != null) { - sb.append("seLinuxOptions:"); - sb.append(seLinuxOptions + ","); - } - if (seccompProfile != null) { - sb.append("seccompProfile:"); - sb.append(seccompProfile + ","); - } - if (windowsOptions != null) { - sb.append("windowsOptions:"); - sb.append(windowsOptions); - } + if (allowPrivilegeEscalation != null) { sb.append("allowPrivilegeEscalation:"); sb.append(allowPrivilegeEscalation + ","); } + if (capabilities != null) { sb.append("capabilities:"); sb.append(capabilities + ","); } + if (privileged != null) { sb.append("privileged:"); sb.append(privileged + ","); } + if (procMount != null) { sb.append("procMount:"); sb.append(procMount + ","); } + if (readOnlyRootFilesystem != null) { sb.append("readOnlyRootFilesystem:"); sb.append(readOnlyRootFilesystem + ","); } + if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); } + if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); } + if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); } + if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); } + if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); } + if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } sb.append("}"); return sb.toString(); } - public A withAllowPrivilegeEscalation() { return withAllowPrivilegeEscalation(true); } - public A withPrivileged() { return withPrivileged(true); } - public A withReadOnlyRootFilesystem() { return withReadOnlyRootFilesystem(true); } - public A withRunAsNonRoot() { return withRunAsNonRoot(true); } - - class CapabilitiesNestedImpl - extends V1CapabilitiesFluentImpl> - implements V1SecurityContextFluent.CapabilitiesNested, Nested { + class CapabilitiesNestedImpl extends V1CapabilitiesFluentImpl> implements V1SecurityContextFluent.CapabilitiesNested,Nested{ CapabilitiesNestedImpl(V1Capabilities item) { this.builder = new V1CapabilitiesBuilder(this, item); } - CapabilitiesNestedImpl() { this.builder = new V1CapabilitiesBuilder(this); } - V1CapabilitiesBuilder builder; - public N and() { return (N) V1SecurityContextFluentImpl.this.withCapabilities(builder.build()); } - public N endCapabilities() { return and(); } + } - - class SeLinuxOptionsNestedImpl - extends V1SELinuxOptionsFluentImpl> - implements V1SecurityContextFluent.SeLinuxOptionsNested, Nested { + class SeLinuxOptionsNestedImpl extends V1SELinuxOptionsFluentImpl> implements V1SecurityContextFluent.SeLinuxOptionsNested,Nested{ SeLinuxOptionsNestedImpl(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } - SeLinuxOptionsNestedImpl() { this.builder = new V1SELinuxOptionsBuilder(this); } - V1SELinuxOptionsBuilder builder; - public N and() { return (N) V1SecurityContextFluentImpl.this.withSeLinuxOptions(builder.build()); } - public N endSeLinuxOptions() { return and(); } + } - - class SeccompProfileNestedImpl - extends V1SeccompProfileFluentImpl> - implements V1SecurityContextFluent.SeccompProfileNested, Nested { + class SeccompProfileNestedImpl extends V1SeccompProfileFluentImpl> implements V1SecurityContextFluent.SeccompProfileNested,Nested{ SeccompProfileNestedImpl(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } - SeccompProfileNestedImpl() { this.builder = new V1SeccompProfileBuilder(this); } - V1SeccompProfileBuilder builder; - public N and() { return (N) V1SecurityContextFluentImpl.this.withSeccompProfile(builder.build()); } - public N endSeccompProfile() { return and(); } + } - - class WindowsOptionsNestedImpl - extends V1WindowsSecurityContextOptionsFluentImpl< - V1SecurityContextFluent.WindowsOptionsNested> - implements V1SecurityContextFluent.WindowsOptionsNested, Nested { + class WindowsOptionsNestedImpl extends V1WindowsSecurityContextOptionsFluentImpl> implements V1SecurityContextFluent.WindowsOptionsNested,Nested{ WindowsOptionsNestedImpl(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } - WindowsOptionsNestedImpl() { this.builder = new V1WindowsSecurityContextOptionsBuilder(this); } - V1WindowsSecurityContextOptionsBuilder builder; - public N and() { return (N) V1SecurityContextFluentImpl.this.withWindowsOptions(builder.build()); } - public N endWindowsOptions() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java index adb76f55f9..bc4f1e6387 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SelfSubjectAccessReviewBuilder - extends V1SelfSubjectAccessReviewFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SelfSubjectAccessReviewBuilder extends V1SelfSubjectAccessReviewFluentImpl implements VisitableBuilder{ public V1SelfSubjectAccessReviewBuilder() { this(false); } - public V1SelfSubjectAccessReviewBuilder(Boolean validationEnabled) { this(new V1SelfSubjectAccessReview(), validationEnabled); } - public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent) { this(fluent, false); } - - public V1SelfSubjectAccessReviewBuilder( - V1SelfSubjectAccessReviewFluent fluent, Boolean validationEnabled) { + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,Boolean validationEnabled) { this(fluent, new V1SelfSubjectAccessReview(), validationEnabled); } - - public V1SelfSubjectAccessReviewBuilder( - V1SelfSubjectAccessReviewFluent fluent, V1SelfSubjectAccessReview instance) { + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,V1SelfSubjectAccessReview instance) { this(fluent, instance, false); } - - public V1SelfSubjectAccessReviewBuilder( - V1SelfSubjectAccessReviewFluent fluent, - V1SelfSubjectAccessReview instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,V1SelfSubjectAccessReview instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1SelfSubjectAccessReviewBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReview instance) { - this(instance, false); + this(instance,false); } - - public V1SelfSubjectAccessReviewBuilder( - V1SelfSubjectAccessReview instance, Boolean validationEnabled) { - this.fluent = this; + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReview instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1SelfSubjectAccessReviewBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SelfSubjectAccessReviewFluent fluent; Boolean validationEnabled; - public V1SelfSubjectAccessReview build() { V1SelfSubjectAccessReview buildable = new V1SelfSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1SelfSubjectAccessReview build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java index 7f60121829..4437b745cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java @@ -1,131 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1SelfSubjectAccessReviewFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1SelfSubjectAccessReviewFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadata(); - public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1SelfSubjectAccessReviewFluent.MetadataNested editMetadata(); - public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadata(); - public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SelfSubjectAccessReviewSpec getSpec(); - public V1SelfSubjectAccessReviewSpec buildSpec(); - public A withSpec(V1SelfSubjectAccessReviewSpec spec); - public Boolean hasSpec(); - public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpec(); - - public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpecLike( - V1SelfSubjectAccessReviewSpec item); - + public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item); public V1SelfSubjectAccessReviewFluent.SpecNested editSpec(); - public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpec(); - - public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( - V1SelfSubjectAccessReviewSpec item); - + public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpecLike(V1SelfSubjectAccessReviewSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewStatus getStatus(); - public V1SubjectAccessReviewStatus buildStatus(); - public A withStatus(V1SubjectAccessReviewStatus status); - public Boolean hasStatus(); - public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatus(); - - public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatusLike( - V1SubjectAccessReviewStatus item); - + public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item); public V1SelfSubjectAccessReviewFluent.StatusNested editStatus(); - public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatus(); - - public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectAccessReviewStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1SelfSubjectAccessReviewSpecFluent> { + public interface SpecNested extends Nested,V1SelfSubjectAccessReviewSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1SubjectAccessReviewStatusFluent> { + public interface StatusNested extends Nested,V1SubjectAccessReviewStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java index a1cefe381f..f8e1b9eebe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SelfSubjectAccessReviewFluentImpl> - extends BaseFluent implements V1SelfSubjectAccessReviewFluent { - public V1SelfSubjectAccessReviewFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SelfSubjectAccessReviewFluentImpl> extends BaseFluent implements V1SelfSubjectAccessReviewFluent{ + public V1SelfSubjectAccessReviewFluentImpl() { + } public V1SelfSubjectAccessReviewFluentImpl(V1SelfSubjectAccessReview instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,305 +25,205 @@ public V1SelfSubjectAccessReviewFluentImpl(V1SelfSubjectAccessReview instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SelfSubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadata() { return new V1SelfSubjectAccessReviewFluentImpl.MetadataNestedImpl(); } - public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SelfSubjectAccessReviewFluentImpl.MetadataNestedImpl(item); } - public V1SelfSubjectAccessReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SelfSubjectAccessReviewSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1SelfSubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1SelfSubjectAccessReviewSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1SelfSubjectAccessReviewSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1SelfSubjectAccessReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpec() { return new V1SelfSubjectAccessReviewFluentImpl.SpecNestedImpl(); } - - public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpecLike( - V1SelfSubjectAccessReviewSpec item) { + public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item) { return new V1SelfSubjectAccessReviewFluentImpl.SpecNestedImpl(item); } - public V1SelfSubjectAccessReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1SelfSubjectAccessReviewSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1SelfSubjectAccessReviewSpecBuilder().build()); } - - public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( - V1SelfSubjectAccessReviewSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpecLike(V1SelfSubjectAccessReviewSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1SubjectAccessReviewStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1SubjectAccessReviewStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1SubjectAccessReviewStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatus() { return new V1SelfSubjectAccessReviewFluentImpl.StatusNestedImpl(); } - - public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatusLike( - V1SubjectAccessReviewStatus item) { + public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { return new V1SelfSubjectAccessReviewFluentImpl.StatusNestedImpl(item); } - public V1SelfSubjectAccessReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1SubjectAccessReviewStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1SubjectAccessReviewStatusBuilder().build()); } - - public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectAccessReviewStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SelfSubjectAccessReviewFluentImpl that = (V1SelfSubjectAccessReviewFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1SelfSubjectAccessReviewFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1SelfSubjectAccessReviewFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1SelfSubjectAccessReviewFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1SelfSubjectAccessReviewSpecFluentImpl> - implements V1SelfSubjectAccessReviewFluent.SpecNested, Nested { + class SpecNestedImpl extends V1SelfSubjectAccessReviewSpecFluentImpl> implements V1SelfSubjectAccessReviewFluent.SpecNested,Nested{ SpecNestedImpl(V1SelfSubjectAccessReviewSpec item) { this.builder = new V1SelfSubjectAccessReviewSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1SelfSubjectAccessReviewSpecBuilder(this); } - V1SelfSubjectAccessReviewSpecBuilder builder; - public N and() { return (N) V1SelfSubjectAccessReviewFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1SubjectAccessReviewStatusFluentImpl> - implements V1SelfSubjectAccessReviewFluent.StatusNested, Nested { + class StatusNestedImpl extends V1SubjectAccessReviewStatusFluentImpl> implements V1SelfSubjectAccessReviewFluent.StatusNested,Nested{ StatusNestedImpl(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1SubjectAccessReviewStatusBuilder(this); } - V1SubjectAccessReviewStatusBuilder builder; - public N and() { return (N) V1SelfSubjectAccessReviewFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java index 350b7c988e..e39fa18ece 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java @@ -1,78 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1SelfSubjectAccessReviewSpecBuilder - extends V1SelfSubjectAccessReviewSpecFluentImpl - implements VisitableBuilder< - V1SelfSubjectAccessReviewSpec, V1SelfSubjectAccessReviewSpecBuilder> { +import java.lang.Boolean; +public class V1SelfSubjectAccessReviewSpecBuilder extends V1SelfSubjectAccessReviewSpecFluentImpl implements VisitableBuilder{ public V1SelfSubjectAccessReviewSpecBuilder() { this(false); } - public V1SelfSubjectAccessReviewSpecBuilder(Boolean validationEnabled) { this(new V1SelfSubjectAccessReviewSpec(), validationEnabled); } - public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent) { this(fluent, false); } - - public V1SelfSubjectAccessReviewSpecBuilder( - V1SelfSubjectAccessReviewSpecFluent fluent, Boolean validationEnabled) { + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1SelfSubjectAccessReviewSpec(), validationEnabled); } - - public V1SelfSubjectAccessReviewSpecBuilder( - V1SelfSubjectAccessReviewSpecFluent fluent, V1SelfSubjectAccessReviewSpec instance) { + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,V1SelfSubjectAccessReviewSpec instance) { this(fluent, instance, false); } - - public V1SelfSubjectAccessReviewSpecBuilder( - V1SelfSubjectAccessReviewSpecFluent fluent, - V1SelfSubjectAccessReviewSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,V1SelfSubjectAccessReviewSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNonResourceAttributes(instance.getNonResourceAttributes()); fluent.withResourceAttributes(instance.getResourceAttributes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpec instance) { - this(instance, false); + this(instance,false); } - - public V1SelfSubjectAccessReviewSpecBuilder( - V1SelfSubjectAccessReviewSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withNonResourceAttributes(instance.getNonResourceAttributes()); this.withResourceAttributes(instance.getResourceAttributes()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SelfSubjectAccessReviewSpecFluent fluent; Boolean validationEnabled; - public V1SelfSubjectAccessReviewSpec build() { V1SelfSubjectAccessReviewSpec buildable = new V1SelfSubjectAccessReviewSpec(); buildable.setNonResourceAttributes(fluent.getNonResourceAttributes()); buildable.setResourceAttributes(fluent.getResourceAttributes()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java index c1e3387dc9..fe7ba1f8a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java @@ -1,97 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1SelfSubjectAccessReviewSpecFluent< - A extends V1SelfSubjectAccessReviewSpecFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1SelfSubjectAccessReviewSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildNonResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1NonResourceAttributes getNonResourceAttributes(); - public V1NonResourceAttributes buildNonResourceAttributes(); - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes); - public Boolean hasNonResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributesLike(V1NonResourceAttributes item); - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - editNonResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributesLike(V1NonResourceAttributes item); - + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes(); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes(); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes(); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item); + /** * This method has been deprecated, please use method buildResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1ResourceAttributes getResourceAttributes(); - public V1ResourceAttributes buildResourceAttributes(); - public A withResourceAttributes(V1ResourceAttributes resourceAttributes); - public Boolean hasResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - withNewResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - withNewResourceAttributesLike(V1ResourceAttributes item); - + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes(); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item); public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - editOrNewResourceAttributes(); - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - editOrNewResourceAttributesLike(V1ResourceAttributes item); - - public interface NonResourceAttributesNested - extends Nested, - V1NonResourceAttributesFluent< - V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested> { + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes(); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item); + public interface NonResourceAttributesNested extends Nested,V1NonResourceAttributesFluent>{ public N and(); - public N endNonResourceAttributes(); + } - - public interface ResourceAttributesNested - extends Nested, - V1ResourceAttributesFluent< - V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested> { + public interface ResourceAttributesNested extends Nested,V1ResourceAttributesFluent>{ public N and(); - public N endResourceAttributes(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java index dcca83b503..f80982a9fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java @@ -1,230 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SelfSubjectAccessReviewSpecFluentImpl< - A extends V1SelfSubjectAccessReviewSpecFluent> - extends BaseFluent implements V1SelfSubjectAccessReviewSpecFluent { - public V1SelfSubjectAccessReviewSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SelfSubjectAccessReviewSpecFluentImpl> extends BaseFluent implements V1SelfSubjectAccessReviewSpecFluent{ + public V1SelfSubjectAccessReviewSpecFluentImpl() { + } public V1SelfSubjectAccessReviewSpecFluentImpl(V1SelfSubjectAccessReviewSpec instance) { this.withNonResourceAttributes(instance.getNonResourceAttributes()); this.withResourceAttributes(instance.getResourceAttributes()); - } + } private V1NonResourceAttributesBuilder nonResourceAttributes; private V1ResourceAttributesBuilder resourceAttributes; - + /** * This method has been deprecated, please use method buildNonResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1NonResourceAttributes getNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; + return this.nonResourceAttributes!=null ?this.nonResourceAttributes.build():null; } - public V1NonResourceAttributes buildNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; + return this.nonResourceAttributes!=null ?this.nonResourceAttributes.build():null; } - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - if (nonResourceAttributes != null) { - this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); - _visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); - } else { - this.nonResourceAttributes = null; - _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - } - return (A) this; + if (nonResourceAttributes!=null){ this.nonResourceAttributes= new V1NonResourceAttributesBuilder(nonResourceAttributes); _visitables.get("nonResourceAttributes").add(this.nonResourceAttributes);} else { this.nonResourceAttributes = null; _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); } return (A) this; } - public Boolean hasNonResourceAttributes() { return this.nonResourceAttributes != null; } - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributes() { + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes() { return new V1SelfSubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(); } - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributesLike(V1NonResourceAttributes item) { + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { return new V1SelfSubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(item); } - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - editNonResourceAttributes() { + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes() { return withNewNonResourceAttributesLike(getNonResourceAttributes()); } - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributes() { - return withNewNonResourceAttributesLike( - getNonResourceAttributes() != null - ? getNonResourceAttributes() - : new V1NonResourceAttributesBuilder().build()); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes() { + return withNewNonResourceAttributesLike(getNonResourceAttributes() != null ? getNonResourceAttributes(): new V1NonResourceAttributesBuilder().build()); } - - public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return withNewNonResourceAttributesLike( - getNonResourceAttributes() != null ? getNonResourceAttributes() : item); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return withNewNonResourceAttributesLike(getNonResourceAttributes() != null ? getNonResourceAttributes(): item); } - + /** * This method has been deprecated, please use method buildResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1ResourceAttributes getResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; + return this.resourceAttributes!=null ?this.resourceAttributes.build():null; } - public V1ResourceAttributes buildResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; + return this.resourceAttributes!=null ?this.resourceAttributes.build():null; } - public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { _visitables.get("resourceAttributes").remove(this.resourceAttributes); - if (resourceAttributes != null) { - this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); - _visitables.get("resourceAttributes").add(this.resourceAttributes); - } else { - this.resourceAttributes = null; - _visitables.get("resourceAttributes").remove(this.resourceAttributes); - } - return (A) this; + if (resourceAttributes!=null){ this.resourceAttributes= new V1ResourceAttributesBuilder(resourceAttributes); _visitables.get("resourceAttributes").add(this.resourceAttributes);} else { this.resourceAttributes = null; _visitables.get("resourceAttributes").remove(this.resourceAttributes); } return (A) this; } - public Boolean hasResourceAttributes() { return this.resourceAttributes != null; } - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - withNewResourceAttributes() { + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes() { return new V1SelfSubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(); } - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - withNewResourceAttributesLike(V1ResourceAttributes item) { + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { return new V1SelfSubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(item); } - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes() { return withNewResourceAttributesLike(getResourceAttributes()); } - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - editOrNewResourceAttributes() { - return withNewResourceAttributesLike( - getResourceAttributes() != null - ? getResourceAttributes() - : new V1ResourceAttributesBuilder().build()); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes() { + return withNewResourceAttributesLike(getResourceAttributes() != null ? getResourceAttributes(): new V1ResourceAttributesBuilder().build()); } - - public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested - editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return withNewResourceAttributesLike( - getResourceAttributes() != null ? getResourceAttributes() : item); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { + return withNewResourceAttributesLike(getResourceAttributes() != null ? getResourceAttributes(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SelfSubjectAccessReviewSpecFluentImpl that = (V1SelfSubjectAccessReviewSpecFluentImpl) o; - if (nonResourceAttributes != null - ? !nonResourceAttributes.equals(that.nonResourceAttributes) - : that.nonResourceAttributes != null) return false; - if (resourceAttributes != null - ? !resourceAttributes.equals(that.resourceAttributes) - : that.resourceAttributes != null) return false; + if (nonResourceAttributes != null ? !nonResourceAttributes.equals(that.nonResourceAttributes) :that.nonResourceAttributes != null) return false; + if (resourceAttributes != null ? !resourceAttributes.equals(that.resourceAttributes) :that.resourceAttributes != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(nonResourceAttributes, resourceAttributes, super.hashCode()); + return java.util.Objects.hash(nonResourceAttributes, resourceAttributes, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceAttributes != null) { - sb.append("nonResourceAttributes:"); - sb.append(nonResourceAttributes + ","); - } - if (resourceAttributes != null) { - sb.append("resourceAttributes:"); - sb.append(resourceAttributes); - } + if (nonResourceAttributes != null) { sb.append("nonResourceAttributes:"); sb.append(nonResourceAttributes + ","); } + if (resourceAttributes != null) { sb.append("resourceAttributes:"); sb.append(resourceAttributes); } sb.append("}"); return sb.toString(); } - - class NonResourceAttributesNestedImpl - extends V1NonResourceAttributesFluentImpl< - V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested> - implements V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested, Nested { + class NonResourceAttributesNestedImpl extends V1NonResourceAttributesFluentImpl> implements V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested,Nested{ NonResourceAttributesNestedImpl(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } - NonResourceAttributesNestedImpl() { this.builder = new V1NonResourceAttributesBuilder(this); } - V1NonResourceAttributesBuilder builder; - public N and() { - return (N) - V1SelfSubjectAccessReviewSpecFluentImpl.this.withNonResourceAttributes(builder.build()); + return (N) V1SelfSubjectAccessReviewSpecFluentImpl.this.withNonResourceAttributes(builder.build()); } - public N endNonResourceAttributes() { return and(); } + } - - class ResourceAttributesNestedImpl - extends V1ResourceAttributesFluentImpl< - V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested> - implements V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested, Nested { + class ResourceAttributesNestedImpl extends V1ResourceAttributesFluentImpl> implements V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested,Nested{ ResourceAttributesNestedImpl(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } - ResourceAttributesNestedImpl() { this.builder = new V1ResourceAttributesBuilder(this); } - V1ResourceAttributesBuilder builder; - public N and() { - return (N) - V1SelfSubjectAccessReviewSpecFluentImpl.this.withResourceAttributes(builder.build()); + return (N) V1SelfSubjectAccessReviewSpecFluentImpl.this.withResourceAttributes(builder.build()); } - public N endResourceAttributes() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java index e54e3fe5a3..c025999be4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SelfSubjectRulesReviewBuilder - extends V1SelfSubjectRulesReviewFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SelfSubjectRulesReviewBuilder extends V1SelfSubjectRulesReviewFluentImpl implements VisitableBuilder{ public V1SelfSubjectRulesReviewBuilder() { this(false); } - public V1SelfSubjectRulesReviewBuilder(Boolean validationEnabled) { this(new V1SelfSubjectRulesReview(), validationEnabled); } - public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent) { this(fluent, false); } - - public V1SelfSubjectRulesReviewBuilder( - V1SelfSubjectRulesReviewFluent fluent, Boolean validationEnabled) { + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,Boolean validationEnabled) { this(fluent, new V1SelfSubjectRulesReview(), validationEnabled); } - - public V1SelfSubjectRulesReviewBuilder( - V1SelfSubjectRulesReviewFluent fluent, V1SelfSubjectRulesReview instance) { + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,V1SelfSubjectRulesReview instance) { this(fluent, instance, false); } - - public V1SelfSubjectRulesReviewBuilder( - V1SelfSubjectRulesReviewFluent fluent, - V1SelfSubjectRulesReview instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,V1SelfSubjectRulesReview instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V1SelfSubjectRulesReviewBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReview instance) { - this(instance, false); + this(instance,false); } - - public V1SelfSubjectRulesReviewBuilder( - V1SelfSubjectRulesReview instance, Boolean validationEnabled) { - this.fluent = this; + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReview instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V1SelfSubjectRulesReviewBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SelfSubjectRulesReviewFluent fluent; Boolean validationEnabled; - public V1SelfSubjectRulesReview build() { V1SelfSubjectRulesReview buildable = new V1SelfSubjectRulesReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V1SelfSubjectRulesReview build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java index 84560fbf1e..3a3bcc1da9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java @@ -1,131 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1SelfSubjectRulesReviewFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1SelfSubjectRulesReviewFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadata(); - public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1SelfSubjectRulesReviewFluent.MetadataNested editMetadata(); - public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadata(); - public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SelfSubjectRulesReviewSpec getSpec(); - public V1SelfSubjectRulesReviewSpec buildSpec(); - public A withSpec(V1SelfSubjectRulesReviewSpec spec); - public Boolean hasSpec(); - public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpec(); - - public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpecLike( - V1SelfSubjectRulesReviewSpec item); - + public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item); public V1SelfSubjectRulesReviewFluent.SpecNested editSpec(); - public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpec(); - - public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpecLike( - V1SelfSubjectRulesReviewSpec item); - + public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpecLike(V1SelfSubjectRulesReviewSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectRulesReviewStatus getStatus(); - public V1SubjectRulesReviewStatus buildStatus(); - public A withStatus(V1SubjectRulesReviewStatus status); - public Boolean hasStatus(); - public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatus(); - - public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatusLike( - V1SubjectRulesReviewStatus item); - + public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item); public V1SelfSubjectRulesReviewFluent.StatusNested editStatus(); - public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatus(); - - public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectRulesReviewStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1SelfSubjectRulesReviewSpecFluent> { + public interface SpecNested extends Nested,V1SelfSubjectRulesReviewSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1SubjectRulesReviewStatusFluent> { + public interface StatusNested extends Nested,V1SubjectRulesReviewStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java index edde9efa49..c910a1412d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SelfSubjectRulesReviewFluentImpl> - extends BaseFluent implements V1SelfSubjectRulesReviewFluent { - public V1SelfSubjectRulesReviewFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SelfSubjectRulesReviewFluentImpl> extends BaseFluent implements V1SelfSubjectRulesReviewFluent{ + public V1SelfSubjectRulesReviewFluentImpl() { + } public V1SelfSubjectRulesReviewFluentImpl(V1SelfSubjectRulesReview instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,304 +25,205 @@ public V1SelfSubjectRulesReviewFluentImpl(V1SelfSubjectRulesReview instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SelfSubjectRulesReviewSpecBuilder spec; private V1SubjectRulesReviewStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadata() { return new V1SelfSubjectRulesReviewFluentImpl.MetadataNestedImpl(); } - public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SelfSubjectRulesReviewFluentImpl.MetadataNestedImpl(item); } - public V1SelfSubjectRulesReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SelfSubjectRulesReviewSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1SelfSubjectRulesReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1SelfSubjectRulesReviewSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1SelfSubjectRulesReviewSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1SelfSubjectRulesReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpec() { return new V1SelfSubjectRulesReviewFluentImpl.SpecNestedImpl(); } - - public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpecLike( - V1SelfSubjectRulesReviewSpec item) { + public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item) { return new V1SelfSubjectRulesReviewFluentImpl.SpecNestedImpl(item); } - public V1SelfSubjectRulesReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1SelfSubjectRulesReviewSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1SelfSubjectRulesReviewSpecBuilder().build()); } - - public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpecLike( - V1SelfSubjectRulesReviewSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpecLike(V1SelfSubjectRulesReviewSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectRulesReviewStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1SubjectRulesReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1SubjectRulesReviewStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1SubjectRulesReviewStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1SubjectRulesReviewStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatus() { return new V1SelfSubjectRulesReviewFluentImpl.StatusNestedImpl(); } - - public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatusLike( - V1SubjectRulesReviewStatus item) { + public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item) { return new V1SelfSubjectRulesReviewFluentImpl.StatusNestedImpl(item); } - public V1SelfSubjectRulesReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1SubjectRulesReviewStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1SubjectRulesReviewStatusBuilder().build()); } - - public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectRulesReviewStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SelfSubjectRulesReviewFluentImpl that = (V1SelfSubjectRulesReviewFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1SelfSubjectRulesReviewFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1SelfSubjectRulesReviewFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1SelfSubjectRulesReviewFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1SelfSubjectRulesReviewSpecFluentImpl> - implements V1SelfSubjectRulesReviewFluent.SpecNested, Nested { + class SpecNestedImpl extends V1SelfSubjectRulesReviewSpecFluentImpl> implements V1SelfSubjectRulesReviewFluent.SpecNested,Nested{ SpecNestedImpl(V1SelfSubjectRulesReviewSpec item) { this.builder = new V1SelfSubjectRulesReviewSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1SelfSubjectRulesReviewSpecBuilder(this); } - V1SelfSubjectRulesReviewSpecBuilder builder; - public N and() { return (N) V1SelfSubjectRulesReviewFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1SubjectRulesReviewStatusFluentImpl> - implements V1SelfSubjectRulesReviewFluent.StatusNested, Nested { + class StatusNestedImpl extends V1SubjectRulesReviewStatusFluentImpl> implements V1SelfSubjectRulesReviewFluent.StatusNested,Nested{ StatusNestedImpl(V1SubjectRulesReviewStatus item) { this.builder = new V1SubjectRulesReviewStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1SubjectRulesReviewStatusBuilder(this); } - V1SubjectRulesReviewStatusBuilder builder; - public N and() { return (N) V1SelfSubjectRulesReviewFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java index c6bace88de..e202cdc7f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1SelfSubjectRulesReviewSpecBuilder - extends V1SelfSubjectRulesReviewSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SelfSubjectRulesReviewSpecBuilder extends V1SelfSubjectRulesReviewSpecFluentImpl implements VisitableBuilder{ public V1SelfSubjectRulesReviewSpecBuilder() { this(false); } - public V1SelfSubjectRulesReviewSpecBuilder(Boolean validationEnabled) { this(new V1SelfSubjectRulesReviewSpec(), validationEnabled); } - public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent) { this(fluent, false); } - - public V1SelfSubjectRulesReviewSpecBuilder( - V1SelfSubjectRulesReviewSpecFluent fluent, Boolean validationEnabled) { + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1SelfSubjectRulesReviewSpec(), validationEnabled); } - - public V1SelfSubjectRulesReviewSpecBuilder( - V1SelfSubjectRulesReviewSpecFluent fluent, V1SelfSubjectRulesReviewSpec instance) { + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,V1SelfSubjectRulesReviewSpec instance) { this(fluent, instance, false); } - - public V1SelfSubjectRulesReviewSpecBuilder( - V1SelfSubjectRulesReviewSpecFluent fluent, - V1SelfSubjectRulesReviewSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,V1SelfSubjectRulesReviewSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpec instance) { - this(instance, false); + this(instance,false); } - - public V1SelfSubjectRulesReviewSpecBuilder( - V1SelfSubjectRulesReviewSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SelfSubjectRulesReviewSpecFluent fluent; Boolean validationEnabled; - public V1SelfSubjectRulesReviewSpec build() { V1SelfSubjectRulesReviewSpec buildable = new V1SelfSubjectRulesReviewSpec(); buildable.setNamespace(fluent.getNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java index 60a1491cf3..15f1d63072 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java @@ -1,25 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SelfSubjectRulesReviewSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1SelfSubjectRulesReviewSpecFluent> extends Fluent{ public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java index e1bc346b87..24e0f815ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java @@ -1,65 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SelfSubjectRulesReviewSpecFluentImpl> - extends BaseFluent implements V1SelfSubjectRulesReviewSpecFluent { - public V1SelfSubjectRulesReviewSpecFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SelfSubjectRulesReviewSpecFluentImpl> extends BaseFluent implements V1SelfSubjectRulesReviewSpecFluent{ + public V1SelfSubjectRulesReviewSpecFluentImpl() { + } public V1SelfSubjectRulesReviewSpecFluentImpl(V1SelfSubjectRulesReviewSpec instance) { this.withNamespace(instance.getNamespace()); - } + } private String namespace; - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SelfSubjectRulesReviewSpecFluentImpl that = (V1SelfSubjectRulesReviewSpecFluentImpl) o; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(namespace, super.hashCode()); + return java.util.Objects.hash(namespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace); - } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java index bcb9ad9c8f..1c52f3b361 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ServerAddressByClientCIDRBuilder - extends V1ServerAddressByClientCIDRFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServerAddressByClientCIDRBuilder extends V1ServerAddressByClientCIDRFluentImpl implements VisitableBuilder{ public V1ServerAddressByClientCIDRBuilder() { this(false); } - public V1ServerAddressByClientCIDRBuilder(Boolean validationEnabled) { this(new V1ServerAddressByClientCIDR(), validationEnabled); } - public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent) { this(fluent, false); } - - public V1ServerAddressByClientCIDRBuilder( - V1ServerAddressByClientCIDRFluent fluent, Boolean validationEnabled) { + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServerAddressByClientCIDR(), validationEnabled); } - - public V1ServerAddressByClientCIDRBuilder( - V1ServerAddressByClientCIDRFluent fluent, V1ServerAddressByClientCIDR instance) { + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,V1ServerAddressByClientCIDR instance) { this(fluent, instance, false); } - - public V1ServerAddressByClientCIDRBuilder( - V1ServerAddressByClientCIDRFluent fluent, - V1ServerAddressByClientCIDR instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,V1ServerAddressByClientCIDR instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withClientCIDR(instance.getClientCIDR()); fluent.withServerAddress(instance.getServerAddress()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDR instance) { - this(instance, false); + this(instance,false); } - - public V1ServerAddressByClientCIDRBuilder( - V1ServerAddressByClientCIDR instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDR instance,Boolean validationEnabled) { + this.fluent = this; this.withClientCIDR(instance.getClientCIDR()); this.withServerAddress(instance.getServerAddress()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServerAddressByClientCIDRFluent fluent; Boolean validationEnabled; - public V1ServerAddressByClientCIDR build() { V1ServerAddressByClientCIDR buildable = new V1ServerAddressByClientCIDR(); buildable.setClientCIDR(fluent.getClientCIDR()); buildable.setServerAddress(fluent.getServerAddress()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java index 1b60d8febd..2d0f16c2ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ServerAddressByClientCIDRFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ServerAddressByClientCIDRFluent> extends Fluent{ public String getClientCIDR(); - public A withClientCIDR(String clientCIDR); - public Boolean hasClientCIDR(); - public String getServerAddress(); - public A withServerAddress(String serverAddress); - public Boolean hasServerAddress(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java index a48a08ea3b..dcd32fcfcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java @@ -1,88 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServerAddressByClientCIDRFluentImpl> - extends BaseFluent implements V1ServerAddressByClientCIDRFluent { - public V1ServerAddressByClientCIDRFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServerAddressByClientCIDRFluentImpl> extends BaseFluent implements V1ServerAddressByClientCIDRFluent{ + public V1ServerAddressByClientCIDRFluentImpl() { + } public V1ServerAddressByClientCIDRFluentImpl(V1ServerAddressByClientCIDR instance) { this.withClientCIDR(instance.getClientCIDR()); this.withServerAddress(instance.getServerAddress()); - } + } private String clientCIDR; private String serverAddress; - public String getClientCIDR() { return this.clientCIDR; } - public A withClientCIDR(String clientCIDR) { - this.clientCIDR = clientCIDR; - return (A) this; + this.clientCIDR=clientCIDR; return (A) this; } - public Boolean hasClientCIDR() { return this.clientCIDR != null; } - public String getServerAddress() { return this.serverAddress; } - public A withServerAddress(String serverAddress) { - this.serverAddress = serverAddress; - return (A) this; + this.serverAddress=serverAddress; return (A) this; } - public Boolean hasServerAddress() { return this.serverAddress != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServerAddressByClientCIDRFluentImpl that = (V1ServerAddressByClientCIDRFluentImpl) o; - if (clientCIDR != null ? !clientCIDR.equals(that.clientCIDR) : that.clientCIDR != null) - return false; - if (serverAddress != null - ? !serverAddress.equals(that.serverAddress) - : that.serverAddress != null) return false; + if (clientCIDR != null ? !clientCIDR.equals(that.clientCIDR) :that.clientCIDR != null) return false; + if (serverAddress != null ? !serverAddress.equals(that.serverAddress) :that.serverAddress != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode()); + return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientCIDR != null) { - sb.append("clientCIDR:"); - sb.append(clientCIDR + ","); - } - if (serverAddress != null) { - sb.append("serverAddress:"); - sb.append(serverAddress); - } + if (clientCIDR != null) { sb.append("clientCIDR:"); sb.append(clientCIDR + ","); } + if (serverAddress != null) { sb.append("serverAddress:"); sb.append(serverAddress); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java index f873bd1fec..fe2cc67313 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ServiceAccountBuilder extends V1ServiceAccountFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceAccountBuilder extends V1ServiceAccountFluentImpl implements VisitableBuilder{ public V1ServiceAccountBuilder() { this(false); } - public V1ServiceAccountBuilder(Boolean validationEnabled) { this(new V1ServiceAccount(), validationEnabled); } - public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent) { this(fluent, false); } - - public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent, Boolean validationEnabled) { + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceAccount(), validationEnabled); } - - public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent, V1ServiceAccount instance) { + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,V1ServiceAccount instance) { this(fluent, instance, false); } - - public V1ServiceAccountBuilder( - V1ServiceAccountFluent fluent, V1ServiceAccount instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,V1ServiceAccount instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); @@ -51,15 +32,13 @@ public V1ServiceAccountBuilder( fluent.withSecrets(instance.getSecrets()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceAccountBuilder(V1ServiceAccount instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceAccountBuilder(V1ServiceAccount instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceAccountBuilder(V1ServiceAccount instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); @@ -72,12 +51,10 @@ public V1ServiceAccountBuilder(V1ServiceAccount instance, Boolean validationEnab this.withSecrets(instance.getSecrets()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceAccountFluent fluent; Boolean validationEnabled; - public V1ServiceAccount build() { V1ServiceAccount buildable = new V1ServiceAccount(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +65,5 @@ public V1ServiceAccount build() { buildable.setSecrets(fluent.getSecrets()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java index 0602c9c8f1..908f6c83b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java @@ -1,205 +1,121 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ServiceAccountFluent> extends Fluent { + /** + * Generated + */ +public interface V1ServiceAccountFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Boolean getAutomountServiceAccountToken(); - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken); - public Boolean hasAutomountServiceAccountToken(); - - public A addToImagePullSecrets(Integer index, V1LocalObjectReference item); - - public A setToImagePullSecrets(Integer index, V1LocalObjectReference item); - - public A addToImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - + public A addToImagePullSecrets(Integer index,V1LocalObjectReference item); + public A setToImagePullSecrets(Integer index,V1LocalObjectReference item); + public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items); public A addAllToImagePullSecrets(Collection items); - - public A removeFromImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - + public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items); public A removeAllFromImagePullSecrets(Collection items); - public A removeMatchingFromImagePullSecrets(Predicate predicate); - + /** * This method has been deprecated, please use method buildImagePullSecrets instead. - * * @return The buildable object. */ @Deprecated public List getImagePullSecrets(); - public List buildImagePullSecrets(); - public V1LocalObjectReference buildImagePullSecret(Integer index); - public V1LocalObjectReference buildFirstImagePullSecret(); - public V1LocalObjectReference buildLastImagePullSecret(); - - public V1LocalObjectReference buildMatchingImagePullSecret( - Predicate predicate); - + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate); public Boolean hasMatchingImagePullSecret(Predicate predicate); - public A withImagePullSecrets(List imagePullSecrets); - - public A withImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets); - + public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets); public Boolean hasImagePullSecrets(); - public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecret(); - - public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecretLike( - V1LocalObjectReference item); - - public V1ServiceAccountFluent.ImagePullSecretsNested setNewImagePullSecretLike( - Integer index, V1LocalObjectReference item); - + public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item); + public V1ServiceAccountFluent.ImagePullSecretsNested setNewImagePullSecretLike(Integer index,V1LocalObjectReference item); public V1ServiceAccountFluent.ImagePullSecretsNested editImagePullSecret(Integer index); - public V1ServiceAccountFluent.ImagePullSecretsNested editFirstImagePullSecret(); - public V1ServiceAccountFluent.ImagePullSecretsNested editLastImagePullSecret(); - - public V1ServiceAccountFluent.ImagePullSecretsNested editMatchingImagePullSecret( - Predicate predicate); - + public V1ServiceAccountFluent.ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ServiceAccountFluent.MetadataNested withNewMetadata(); - public V1ServiceAccountFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ServiceAccountFluent.MetadataNested editMetadata(); - public V1ServiceAccountFluent.MetadataNested editOrNewMetadata(); - public V1ServiceAccountFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToSecrets(Integer index, V1ObjectReference item); - - public A setToSecrets(Integer index, V1ObjectReference item); - + public A addToSecrets(Integer index,V1ObjectReference item); + public A setToSecrets(Integer index,V1ObjectReference item); public A addToSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A addAllToSecrets(Collection items); - public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A removeAllFromSecrets(Collection items); - public A removeMatchingFromSecrets(Predicate predicate); - + /** * This method has been deprecated, please use method buildSecrets instead. - * * @return The buildable object. */ @Deprecated public List getSecrets(); - public List buildSecrets(); - public V1ObjectReference buildSecret(Integer index); - public V1ObjectReference buildFirstSecret(); - public V1ObjectReference buildLastSecret(); - public V1ObjectReference buildMatchingSecret(Predicate predicate); - public Boolean hasMatchingSecret(Predicate predicate); - public A withSecrets(List secrets); - public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... secrets); - public Boolean hasSecrets(); - public V1ServiceAccountFluent.SecretsNested addNewSecret(); - public V1ServiceAccountFluent.SecretsNested addNewSecretLike(V1ObjectReference item); - - public V1ServiceAccountFluent.SecretsNested setNewSecretLike( - Integer index, V1ObjectReference item); - + public V1ServiceAccountFluent.SecretsNested setNewSecretLike(Integer index,V1ObjectReference item); public V1ServiceAccountFluent.SecretsNested editSecret(Integer index); - public V1ServiceAccountFluent.SecretsNested editFirstSecret(); - public V1ServiceAccountFluent.SecretsNested editLastSecret(); - - public V1ServiceAccountFluent.SecretsNested editMatchingSecret( - Predicate predicate); - + public V1ServiceAccountFluent.SecretsNested editMatchingSecret(Predicate predicate); public A withAutomountServiceAccountToken(); - - public interface ImagePullSecretsNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface ImagePullSecretsNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endImagePullSecret(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SecretsNested - extends Nested, V1ObjectReferenceFluent> { + public interface SecretsNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endSecret(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java index 06f209dd03..552f02cd4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceAccountFluentImpl> extends BaseFluent - implements V1ServiceAccountFluent { - public V1ServiceAccountFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceAccountFluentImpl> extends BaseFluent implements V1ServiceAccountFluent{ + public V1ServiceAccountFluentImpl() { + } public V1ServiceAccountFluentImpl(V1ServiceAccount instance) { this.withApiVersion(instance.getApiVersion()); @@ -38,119 +34,57 @@ public V1ServiceAccountFluentImpl(V1ServiceAccount instance) { this.withMetadata(instance.getMetadata()); this.withSecrets(instance.getSecrets()); - } + } private String apiVersion; private Boolean automountServiceAccountToken; private ArrayList imagePullSecrets; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList secrets; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Boolean getAutomountServiceAccountToken() { return this.automountServiceAccountToken; } - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { - this.automountServiceAccountToken = automountServiceAccountToken; - return (A) this; + this.automountServiceAccountToken=automountServiceAccountToken; return (A) this; } - public Boolean hasAutomountServiceAccountToken() { return this.automountServiceAccountToken != null; } - - public A addToImagePullSecrets(Integer index, V1LocalObjectReference item) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables - .get("imagePullSecrets") - .add(index >= 0 ? index : _visitables.get("imagePullSecrets").size(), builder); - this.imagePullSecrets.add(index >= 0 ? index : imagePullSecrets.size(), builder); - return (A) this; + public A addToImagePullSecrets(Integer index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(index >= 0 ? index : _visitables.get("imagePullSecrets").size(), builder);this.imagePullSecrets.add(index >= 0 ? index : imagePullSecrets.size(), builder); return (A)this; } - - public A setToImagePullSecrets(Integer index, V1LocalObjectReference item) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } + public A setToImagePullSecrets(Integer index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= _visitables.get("imagePullSecrets").size()) { - _visitables.get("imagePullSecrets").add(builder); - } else { - _visitables.get("imagePullSecrets").set(index, builder); - } - if (index < 0 || index >= imagePullSecrets.size()) { - imagePullSecrets.add(builder); - } else { - imagePullSecrets.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("imagePullSecrets").size()) { _visitables.get("imagePullSecrets").add(builder); } else { _visitables.get("imagePullSecrets").set(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { imagePullSecrets.add(builder); } else { imagePullSecrets.set(index, builder);} + return (A)this; } - - public A addToImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); - } - return (A) this; + public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; } - public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); - } - return (A) this; + if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; } - - public A removeFromImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - if (this.imagePullSecrets != null) { - this.imagePullSecrets.remove(builder); - } - } - return (A) this; + public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder);if (this.imagePullSecrets != null) {this.imagePullSecrets.remove(builder);}} return (A)this; } - public A removeAllFromImagePullSecrets(Collection items) { - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - if (this.imagePullSecrets != null) { - this.imagePullSecrets.remove(builder); - } - } - return (A) this; + for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder);if (this.imagePullSecrets != null) {this.imagePullSecrets.remove(builder);}} return (A)this; } - public A removeMatchingFromImagePullSecrets(Predicate predicate) { if (imagePullSecrets == null) return (A) this; final Iterator each = imagePullSecrets.iterator(); @@ -162,271 +96,144 @@ public A removeMatchingFromImagePullSecrets(Predicate getImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public List buildImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public V1LocalObjectReference buildImagePullSecret(Integer index) { return this.imagePullSecrets.get(index).build(); } - public V1LocalObjectReference buildFirstImagePullSecret() { return this.imagePullSecrets.get(0).build(); } - public V1LocalObjectReference buildLastImagePullSecret() { return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } - - public V1LocalObjectReference buildMatchingImagePullSecret( - Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item: imagePullSecrets) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1LocalObjectReferenceBuilder item: imagePullSecrets) { if(predicate.test(item)){ return true;} } return false; } - public A withImagePullSecrets(List imagePullSecrets) { - if (this.imagePullSecrets != null) { - _visitables.get("imagePullSecrets").removeAll(this.imagePullSecrets); - } - if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } else { - this.imagePullSecrets = null; - } - return (A) this; + if (this.imagePullSecrets != null) { _visitables.get("imagePullSecrets").removeAll(this.imagePullSecrets);} + if (imagePullSecrets != null) {this.imagePullSecrets = new ArrayList(); for (V1LocalObjectReference item : imagePullSecrets){this.addToImagePullSecrets(item);}} else { this.imagePullSecrets = null;} return (A) this; } - - public A withImagePullSecrets( - io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { - if (this.imagePullSecrets != null) { - this.imagePullSecrets.clear(); - } - if (imagePullSecrets != null) { - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } - return (A) this; + public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { + if (this.imagePullSecrets != null) {this.imagePullSecrets.clear();} + if (imagePullSecrets != null) {for (V1LocalObjectReference item :imagePullSecrets){ this.addToImagePullSecrets(item);}} return (A) this; } - public Boolean hasImagePullSecrets() { return imagePullSecrets != null && !imagePullSecrets.isEmpty(); } - public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecret() { return new V1ServiceAccountFluentImpl.ImagePullSecretsNestedImpl(); } - - public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecretLike( - V1LocalObjectReference item) { + public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { return new V1ServiceAccountFluentImpl.ImagePullSecretsNestedImpl(-1, item); } - - public V1ServiceAccountFluent.ImagePullSecretsNested setNewImagePullSecretLike( - Integer index, V1LocalObjectReference item) { + public V1ServiceAccountFluent.ImagePullSecretsNested setNewImagePullSecretLike(Integer index,V1LocalObjectReference item) { return new V1ServiceAccountFluentImpl.ImagePullSecretsNestedImpl(index, item); } - public V1ServiceAccountFluent.ImagePullSecretsNested editImagePullSecret(Integer index) { - if (imagePullSecrets.size() <= index) - throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); + if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - public V1ServiceAccountFluent.ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) - throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); + if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); return setNewImagePullSecretLike(0, buildImagePullSecret(0)); } - public V1ServiceAccountFluent.ImagePullSecretsNested editLastImagePullSecret() { int index = imagePullSecrets.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - - public V1ServiceAccountFluent.ImagePullSecretsNested editMatchingImagePullSecret( - Predicate predicate) { + public V1ServiceAccountFluent.ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { int index = -1; - for (int i = 0; i < imagePullSecrets.size(); i++) { - if (predicate.test(imagePullSecrets.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching imagePullSecrets. No match found."); + for (int i=0;i withNewMetadata() { return new V1ServiceAccountFluentImpl.MetadataNestedImpl(); } - public V1ServiceAccountFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ServiceAccountFluentImpl.MetadataNestedImpl(item); } - public V1ServiceAccountFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ServiceAccountFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ServiceAccountFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToSecrets(Integer index, V1ObjectReference item) { - if (this.secrets == null) { - this.secrets = new ArrayList(); - } - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(index >= 0 ? index : _visitables.get("secrets").size(), builder); - this.secrets.add(index >= 0 ? index : secrets.size(), builder); - return (A) this; + public A addToSecrets(Integer index,V1ObjectReference item) { + if (this.secrets == null) {this.secrets = new ArrayList();} + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(index >= 0 ? index : _visitables.get("secrets").size(), builder);this.secrets.add(index >= 0 ? index : secrets.size(), builder); return (A)this; } - - public A setToSecrets(Integer index, V1ObjectReference item) { - if (this.secrets == null) { - this.secrets = new ArrayList(); - } + public A setToSecrets(Integer index,V1ObjectReference item) { + if (this.secrets == null) {this.secrets = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= _visitables.get("secrets").size()) { - _visitables.get("secrets").add(builder); - } else { - _visitables.get("secrets").set(index, builder); - } - if (index < 0 || index >= secrets.size()) { - secrets.add(builder); - } else { - secrets.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("secrets").size()) { _visitables.get("secrets").add(builder); } else { _visitables.get("secrets").set(index, builder);} + if (index < 0 || index >= secrets.size()) { secrets.add(builder); } else { secrets.set(index, builder);} + return (A)this; } - public A addToSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.secrets == null) { - this.secrets = new ArrayList(); - } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(builder); - this.secrets.add(builder); - } - return (A) this; + if (this.secrets == null) {this.secrets = new ArrayList();} + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(builder);this.secrets.add(builder);} return (A)this; } - public A addAllToSecrets(Collection items) { - if (this.secrets == null) { - this.secrets = new ArrayList(); - } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(builder); - this.secrets.add(builder); - } - return (A) this; + if (this.secrets == null) {this.secrets = new ArrayList();} + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(builder);this.secrets.add(builder);} return (A)this; } - public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").remove(builder); - if (this.secrets != null) { - this.secrets.remove(builder); - } - } - return (A) this; + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").remove(builder);if (this.secrets != null) {this.secrets.remove(builder);}} return (A)this; } - public A removeAllFromSecrets(Collection items) { - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").remove(builder); - if (this.secrets != null) { - this.secrets.remove(builder); - } - } - return (A) this; + for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").remove(builder);if (this.secrets != null) {this.secrets.remove(builder);}} return (A)this; } - public A removeMatchingFromSecrets(Predicate predicate) { if (secrets == null) return (A) this; final Iterator each = secrets.iterator(); @@ -438,261 +245,159 @@ public A removeMatchingFromSecrets(Predicate predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSecrets instead. - * * @return The buildable object. */ @Deprecated public List getSecrets() { return secrets != null ? build(secrets) : null; } - public List buildSecrets() { return secrets != null ? build(secrets) : null; } - public V1ObjectReference buildSecret(Integer index) { return this.secrets.get(index).build(); } - public V1ObjectReference buildFirstSecret() { return this.secrets.get(0).build(); } - public V1ObjectReference buildLastSecret() { return this.secrets.get(secrets.size() - 1).build(); } - public V1ObjectReference buildMatchingSecret(Predicate predicate) { - for (V1ObjectReferenceBuilder item : secrets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ObjectReferenceBuilder item: secrets) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSecret(Predicate predicate) { - for (V1ObjectReferenceBuilder item : secrets) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ObjectReferenceBuilder item: secrets) { if(predicate.test(item)){ return true;} } return false; } - public A withSecrets(List secrets) { - if (this.secrets != null) { - _visitables.get("secrets").removeAll(this.secrets); - } - if (secrets != null) { - this.secrets = new ArrayList(); - for (V1ObjectReference item : secrets) { - this.addToSecrets(item); - } - } else { - this.secrets = null; - } - return (A) this; + if (this.secrets != null) { _visitables.get("secrets").removeAll(this.secrets);} + if (secrets != null) {this.secrets = new ArrayList(); for (V1ObjectReference item : secrets){this.addToSecrets(item);}} else { this.secrets = null;} return (A) this; } - public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... secrets) { - if (this.secrets != null) { - this.secrets.clear(); - } - if (secrets != null) { - for (V1ObjectReference item : secrets) { - this.addToSecrets(item); - } - } - return (A) this; + if (this.secrets != null) {this.secrets.clear();} + if (secrets != null) {for (V1ObjectReference item :secrets){ this.addToSecrets(item);}} return (A) this; } - public Boolean hasSecrets() { return secrets != null && !secrets.isEmpty(); } - public V1ServiceAccountFluent.SecretsNested addNewSecret() { return new V1ServiceAccountFluentImpl.SecretsNestedImpl(); } - public V1ServiceAccountFluent.SecretsNested addNewSecretLike(V1ObjectReference item) { return new V1ServiceAccountFluentImpl.SecretsNestedImpl(-1, item); } - - public V1ServiceAccountFluent.SecretsNested setNewSecretLike( - Integer index, V1ObjectReference item) { + public V1ServiceAccountFluent.SecretsNested setNewSecretLike(Integer index,V1ObjectReference item) { return new V1ServiceAccountFluentImpl.SecretsNestedImpl(index, item); } - public V1ServiceAccountFluent.SecretsNested editSecret(Integer index) { - if (secrets.size() <= index) - throw new RuntimeException("Can't edit secrets. Index exceeds size."); + if (secrets.size() <= index) throw new RuntimeException("Can't edit secrets. Index exceeds size."); return setNewSecretLike(index, buildSecret(index)); } - public V1ServiceAccountFluent.SecretsNested editFirstSecret() { - if (secrets.size() == 0) - throw new RuntimeException("Can't edit first secrets. The list is empty."); + if (secrets.size() == 0) throw new RuntimeException("Can't edit first secrets. The list is empty."); return setNewSecretLike(0, buildSecret(0)); } - public V1ServiceAccountFluent.SecretsNested editLastSecret() { int index = secrets.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last secrets. The list is empty."); return setNewSecretLike(index, buildSecret(index)); } - - public V1ServiceAccountFluent.SecretsNested editMatchingSecret( - Predicate predicate) { + public V1ServiceAccountFluent.SecretsNested editMatchingSecret(Predicate predicate) { int index = -1; - for (int i = 0; i < secrets.size(); i++) { - if (predicate.test(secrets.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1LocalObjectReferenceFluentImpl> - implements V1ServiceAccountFluent.ImagePullSecretsNested, Nested { - ImagePullSecretsNestedImpl(Integer index, V1LocalObjectReference item) { + class ImagePullSecretsNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1ServiceAccountFluent.ImagePullSecretsNested,Nested{ + ImagePullSecretsNestedImpl(Integer index,V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } - ImagePullSecretsNestedImpl() { this.index = -1; this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; Integer index; - public N and() { - return (N) V1ServiceAccountFluentImpl.this.setToImagePullSecrets(index, builder.build()); + return (N) V1ServiceAccountFluentImpl.this.setToImagePullSecrets(index,builder.build()); } - public N endImagePullSecret() { return and(); } + } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1ServiceAccountFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ServiceAccountFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ServiceAccountFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SecretsNestedImpl - extends V1ObjectReferenceFluentImpl> - implements V1ServiceAccountFluent.SecretsNested, Nested { - SecretsNestedImpl(Integer index, V1ObjectReference item) { + class SecretsNestedImpl extends V1ObjectReferenceFluentImpl> implements V1ServiceAccountFluent.SecretsNested,Nested{ + SecretsNestedImpl(Integer index,V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } - SecretsNestedImpl() { this.index = -1; this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; Integer index; - public N and() { - return (N) V1ServiceAccountFluentImpl.this.setToSecrets(index, builder.build()); + return (N) V1ServiceAccountFluentImpl.this.setToSecrets(index,builder.build()); } - public N endSecret() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java index 349c3f979b..c3b642fcfb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ServiceAccountListBuilder - extends V1ServiceAccountListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceAccountListBuilder extends V1ServiceAccountListFluentImpl implements VisitableBuilder{ public V1ServiceAccountListBuilder() { this(false); } - public V1ServiceAccountListBuilder(Boolean validationEnabled) { this(new V1ServiceAccountList(), validationEnabled); } - public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent) { this(fluent, false); } - - public V1ServiceAccountListBuilder( - V1ServiceAccountListFluent fluent, Boolean validationEnabled) { + public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceAccountList(), validationEnabled); } - - public V1ServiceAccountListBuilder( - V1ServiceAccountListFluent fluent, V1ServiceAccountList instance) { + public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,V1ServiceAccountList instance) { this(fluent, instance, false); } - - public V1ServiceAccountListBuilder( - V1ServiceAccountListFluent fluent, - V1ServiceAccountList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,V1ServiceAccountList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1ServiceAccountListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceAccountListBuilder(V1ServiceAccountList instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceAccountListBuilder(V1ServiceAccountList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceAccountListBuilder(V1ServiceAccountList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1ServiceAccountListBuilder(V1ServiceAccountList instance, Boolean valida this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceAccountListFluent fluent; Boolean validationEnabled; - public V1ServiceAccountList build() { V1ServiceAccountList buildable = new V1ServiceAccountList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1ServiceAccountList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java index 4bf946dac3..c5609cf616 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ServiceAccountListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ServiceAccountListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ServiceAccount item); - - public A setToItems(Integer index, V1ServiceAccount item); - + public A addToItems(Integer index,V1ServiceAccount item); + public A setToItems(Integer index,V1ServiceAccount item); public A addToItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ServiceAccount buildItem(Integer index); - public V1ServiceAccount buildFirstItem(); - public V1ServiceAccount buildLastItem(); - public V1ServiceAccount buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items); - public Boolean hasItems(); - public V1ServiceAccountListFluent.ItemsNested addNewItem(); - public V1ServiceAccountListFluent.ItemsNested addNewItemLike(V1ServiceAccount item); - - public V1ServiceAccountListFluent.ItemsNested setNewItemLike( - Integer index, V1ServiceAccount item); - + public V1ServiceAccountListFluent.ItemsNested setNewItemLike(Integer index,V1ServiceAccount item); public V1ServiceAccountListFluent.ItemsNested editItem(Integer index); - public V1ServiceAccountListFluent.ItemsNested editFirstItem(); - public V1ServiceAccountListFluent.ItemsNested editLastItem(); - - public V1ServiceAccountListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ServiceAccountListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ServiceAccountListFluent.MetadataNested withNewMetadata(); - public V1ServiceAccountListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ServiceAccountListFluent.MetadataNested editMetadata(); - public V1ServiceAccountListFluent.MetadataNested editOrNewMetadata(); - public V1ServiceAccountListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ServiceAccountFluent> { + public interface ItemsNested extends Nested,V1ServiceAccountFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java index 383c93f6da..db5f69aaab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceAccountListFluentImpl> - extends BaseFluent implements V1ServiceAccountListFluent { - public V1ServiceAccountListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceAccountListFluentImpl> extends BaseFluent implements V1ServiceAccountListFluent{ + public V1ServiceAccountListFluentImpl() { + } public V1ServiceAccountListFluentImpl(V1ServiceAccountList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ServiceAccountListFluentImpl(V1ServiceAccountList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ServiceAccount item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ServiceAccount item) { + if (this.items == null) {this.items = new ArrayList();} + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ServiceAccount item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1ServiceAccount item) { + if (this.items == null) {this.items = new ArrayList();} V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ServiceAccount buildItem(Integer index) { return this.items.get(index).build(); } - public V1ServiceAccount buildFirstItem() { return this.items.get(0).build(); } - public V1ServiceAccount buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1ServiceAccount buildMatchingItem(Predicate predicate) { - for (V1ServiceAccountBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ServiceAccountBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ServiceAccountBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ServiceAccountBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ServiceAccount item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ServiceAccount item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ServiceAccount item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ServiceAccount item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ServiceAccountListFluent.ItemsNested addNewItem() { return new V1ServiceAccountListFluentImpl.ItemsNestedImpl(); } - public V1ServiceAccountListFluent.ItemsNested addNewItemLike(V1ServiceAccount item) { return new V1ServiceAccountListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ServiceAccountListFluent.ItemsNested setNewItemLike( - Integer index, V1ServiceAccount item) { + public V1ServiceAccountListFluent.ItemsNested setNewItemLike(Integer index,V1ServiceAccount item) { return new V1ServiceAccountListFluentImpl.ItemsNestedImpl(index, item); } - public V1ServiceAccountListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ServiceAccountListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ServiceAccountListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ServiceAccountListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ServiceAccountListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ServiceAccountListFluentImpl.MetadataNestedImpl(); } - public V1ServiceAccountListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ServiceAccountListFluentImpl.MetadataNestedImpl(item); } - public V1ServiceAccountListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ServiceAccountListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ServiceAccountListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceAccountListFluentImpl that = (V1ServiceAccountListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ServiceAccountFluentImpl> - implements V1ServiceAccountListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ServiceAccount item) { + class ItemsNestedImpl extends V1ServiceAccountFluentImpl> implements V1ServiceAccountListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ServiceAccount item) { this.index = index; this.builder = new V1ServiceAccountBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ServiceAccountBuilder(this); } - V1ServiceAccountBuilder builder; Integer index; - public N and() { - return (N) V1ServiceAccountListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ServiceAccountListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ServiceAccountListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ServiceAccountListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ServiceAccountListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java index d5a1934184..fe61387219 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1ServiceAccountTokenProjectionBuilder - extends V1ServiceAccountTokenProjectionFluentImpl - implements VisitableBuilder< - V1ServiceAccountTokenProjection, V1ServiceAccountTokenProjectionBuilder> { +import java.lang.Boolean; +public class V1ServiceAccountTokenProjectionBuilder extends V1ServiceAccountTokenProjectionFluentImpl implements VisitableBuilder{ public V1ServiceAccountTokenProjectionBuilder() { this(false); } - public V1ServiceAccountTokenProjectionBuilder(Boolean validationEnabled) { this(new V1ServiceAccountTokenProjection(), validationEnabled); } - public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent) { this(fluent, false); } - - public V1ServiceAccountTokenProjectionBuilder( - V1ServiceAccountTokenProjectionFluent fluent, Boolean validationEnabled) { + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceAccountTokenProjection(), validationEnabled); } - - public V1ServiceAccountTokenProjectionBuilder( - V1ServiceAccountTokenProjectionFluent fluent, V1ServiceAccountTokenProjection instance) { + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,V1ServiceAccountTokenProjection instance) { this(fluent, instance, false); } - - public V1ServiceAccountTokenProjectionBuilder( - V1ServiceAccountTokenProjectionFluent fluent, - V1ServiceAccountTokenProjection instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,V1ServiceAccountTokenProjection instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAudience(instance.getAudience()); fluent.withExpirationSeconds(instance.getExpirationSeconds()); fluent.withPath(instance.getPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjection instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceAccountTokenProjectionBuilder( - V1ServiceAccountTokenProjection instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjection instance,Boolean validationEnabled) { + this.fluent = this; this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); this.withPath(instance.getPath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceAccountTokenProjectionFluent fluent; Boolean validationEnabled; - public V1ServiceAccountTokenProjection build() { V1ServiceAccountTokenProjection buildable = new V1ServiceAccountTokenProjection(); buildable.setAudience(fluent.getAudience()); @@ -80,4 +50,5 @@ public V1ServiceAccountTokenProjection build() { buildable.setPath(fluent.getPath()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java index 9c66fa50e0..c6123ec2f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java @@ -1,38 +1,22 @@ -/* -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.Fluent; - -/** Generated */ -public interface V1ServiceAccountTokenProjectionFluent< - A extends V1ServiceAccountTokenProjectionFluent> - extends Fluent { +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ServiceAccountTokenProjectionFluent> extends Fluent{ public String getAudience(); - public A withAudience(String audience); - public Boolean hasAudience(); - public Long getExpirationSeconds(); - public A withExpirationSeconds(Long expirationSeconds); - public Boolean hasExpirationSeconds(); - public String getPath(); - public A withPath(String path); - public Boolean hasPath(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java index 0a8ce2594f..c4ee752c7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java @@ -1,109 +1,77 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceAccountTokenProjectionFluentImpl< - A extends V1ServiceAccountTokenProjectionFluent> - extends BaseFluent implements V1ServiceAccountTokenProjectionFluent { - public V1ServiceAccountTokenProjectionFluentImpl() {} - +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceAccountTokenProjectionFluentImpl> extends BaseFluent implements V1ServiceAccountTokenProjectionFluent{ + public V1ServiceAccountTokenProjectionFluentImpl() { + } public V1ServiceAccountTokenProjectionFluentImpl(V1ServiceAccountTokenProjection instance) { this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); this.withPath(instance.getPath()); - } + } private String audience; private Long expirationSeconds; private String path; - public String getAudience() { return this.audience; } - public A withAudience(String audience) { - this.audience = audience; - return (A) this; + this.audience=audience; return (A) this; } - public Boolean hasAudience() { return this.audience != null; } - public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; + this.expirationSeconds=expirationSeconds; return (A) this; } - public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + this.path=path; return (A) this; } - public Boolean hasPath() { return this.path != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceAccountTokenProjectionFluentImpl that = (V1ServiceAccountTokenProjectionFluentImpl) o; - if (audience != null ? !audience.equals(that.audience) : that.audience != null) return false; - if (expirationSeconds != null - ? !expirationSeconds.equals(that.expirationSeconds) - : that.expirationSeconds != null) return false; - if (path != null ? !path.equals(that.path) : that.path != null) return false; + if (audience != null ? !audience.equals(that.audience) :that.audience != null) return false; + if (expirationSeconds != null ? !expirationSeconds.equals(that.expirationSeconds) :that.expirationSeconds != null) return false; + if (path != null ? !path.equals(that.path) :that.path != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(audience, expirationSeconds, path, super.hashCode()); + return java.util.Objects.hash(audience, expirationSeconds, path, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audience != null) { - sb.append("audience:"); - sb.append(audience + ","); - } - if (expirationSeconds != null) { - sb.append("expirationSeconds:"); - sb.append(expirationSeconds + ","); - } - if (path != null) { - sb.append("path:"); - sb.append(path); - } + if (audience != null) { sb.append("audience:"); sb.append(audience + ","); } + if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds + ","); } + if (path != null) { sb.append("path:"); sb.append(path); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java index b3c9e0a7d6..3eeddf06ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ServiceBackendPortBuilder - extends V1ServiceBackendPortFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceBackendPortBuilder extends V1ServiceBackendPortFluentImpl implements VisitableBuilder{ public V1ServiceBackendPortBuilder() { this(false); } - public V1ServiceBackendPortBuilder(Boolean validationEnabled) { this(new V1ServiceBackendPort(), validationEnabled); } - public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent) { this(fluent, false); } - - public V1ServiceBackendPortBuilder( - V1ServiceBackendPortFluent fluent, Boolean validationEnabled) { + public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceBackendPort(), validationEnabled); } - - public V1ServiceBackendPortBuilder( - V1ServiceBackendPortFluent fluent, V1ServiceBackendPort instance) { + public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,V1ServiceBackendPort instance) { this(fluent, instance, false); } - - public V1ServiceBackendPortBuilder( - V1ServiceBackendPortFluent fluent, - V1ServiceBackendPort instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,V1ServiceBackendPort instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNumber(instance.getNumber()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNumber(instance.getNumber()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceBackendPortFluent fluent; Boolean validationEnabled; - public V1ServiceBackendPort build() { V1ServiceBackendPort buildable = new V1ServiceBackendPort(); buildable.setName(fluent.getName()); buildable.setNumber(fluent.getNumber()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java index e58b990c56..a774131d69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java @@ -1,31 +1,19 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ServiceBackendPortFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ServiceBackendPortFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public Integer getNumber(); - public A withNumber(Integer number); - public Boolean hasNumber(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java index 80f1367424..1d095f5381 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java @@ -1,85 +1,63 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceBackendPortFluentImpl> - extends BaseFluent implements V1ServiceBackendPortFluent { - public V1ServiceBackendPortFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceBackendPortFluentImpl> extends BaseFluent implements V1ServiceBackendPortFluent{ + public V1ServiceBackendPortFluentImpl() { + } public V1ServiceBackendPortFluentImpl(V1ServiceBackendPort instance) { this.withName(instance.getName()); this.withNumber(instance.getNumber()); - } + } private String name; private Integer number; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Integer getNumber() { return this.number; } - public A withNumber(Integer number) { - this.number = number; - return (A) this; + this.number=number; return (A) this; } - public Boolean hasNumber() { return this.number != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceBackendPortFluentImpl that = (V1ServiceBackendPortFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (number != null ? !number.equals(that.number) : that.number != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (number != null ? !number.equals(that.number) :that.number != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, number, super.hashCode()); + return java.util.Objects.hash(name, number, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (number != null) { - sb.append("number:"); - sb.append(number); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (number != null) { sb.append("number:"); sb.append(number); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java index b39f663ac3..f441a280c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ServiceBuilder extends V1ServiceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceBuilder extends V1ServiceFluentImpl implements VisitableBuilder{ public V1ServiceBuilder() { this(false); } - public V1ServiceBuilder(Boolean validationEnabled) { this(new V1Service(), validationEnabled); } - public V1ServiceBuilder(V1ServiceFluent fluent) { this(fluent, false); } - - public V1ServiceBuilder(V1ServiceFluent fluent, Boolean validationEnabled) { + public V1ServiceBuilder(V1ServiceFluent fluent,Boolean validationEnabled) { this(fluent, new V1Service(), validationEnabled); } - - public V1ServiceBuilder(V1ServiceFluent fluent, V1Service instance) { + public V1ServiceBuilder(V1ServiceFluent fluent,V1Service instance) { this(fluent, instance, false); } - - public V1ServiceBuilder( - V1ServiceFluent fluent, V1Service instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceBuilder(V1ServiceFluent fluent,V1Service instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1ServiceBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceBuilder(V1Service instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceBuilder(V1Service instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceBuilder(V1Service instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1ServiceBuilder(V1Service instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceFluent fluent; Boolean validationEnabled; - public V1Service build() { V1Service buildable = new V1Service(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1Service build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java index a15e309a9c..08194557d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1ServiceFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ServiceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ServiceFluent.MetadataNested withNewMetadata(); - public V1ServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1ServiceFluent.MetadataNested editMetadata(); - public V1ServiceFluent.MetadataNested editOrNewMetadata(); - public V1ServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ServiceSpec getSpec(); - public V1ServiceSpec buildSpec(); - public A withSpec(V1ServiceSpec spec); - public Boolean hasSpec(); - public V1ServiceFluent.SpecNested withNewSpec(); - public V1ServiceFluent.SpecNested withNewSpecLike(V1ServiceSpec item); - public V1ServiceFluent.SpecNested editSpec(); - public V1ServiceFluent.SpecNested editOrNewSpec(); - public V1ServiceFluent.SpecNested editOrNewSpecLike(V1ServiceSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ServiceStatus getStatus(); - public V1ServiceStatus buildStatus(); - public A withStatus(V1ServiceStatus status); - public Boolean hasStatus(); - public V1ServiceFluent.StatusNested withNewStatus(); - public V1ServiceFluent.StatusNested withNewStatusLike(V1ServiceStatus item); - public V1ServiceFluent.StatusNested editStatus(); - public V1ServiceFluent.StatusNested editOrNewStatus(); - public V1ServiceFluent.StatusNested editOrNewStatusLike(V1ServiceStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1ServiceSpecFluent> { + public interface SpecNested extends Nested,V1ServiceSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1ServiceStatusFluent> { + public interface StatusNested extends Nested,V1ServiceStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java index 1a9c18cf44..3f5ef548c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceFluentImpl> extends BaseFluent - implements V1ServiceFluent { - public V1ServiceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceFluentImpl> extends BaseFluent implements V1ServiceFluent{ + public V1ServiceFluentImpl() { + } public V1ServiceFluentImpl(V1Service instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,296 +25,205 @@ public V1ServiceFluentImpl(V1Service instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ServiceSpecBuilder spec; private V1ServiceStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ServiceFluent.MetadataNested withNewMetadata() { return new V1ServiceFluentImpl.MetadataNestedImpl(); } - public V1ServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ServiceFluentImpl.MetadataNestedImpl(item); } - public V1ServiceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ServiceFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1ServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1ServiceSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1ServiceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1ServiceSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1ServiceSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1ServiceSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1ServiceFluent.SpecNested withNewSpec() { return new V1ServiceFluentImpl.SpecNestedImpl(); } - public V1ServiceFluent.SpecNested withNewSpecLike(V1ServiceSpec item) { return new V1ServiceFluentImpl.SpecNestedImpl(item); } - public V1ServiceFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1ServiceFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1ServiceSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1ServiceSpecBuilder().build()); } - public V1ServiceFluent.SpecNested editOrNewSpecLike(V1ServiceSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1ServiceStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1ServiceStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1ServiceStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1ServiceStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1ServiceStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1ServiceFluent.StatusNested withNewStatus() { return new V1ServiceFluentImpl.StatusNestedImpl(); } - public V1ServiceFluent.StatusNested withNewStatusLike(V1ServiceStatus item) { return new V1ServiceFluentImpl.StatusNestedImpl(item); } - public V1ServiceFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1ServiceFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1ServiceStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1ServiceStatusBuilder().build()); } - public V1ServiceFluent.StatusNested editOrNewStatusLike(V1ServiceStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceFluentImpl that = (V1ServiceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1ServiceFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ServiceFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ServiceFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1ServiceSpecFluentImpl> - implements V1ServiceFluent.SpecNested, Nested { + class SpecNestedImpl extends V1ServiceSpecFluentImpl> implements V1ServiceFluent.SpecNested,Nested{ SpecNestedImpl(V1ServiceSpec item) { this.builder = new V1ServiceSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1ServiceSpecBuilder(this); } - V1ServiceSpecBuilder builder; - public N and() { return (N) V1ServiceFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl extends V1ServiceStatusFluentImpl> - implements V1ServiceFluent.StatusNested, Nested { + class StatusNestedImpl extends V1ServiceStatusFluentImpl> implements V1ServiceFluent.StatusNested,Nested{ StatusNestedImpl(V1ServiceStatus item) { this.builder = new V1ServiceStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1ServiceStatusBuilder(this); } - V1ServiceStatusBuilder builder; - public N and() { return (N) V1ServiceFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java index b2ce19a0a0..2de1436784 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ServiceListBuilder extends V1ServiceListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceListBuilder extends V1ServiceListFluentImpl implements VisitableBuilder{ public V1ServiceListBuilder() { this(false); } - public V1ServiceListBuilder(Boolean validationEnabled) { this(new V1ServiceList(), validationEnabled); } - public V1ServiceListBuilder(V1ServiceListFluent fluent) { this(fluent, false); } - - public V1ServiceListBuilder(V1ServiceListFluent fluent, Boolean validationEnabled) { + public V1ServiceListBuilder(V1ServiceListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceList(), validationEnabled); } - - public V1ServiceListBuilder(V1ServiceListFluent fluent, V1ServiceList instance) { + public V1ServiceListBuilder(V1ServiceListFluent fluent,V1ServiceList instance) { this(fluent, instance, false); } - - public V1ServiceListBuilder( - V1ServiceListFluent fluent, V1ServiceList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceListBuilder(V1ServiceListFluent fluent,V1ServiceList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1ServiceListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceListBuilder(V1ServiceList instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceListBuilder(V1ServiceList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceListBuilder(V1ServiceList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1ServiceListBuilder(V1ServiceList instance, Boolean validationEnabled) { this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceListFluent fluent; Boolean validationEnabled; - public V1ServiceList build() { V1ServiceList buildable = new V1ServiceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1ServiceList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java index fcaf492a4e..7a8cf234dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java @@ -1,126 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ServiceListFluent> extends Fluent { + /** + * Generated + */ +public interface V1ServiceListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1Service item); - - public A setToItems(Integer index, V1Service item); - + public A addToItems(Integer index,V1Service item); + public A setToItems(Integer index,V1Service item); public A addToItems(io.kubernetes.client.openapi.models.V1Service... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1Service buildItem(Integer index); - public V1Service buildFirstItem(); - public V1Service buildLastItem(); - public V1Service buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1Service... items); - public Boolean hasItems(); - public V1ServiceListFluent.ItemsNested addNewItem(); - public V1ServiceListFluent.ItemsNested addNewItemLike(V1Service item); - - public V1ServiceListFluent.ItemsNested setNewItemLike(Integer index, V1Service item); - + public V1ServiceListFluent.ItemsNested setNewItemLike(Integer index,V1Service item); public V1ServiceListFluent.ItemsNested editItem(Integer index); - public V1ServiceListFluent.ItemsNested editFirstItem(); - public V1ServiceListFluent.ItemsNested editLastItem(); - public V1ServiceListFluent.ItemsNested editMatchingItem(Predicate predicate); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ServiceListFluent.MetadataNested withNewMetadata(); - public V1ServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1ServiceListFluent.MetadataNested editMetadata(); - public V1ServiceListFluent.MetadataNested editOrNewMetadata(); - public V1ServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1ServiceFluent> { + public interface ItemsNested extends Nested,V1ServiceFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java index 36daef7560..b40129424f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceListFluentImpl> extends BaseFluent - implements V1ServiceListFluent { - public V1ServiceListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceListFluentImpl> extends BaseFluent implements V1ServiceListFluent{ + public V1ServiceListFluentImpl() { + } public V1ServiceListFluentImpl(V1ServiceList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1ServiceListFluentImpl(V1ServiceList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1Service item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1Service item) { + if (this.items == null) {this.items = new ArrayList();} + V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1Service item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1Service item) { + if (this.items == null) {this.items = new ArrayList();} V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Service... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items) { - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,270 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1Service buildItem(Integer index) { return this.items.get(index).build(); } - public V1Service buildFirstItem() { return this.items.get(0).build(); } - public V1Service buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1Service buildMatchingItem(Predicate predicate) { - for (V1ServiceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ServiceBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ServiceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ServiceBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Service item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1Service item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Service... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1Service item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1Service item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ServiceListFluent.ItemsNested addNewItem() { return new V1ServiceListFluentImpl.ItemsNestedImpl(); } - public V1ServiceListFluent.ItemsNested addNewItemLike(V1Service item) { return new V1ServiceListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ServiceListFluent.ItemsNested setNewItemLike(Integer index, V1Service item) { + public V1ServiceListFluent.ItemsNested setNewItemLike(Integer index,V1Service item) { return new V1ServiceListFluentImpl.ItemsNestedImpl(index, item); } - public V1ServiceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ServiceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ServiceListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ServiceListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ServiceListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ServiceListFluentImpl.MetadataNestedImpl(); } - public V1ServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ServiceListFluentImpl.MetadataNestedImpl(item); } - public V1ServiceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ServiceListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1ServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceListFluentImpl that = (V1ServiceListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1ServiceFluentImpl> - implements V1ServiceListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1Service item) { + class ItemsNestedImpl extends V1ServiceFluentImpl> implements V1ServiceListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1Service item) { this.index = index; this.builder = new V1ServiceBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ServiceBuilder(this); } - V1ServiceBuilder builder; Integer index; - public N and() { - return (N) V1ServiceListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ServiceListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1ServiceListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ServiceListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ServiceListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java index a7fb55b007..0a29b1de61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ServicePortBuilder extends V1ServicePortFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServicePortBuilder extends V1ServicePortFluentImpl implements VisitableBuilder{ public V1ServicePortBuilder() { this(false); } - public V1ServicePortBuilder(Boolean validationEnabled) { this(new V1ServicePort(), validationEnabled); } - public V1ServicePortBuilder(V1ServicePortFluent fluent) { this(fluent, false); } - - public V1ServicePortBuilder(V1ServicePortFluent fluent, Boolean validationEnabled) { + public V1ServicePortBuilder(V1ServicePortFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServicePort(), validationEnabled); } - - public V1ServicePortBuilder(V1ServicePortFluent fluent, V1ServicePort instance) { + public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance) { this(fluent, instance, false); } - - public V1ServicePortBuilder( - V1ServicePortFluent fluent, V1ServicePort instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAppProtocol(instance.getAppProtocol()); fluent.withName(instance.getName()); @@ -51,15 +32,13 @@ public V1ServicePortBuilder( fluent.withTargetPort(instance.getTargetPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServicePortBuilder(V1ServicePort instance) { - this(instance, false); + this(instance,false); } - - public V1ServicePortBuilder(V1ServicePort instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServicePortBuilder(V1ServicePort instance,Boolean validationEnabled) { + this.fluent = this; this.withAppProtocol(instance.getAppProtocol()); this.withName(instance.getName()); @@ -72,12 +51,10 @@ public V1ServicePortBuilder(V1ServicePort instance, Boolean validationEnabled) { this.withTargetPort(instance.getTargetPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServicePortFluent fluent; Boolean validationEnabled; - public V1ServicePort build() { V1ServicePort buildable = new V1ServicePort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -88,4 +65,5 @@ public V1ServicePort build() { buildable.setTargetPort(fluent.getTargetPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java index 5350df63c2..7363600ac1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java @@ -1,59 +1,34 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ServicePortFluent> extends Fluent { + /** + * Generated + */ +public interface V1ServicePortFluent> extends Fluent{ public String getAppProtocol(); - public A withAppProtocol(String appProtocol); - public Boolean hasAppProtocol(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Integer getNodePort(); - public A withNodePort(Integer nodePort); - public Boolean hasNodePort(); - public Integer getPort(); - public A withPort(Integer port); - public Boolean hasPort(); - public String getProtocol(); - public A withProtocol(String protocol); - public Boolean hasProtocol(); - public IntOrString getTargetPort(); - public A withTargetPort(IntOrString targetPort); - public Boolean hasTargetPort(); - public A withNewTargetPort(int value); - public A withNewTargetPort(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java index 176e92be96..539d9c4db4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.custom.IntOrString; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServicePortFluentImpl> extends BaseFluent - implements V1ServicePortFluent { - public V1ServicePortFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServicePortFluentImpl> extends BaseFluent implements V1ServicePortFluent{ + public V1ServicePortFluentImpl() { + } public V1ServicePortFluentImpl(V1ServicePort instance) { this.withAppProtocol(instance.getAppProtocol()); @@ -33,149 +27,100 @@ public V1ServicePortFluentImpl(V1ServicePort instance) { this.withProtocol(instance.getProtocol()); this.withTargetPort(instance.getTargetPort()); - } + } private String appProtocol; private String name; private Integer nodePort; private Integer port; private String protocol; private IntOrString targetPort; - public String getAppProtocol() { return this.appProtocol; } - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + this.appProtocol=appProtocol; return (A) this; } - public Boolean hasAppProtocol() { return this.appProtocol != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Integer getNodePort() { return this.nodePort; } - public A withNodePort(Integer nodePort) { - this.nodePort = nodePort; - return (A) this; + this.nodePort=nodePort; return (A) this; } - public Boolean hasNodePort() { return this.nodePort != null; } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + this.protocol=protocol; return (A) this; } - public Boolean hasProtocol() { return this.protocol != null; } - public IntOrString getTargetPort() { return this.targetPort; } - public A withTargetPort(IntOrString targetPort) { - this.targetPort = targetPort; - return (A) this; + this.targetPort=targetPort; return (A) this; } - public Boolean hasTargetPort() { return this.targetPort != null; } - public A withNewTargetPort(int value) { - return (A) withTargetPort(new IntOrString(value)); + return (A)withTargetPort(new IntOrString(value)); } - public A withNewTargetPort(String value) { - return (A) withTargetPort(new IntOrString(value)); + return (A)withTargetPort(new IntOrString(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServicePortFluentImpl that = (V1ServicePortFluentImpl) o; - if (appProtocol != null ? !appProtocol.equals(that.appProtocol) : that.appProtocol != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (nodePort != null ? !nodePort.equals(that.nodePort) : that.nodePort != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; - if (targetPort != null ? !targetPort.equals(that.targetPort) : that.targetPort != null) - return false; + if (appProtocol != null ? !appProtocol.equals(that.appProtocol) :that.appProtocol != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (nodePort != null ? !nodePort.equals(that.nodePort) :that.nodePort != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; + if (protocol != null ? !protocol.equals(that.protocol) :that.protocol != null) return false; + if (targetPort != null ? !targetPort.equals(that.targetPort) :that.targetPort != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - appProtocol, name, nodePort, port, protocol, targetPort, super.hashCode()); + return java.util.Objects.hash(appProtocol, name, nodePort, port, protocol, targetPort, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { - sb.append("appProtocol:"); - sb.append(appProtocol + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (nodePort != null) { - sb.append("nodePort:"); - sb.append(nodePort + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port + ","); - } - if (protocol != null) { - sb.append("protocol:"); - sb.append(protocol + ","); - } - if (targetPort != null) { - sb.append("targetPort:"); - sb.append(targetPort); - } + if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (nodePort != null) { sb.append("nodePort:"); sb.append(nodePort + ","); } + if (port != null) { sb.append("port:"); sb.append(port + ","); } + if (protocol != null) { sb.append("protocol:"); sb.append(protocol + ","); } + if (targetPort != null) { sb.append("targetPort:"); sb.append(targetPort); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java index 4420ad7c07..6c2957411f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ServiceSpecBuilder extends V1ServiceSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceSpecBuilder extends V1ServiceSpecFluentImpl implements VisitableBuilder{ public V1ServiceSpecBuilder() { this(false); } - public V1ServiceSpecBuilder(Boolean validationEnabled) { this(new V1ServiceSpec(), validationEnabled); } - public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent) { this(fluent, false); } - - public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent, Boolean validationEnabled) { + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceSpec(), validationEnabled); } - - public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent, V1ServiceSpec instance) { + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,V1ServiceSpec instance) { this(fluent, instance, false); } - - public V1ServiceSpecBuilder( - V1ServiceSpecFluent fluent, V1ServiceSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,V1ServiceSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); fluent.withClusterIP(instance.getClusterIP()); @@ -77,15 +58,13 @@ public V1ServiceSpecBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceSpecBuilder(V1ServiceSpec instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceSpecBuilder(V1ServiceSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceSpecBuilder(V1ServiceSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); this.withClusterIP(instance.getClusterIP()); @@ -124,12 +103,10 @@ public V1ServiceSpecBuilder(V1ServiceSpec instance, Boolean validationEnabled) { this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceSpecFluent fluent; Boolean validationEnabled; - public V1ServiceSpec build() { V1ServiceSpec buildable = new V1ServiceSpec(); buildable.setAllocateLoadBalancerNodePorts(fluent.getAllocateLoadBalancerNodePorts()); @@ -153,4 +130,5 @@ public V1ServiceSpec build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java index bb007c7590..11ac9695e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java @@ -1,329 +1,183 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; -/** Generated */ -public interface V1ServiceSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1ServiceSpecFluent> extends Fluent{ public Boolean getAllocateLoadBalancerNodePorts(); - public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts); - public Boolean hasAllocateLoadBalancerNodePorts(); - public String getClusterIP(); - public A withClusterIP(String clusterIP); - public Boolean hasClusterIP(); - - public A addToClusterIPs(Integer index, String item); - - public A setToClusterIPs(Integer index, String item); - + public A addToClusterIPs(Integer index,String item); + public A setToClusterIPs(Integer index,String item); public A addToClusterIPs(java.lang.String... items); - public A addAllToClusterIPs(Collection items); - public A removeFromClusterIPs(java.lang.String... items); - public A removeAllFromClusterIPs(Collection items); - public List getClusterIPs(); - public String getClusterIP(Integer index); - public String getFirstClusterIP(); - public String getLastClusterIP(); - public String getMatchingClusterIP(Predicate predicate); - public Boolean hasMatchingClusterIP(Predicate predicate); - public A withClusterIPs(List clusterIPs); - public A withClusterIPs(java.lang.String... clusterIPs); - public Boolean hasClusterIPs(); - - public A addToExternalIPs(Integer index, String item); - - public A setToExternalIPs(Integer index, String item); - + public A addToExternalIPs(Integer index,String item); + public A setToExternalIPs(Integer index,String item); public A addToExternalIPs(java.lang.String... items); - public A addAllToExternalIPs(Collection items); - public A removeFromExternalIPs(java.lang.String... items); - public A removeAllFromExternalIPs(Collection items); - public List getExternalIPs(); - public String getExternalIP(Integer index); - public String getFirstExternalIP(); - public String getLastExternalIP(); - public String getMatchingExternalIP(Predicate predicate); - public Boolean hasMatchingExternalIP(Predicate predicate); - public A withExternalIPs(List externalIPs); - public A withExternalIPs(java.lang.String... externalIPs); - public Boolean hasExternalIPs(); - public String getExternalName(); - public A withExternalName(String externalName); - public Boolean hasExternalName(); - public String getExternalTrafficPolicy(); - public A withExternalTrafficPolicy(String externalTrafficPolicy); - public Boolean hasExternalTrafficPolicy(); - public Integer getHealthCheckNodePort(); - public A withHealthCheckNodePort(Integer healthCheckNodePort); - public Boolean hasHealthCheckNodePort(); - public String getInternalTrafficPolicy(); - public A withInternalTrafficPolicy(String internalTrafficPolicy); - public Boolean hasInternalTrafficPolicy(); - - public A addToIpFamilies(Integer index, String item); - - public A setToIpFamilies(Integer index, String item); - + public A addToIpFamilies(Integer index,String item); + public A setToIpFamilies(Integer index,String item); public A addToIpFamilies(java.lang.String... items); - public A addAllToIpFamilies(Collection items); - public A removeFromIpFamilies(java.lang.String... items); - public A removeAllFromIpFamilies(Collection items); - public List getIpFamilies(); - public String getIpFamily(Integer index); - public String getFirstIpFamily(); - public String getLastIpFamily(); - public String getMatchingIpFamily(Predicate predicate); - public Boolean hasMatchingIpFamily(Predicate predicate); - public A withIpFamilies(List ipFamilies); - public A withIpFamilies(java.lang.String... ipFamilies); - public Boolean hasIpFamilies(); - public String getIpFamilyPolicy(); - public A withIpFamilyPolicy(String ipFamilyPolicy); - public Boolean hasIpFamilyPolicy(); - public String getLoadBalancerClass(); - public A withLoadBalancerClass(String loadBalancerClass); - public Boolean hasLoadBalancerClass(); - public String getLoadBalancerIP(); - public A withLoadBalancerIP(String loadBalancerIP); - public Boolean hasLoadBalancerIP(); - - public A addToLoadBalancerSourceRanges(Integer index, String item); - - public A setToLoadBalancerSourceRanges(Integer index, String item); - + public A addToLoadBalancerSourceRanges(Integer index,String item); + public A setToLoadBalancerSourceRanges(Integer index,String item); public A addToLoadBalancerSourceRanges(java.lang.String... items); - public A addAllToLoadBalancerSourceRanges(Collection items); - public A removeFromLoadBalancerSourceRanges(java.lang.String... items); - public A removeAllFromLoadBalancerSourceRanges(Collection items); - public List getLoadBalancerSourceRanges(); - public String getLoadBalancerSourceRange(Integer index); - public String getFirstLoadBalancerSourceRange(); - public String getLastLoadBalancerSourceRange(); - public String getMatchingLoadBalancerSourceRange(Predicate predicate); - public Boolean hasMatchingLoadBalancerSourceRange(Predicate predicate); - public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges); - public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRanges); - public Boolean hasLoadBalancerSourceRanges(); - - public A addToPorts(Integer index, V1ServicePort item); - - public A setToPorts(Integer index, V1ServicePort item); - + public A addToPorts(Integer index,V1ServicePort item); + public A setToPorts(Integer index,V1ServicePort item); public A addToPorts(io.kubernetes.client.openapi.models.V1ServicePort... items); - public A addAllToPorts(Collection items); - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... items); - public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(Predicate predicate); - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts(); - public List buildPorts(); - public V1ServicePort buildPort(Integer index); - public V1ServicePort buildFirstPort(); - public V1ServicePort buildLastPort(); - public V1ServicePort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(List ports); - public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports); - public Boolean hasPorts(); - public V1ServiceSpecFluent.PortsNested addNewPort(); - public V1ServiceSpecFluent.PortsNested addNewPortLike(V1ServicePort item); - - public V1ServiceSpecFluent.PortsNested setNewPortLike(Integer index, V1ServicePort item); - + public V1ServiceSpecFluent.PortsNested setNewPortLike(Integer index,V1ServicePort item); public V1ServiceSpecFluent.PortsNested editPort(Integer index); - public V1ServiceSpecFluent.PortsNested editFirstPort(); - public V1ServiceSpecFluent.PortsNested editLastPort(); - - public V1ServiceSpecFluent.PortsNested editMatchingPort( - Predicate predicate); - + public V1ServiceSpecFluent.PortsNested editMatchingPort(Predicate predicate); public Boolean getPublishNotReadyAddresses(); - public A withPublishNotReadyAddresses(Boolean publishNotReadyAddresses); - public Boolean hasPublishNotReadyAddresses(); - - public A addToSelector(String key, String value); - - public A addToSelector(Map map); - + public A addToSelector(String key,String value); + public A addToSelector(Map map); public A removeFromSelector(String key); - - public A removeFromSelector(Map map); - - public Map getSelector(); - - public A withSelector(Map selector); - + public A removeFromSelector(Map map); + public Map getSelector(); + public A withSelector(Map selector); public Boolean hasSelector(); - public String getSessionAffinity(); - public A withSessionAffinity(String sessionAffinity); - public Boolean hasSessionAffinity(); - + /** * This method has been deprecated, please use method buildSessionAffinityConfig instead. - * * @return The buildable object. */ @Deprecated public V1SessionAffinityConfig getSessionAffinityConfig(); - public V1SessionAffinityConfig buildSessionAffinityConfig(); - public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig); - public Boolean hasSessionAffinityConfig(); - public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfig(); - - public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfigLike( - V1SessionAffinityConfig item); - + public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item); public V1ServiceSpecFluent.SessionAffinityConfigNested editSessionAffinityConfig(); - public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfig(); - - public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfigLike( - V1SessionAffinityConfig item); - + public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item); public String getType(); - public A withType(String type); - public Boolean hasType(); - public A withAllocateLoadBalancerNodePorts(); - public A withPublishNotReadyAddresses(); - - public interface PortsNested - extends Nested, V1ServicePortFluent> { + public interface PortsNested extends Nested,V1ServicePortFluent>{ public N and(); - public N endPort(); + } - - public interface SessionAffinityConfigNested - extends Nested, - V1SessionAffinityConfigFluent> { + public interface SessionAffinityConfigNested extends Nested,V1SessionAffinityConfigFluent>{ public N and(); - public N endSessionAffinityConfig(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java index 39d027d28e..d20353668c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java @@ -1,33 +1,29 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceSpecFluentImpl> extends BaseFluent - implements V1ServiceSpecFluent { - public V1ServiceSpecFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceSpecFluentImpl> extends BaseFluent implements V1ServiceSpecFluent{ + public V1ServiceSpecFluentImpl() { + } public V1ServiceSpecFluentImpl(V1ServiceSpec instance) { this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); @@ -66,8 +62,8 @@ public V1ServiceSpecFluentImpl(V1ServiceSpec instance) { this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); this.withType(instance.getType()); - } + } private Boolean allocateLoadBalancerNodePorts; private String clusterIP; private List clusterIPs; @@ -83,666 +79,320 @@ public V1ServiceSpecFluentImpl(V1ServiceSpec instance) { private List loadBalancerSourceRanges; private ArrayList ports; private Boolean publishNotReadyAddresses; - private Map selector; + private Map selector; private String sessionAffinity; private V1SessionAffinityConfigBuilder sessionAffinityConfig; private String type; - public Boolean getAllocateLoadBalancerNodePorts() { return this.allocateLoadBalancerNodePorts; } - public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { - this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; - return (A) this; + this.allocateLoadBalancerNodePorts=allocateLoadBalancerNodePorts; return (A) this; } - public Boolean hasAllocateLoadBalancerNodePorts() { return this.allocateLoadBalancerNodePorts != null; } - public String getClusterIP() { return this.clusterIP; } - public A withClusterIP(String clusterIP) { - this.clusterIP = clusterIP; - return (A) this; + this.clusterIP=clusterIP; return (A) this; } - public Boolean hasClusterIP() { return this.clusterIP != null; } - - public A addToClusterIPs(Integer index, String item) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); - } + public A addToClusterIPs(Integer index,String item) { + if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} this.clusterIPs.add(index, item); - return (A) this; + return (A)this; } - - public A setToClusterIPs(Integer index, String item) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); - } - this.clusterIPs.set(index, item); - return (A) this; + public A setToClusterIPs(Integer index,String item) { + if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} + this.clusterIPs.set(index, item); return (A)this; } - public A addToClusterIPs(java.lang.String... items) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); - } - for (String item : items) { - this.clusterIPs.add(item); - } - return (A) this; + if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} + for (String item : items) {this.clusterIPs.add(item);} return (A)this; } - public A addAllToClusterIPs(Collection items) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); - } - for (String item : items) { - this.clusterIPs.add(item); - } - return (A) this; + if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} + for (String item : items) {this.clusterIPs.add(item);} return (A)this; } - public A removeFromClusterIPs(java.lang.String... items) { - for (String item : items) { - if (this.clusterIPs != null) { - this.clusterIPs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.clusterIPs!= null){ this.clusterIPs.remove(item);}} return (A)this; } - public A removeAllFromClusterIPs(Collection items) { - for (String item : items) { - if (this.clusterIPs != null) { - this.clusterIPs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.clusterIPs!= null){ this.clusterIPs.remove(item);}} return (A)this; } - public List getClusterIPs() { return this.clusterIPs; } - public String getClusterIP(Integer index) { return this.clusterIPs.get(index); } - public String getFirstClusterIP() { return this.clusterIPs.get(0); } - public String getLastClusterIP() { return this.clusterIPs.get(clusterIPs.size() - 1); } - public String getMatchingClusterIP(Predicate predicate) { - for (String item : clusterIPs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: clusterIPs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingClusterIP(Predicate predicate) { - for (String item : clusterIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: clusterIPs) { if(predicate.test(item)){ return true;} } return false; } - public A withClusterIPs(List clusterIPs) { - if (clusterIPs != null) { - this.clusterIPs = new ArrayList(); - for (String item : clusterIPs) { - this.addToClusterIPs(item); - } - } else { - this.clusterIPs = null; - } - return (A) this; + if (clusterIPs != null) {this.clusterIPs = new ArrayList(); for (String item : clusterIPs){this.addToClusterIPs(item);}} else { this.clusterIPs = null;} return (A) this; } - public A withClusterIPs(java.lang.String... clusterIPs) { - if (this.clusterIPs != null) { - this.clusterIPs.clear(); - } - if (clusterIPs != null) { - for (String item : clusterIPs) { - this.addToClusterIPs(item); - } - } - return (A) this; + if (this.clusterIPs != null) {this.clusterIPs.clear();} + if (clusterIPs != null) {for (String item :clusterIPs){ this.addToClusterIPs(item);}} return (A) this; } - public Boolean hasClusterIPs() { return clusterIPs != null && !clusterIPs.isEmpty(); } - - public A addToExternalIPs(Integer index, String item) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); - } + public A addToExternalIPs(Integer index,String item) { + if (this.externalIPs == null) {this.externalIPs = new ArrayList();} this.externalIPs.add(index, item); - return (A) this; + return (A)this; } - - public A setToExternalIPs(Integer index, String item) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); - } - this.externalIPs.set(index, item); - return (A) this; + public A setToExternalIPs(Integer index,String item) { + if (this.externalIPs == null) {this.externalIPs = new ArrayList();} + this.externalIPs.set(index, item); return (A)this; } - public A addToExternalIPs(java.lang.String... items) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); - } - for (String item : items) { - this.externalIPs.add(item); - } - return (A) this; + if (this.externalIPs == null) {this.externalIPs = new ArrayList();} + for (String item : items) {this.externalIPs.add(item);} return (A)this; } - public A addAllToExternalIPs(Collection items) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); - } - for (String item : items) { - this.externalIPs.add(item); - } - return (A) this; + if (this.externalIPs == null) {this.externalIPs = new ArrayList();} + for (String item : items) {this.externalIPs.add(item);} return (A)this; } - public A removeFromExternalIPs(java.lang.String... items) { - for (String item : items) { - if (this.externalIPs != null) { - this.externalIPs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.externalIPs!= null){ this.externalIPs.remove(item);}} return (A)this; } - public A removeAllFromExternalIPs(Collection items) { - for (String item : items) { - if (this.externalIPs != null) { - this.externalIPs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.externalIPs!= null){ this.externalIPs.remove(item);}} return (A)this; } - public List getExternalIPs() { return this.externalIPs; } - public String getExternalIP(Integer index) { return this.externalIPs.get(index); } - public String getFirstExternalIP() { return this.externalIPs.get(0); } - public String getLastExternalIP() { return this.externalIPs.get(externalIPs.size() - 1); } - public String getMatchingExternalIP(Predicate predicate) { - for (String item : externalIPs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: externalIPs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingExternalIP(Predicate predicate) { - for (String item : externalIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: externalIPs) { if(predicate.test(item)){ return true;} } return false; } - public A withExternalIPs(List externalIPs) { - if (externalIPs != null) { - this.externalIPs = new ArrayList(); - for (String item : externalIPs) { - this.addToExternalIPs(item); - } - } else { - this.externalIPs = null; - } - return (A) this; + if (externalIPs != null) {this.externalIPs = new ArrayList(); for (String item : externalIPs){this.addToExternalIPs(item);}} else { this.externalIPs = null;} return (A) this; } - public A withExternalIPs(java.lang.String... externalIPs) { - if (this.externalIPs != null) { - this.externalIPs.clear(); - } - if (externalIPs != null) { - for (String item : externalIPs) { - this.addToExternalIPs(item); - } - } - return (A) this; + if (this.externalIPs != null) {this.externalIPs.clear();} + if (externalIPs != null) {for (String item :externalIPs){ this.addToExternalIPs(item);}} return (A) this; } - public Boolean hasExternalIPs() { return externalIPs != null && !externalIPs.isEmpty(); } - public String getExternalName() { return this.externalName; } - public A withExternalName(String externalName) { - this.externalName = externalName; - return (A) this; + this.externalName=externalName; return (A) this; } - public Boolean hasExternalName() { return this.externalName != null; } - public String getExternalTrafficPolicy() { return this.externalTrafficPolicy; } - public A withExternalTrafficPolicy(String externalTrafficPolicy) { - this.externalTrafficPolicy = externalTrafficPolicy; - return (A) this; + this.externalTrafficPolicy=externalTrafficPolicy; return (A) this; } - public Boolean hasExternalTrafficPolicy() { return this.externalTrafficPolicy != null; } - public Integer getHealthCheckNodePort() { return this.healthCheckNodePort; } - public A withHealthCheckNodePort(Integer healthCheckNodePort) { - this.healthCheckNodePort = healthCheckNodePort; - return (A) this; + this.healthCheckNodePort=healthCheckNodePort; return (A) this; } - public Boolean hasHealthCheckNodePort() { return this.healthCheckNodePort != null; } - public String getInternalTrafficPolicy() { return this.internalTrafficPolicy; } - public A withInternalTrafficPolicy(String internalTrafficPolicy) { - this.internalTrafficPolicy = internalTrafficPolicy; - return (A) this; + this.internalTrafficPolicy=internalTrafficPolicy; return (A) this; } - public Boolean hasInternalTrafficPolicy() { return this.internalTrafficPolicy != null; } - - public A addToIpFamilies(Integer index, String item) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); - } + public A addToIpFamilies(Integer index,String item) { + if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} this.ipFamilies.add(index, item); - return (A) this; + return (A)this; } - - public A setToIpFamilies(Integer index, String item) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); - } - this.ipFamilies.set(index, item); - return (A) this; + public A setToIpFamilies(Integer index,String item) { + if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} + this.ipFamilies.set(index, item); return (A)this; } - public A addToIpFamilies(java.lang.String... items) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); - } - for (String item : items) { - this.ipFamilies.add(item); - } - return (A) this; + if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} + for (String item : items) {this.ipFamilies.add(item);} return (A)this; } - public A addAllToIpFamilies(Collection items) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); - } - for (String item : items) { - this.ipFamilies.add(item); - } - return (A) this; + if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} + for (String item : items) {this.ipFamilies.add(item);} return (A)this; } - public A removeFromIpFamilies(java.lang.String... items) { - for (String item : items) { - if (this.ipFamilies != null) { - this.ipFamilies.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.ipFamilies!= null){ this.ipFamilies.remove(item);}} return (A)this; } - public A removeAllFromIpFamilies(Collection items) { - for (String item : items) { - if (this.ipFamilies != null) { - this.ipFamilies.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.ipFamilies!= null){ this.ipFamilies.remove(item);}} return (A)this; } - public List getIpFamilies() { return this.ipFamilies; } - public String getIpFamily(Integer index) { return this.ipFamilies.get(index); } - public String getFirstIpFamily() { return this.ipFamilies.get(0); } - public String getLastIpFamily() { return this.ipFamilies.get(ipFamilies.size() - 1); } - public String getMatchingIpFamily(Predicate predicate) { - for (String item : ipFamilies) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: ipFamilies) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingIpFamily(Predicate predicate) { - for (String item : ipFamilies) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: ipFamilies) { if(predicate.test(item)){ return true;} } return false; } - public A withIpFamilies(List ipFamilies) { - if (ipFamilies != null) { - this.ipFamilies = new ArrayList(); - for (String item : ipFamilies) { - this.addToIpFamilies(item); - } - } else { - this.ipFamilies = null; - } - return (A) this; + if (ipFamilies != null) {this.ipFamilies = new ArrayList(); for (String item : ipFamilies){this.addToIpFamilies(item);}} else { this.ipFamilies = null;} return (A) this; } - public A withIpFamilies(java.lang.String... ipFamilies) { - if (this.ipFamilies != null) { - this.ipFamilies.clear(); - } - if (ipFamilies != null) { - for (String item : ipFamilies) { - this.addToIpFamilies(item); - } - } - return (A) this; + if (this.ipFamilies != null) {this.ipFamilies.clear();} + if (ipFamilies != null) {for (String item :ipFamilies){ this.addToIpFamilies(item);}} return (A) this; } - public Boolean hasIpFamilies() { return ipFamilies != null && !ipFamilies.isEmpty(); } - public String getIpFamilyPolicy() { return this.ipFamilyPolicy; } - public A withIpFamilyPolicy(String ipFamilyPolicy) { - this.ipFamilyPolicy = ipFamilyPolicy; - return (A) this; + this.ipFamilyPolicy=ipFamilyPolicy; return (A) this; } - public Boolean hasIpFamilyPolicy() { return this.ipFamilyPolicy != null; } - public String getLoadBalancerClass() { return this.loadBalancerClass; } - public A withLoadBalancerClass(String loadBalancerClass) { - this.loadBalancerClass = loadBalancerClass; - return (A) this; + this.loadBalancerClass=loadBalancerClass; return (A) this; } - public Boolean hasLoadBalancerClass() { return this.loadBalancerClass != null; } - public String getLoadBalancerIP() { return this.loadBalancerIP; } - public A withLoadBalancerIP(String loadBalancerIP) { - this.loadBalancerIP = loadBalancerIP; - return (A) this; + this.loadBalancerIP=loadBalancerIP; return (A) this; } - public Boolean hasLoadBalancerIP() { return this.loadBalancerIP != null; } - - public A addToLoadBalancerSourceRanges(Integer index, String item) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } + public A addToLoadBalancerSourceRanges(Integer index,String item) { + if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} this.loadBalancerSourceRanges.add(index, item); - return (A) this; + return (A)this; } - - public A setToLoadBalancerSourceRanges(Integer index, String item) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - this.loadBalancerSourceRanges.set(index, item); - return (A) this; + public A setToLoadBalancerSourceRanges(Integer index,String item) { + if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} + this.loadBalancerSourceRanges.set(index, item); return (A)this; } - public A addToLoadBalancerSourceRanges(java.lang.String... items) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - for (String item : items) { - this.loadBalancerSourceRanges.add(item); - } - return (A) this; + if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} + for (String item : items) {this.loadBalancerSourceRanges.add(item);} return (A)this; } - public A addAllToLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - for (String item : items) { - this.loadBalancerSourceRanges.add(item); - } - return (A) this; + if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} + for (String item : items) {this.loadBalancerSourceRanges.add(item);} return (A)this; } - public A removeFromLoadBalancerSourceRanges(java.lang.String... items) { - for (String item : items) { - if (this.loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.loadBalancerSourceRanges!= null){ this.loadBalancerSourceRanges.remove(item);}} return (A)this; } - public A removeAllFromLoadBalancerSourceRanges(Collection items) { - for (String item : items) { - if (this.loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.loadBalancerSourceRanges!= null){ this.loadBalancerSourceRanges.remove(item);}} return (A)this; } - public List getLoadBalancerSourceRanges() { return this.loadBalancerSourceRanges; } - public String getLoadBalancerSourceRange(Integer index) { return this.loadBalancerSourceRanges.get(index); } - public String getFirstLoadBalancerSourceRange() { return this.loadBalancerSourceRanges.get(0); } - public String getLastLoadBalancerSourceRange() { return this.loadBalancerSourceRanges.get(loadBalancerSourceRanges.size() - 1); } - public String getMatchingLoadBalancerSourceRange(Predicate predicate) { - for (String item : loadBalancerSourceRanges) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: loadBalancerSourceRanges) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingLoadBalancerSourceRange(Predicate predicate) { - for (String item : loadBalancerSourceRanges) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: loadBalancerSourceRanges) { if(predicate.test(item)){ return true;} } return false; } - public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { - if (loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges = new ArrayList(); - for (String item : loadBalancerSourceRanges) { - this.addToLoadBalancerSourceRanges(item); - } - } else { - this.loadBalancerSourceRanges = null; - } - return (A) this; + if (loadBalancerSourceRanges != null) {this.loadBalancerSourceRanges = new ArrayList(); for (String item : loadBalancerSourceRanges){this.addToLoadBalancerSourceRanges(item);}} else { this.loadBalancerSourceRanges = null;} return (A) this; } - public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRanges) { - if (this.loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges.clear(); - } - if (loadBalancerSourceRanges != null) { - for (String item : loadBalancerSourceRanges) { - this.addToLoadBalancerSourceRanges(item); - } - } - return (A) this; + if (this.loadBalancerSourceRanges != null) {this.loadBalancerSourceRanges.clear();} + if (loadBalancerSourceRanges != null) {for (String item :loadBalancerSourceRanges){ this.addToLoadBalancerSourceRanges(item);}} return (A) this; } - public Boolean hasLoadBalancerSourceRanges() { return loadBalancerSourceRanges != null && !loadBalancerSourceRanges.isEmpty(); } - - public A addToPorts(Integer index, V1ServicePort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; + public A addToPorts(Integer index,V1ServicePort item) { + if (this.ports == null) {this.ports = new ArrayList();} + V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder);this.ports.add(index >= 0 ? index : ports.size(), builder); return (A)this; } - - public A setToPorts(Integer index, V1ServicePort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } + public A setToPorts(Integer index,V1ServicePort item) { + if (this.ports == null) {this.ports = new ArrayList();} V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { _visitables.get("ports").set(index, builder);} + if (index < 0 || index >= ports.size()) { ports.add(builder); } else { ports.set(index, builder);} + return (A)this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + if (this.ports == null) {this.ports = new ArrayList();} + for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeAllFromPorts(Collection items) { - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; + for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").remove(builder);if (this.ports != null) {this.ports.remove(builder);}} return (A)this; } - public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; final Iterator each = ports.iterator(); @@ -754,492 +404,255 @@ public A removeMatchingFromPorts(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPorts instead. - * * @return The buildable object. */ @Deprecated public List getPorts() { return ports != null ? build(ports) : null; } - public List buildPorts() { return ports != null ? build(ports) : null; } - public V1ServicePort buildPort(Integer index) { return this.ports.get(index).build(); } - public V1ServicePort buildFirstPort() { return this.ports.get(0).build(); } - public V1ServicePort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public V1ServicePort buildMatchingPort(Predicate predicate) { - for (V1ServicePortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ServicePortBuilder item: ports) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPort(Predicate predicate) { - for (V1ServicePortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ServicePortBuilder item: ports) { if(predicate.test(item)){ return true;} } return false; } - public A withPorts(List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ServicePort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; + if (this.ports != null) { _visitables.get("ports").removeAll(this.ports);} + if (ports != null) {this.ports = new ArrayList(); for (V1ServicePort item : ports){this.addToPorts(item);}} else { this.ports = null;} return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (V1ServicePort item : ports) { - this.addToPorts(item); - } - } - return (A) this; + if (this.ports != null) {this.ports.clear();} + if (ports != null) {for (V1ServicePort item :ports){ this.addToPorts(item);}} return (A) this; } - public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } - public V1ServiceSpecFluent.PortsNested addNewPort() { return new V1ServiceSpecFluentImpl.PortsNestedImpl(); } - public V1ServiceSpecFluent.PortsNested addNewPortLike(V1ServicePort item) { return new V1ServiceSpecFluentImpl.PortsNestedImpl(-1, item); } - - public V1ServiceSpecFluent.PortsNested setNewPortLike(Integer index, V1ServicePort item) { + public V1ServiceSpecFluent.PortsNested setNewPortLike(Integer index,V1ServicePort item) { return new V1ServiceSpecFluentImpl.PortsNestedImpl(index, item); } - public V1ServiceSpecFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public V1ServiceSpecFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public V1ServiceSpecFluent.PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); return setNewPortLike(index, buildPort(index)); } - - public V1ServiceSpecFluent.PortsNested editMatchingPort( - Predicate predicate) { + public V1ServiceSpecFluent.PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } + for (int i=0;i map) { - if (this.selector == null && map != null) { - this.selector = new LinkedHashMap(); - } - if (map != null) { - this.selector.putAll(map); - } - return (A) this; + public A addToSelector(Map map) { + if(this.selector == null && map != null) { this.selector = new LinkedHashMap(); } + if(map != null) { this.selector.putAll(map);} return (A)this; } - public A removeFromSelector(String key) { - if (this.selector == null) { - return (A) this; - } - if (key != null && this.selector != null) { - this.selector.remove(key); - } - return (A) this; + if(this.selector == null) { return (A) this; } + if(key != null && this.selector != null) {this.selector.remove(key);} return (A)this; } - - public A removeFromSelector(Map map) { - if (this.selector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.selector != null) { - this.selector.remove(key); - } - } - } - return (A) this; + public A removeFromSelector(Map map) { + if(this.selector == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.selector != null){this.selector.remove(key);}}} return (A)this; } - - public Map getSelector() { + public Map getSelector() { return this.selector; } - - public A withSelector(Map selector) { - if (selector == null) { - this.selector = null; - } else { - this.selector = new LinkedHashMap(selector); - } - return (A) this; + public A withSelector(Map selector) { + if (selector == null) { this.selector = null;} else {this.selector = new LinkedHashMap(selector);} return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public String getSessionAffinity() { return this.sessionAffinity; } - public A withSessionAffinity(String sessionAffinity) { - this.sessionAffinity = sessionAffinity; - return (A) this; + this.sessionAffinity=sessionAffinity; return (A) this; } - public Boolean hasSessionAffinity() { return this.sessionAffinity != null; } - + /** * This method has been deprecated, please use method buildSessionAffinityConfig instead. - * * @return The buildable object. */ @Deprecated public V1SessionAffinityConfig getSessionAffinityConfig() { - return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; + return this.sessionAffinityConfig!=null ?this.sessionAffinityConfig.build():null; } - public V1SessionAffinityConfig buildSessionAffinityConfig() { - return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; + return this.sessionAffinityConfig!=null ?this.sessionAffinityConfig.build():null; } - public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { _visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); - if (sessionAffinityConfig != null) { - this.sessionAffinityConfig = new V1SessionAffinityConfigBuilder(sessionAffinityConfig); - _visitables.get("sessionAffinityConfig").add(this.sessionAffinityConfig); - } else { - this.sessionAffinityConfig = null; - _visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); - } - return (A) this; + if (sessionAffinityConfig!=null){ this.sessionAffinityConfig= new V1SessionAffinityConfigBuilder(sessionAffinityConfig); _visitables.get("sessionAffinityConfig").add(this.sessionAffinityConfig);} else { this.sessionAffinityConfig = null; _visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); } return (A) this; } - public Boolean hasSessionAffinityConfig() { return this.sessionAffinityConfig != null; } - public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfig() { return new V1ServiceSpecFluentImpl.SessionAffinityConfigNestedImpl(); } - - public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfigLike( - V1SessionAffinityConfig item) { + public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { return new V1ServiceSpecFluentImpl.SessionAffinityConfigNestedImpl(item); } - public V1ServiceSpecFluent.SessionAffinityConfigNested editSessionAffinityConfig() { return withNewSessionAffinityConfigLike(getSessionAffinityConfig()); } - public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfig() { - return withNewSessionAffinityConfigLike( - getSessionAffinityConfig() != null - ? getSessionAffinityConfig() - : new V1SessionAffinityConfigBuilder().build()); + return withNewSessionAffinityConfigLike(getSessionAffinityConfig() != null ? getSessionAffinityConfig(): new V1SessionAffinityConfigBuilder().build()); } - - public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfigLike( - V1SessionAffinityConfig item) { - return withNewSessionAffinityConfigLike( - getSessionAffinityConfig() != null ? getSessionAffinityConfig() : item); + public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { + return withNewSessionAffinityConfigLike(getSessionAffinityConfig() != null ? getSessionAffinityConfig(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceSpecFluentImpl that = (V1ServiceSpecFluentImpl) o; - if (allocateLoadBalancerNodePorts != null - ? !allocateLoadBalancerNodePorts.equals(that.allocateLoadBalancerNodePorts) - : that.allocateLoadBalancerNodePorts != null) return false; - if (clusterIP != null ? !clusterIP.equals(that.clusterIP) : that.clusterIP != null) - return false; - if (clusterIPs != null ? !clusterIPs.equals(that.clusterIPs) : that.clusterIPs != null) - return false; - if (externalIPs != null ? !externalIPs.equals(that.externalIPs) : that.externalIPs != null) - return false; - if (externalName != null ? !externalName.equals(that.externalName) : that.externalName != null) - return false; - if (externalTrafficPolicy != null - ? !externalTrafficPolicy.equals(that.externalTrafficPolicy) - : that.externalTrafficPolicy != null) return false; - if (healthCheckNodePort != null - ? !healthCheckNodePort.equals(that.healthCheckNodePort) - : that.healthCheckNodePort != null) return false; - if (internalTrafficPolicy != null - ? !internalTrafficPolicy.equals(that.internalTrafficPolicy) - : that.internalTrafficPolicy != null) return false; - if (ipFamilies != null ? !ipFamilies.equals(that.ipFamilies) : that.ipFamilies != null) - return false; - if (ipFamilyPolicy != null - ? !ipFamilyPolicy.equals(that.ipFamilyPolicy) - : that.ipFamilyPolicy != null) return false; - if (loadBalancerClass != null - ? !loadBalancerClass.equals(that.loadBalancerClass) - : that.loadBalancerClass != null) return false; - if (loadBalancerIP != null - ? !loadBalancerIP.equals(that.loadBalancerIP) - : that.loadBalancerIP != null) return false; - if (loadBalancerSourceRanges != null - ? !loadBalancerSourceRanges.equals(that.loadBalancerSourceRanges) - : that.loadBalancerSourceRanges != null) return false; - if (ports != null ? !ports.equals(that.ports) : that.ports != null) return false; - if (publishNotReadyAddresses != null - ? !publishNotReadyAddresses.equals(that.publishNotReadyAddresses) - : that.publishNotReadyAddresses != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (sessionAffinity != null - ? !sessionAffinity.equals(that.sessionAffinity) - : that.sessionAffinity != null) return false; - if (sessionAffinityConfig != null - ? !sessionAffinityConfig.equals(that.sessionAffinityConfig) - : that.sessionAffinityConfig != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (allocateLoadBalancerNodePorts != null ? !allocateLoadBalancerNodePorts.equals(that.allocateLoadBalancerNodePorts) :that.allocateLoadBalancerNodePorts != null) return false; + if (clusterIP != null ? !clusterIP.equals(that.clusterIP) :that.clusterIP != null) return false; + if (clusterIPs != null ? !clusterIPs.equals(that.clusterIPs) :that.clusterIPs != null) return false; + if (externalIPs != null ? !externalIPs.equals(that.externalIPs) :that.externalIPs != null) return false; + if (externalName != null ? !externalName.equals(that.externalName) :that.externalName != null) return false; + if (externalTrafficPolicy != null ? !externalTrafficPolicy.equals(that.externalTrafficPolicy) :that.externalTrafficPolicy != null) return false; + if (healthCheckNodePort != null ? !healthCheckNodePort.equals(that.healthCheckNodePort) :that.healthCheckNodePort != null) return false; + if (internalTrafficPolicy != null ? !internalTrafficPolicy.equals(that.internalTrafficPolicy) :that.internalTrafficPolicy != null) return false; + if (ipFamilies != null ? !ipFamilies.equals(that.ipFamilies) :that.ipFamilies != null) return false; + if (ipFamilyPolicy != null ? !ipFamilyPolicy.equals(that.ipFamilyPolicy) :that.ipFamilyPolicy != null) return false; + if (loadBalancerClass != null ? !loadBalancerClass.equals(that.loadBalancerClass) :that.loadBalancerClass != null) return false; + if (loadBalancerIP != null ? !loadBalancerIP.equals(that.loadBalancerIP) :that.loadBalancerIP != null) return false; + if (loadBalancerSourceRanges != null ? !loadBalancerSourceRanges.equals(that.loadBalancerSourceRanges) :that.loadBalancerSourceRanges != null) return false; + if (ports != null ? !ports.equals(that.ports) :that.ports != null) return false; + if (publishNotReadyAddresses != null ? !publishNotReadyAddresses.equals(that.publishNotReadyAddresses) :that.publishNotReadyAddresses != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; + if (sessionAffinity != null ? !sessionAffinity.equals(that.sessionAffinity) :that.sessionAffinity != null) return false; + if (sessionAffinityConfig != null ? !sessionAffinityConfig.equals(that.sessionAffinityConfig) :that.sessionAffinityConfig != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - allocateLoadBalancerNodePorts, - clusterIP, - clusterIPs, - externalIPs, - externalName, - externalTrafficPolicy, - healthCheckNodePort, - internalTrafficPolicy, - ipFamilies, - ipFamilyPolicy, - loadBalancerClass, - loadBalancerIP, - loadBalancerSourceRanges, - ports, - publishNotReadyAddresses, - selector, - sessionAffinity, - sessionAffinityConfig, - type, - super.hashCode()); + return java.util.Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allocateLoadBalancerNodePorts != null) { - sb.append("allocateLoadBalancerNodePorts:"); - sb.append(allocateLoadBalancerNodePorts + ","); - } - if (clusterIP != null) { - sb.append("clusterIP:"); - sb.append(clusterIP + ","); - } - if (clusterIPs != null && !clusterIPs.isEmpty()) { - sb.append("clusterIPs:"); - sb.append(clusterIPs + ","); - } - if (externalIPs != null && !externalIPs.isEmpty()) { - sb.append("externalIPs:"); - sb.append(externalIPs + ","); - } - if (externalName != null) { - sb.append("externalName:"); - sb.append(externalName + ","); - } - if (externalTrafficPolicy != null) { - sb.append("externalTrafficPolicy:"); - sb.append(externalTrafficPolicy + ","); - } - if (healthCheckNodePort != null) { - sb.append("healthCheckNodePort:"); - sb.append(healthCheckNodePort + ","); - } - if (internalTrafficPolicy != null) { - sb.append("internalTrafficPolicy:"); - sb.append(internalTrafficPolicy + ","); - } - if (ipFamilies != null && !ipFamilies.isEmpty()) { - sb.append("ipFamilies:"); - sb.append(ipFamilies + ","); - } - if (ipFamilyPolicy != null) { - sb.append("ipFamilyPolicy:"); - sb.append(ipFamilyPolicy + ","); - } - if (loadBalancerClass != null) { - sb.append("loadBalancerClass:"); - sb.append(loadBalancerClass + ","); - } - if (loadBalancerIP != null) { - sb.append("loadBalancerIP:"); - sb.append(loadBalancerIP + ","); - } - if (loadBalancerSourceRanges != null && !loadBalancerSourceRanges.isEmpty()) { - sb.append("loadBalancerSourceRanges:"); - sb.append(loadBalancerSourceRanges + ","); - } - if (ports != null && !ports.isEmpty()) { - sb.append("ports:"); - sb.append(ports + ","); - } - if (publishNotReadyAddresses != null) { - sb.append("publishNotReadyAddresses:"); - sb.append(publishNotReadyAddresses + ","); - } - if (selector != null && !selector.isEmpty()) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (sessionAffinity != null) { - sb.append("sessionAffinity:"); - sb.append(sessionAffinity + ","); - } - if (sessionAffinityConfig != null) { - sb.append("sessionAffinityConfig:"); - sb.append(sessionAffinityConfig + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (allocateLoadBalancerNodePorts != null) { sb.append("allocateLoadBalancerNodePorts:"); sb.append(allocateLoadBalancerNodePorts + ","); } + if (clusterIP != null) { sb.append("clusterIP:"); sb.append(clusterIP + ","); } + if (clusterIPs != null && !clusterIPs.isEmpty()) { sb.append("clusterIPs:"); sb.append(clusterIPs + ","); } + if (externalIPs != null && !externalIPs.isEmpty()) { sb.append("externalIPs:"); sb.append(externalIPs + ","); } + if (externalName != null) { sb.append("externalName:"); sb.append(externalName + ","); } + if (externalTrafficPolicy != null) { sb.append("externalTrafficPolicy:"); sb.append(externalTrafficPolicy + ","); } + if (healthCheckNodePort != null) { sb.append("healthCheckNodePort:"); sb.append(healthCheckNodePort + ","); } + if (internalTrafficPolicy != null) { sb.append("internalTrafficPolicy:"); sb.append(internalTrafficPolicy + ","); } + if (ipFamilies != null && !ipFamilies.isEmpty()) { sb.append("ipFamilies:"); sb.append(ipFamilies + ","); } + if (ipFamilyPolicy != null) { sb.append("ipFamilyPolicy:"); sb.append(ipFamilyPolicy + ","); } + if (loadBalancerClass != null) { sb.append("loadBalancerClass:"); sb.append(loadBalancerClass + ","); } + if (loadBalancerIP != null) { sb.append("loadBalancerIP:"); sb.append(loadBalancerIP + ","); } + if (loadBalancerSourceRanges != null && !loadBalancerSourceRanges.isEmpty()) { sb.append("loadBalancerSourceRanges:"); sb.append(loadBalancerSourceRanges + ","); } + if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports + ","); } + if (publishNotReadyAddresses != null) { sb.append("publishNotReadyAddresses:"); sb.append(publishNotReadyAddresses + ","); } + if (selector != null && !selector.isEmpty()) { sb.append("selector:"); sb.append(selector + ","); } + if (sessionAffinity != null) { sb.append("sessionAffinity:"); sb.append(sessionAffinity + ","); } + if (sessionAffinityConfig != null) { sb.append("sessionAffinityConfig:"); sb.append(sessionAffinityConfig + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - public A withAllocateLoadBalancerNodePorts() { return withAllocateLoadBalancerNodePorts(true); } - public A withPublishNotReadyAddresses() { return withPublishNotReadyAddresses(true); } - - class PortsNestedImpl extends V1ServicePortFluentImpl> - implements V1ServiceSpecFluent.PortsNested, Nested { - PortsNestedImpl(Integer index, V1ServicePort item) { + class PortsNestedImpl extends V1ServicePortFluentImpl> implements V1ServiceSpecFluent.PortsNested,Nested{ + PortsNestedImpl(Integer index,V1ServicePort item) { this.index = index; this.builder = new V1ServicePortBuilder(this, item); } - PortsNestedImpl() { this.index = -1; this.builder = new V1ServicePortBuilder(this); } - V1ServicePortBuilder builder; Integer index; - public N and() { - return (N) V1ServiceSpecFluentImpl.this.setToPorts(index, builder.build()); + return (N) V1ServiceSpecFluentImpl.this.setToPorts(index,builder.build()); } - public N endPort() { return and(); } + } - - class SessionAffinityConfigNestedImpl - extends V1SessionAffinityConfigFluentImpl> - implements V1ServiceSpecFluent.SessionAffinityConfigNested, Nested { + class SessionAffinityConfigNestedImpl extends V1SessionAffinityConfigFluentImpl> implements V1ServiceSpecFluent.SessionAffinityConfigNested,Nested{ SessionAffinityConfigNestedImpl(V1SessionAffinityConfig item) { this.builder = new V1SessionAffinityConfigBuilder(this, item); } - SessionAffinityConfigNestedImpl() { this.builder = new V1SessionAffinityConfigBuilder(this); } - V1SessionAffinityConfigBuilder builder; - public N and() { return (N) V1ServiceSpecFluentImpl.this.withSessionAffinityConfig(builder.build()); } - public N endSessionAffinityConfig() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java index fe004c6b7c..55d67f3261 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ServiceStatusBuilder extends V1ServiceStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ServiceStatusBuilder extends V1ServiceStatusFluentImpl implements VisitableBuilder{ public V1ServiceStatusBuilder() { this(false); } - public V1ServiceStatusBuilder(Boolean validationEnabled) { this(new V1ServiceStatus(), validationEnabled); } - public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent) { this(fluent, false); } - - public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent, Boolean validationEnabled) { + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1ServiceStatus(), validationEnabled); } - - public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent, V1ServiceStatus instance) { + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,V1ServiceStatus instance) { this(fluent, instance, false); } - - public V1ServiceStatusBuilder( - V1ServiceStatusFluent fluent, V1ServiceStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,V1ServiceStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); fluent.withLoadBalancer(instance.getLoadBalancer()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ServiceStatusBuilder(V1ServiceStatus instance) { - this(instance, false); + this(instance,false); } - - public V1ServiceStatusBuilder(V1ServiceStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1ServiceStatusBuilder(V1ServiceStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); this.withLoadBalancer(instance.getLoadBalancer()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ServiceStatusFluent fluent; Boolean validationEnabled; - public V1ServiceStatus build() { V1ServiceStatus buildable = new V1ServiceStatus(); buildable.setConditions(fluent.getConditions()); buildable.setLoadBalancer(fluent.getLoadBalancer()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java index 50c4a74bac..f7d435f04d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java @@ -1,118 +1,75 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ServiceStatusFluent> extends Fluent { - public A addToConditions(Integer index, V1Condition item); - - public A setToConditions(Integer index, V1Condition item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ServiceStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1Condition item); + public A setToConditions(Integer index,V1Condition item); public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A addAllToConditions(Collection items); - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1Condition buildCondition(Integer index); - public V1Condition buildFirstCondition(); - public V1Condition buildLastCondition(); - public V1Condition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - public Boolean hasConditions(); - public V1ServiceStatusFluent.ConditionsNested addNewCondition(); - public V1ServiceStatusFluent.ConditionsNested addNewConditionLike(V1Condition item); - - public V1ServiceStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1Condition item); - + public V1ServiceStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1Condition item); public V1ServiceStatusFluent.ConditionsNested editCondition(Integer index); - public V1ServiceStatusFluent.ConditionsNested editFirstCondition(); - public V1ServiceStatusFluent.ConditionsNested editLastCondition(); - - public V1ServiceStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1ServiceStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + /** * This method has been deprecated, please use method buildLoadBalancer instead. - * * @return The buildable object. */ @Deprecated public V1LoadBalancerStatus getLoadBalancer(); - public V1LoadBalancerStatus buildLoadBalancer(); - public A withLoadBalancer(V1LoadBalancerStatus loadBalancer); - public Boolean hasLoadBalancer(); - public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancer(); - - public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancerLike( - V1LoadBalancerStatus item); - + public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item); public V1ServiceStatusFluent.LoadBalancerNested editLoadBalancer(); - public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancer(); - - public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( - V1LoadBalancerStatus item); - - public interface ConditionsNested - extends Nested, V1ConditionFluent> { + public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item); + public interface ConditionsNested extends Nested,V1ConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface LoadBalancerNested - extends Nested, V1LoadBalancerStatusFluent> { + public interface LoadBalancerNested extends Nested,V1LoadBalancerStatusFluent>{ public N and(); - public N endLoadBalancer(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java index 38d56bc160..b7d17f345a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java @@ -1,116 +1,60 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ServiceStatusFluentImpl> extends BaseFluent - implements V1ServiceStatusFluent { - public V1ServiceStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ServiceStatusFluentImpl> extends BaseFluent implements V1ServiceStatusFluent{ + public V1ServiceStatusFluentImpl() { + } public V1ServiceStatusFluentImpl(V1ServiceStatus instance) { this.withConditions(instance.getConditions()); this.withLoadBalancer(instance.getLoadBalancer()); - } + } private ArrayList conditions; private V1LoadBalancerStatusBuilder loadBalancer; - - public A addToConditions(Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(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 addToConditions(Integer index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(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(Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(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; + 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.V1Condition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(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 ArrayList(); - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(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(); @@ -122,255 +66,163 @@ public A removeMatchingFromConditions(Predicate predicate) { each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1Condition buildMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1Condition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1Condition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1ServiceStatusFluent.ConditionsNested addNewCondition() { return new V1ServiceStatusFluentImpl.ConditionsNestedImpl(); } - public V1ServiceStatusFluent.ConditionsNested addNewConditionLike(V1Condition item) { return new V1ServiceStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1ServiceStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1Condition item) { + public V1ServiceStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1Condition item) { return new V1ServiceStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1ServiceStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1ServiceStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1ServiceStatusFluent.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 V1ServiceStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1ServiceStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewLoadBalancer() { return new V1ServiceStatusFluentImpl.LoadBalancerNestedImpl(); } - - public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancerLike( - V1LoadBalancerStatus item) { + public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item) { return new V1ServiceStatusFluentImpl.LoadBalancerNestedImpl(item); } - public V1ServiceStatusFluent.LoadBalancerNested editLoadBalancer() { return withNewLoadBalancerLike(getLoadBalancer()); } - public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancer() { - return withNewLoadBalancerLike( - getLoadBalancer() != null ? getLoadBalancer() : new V1LoadBalancerStatusBuilder().build()); + return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer(): new V1LoadBalancerStatusBuilder().build()); } - - public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( - V1LoadBalancerStatus item) { - return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer() : item); + public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item) { + return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ServiceStatusFluentImpl that = (V1ServiceStatusFluentImpl) o; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) : that.loadBalancer != null) - return false; + if (conditions != null ? !conditions.equals(that.conditions) :that.conditions != null) return false; + if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) :that.loadBalancer != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(conditions, loadBalancer, super.hashCode()); + return java.util.Objects.hash(conditions, loadBalancer, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (loadBalancer != null) { - sb.append("loadBalancer:"); - sb.append(loadBalancer); - } + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (loadBalancer != null) { sb.append("loadBalancer:"); sb.append(loadBalancer); } sb.append("}"); return sb.toString(); } - - class ConditionsNestedImpl - extends V1ConditionFluentImpl> - implements V1ServiceStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1Condition item) { + class ConditionsNestedImpl extends V1ConditionFluentImpl> implements V1ServiceStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1ConditionBuilder(this); } - V1ConditionBuilder builder; Integer index; - public N and() { - return (N) V1ServiceStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1ServiceStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class LoadBalancerNestedImpl - extends V1LoadBalancerStatusFluentImpl> - implements V1ServiceStatusFluent.LoadBalancerNested, Nested { + class LoadBalancerNestedImpl extends V1LoadBalancerStatusFluentImpl> implements V1ServiceStatusFluent.LoadBalancerNested,Nested{ LoadBalancerNestedImpl(V1LoadBalancerStatus item) { this.builder = new V1LoadBalancerStatusBuilder(this, item); } - LoadBalancerNestedImpl() { this.builder = new V1LoadBalancerStatusBuilder(this); } - V1LoadBalancerStatusBuilder builder; - public N and() { return (N) V1ServiceStatusFluentImpl.this.withLoadBalancer(builder.build()); } - public N endLoadBalancer() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java index 85848645e4..3bce8c7f71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1SessionAffinityConfigBuilder - extends V1SessionAffinityConfigFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluentImpl implements VisitableBuilder{ public V1SessionAffinityConfigBuilder() { this(false); } - public V1SessionAffinityConfigBuilder(Boolean validationEnabled) { this(new V1SessionAffinityConfig(), validationEnabled); } - public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent) { this(fluent, false); } - - public V1SessionAffinityConfigBuilder( - V1SessionAffinityConfigFluent fluent, Boolean validationEnabled) { + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,Boolean validationEnabled) { this(fluent, new V1SessionAffinityConfig(), validationEnabled); } - - public V1SessionAffinityConfigBuilder( - V1SessionAffinityConfigFluent fluent, V1SessionAffinityConfig instance) { + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,V1SessionAffinityConfig instance) { this(fluent, instance, false); } - - public V1SessionAffinityConfigBuilder( - V1SessionAffinityConfigFluent fluent, - V1SessionAffinityConfig instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,V1SessionAffinityConfig instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withClientIP(instance.getClientIP()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance) { - this(instance, false); + this(instance,false); } - - public V1SessionAffinityConfigBuilder( - V1SessionAffinityConfig instance, Boolean validationEnabled) { - this.fluent = this; + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance,Boolean validationEnabled) { + this.fluent = this; this.withClientIP(instance.getClientIP()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SessionAffinityConfigFluent fluent; Boolean validationEnabled; - public V1SessionAffinityConfig build() { V1SessionAffinityConfig buildable = new V1SessionAffinityConfig(); buildable.setClientIP(fluent.getClientIP()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java index 4b984818c3..0f8bde5a16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java @@ -1,53 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1SessionAffinityConfigFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1SessionAffinityConfigFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildClientIP instead. - * * @return The buildable object. */ @Deprecated public V1ClientIPConfig getClientIP(); - public V1ClientIPConfig buildClientIP(); - public A withClientIP(V1ClientIPConfig clientIP); - public Boolean hasClientIP(); - public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIP(); - public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIPLike(V1ClientIPConfig item); - public V1SessionAffinityConfigFluent.ClientIPNested editClientIP(); - public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIP(); - - public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIPLike( - V1ClientIPConfig item); - - public interface ClientIPNested - extends Nested, V1ClientIPConfigFluent> { + public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIPLike(V1ClientIPConfig item); + public interface ClientIPNested extends Nested,V1ClientIPConfigFluent>{ public N and(); - public N endClientIP(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java index 6839a25ba5..793b41c6c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java @@ -1,127 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SessionAffinityConfigFluentImpl> - extends BaseFluent implements V1SessionAffinityConfigFluent { - public V1SessionAffinityConfigFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SessionAffinityConfigFluentImpl> extends BaseFluent implements V1SessionAffinityConfigFluent{ + public V1SessionAffinityConfigFluentImpl() { + } public V1SessionAffinityConfigFluentImpl(V1SessionAffinityConfig instance) { this.withClientIP(instance.getClientIP()); - } + } private V1ClientIPConfigBuilder clientIP; - + /** * This method has been deprecated, please use method buildClientIP instead. - * * @return The buildable object. */ @Deprecated public V1ClientIPConfig getClientIP() { - return this.clientIP != null ? this.clientIP.build() : null; + return this.clientIP!=null ?this.clientIP.build():null; } - public V1ClientIPConfig buildClientIP() { - return this.clientIP != null ? this.clientIP.build() : null; + return this.clientIP!=null ?this.clientIP.build():null; } - public A withClientIP(V1ClientIPConfig clientIP) { _visitables.get("clientIP").remove(this.clientIP); - if (clientIP != null) { - this.clientIP = new V1ClientIPConfigBuilder(clientIP); - _visitables.get("clientIP").add(this.clientIP); - } else { - this.clientIP = null; - _visitables.get("clientIP").remove(this.clientIP); - } - return (A) this; + if (clientIP!=null){ this.clientIP= new V1ClientIPConfigBuilder(clientIP); _visitables.get("clientIP").add(this.clientIP);} else { this.clientIP = null; _visitables.get("clientIP").remove(this.clientIP); } return (A) this; } - public Boolean hasClientIP() { return this.clientIP != null; } - public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIP() { return new V1SessionAffinityConfigFluentImpl.ClientIPNestedImpl(); } - - public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIPLike( - V1ClientIPConfig item) { + public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { return new V1SessionAffinityConfigFluentImpl.ClientIPNestedImpl(item); } - public V1SessionAffinityConfigFluent.ClientIPNested editClientIP() { return withNewClientIPLike(getClientIP()); } - public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIP() { - return withNewClientIPLike( - getClientIP() != null ? getClientIP() : new V1ClientIPConfigBuilder().build()); + return withNewClientIPLike(getClientIP() != null ? getClientIP(): new V1ClientIPConfigBuilder().build()); } - - public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIPLike( - V1ClientIPConfig item) { - return withNewClientIPLike(getClientIP() != null ? getClientIP() : item); + public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIPLike(V1ClientIPConfig item) { + return withNewClientIPLike(getClientIP() != null ? getClientIP(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SessionAffinityConfigFluentImpl that = (V1SessionAffinityConfigFluentImpl) o; - if (clientIP != null ? !clientIP.equals(that.clientIP) : that.clientIP != null) return false; + if (clientIP != null ? !clientIP.equals(that.clientIP) :that.clientIP != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(clientIP, super.hashCode()); + return java.util.Objects.hash(clientIP, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientIP != null) { - sb.append("clientIP:"); - sb.append(clientIP); - } + if (clientIP != null) { sb.append("clientIP:"); sb.append(clientIP); } sb.append("}"); return sb.toString(); } - - class ClientIPNestedImpl - extends V1ClientIPConfigFluentImpl> - implements V1SessionAffinityConfigFluent.ClientIPNested, Nested { + class ClientIPNestedImpl extends V1ClientIPConfigFluentImpl> implements V1SessionAffinityConfigFluent.ClientIPNested,Nested{ ClientIPNestedImpl(V1ClientIPConfig item) { this.builder = new V1ClientIPConfigBuilder(this, item); } - ClientIPNestedImpl() { this.builder = new V1ClientIPConfigBuilder(this); } - V1ClientIPConfigBuilder builder; - public N and() { return (N) V1SessionAffinityConfigFluentImpl.this.withClientIP(builder.build()); } - public N endClientIP() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java index 2079ba8cb5..927ebafe7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetBuilder extends V1StatefulSetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatefulSetBuilder extends V1StatefulSetFluentImpl implements VisitableBuilder{ public V1StatefulSetBuilder() { this(false); } - public V1StatefulSetBuilder(Boolean validationEnabled) { this(new V1StatefulSet(), validationEnabled); } - public V1StatefulSetBuilder(V1StatefulSetFluent fluent) { this(fluent, false); } - - public V1StatefulSetBuilder(V1StatefulSetFluent fluent, Boolean validationEnabled) { + public V1StatefulSetBuilder(V1StatefulSetFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSet(), validationEnabled); } - - public V1StatefulSetBuilder(V1StatefulSetFluent fluent, V1StatefulSet instance) { + public V1StatefulSetBuilder(V1StatefulSetFluent fluent,V1StatefulSet instance) { this(fluent, instance, false); } - - public V1StatefulSetBuilder( - V1StatefulSetFluent fluent, V1StatefulSet instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetBuilder(V1StatefulSetFluent fluent,V1StatefulSet instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1StatefulSetBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatefulSetBuilder(V1StatefulSet instance) { - this(instance, false); + this(instance,false); } - - public V1StatefulSetBuilder(V1StatefulSet instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetBuilder(V1StatefulSet instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1StatefulSetBuilder(V1StatefulSet instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetFluent fluent; Boolean validationEnabled; - public V1StatefulSet build() { V1StatefulSet buildable = new V1StatefulSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1StatefulSet build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java index 3ce17c18cb..93486375c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetConditionBuilder - extends V1StatefulSetConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatefulSetConditionBuilder extends V1StatefulSetConditionFluentImpl implements VisitableBuilder{ public V1StatefulSetConditionBuilder() { this(false); } - public V1StatefulSetConditionBuilder(Boolean validationEnabled) { this(new V1StatefulSetCondition(), validationEnabled); } - public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent) { this(fluent, false); } - - public V1StatefulSetConditionBuilder( - V1StatefulSetConditionFluent fluent, Boolean validationEnabled) { + public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSetCondition(), validationEnabled); } - - public V1StatefulSetConditionBuilder( - V1StatefulSetConditionFluent fluent, V1StatefulSetCondition instance) { + public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,V1StatefulSetCondition instance) { this(fluent, instance, false); } - - public V1StatefulSetConditionBuilder( - V1StatefulSetConditionFluent fluent, - V1StatefulSetCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,V1StatefulSetCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,15 +30,13 @@ public V1StatefulSetConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance) { - this(instance, false); + this(instance,false); } - - public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -73,12 +47,10 @@ public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance, Boolean va this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetConditionFluent fluent; Boolean validationEnabled; - public V1StatefulSetCondition build() { V1StatefulSetCondition buildable = new V1StatefulSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -88,4 +60,5 @@ public V1StatefulSetCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java index 7a455b2cdb..f2a6605b22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1StatefulSetConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1StatefulSetConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java index 84aa5d6323..d668d85093 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetConditionFluentImpl> - extends BaseFluent implements V1StatefulSetConditionFluent { - public V1StatefulSetConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetConditionFluentImpl> extends BaseFluent implements V1StatefulSetConditionFluent{ + public V1StatefulSetConditionFluentImpl() { + } public V1StatefulSetConditionFluentImpl(V1StatefulSetCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1StatefulSetConditionFluentImpl(V1StatefulSetCondition instance) { this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StatefulSetConditionFluentImpl that = (V1StatefulSetConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java index ec36eb306f..f75f216fa8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1StatefulSetFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1StatefulSetFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1StatefulSetFluent.MetadataNested withNewMetadata(); - public V1StatefulSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1StatefulSetFluent.MetadataNested editMetadata(); - public V1StatefulSetFluent.MetadataNested editOrNewMetadata(); - public V1StatefulSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1StatefulSetSpec getSpec(); - public V1StatefulSetSpec buildSpec(); - public A withSpec(V1StatefulSetSpec spec); - public Boolean hasSpec(); - public V1StatefulSetFluent.SpecNested withNewSpec(); - public V1StatefulSetFluent.SpecNested withNewSpecLike(V1StatefulSetSpec item); - public V1StatefulSetFluent.SpecNested editSpec(); - public V1StatefulSetFluent.SpecNested editOrNewSpec(); - public V1StatefulSetFluent.SpecNested editOrNewSpecLike(V1StatefulSetSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1StatefulSetStatus getStatus(); - public V1StatefulSetStatus buildStatus(); - public A withStatus(V1StatefulSetStatus status); - public Boolean hasStatus(); - public V1StatefulSetFluent.StatusNested withNewStatus(); - public V1StatefulSetFluent.StatusNested withNewStatusLike(V1StatefulSetStatus item); - public V1StatefulSetFluent.StatusNested editStatus(); - public V1StatefulSetFluent.StatusNested editOrNewStatus(); - public V1StatefulSetFluent.StatusNested editOrNewStatusLike(V1StatefulSetStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1StatefulSetSpecFluent> { + public interface SpecNested extends Nested,V1StatefulSetSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1StatefulSetStatusFluent> { + public interface StatusNested extends Nested,V1StatefulSetStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java index a9b5523373..a89d631e63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetFluentImpl> extends BaseFluent - implements V1StatefulSetFluent { - public V1StatefulSetFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetFluentImpl> extends BaseFluent implements V1StatefulSetFluent{ + public V1StatefulSetFluentImpl() { + } public V1StatefulSetFluentImpl(V1StatefulSet instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,297 +25,205 @@ public V1StatefulSetFluentImpl(V1StatefulSet instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1StatefulSetSpecBuilder spec; private V1StatefulSetStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1StatefulSetFluent.MetadataNested withNewMetadata() { return new V1StatefulSetFluentImpl.MetadataNestedImpl(); } - public V1StatefulSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1StatefulSetFluentImpl.MetadataNestedImpl(item); } - public V1StatefulSetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1StatefulSetFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1StatefulSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1StatefulSetSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1StatefulSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1StatefulSetSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1StatefulSetSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1StatefulSetSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1StatefulSetFluent.SpecNested withNewSpec() { return new V1StatefulSetFluentImpl.SpecNestedImpl(); } - public V1StatefulSetFluent.SpecNested withNewSpecLike(V1StatefulSetSpec item) { return new V1StatefulSetFluentImpl.SpecNestedImpl(item); } - public V1StatefulSetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1StatefulSetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1StatefulSetSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1StatefulSetSpecBuilder().build()); } - public V1StatefulSetFluent.SpecNested editOrNewSpecLike(V1StatefulSetSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1StatefulSetStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1StatefulSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1StatefulSetStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1StatefulSetStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1StatefulSetStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1StatefulSetFluent.StatusNested withNewStatus() { return new V1StatefulSetFluentImpl.StatusNestedImpl(); } - public V1StatefulSetFluent.StatusNested withNewStatusLike(V1StatefulSetStatus item) { return new V1StatefulSetFluentImpl.StatusNestedImpl(item); } - public V1StatefulSetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1StatefulSetFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1StatefulSetStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1StatefulSetStatusBuilder().build()); } - public V1StatefulSetFluent.StatusNested editOrNewStatusLike(V1StatefulSetStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StatefulSetFluentImpl that = (V1StatefulSetFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1StatefulSetFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1StatefulSetFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1StatefulSetFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1StatefulSetSpecFluentImpl> - implements V1StatefulSetFluent.SpecNested, Nested { + class SpecNestedImpl extends V1StatefulSetSpecFluentImpl> implements V1StatefulSetFluent.SpecNested,Nested{ SpecNestedImpl(V1StatefulSetSpec item) { this.builder = new V1StatefulSetSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1StatefulSetSpecBuilder(this); } - V1StatefulSetSpecBuilder builder; - public N and() { return (N) V1StatefulSetFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1StatefulSetStatusFluentImpl> - implements V1StatefulSetFluent.StatusNested, Nested { + class StatusNestedImpl extends V1StatefulSetStatusFluentImpl> implements V1StatefulSetFluent.StatusNested,Nested{ StatusNestedImpl(V1StatefulSetStatus item) { this.builder = new V1StatefulSetStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1StatefulSetStatusBuilder(this); } - V1StatefulSetStatusBuilder builder; - public N and() { return (N) V1StatefulSetFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java index 08872c5ce8..397b531b9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetListBuilder extends V1StatefulSetListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatefulSetListBuilder extends V1StatefulSetListFluentImpl implements VisitableBuilder{ public V1StatefulSetListBuilder() { this(false); } - public V1StatefulSetListBuilder(Boolean validationEnabled) { this(new V1StatefulSetList(), validationEnabled); } - public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent) { this(fluent, false); } - - public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent, Boolean validationEnabled) { + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSetList(), validationEnabled); } - - public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent, V1StatefulSetList instance) { + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,V1StatefulSetList instance) { this(fluent, instance, false); } - - public V1StatefulSetListBuilder( - V1StatefulSetListFluent fluent, V1StatefulSetList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,V1StatefulSetList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -47,15 +28,13 @@ public V1StatefulSetListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatefulSetListBuilder(V1StatefulSetList instance) { - this(instance, false); + this(instance,false); } - - public V1StatefulSetListBuilder(V1StatefulSetList instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetListBuilder(V1StatefulSetList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -64,12 +43,10 @@ public V1StatefulSetListBuilder(V1StatefulSetList instance, Boolean validationEn this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetListFluent fluent; Boolean validationEnabled; - public V1StatefulSetList build() { V1StatefulSetList buildable = new V1StatefulSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -78,4 +55,5 @@ public V1StatefulSetList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java index 47d64716ea..94a15a4364 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1StatefulSetListFluent> extends Fluent { + /** + * Generated + */ +public interface V1StatefulSetListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1StatefulSet item); - - public A setToItems(Integer index, V1StatefulSet item); - + public A addToItems(Integer index,V1StatefulSet item); + public A setToItems(Integer index,V1StatefulSet item); public A addToItems(io.kubernetes.client.openapi.models.V1StatefulSet... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1StatefulSet... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1StatefulSet buildItem(Integer index); - public V1StatefulSet buildFirstItem(); - public V1StatefulSet buildLastItem(); - public V1StatefulSet buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items); - public Boolean hasItems(); - public V1StatefulSetListFluent.ItemsNested addNewItem(); - public V1StatefulSetListFluent.ItemsNested addNewItemLike(V1StatefulSet item); - - public V1StatefulSetListFluent.ItemsNested setNewItemLike(Integer index, V1StatefulSet item); - + public V1StatefulSetListFluent.ItemsNested setNewItemLike(Integer index,V1StatefulSet item); public V1StatefulSetListFluent.ItemsNested editItem(Integer index); - public V1StatefulSetListFluent.ItemsNested editFirstItem(); - public V1StatefulSetListFluent.ItemsNested editLastItem(); - - public V1StatefulSetListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1StatefulSetListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1StatefulSetListFluent.MetadataNested withNewMetadata(); - public V1StatefulSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1StatefulSetListFluent.MetadataNested editMetadata(); - public V1StatefulSetListFluent.MetadataNested editOrNewMetadata(); - public V1StatefulSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1StatefulSetFluent> { + public interface ItemsNested extends Nested,V1StatefulSetFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java index 6a22bd2bef..a7e2cebc91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetListFluentImpl> extends BaseFluent - implements V1StatefulSetListFluent { - public V1StatefulSetListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetListFluentImpl> extends BaseFluent implements V1StatefulSetListFluent{ + public V1StatefulSetListFluentImpl() { + } public V1StatefulSetListFluentImpl(V1StatefulSetList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1StatefulSetListFluentImpl(V1StatefulSetList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1StatefulSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1StatefulSet item) { + if (this.items == null) {this.items = new ArrayList();} + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1StatefulSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1StatefulSet item) { + if (this.items == null) {this.items = new ArrayList();} V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,271 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1StatefulSet buildItem(Integer index) { return this.items.get(index).build(); } - public V1StatefulSet buildFirstItem() { return this.items.get(0).build(); } - public V1StatefulSet buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1StatefulSet buildMatchingItem(Predicate predicate) { - for (V1StatefulSetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1StatefulSetBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1StatefulSetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1StatefulSetBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1StatefulSet item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1StatefulSet item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1StatefulSet item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1StatefulSet item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1StatefulSetListFluent.ItemsNested addNewItem() { return new V1StatefulSetListFluentImpl.ItemsNestedImpl(); } - public V1StatefulSetListFluent.ItemsNested addNewItemLike(V1StatefulSet item) { return new V1StatefulSetListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1StatefulSetListFluent.ItemsNested setNewItemLike(Integer index, V1StatefulSet item) { + public V1StatefulSetListFluent.ItemsNested setNewItemLike(Integer index,V1StatefulSet item) { return new V1StatefulSetListFluentImpl.ItemsNestedImpl(index, item); } - public V1StatefulSetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1StatefulSetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1StatefulSetListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1StatefulSetListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1StatefulSetListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1StatefulSetListFluentImpl.MetadataNestedImpl(); } - public V1StatefulSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1StatefulSetListFluentImpl.MetadataNestedImpl(item); } - public V1StatefulSetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1StatefulSetListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1StatefulSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StatefulSetListFluentImpl that = (V1StatefulSetListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1StatefulSetFluentImpl> - implements V1StatefulSetListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1StatefulSet item) { + class ItemsNestedImpl extends V1StatefulSetFluentImpl> implements V1StatefulSetListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1StatefulSet item) { this.index = index; this.builder = new V1StatefulSetBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1StatefulSetBuilder(this); } - V1StatefulSetBuilder builder; Integer index; - public N and() { - return (N) V1StatefulSetListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1StatefulSetListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1StatefulSetListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1StatefulSetListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1StatefulSetListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java index d997894c4d..b2df090705 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java @@ -1,85 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder - extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl< - V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder> - implements VisitableBuilder< - V1StatefulSetPersistentVolumeClaimRetentionPolicy, - V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder> { +import java.lang.Boolean; +public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl implements VisitableBuilder{ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder() { this(false); } - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(Boolean validationEnabled) { this(new V1StatefulSetPersistentVolumeClaimRetentionPolicy(), validationEnabled); } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent) { + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent) { this(fluent, false); } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent, - Boolean validationEnabled) { + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSetPersistentVolumeClaimRetentionPolicy(), validationEnabled); } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent, - V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this(fluent, instance, false); } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent, - V1StatefulSetPersistentVolumeClaimRetentionPolicy instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,V1StatefulSetPersistentVolumeClaimRetentionPolicy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withWhenDeleted(instance.getWhenDeleted()); fluent.withWhenScaled(instance.getWhenScaled()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { - this(instance, false); + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { + this(instance,false); } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - V1StatefulSetPersistentVolumeClaimRetentionPolicy instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance,Boolean validationEnabled) { + this.fluent = this; this.withWhenDeleted(instance.getWhenDeleted()); this.withWhenScaled(instance.getWhenScaled()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; Boolean validationEnabled; - public V1StatefulSetPersistentVolumeClaimRetentionPolicy build() { - V1StatefulSetPersistentVolumeClaimRetentionPolicy buildable = - new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); + V1StatefulSetPersistentVolumeClaimRetentionPolicy buildable = new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); buildable.setWhenDeleted(fluent.getWhenDeleted()); buildable.setWhenScaled(fluent.getWhenScaled()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java index 103e1d1687..2a4a318b48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java @@ -1,32 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent< - A extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> - extends Fluent { + /** + * Generated + */ +public interface V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends Fluent{ public String getWhenDeleted(); - public A withWhenDeleted(String whenDeleted); - public Boolean hasWhenDeleted(); - public String getWhenScaled(); - public A withWhenScaled(String whenScaled); - public Boolean hasWhenScaled(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java index 8182bdfb05..d1664a8fb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java @@ -1,90 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl< - A extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> - extends BaseFluent implements V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent { - public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl() {} - - public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl( - V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl> extends BaseFluent implements V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent{ + public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl() { + } + public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this.withWhenDeleted(instance.getWhenDeleted()); this.withWhenScaled(instance.getWhenScaled()); - } + } private String whenDeleted; private String whenScaled; - public String getWhenDeleted() { return this.whenDeleted; } - public A withWhenDeleted(String whenDeleted) { - this.whenDeleted = whenDeleted; - return (A) this; + this.whenDeleted=whenDeleted; return (A) this; } - public Boolean hasWhenDeleted() { return this.whenDeleted != null; } - public String getWhenScaled() { return this.whenScaled; } - public A withWhenScaled(String whenScaled) { - this.whenScaled = whenScaled; - return (A) this; + this.whenScaled=whenScaled; return (A) this; } - public Boolean hasWhenScaled() { return this.whenScaled != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl that = - (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl) o; - if (whenDeleted != null ? !whenDeleted.equals(that.whenDeleted) : that.whenDeleted != null) - return false; - if (whenScaled != null ? !whenScaled.equals(that.whenScaled) : that.whenScaled != null) - return false; + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl that = (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl) o; + if (whenDeleted != null ? !whenDeleted.equals(that.whenDeleted) :that.whenDeleted != null) return false; + if (whenScaled != null ? !whenScaled.equals(that.whenScaled) :that.whenScaled != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(whenDeleted, whenScaled, super.hashCode()); + return java.util.Objects.hash(whenDeleted, whenScaled, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (whenDeleted != null) { - sb.append("whenDeleted:"); - sb.append(whenDeleted + ","); - } - if (whenScaled != null) { - sb.append("whenScaled:"); - sb.append(whenScaled); - } + if (whenDeleted != null) { sb.append("whenDeleted:"); sb.append(whenDeleted + ","); } + if (whenScaled != null) { sb.append("whenScaled:"); sb.append(whenScaled); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java index 58b82b5a60..50dbefd047 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java @@ -1,48 +1,28 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluentImpl implements VisitableBuilder{ public V1StatefulSetSpecBuilder() { this(false); } - public V1StatefulSetSpecBuilder(Boolean validationEnabled) { this(new V1StatefulSetSpec(), validationEnabled); } - public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent) { this(fluent, false); } - - public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent, Boolean validationEnabled) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSetSpec(), validationEnabled); } - - public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent, V1StatefulSetSpec instance) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,V1StatefulSetSpec instance) { this(fluent, instance, false); } - - public V1StatefulSetSpecBuilder( - V1StatefulSetSpecFluent fluent, V1StatefulSetSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,V1StatefulSetSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); - fluent.withPersistentVolumeClaimRetentionPolicy( - instance.getPersistentVolumeClaimRetentionPolicy()); + fluent.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); fluent.withPodManagementPolicy(instance.getPodManagementPolicy()); @@ -60,19 +40,16 @@ public V1StatefulSetSpecBuilder( fluent.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance) { - this(instance, false); + this(instance,false); } - - public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withPersistentVolumeClaimRetentionPolicy( - instance.getPersistentVolumeClaimRetentionPolicy()); + this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); this.withPodManagementPolicy(instance.getPodManagementPolicy()); @@ -90,17 +67,14 @@ public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance, Boolean validationEn this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetSpecFluent fluent; Boolean validationEnabled; - public V1StatefulSetSpec build() { V1StatefulSetSpec buildable = new V1StatefulSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); - buildable.setPersistentVolumeClaimRetentionPolicy( - fluent.getPersistentVolumeClaimRetentionPolicy()); + buildable.setPersistentVolumeClaimRetentionPolicy(fluent.getPersistentVolumeClaimRetentionPolicy()); buildable.setPodManagementPolicy(fluent.getPodManagementPolicy()); buildable.setReplicas(fluent.getReplicas()); buildable.setRevisionHistoryLimit(fluent.getRevisionHistoryLimit()); @@ -111,4 +85,5 @@ public V1StatefulSetSpec build() { buildable.setVolumeClaimTemplates(fluent.getVolumeClaimTemplates()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java index 780b07c625..c3630e6bd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java @@ -1,264 +1,151 @@ -/* -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.Fluent; +import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; +import java.util.ArrayList; +import java.lang.String; import java.util.function.Predicate; +import java.lang.Deprecated; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.fluent.Fluent; +import java.lang.Integer; +import java.util.Collection; -/** Generated */ -public interface V1StatefulSetSpecFluent> extends Fluent { + /** + * Generated + */ +public interface V1StatefulSetSpecFluent> extends Fluent{ public Integer getMinReadySeconds(); - public A withMinReadySeconds(Integer minReadySeconds); - public Boolean hasMinReadySeconds(); - + /** - * This method has been deprecated, please use method buildPersistentVolumeClaimRetentionPolicy - * instead. - * + * This method has been deprecated, please use method buildPersistentVolumeClaimRetentionPolicy instead. * @return The buildable object. */ @Deprecated - public V1StatefulSetPersistentVolumeClaimRetentionPolicy - getPersistentVolumeClaimRetentionPolicy(); - - public V1StatefulSetPersistentVolumeClaimRetentionPolicy - buildPersistentVolumeClaimRetentionPolicy(); - - public A withPersistentVolumeClaimRetentionPolicy( - V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy); - + public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy(); + public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy(); + public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy); public Boolean hasPersistentVolumeClaimRetentionPolicy(); - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - withNewPersistentVolumeClaimRetentionPolicy(); - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - withNewPersistentVolumeClaimRetentionPolicyLike( - V1StatefulSetPersistentVolumeClaimRetentionPolicy item); - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - editPersistentVolumeClaimRetentionPolicy(); - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - editOrNewPersistentVolumeClaimRetentionPolicy(); - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - editOrNewPersistentVolumeClaimRetentionPolicyLike( - V1StatefulSetPersistentVolumeClaimRetentionPolicy item); - + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy(); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy(); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy(); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item); public String getPodManagementPolicy(); - public A withPodManagementPolicy(String podManagementPolicy); - public Boolean hasPodManagementPolicy(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - public Integer getRevisionHistoryLimit(); - public A withRevisionHistoryLimit(Integer revisionHistoryLimit); - public Boolean hasRevisionHistoryLimit(); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V1StatefulSetSpecFluent.SelectorNested withNewSelector(); - public V1StatefulSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V1StatefulSetSpecFluent.SelectorNested editSelector(); - public V1StatefulSetSpecFluent.SelectorNested editOrNewSelector(); - public V1StatefulSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - public String getServiceName(); - public A withServiceName(String serviceName); - public Boolean hasServiceName(); - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate(); - public V1PodTemplateSpec buildTemplate(); - public A withTemplate(V1PodTemplateSpec template); - public Boolean hasTemplate(); - public V1StatefulSetSpecFluent.TemplateNested withNewTemplate(); - public V1StatefulSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public V1StatefulSetSpecFluent.TemplateNested editTemplate(); - public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplate(); - public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - + /** * This method has been deprecated, please use method buildUpdateStrategy instead. - * * @return The buildable object. */ @Deprecated public V1StatefulSetUpdateStrategy getUpdateStrategy(); - public V1StatefulSetUpdateStrategy buildUpdateStrategy(); - public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy); - public Boolean hasUpdateStrategy(); - public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy(); - - public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( - V1StatefulSetUpdateStrategy item); - + public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item); public V1StatefulSetSpecFluent.UpdateStrategyNested editUpdateStrategy(); - public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy(); - - public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( - V1StatefulSetUpdateStrategy item); - - public A addToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item); - - public A setToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item); - - public A addToVolumeClaimTemplates( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - + public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item); + public A addToVolumeClaimTemplates(Integer index,V1PersistentVolumeClaim item); + public A setToVolumeClaimTemplates(Integer index,V1PersistentVolumeClaim item); + public A addToVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); public A addAllToVolumeClaimTemplates(Collection items); - - public A removeFromVolumeClaimTemplates( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - + public A removeFromVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); public A removeAllFromVolumeClaimTemplates(Collection items); - - public A removeMatchingFromVolumeClaimTemplates( - Predicate predicate); - + public A removeMatchingFromVolumeClaimTemplates(Predicate predicate); + /** * This method has been deprecated, please use method buildVolumeClaimTemplates instead. - * * @return The buildable object. */ @Deprecated public List getVolumeClaimTemplates(); - public List buildVolumeClaimTemplates(); - public V1PersistentVolumeClaim buildVolumeClaimTemplate(Integer index); - public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate(); - public V1PersistentVolumeClaim buildLastVolumeClaimTemplate(); - - public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate( - Predicate predicate); - - public Boolean hasMatchingVolumeClaimTemplate( - Predicate predicate); - + public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate(Predicate predicate); + public Boolean hasMatchingVolumeClaimTemplate(Predicate predicate); public A withVolumeClaimTemplates(List volumeClaimTemplates); - - public A withVolumeClaimTemplates( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates); - + public A withVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates); public Boolean hasVolumeClaimTemplates(); - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplate(); - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike( - V1PersistentVolumeClaim item); - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike( - Integer index, V1PersistentVolumeClaim item); - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editVolumeClaimTemplate( - Integer index); - + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(Integer index,V1PersistentVolumeClaim item); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editVolumeClaimTemplate(Integer index); public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editFirstVolumeClaimTemplate(); - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editLastVolumeClaimTemplate(); - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate( - Predicate predicate); - - public interface PersistentVolumeClaimRetentionPolicyNested - extends Nested, - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent< - V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested> { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate(Predicate predicate); + public interface PersistentVolumeClaimRetentionPolicyNested extends Nested,V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent>{ public N and(); - public N endPersistentVolumeClaimRetentionPolicy(); + } - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } - - public interface TemplateNested - extends Nested, V1PodTemplateSpecFluent> { + public interface TemplateNested extends Nested,V1PodTemplateSpecFluent>{ public N and(); - public N endTemplate(); + } - - public interface UpdateStrategyNested - extends Nested, - V1StatefulSetUpdateStrategyFluent> { + public interface UpdateStrategyNested extends Nested,V1StatefulSetUpdateStrategyFluent>{ public N and(); - public N endUpdateStrategy(); + } - - public interface VolumeClaimTemplatesNested - extends Nested, - V1PersistentVolumeClaimFluent> { + public interface VolumeClaimTemplatesNested extends Nested,V1PersistentVolumeClaimFluent>{ public N and(); - public N endVolumeClaimTemplate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java index 8894385318..e78150d134 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java @@ -1,36 +1,31 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetSpecFluentImpl> extends BaseFluent - implements V1StatefulSetSpecFluent { - public V1StatefulSetSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetSpecFluentImpl> extends BaseFluent implements V1StatefulSetSpecFluent{ + public V1StatefulSetSpecFluentImpl() { + } public V1StatefulSetSpecFluentImpl(V1StatefulSetSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withPersistentVolumeClaimRetentionPolicy( - instance.getPersistentVolumeClaimRetentionPolicy()); + this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); this.withPodManagementPolicy(instance.getPodManagementPolicy()); @@ -47,11 +42,10 @@ public V1StatefulSetSpecFluentImpl(V1StatefulSetSpec instance) { this.withUpdateStrategy(instance.getUpdateStrategy()); this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); - } + } private Integer minReadySeconds; - private V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder - persistentVolumeClaimRetentionPolicy; + private V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder persistentVolumeClaimRetentionPolicy; private String podManagementPolicy; private Integer replicas; private Integer revisionHistoryLimit; @@ -60,389 +54,213 @@ public V1StatefulSetSpecFluentImpl(V1StatefulSetSpec instance) { private V1PodTemplateSpecBuilder template; private V1StatefulSetUpdateStrategyBuilder updateStrategy; private ArrayList volumeClaimTemplates; - public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + this.minReadySeconds=minReadySeconds; return (A) this; } - public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - + /** - * This method has been deprecated, please use method buildPersistentVolumeClaimRetentionPolicy - * instead. - * + * This method has been deprecated, please use method buildPersistentVolumeClaimRetentionPolicy instead. * @return The buildable object. */ @Deprecated - public V1StatefulSetPersistentVolumeClaimRetentionPolicy - getPersistentVolumeClaimRetentionPolicy() { - return this.persistentVolumeClaimRetentionPolicy != null - ? this.persistentVolumeClaimRetentionPolicy.build() - : null; + public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy() { + return this.persistentVolumeClaimRetentionPolicy!=null ?this.persistentVolumeClaimRetentionPolicy.build():null; } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicy - buildPersistentVolumeClaimRetentionPolicy() { - return this.persistentVolumeClaimRetentionPolicy != null - ? this.persistentVolumeClaimRetentionPolicy.build() - : null; + public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { + return this.persistentVolumeClaimRetentionPolicy!=null ?this.persistentVolumeClaimRetentionPolicy.build():null; } - - public A withPersistentVolumeClaimRetentionPolicy( - V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { - _visitables - .get("persistentVolumeClaimRetentionPolicy") - .remove(this.persistentVolumeClaimRetentionPolicy); - if (persistentVolumeClaimRetentionPolicy != null) { - this.persistentVolumeClaimRetentionPolicy = - new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - persistentVolumeClaimRetentionPolicy); - _visitables - .get("persistentVolumeClaimRetentionPolicy") - .add(this.persistentVolumeClaimRetentionPolicy); - } else { - this.persistentVolumeClaimRetentionPolicy = null; - _visitables - .get("persistentVolumeClaimRetentionPolicy") - .remove(this.persistentVolumeClaimRetentionPolicy); - } - return (A) this; + public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { + _visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); + if (persistentVolumeClaimRetentionPolicy!=null){ this.persistentVolumeClaimRetentionPolicy= new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(persistentVolumeClaimRetentionPolicy); _visitables.get("persistentVolumeClaimRetentionPolicy").add(this.persistentVolumeClaimRetentionPolicy);} else { this.persistentVolumeClaimRetentionPolicy = null; _visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); } return (A) this; } - public Boolean hasPersistentVolumeClaimRetentionPolicy() { return this.persistentVolumeClaimRetentionPolicy != null; } - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - withNewPersistentVolumeClaimRetentionPolicy() { + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy() { return new V1StatefulSetSpecFluentImpl.PersistentVolumeClaimRetentionPolicyNestedImpl(); } - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - withNewPersistentVolumeClaimRetentionPolicyLike( - V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { return new V1StatefulSetSpecFluentImpl.PersistentVolumeClaimRetentionPolicyNestedImpl(item); } - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - editPersistentVolumeClaimRetentionPolicy() { - return withNewPersistentVolumeClaimRetentionPolicyLike( - getPersistentVolumeClaimRetentionPolicy()); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { + return withNewPersistentVolumeClaimRetentionPolicyLike(getPersistentVolumeClaimRetentionPolicy()); } - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - editOrNewPersistentVolumeClaimRetentionPolicy() { - return withNewPersistentVolumeClaimRetentionPolicyLike( - getPersistentVolumeClaimRetentionPolicy() != null - ? getPersistentVolumeClaimRetentionPolicy() - : new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build()); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { + return withNewPersistentVolumeClaimRetentionPolicyLike(getPersistentVolumeClaimRetentionPolicy() != null ? getPersistentVolumeClaimRetentionPolicy(): new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build()); } - - public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested - editOrNewPersistentVolumeClaimRetentionPolicyLike( - V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { - return withNewPersistentVolumeClaimRetentionPolicyLike( - getPersistentVolumeClaimRetentionPolicy() != null - ? getPersistentVolumeClaimRetentionPolicy() - : item); + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { + return withNewPersistentVolumeClaimRetentionPolicyLike(getPersistentVolumeClaimRetentionPolicy() != null ? getPersistentVolumeClaimRetentionPolicy(): item); } - public String getPodManagementPolicy() { return this.podManagementPolicy; } - public A withPodManagementPolicy(String podManagementPolicy) { - this.podManagementPolicy = podManagementPolicy; - return (A) this; + this.podManagementPolicy=podManagementPolicy; return (A) this; } - public Boolean hasPodManagementPolicy() { return this.podManagementPolicy != null; } - public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + this.replicas=replicas; return (A) this; } - public Boolean hasReplicas() { return this.replicas != null; } - public Integer getRevisionHistoryLimit() { return this.revisionHistoryLimit; } - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; + this.revisionHistoryLimit=revisionHistoryLimit; return (A) this; } - public Boolean hasRevisionHistoryLimit() { return this.revisionHistoryLimit != null; } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V1StatefulSetSpecFluent.SelectorNested withNewSelector() { return new V1StatefulSetSpecFluentImpl.SelectorNestedImpl(); } - public V1StatefulSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1StatefulSetSpecFluentImpl.SelectorNestedImpl(item); } - public V1StatefulSetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V1StatefulSetSpecFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - public V1StatefulSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - public String getServiceName() { return this.serviceName; } - public A withServiceName(String serviceName) { - this.serviceName = serviceName; - return (A) this; + this.serviceName=serviceName; return (A) this; } - public Boolean hasServiceName() { return this.serviceName != null; } - + /** * This method has been deprecated, please use method buildTemplate instead. - * * @return The buildable object. */ @Deprecated public V1PodTemplateSpec getTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + return this.template!=null ?this.template.build():null; } - public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - _visitables.get("template").add(this.template); - } else { - this.template = null; - _visitables.get("template").remove(this.template); - } - return (A) this; + if (template!=null){ this.template= new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template);} else { this.template = null; _visitables.get("template").remove(this.template); } return (A) this; } - public Boolean hasTemplate() { return this.template != null; } - public V1StatefulSetSpecFluent.TemplateNested withNewTemplate() { return new V1StatefulSetSpecFluentImpl.TemplateNestedImpl(); } - public V1StatefulSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new V1StatefulSetSpecFluentImpl.TemplateNestedImpl(item); } - public V1StatefulSetSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplate() { - return withNewTemplateLike( - getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): new V1PodTemplateSpecBuilder().build()); } - public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); + return withNewTemplateLike(getTemplate() != null ? getTemplate(): item); } - + /** * This method has been deprecated, please use method buildUpdateStrategy instead. - * * @return The buildable object. */ @Deprecated public V1StatefulSetUpdateStrategy getUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; + return this.updateStrategy!=null ?this.updateStrategy.build():null; } - public V1StatefulSetUpdateStrategy buildUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; + return this.updateStrategy!=null ?this.updateStrategy.build():null; } - public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { _visitables.get("updateStrategy").remove(this.updateStrategy); - if (updateStrategy != null) { - this.updateStrategy = new V1StatefulSetUpdateStrategyBuilder(updateStrategy); - _visitables.get("updateStrategy").add(this.updateStrategy); - } else { - this.updateStrategy = null; - _visitables.get("updateStrategy").remove(this.updateStrategy); - } - return (A) this; + if (updateStrategy!=null){ this.updateStrategy= new V1StatefulSetUpdateStrategyBuilder(updateStrategy); _visitables.get("updateStrategy").add(this.updateStrategy);} else { this.updateStrategy = null; _visitables.get("updateStrategy").remove(this.updateStrategy); } return (A) this; } - public Boolean hasUpdateStrategy() { return this.updateStrategy != null; } - public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy() { return new V1StatefulSetSpecFluentImpl.UpdateStrategyNestedImpl(); } - - public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( - V1StatefulSetUpdateStrategy item) { + public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { return new V1StatefulSetSpecFluentImpl.UpdateStrategyNestedImpl(item); } - public V1StatefulSetSpecFluent.UpdateStrategyNested editUpdateStrategy() { return withNewUpdateStrategyLike(getUpdateStrategy()); } - public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy() { - return withNewUpdateStrategyLike( - getUpdateStrategy() != null - ? getUpdateStrategy() - : new V1StatefulSetUpdateStrategyBuilder().build()); + return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy(): new V1StatefulSetUpdateStrategyBuilder().build()); } - - public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( - V1StatefulSetUpdateStrategy item) { - return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy() : item); + public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { + return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy(): item); } - - public A addToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables - .get("volumeClaimTemplates") - .add(index >= 0 ? index : _visitables.get("volumeClaimTemplates").size(), builder); - this.volumeClaimTemplates.add(index >= 0 ? index : volumeClaimTemplates.size(), builder); - return (A) this; + public A addToVolumeClaimTemplates(Integer index,V1PersistentVolumeClaim item) { + if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(index >= 0 ? index : _visitables.get("volumeClaimTemplates").size(), builder);this.volumeClaimTemplates.add(index >= 0 ? index : volumeClaimTemplates.size(), builder); return (A)this; } - - public A setToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } + public A setToVolumeClaimTemplates(Integer index,V1PersistentVolumeClaim item) { + if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= _visitables.get("volumeClaimTemplates").size()) { - _visitables.get("volumeClaimTemplates").add(builder); - } else { - _visitables.get("volumeClaimTemplates").set(index, builder); - } - if (index < 0 || index >= volumeClaimTemplates.size()) { - volumeClaimTemplates.add(builder); - } else { - volumeClaimTemplates.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("volumeClaimTemplates").size()) { _visitables.get("volumeClaimTemplates").add(builder); } else { _visitables.get("volumeClaimTemplates").set(index, builder);} + if (index < 0 || index >= volumeClaimTemplates.size()) { volumeClaimTemplates.add(builder); } else { volumeClaimTemplates.set(index, builder);} + return (A)this; } - - public A addToVolumeClaimTemplates( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").add(builder); - this.volumeClaimTemplates.add(builder); - } - return (A) this; + public A addToVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(builder);this.volumeClaimTemplates.add(builder);} return (A)this; } - public A addAllToVolumeClaimTemplates(Collection items) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").add(builder); - this.volumeClaimTemplates.add(builder); - } - return (A) this; + if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(builder);this.volumeClaimTemplates.add(builder);} return (A)this; } - - public A removeFromVolumeClaimTemplates( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").remove(builder); - if (this.volumeClaimTemplates != null) { - this.volumeClaimTemplates.remove(builder); - } - } - return (A) this; + public A removeFromVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").remove(builder);if (this.volumeClaimTemplates != null) {this.volumeClaimTemplates.remove(builder);}} return (A)this; } - public A removeAllFromVolumeClaimTemplates(Collection items) { - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").remove(builder); - if (this.volumeClaimTemplates != null) { - this.volumeClaimTemplates.remove(builder); - } - } - return (A) this; + for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").remove(builder);if (this.volumeClaimTemplates != null) {this.volumeClaimTemplates.remove(builder);}} return (A)this; } - - public A removeMatchingFromVolumeClaimTemplates( - Predicate predicate) { + public A removeMatchingFromVolumeClaimTemplates(Predicate predicate) { if (volumeClaimTemplates == null) return (A) this; final Iterator each = volumeClaimTemplates.iterator(); final List visitables = _visitables.get("volumeClaimTemplates"); @@ -453,342 +271,193 @@ public A removeMatchingFromVolumeClaimTemplates( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildVolumeClaimTemplates instead. - * * @return The buildable object. */ @Deprecated public List getVolumeClaimTemplates() { return volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; } - public List buildVolumeClaimTemplates() { return volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; } - public V1PersistentVolumeClaim buildVolumeClaimTemplate(Integer index) { return this.volumeClaimTemplates.get(index).build(); } - public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate() { return this.volumeClaimTemplates.get(0).build(); } - public V1PersistentVolumeClaim buildLastVolumeClaimTemplate() { return this.volumeClaimTemplates.get(volumeClaimTemplates.size() - 1).build(); } - - public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate( - Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item: volumeClaimTemplates) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingVolumeClaimTemplate( - Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingVolumeClaimTemplate(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item: volumeClaimTemplates) { if(predicate.test(item)){ return true;} } return false; } - public A withVolumeClaimTemplates(List volumeClaimTemplates) { - if (this.volumeClaimTemplates != null) { - _visitables.get("volumeClaimTemplates").removeAll(this.volumeClaimTemplates); - } - if (volumeClaimTemplates != null) { - this.volumeClaimTemplates = new ArrayList(); - for (V1PersistentVolumeClaim item : volumeClaimTemplates) { - this.addToVolumeClaimTemplates(item); - } - } else { - this.volumeClaimTemplates = null; - } - return (A) this; + if (this.volumeClaimTemplates != null) { _visitables.get("volumeClaimTemplates").removeAll(this.volumeClaimTemplates);} + if (volumeClaimTemplates != null) {this.volumeClaimTemplates = new ArrayList(); for (V1PersistentVolumeClaim item : volumeClaimTemplates){this.addToVolumeClaimTemplates(item);}} else { this.volumeClaimTemplates = null;} return (A) this; } - - public A withVolumeClaimTemplates( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates) { - if (this.volumeClaimTemplates != null) { - this.volumeClaimTemplates.clear(); - } - if (volumeClaimTemplates != null) { - for (V1PersistentVolumeClaim item : volumeClaimTemplates) { - this.addToVolumeClaimTemplates(item); - } - } - return (A) this; + public A withVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates) { + if (this.volumeClaimTemplates != null) {this.volumeClaimTemplates.clear();} + if (volumeClaimTemplates != null) {for (V1PersistentVolumeClaim item :volumeClaimTemplates){ this.addToVolumeClaimTemplates(item);}} return (A) this; } - public Boolean hasVolumeClaimTemplates() { return volumeClaimTemplates != null && !volumeClaimTemplates.isEmpty(); } - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { return new V1StatefulSetSpecFluentImpl.VolumeClaimTemplatesNestedImpl(); } - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike( - V1PersistentVolumeClaim item) { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item) { return new V1StatefulSetSpecFluentImpl.VolumeClaimTemplatesNestedImpl(-1, item); } - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike( - Integer index, V1PersistentVolumeClaim item) { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(Integer index,V1PersistentVolumeClaim item) { return new V1StatefulSetSpecFluentImpl.VolumeClaimTemplatesNestedImpl(index, item); } - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editVolumeClaimTemplate( - Integer index) { - if (volumeClaimTemplates.size() <= index) - throw new RuntimeException("Can't edit volumeClaimTemplates. Index exceeds size."); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editVolumeClaimTemplate(Integer index) { + if (volumeClaimTemplates.size() <= index) throw new RuntimeException("Can't edit volumeClaimTemplates. Index exceeds size."); return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); } - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editFirstVolumeClaimTemplate() { - if (volumeClaimTemplates.size() == 0) - throw new RuntimeException("Can't edit first volumeClaimTemplates. The list is empty."); + if (volumeClaimTemplates.size() == 0) throw new RuntimeException("Can't edit first volumeClaimTemplates. The list is empty."); return setNewVolumeClaimTemplateLike(0, buildVolumeClaimTemplate(0)); } - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editLastVolumeClaimTemplate() { int index = volumeClaimTemplates.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last volumeClaimTemplates. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last volumeClaimTemplates. The list is empty."); return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); } - - public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate( - Predicate predicate) { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate(Predicate predicate) { int index = -1; - for (int i = 0; i < volumeClaimTemplates.size(); i++) { - if (predicate.test(volumeClaimTemplates.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching volumeClaimTemplates. No match found."); + for (int i=0;i - extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl< - V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested> - implements V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested, Nested { - PersistentVolumeClaimRetentionPolicyNestedImpl( - V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { + class PersistentVolumeClaimRetentionPolicyNestedImpl extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl> implements V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested,Nested{ + PersistentVolumeClaimRetentionPolicyNestedImpl(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { this.builder = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this, item); } - PersistentVolumeClaimRetentionPolicyNestedImpl() { this.builder = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this); } - V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder builder; - public N and() { - return (N) - V1StatefulSetSpecFluentImpl.this.withPersistentVolumeClaimRetentionPolicy( - builder.build()); + return (N) V1StatefulSetSpecFluentImpl.this.withPersistentVolumeClaimRetentionPolicy(builder.build()); } - public N endPersistentVolumeClaimRetentionPolicy() { return and(); } + } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1StatefulSetSpecFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1StatefulSetSpecFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1StatefulSetSpecFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } - - class TemplateNestedImpl - extends V1PodTemplateSpecFluentImpl> - implements V1StatefulSetSpecFluent.TemplateNested, Nested { + class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> implements V1StatefulSetSpecFluent.TemplateNested,Nested{ TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - TemplateNestedImpl() { this.builder = new V1PodTemplateSpecBuilder(this); } - V1PodTemplateSpecBuilder builder; - public N and() { return (N) V1StatefulSetSpecFluentImpl.this.withTemplate(builder.build()); } - public N endTemplate() { return and(); } + } - - class UpdateStrategyNestedImpl - extends V1StatefulSetUpdateStrategyFluentImpl> - implements V1StatefulSetSpecFluent.UpdateStrategyNested, Nested { + class UpdateStrategyNestedImpl extends V1StatefulSetUpdateStrategyFluentImpl> implements V1StatefulSetSpecFluent.UpdateStrategyNested,Nested{ UpdateStrategyNestedImpl(V1StatefulSetUpdateStrategy item) { this.builder = new V1StatefulSetUpdateStrategyBuilder(this, item); } - UpdateStrategyNestedImpl() { this.builder = new V1StatefulSetUpdateStrategyBuilder(this); } - V1StatefulSetUpdateStrategyBuilder builder; - public N and() { return (N) V1StatefulSetSpecFluentImpl.this.withUpdateStrategy(builder.build()); } - public N endUpdateStrategy() { return and(); } + } - - class VolumeClaimTemplatesNestedImpl - extends V1PersistentVolumeClaimFluentImpl< - V1StatefulSetSpecFluent.VolumeClaimTemplatesNested> - implements V1StatefulSetSpecFluent.VolumeClaimTemplatesNested, Nested { - VolumeClaimTemplatesNestedImpl(Integer index, V1PersistentVolumeClaim item) { + class VolumeClaimTemplatesNestedImpl extends V1PersistentVolumeClaimFluentImpl> implements V1StatefulSetSpecFluent.VolumeClaimTemplatesNested,Nested{ + VolumeClaimTemplatesNestedImpl(Integer index,V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } - VolumeClaimTemplatesNestedImpl() { this.index = -1; this.builder = new V1PersistentVolumeClaimBuilder(this); } - V1PersistentVolumeClaimBuilder builder; Integer index; - public N and() { - return (N) V1StatefulSetSpecFluentImpl.this.setToVolumeClaimTemplates(index, builder.build()); + return (N) V1StatefulSetSpecFluentImpl.this.setToVolumeClaimTemplates(index,builder.build()); } - public N endVolumeClaimTemplate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java index 551796f61e..33170e41c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetStatusBuilder - extends V1StatefulSetStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatefulSetStatusBuilder extends V1StatefulSetStatusFluentImpl implements VisitableBuilder{ public V1StatefulSetStatusBuilder() { this(false); } - public V1StatefulSetStatusBuilder(Boolean validationEnabled) { this(new V1StatefulSetStatus(), validationEnabled); } - public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent) { this(fluent, false); } - - public V1StatefulSetStatusBuilder( - V1StatefulSetStatusFluent fluent, Boolean validationEnabled) { + public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSetStatus(), validationEnabled); } - - public V1StatefulSetStatusBuilder( - V1StatefulSetStatusFluent fluent, V1StatefulSetStatus instance) { + public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,V1StatefulSetStatus instance) { this(fluent, instance, false); } - - public V1StatefulSetStatusBuilder( - V1StatefulSetStatusFluent fluent, - V1StatefulSetStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,V1StatefulSetStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); fluent.withCollisionCount(instance.getCollisionCount()); @@ -64,15 +40,13 @@ public V1StatefulSetStatusBuilder( fluent.withUpdatedReplicas(instance.getUpdatedReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance) { - this(instance, false); + this(instance,false); } - - public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); this.withCollisionCount(instance.getCollisionCount()); @@ -93,12 +67,10 @@ public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance, Boolean validati this.withUpdatedReplicas(instance.getUpdatedReplicas()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetStatusFluent fluent; Boolean validationEnabled; - public V1StatefulSetStatus build() { V1StatefulSetStatus buildable = new V1StatefulSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -113,4 +85,5 @@ public V1StatefulSetStatus build() { buildable.setUpdatedReplicas(fluent.getUpdatedReplicas()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java index c9e35fc3f2..c551c87b8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java @@ -1,144 +1,84 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1StatefulSetStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1StatefulSetStatusFluent> extends Fluent{ public Integer getAvailableReplicas(); - public A withAvailableReplicas(Integer availableReplicas); - public Boolean hasAvailableReplicas(); - public Integer getCollisionCount(); - public A withCollisionCount(Integer collisionCount); - public Boolean hasCollisionCount(); - - public A addToConditions(Integer index, V1StatefulSetCondition item); - - public A setToConditions(Integer index, V1StatefulSetCondition item); - + public A addToConditions(Integer index,V1StatefulSetCondition item); + public A setToConditions(Integer index,V1StatefulSetCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items); - public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1StatefulSetCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items); public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1StatefulSetCondition buildCondition(Integer index); - public V1StatefulSetCondition buildFirstCondition(); - public V1StatefulSetCondition buildLastCondition(); - - public V1StatefulSetCondition buildMatchingCondition( - Predicate predicate); - + public V1StatefulSetCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - public A withConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... conditions); - public Boolean hasConditions(); - public V1StatefulSetStatusFluent.ConditionsNested addNewCondition(); - - public V1StatefulSetStatusFluent.ConditionsNested addNewConditionLike( - V1StatefulSetCondition item); - - public V1StatefulSetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1StatefulSetCondition item); - + public V1StatefulSetStatusFluent.ConditionsNested addNewConditionLike(V1StatefulSetCondition item); + public V1StatefulSetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1StatefulSetCondition item); public V1StatefulSetStatusFluent.ConditionsNested editCondition(Integer index); - public V1StatefulSetStatusFluent.ConditionsNested editFirstCondition(); - public V1StatefulSetStatusFluent.ConditionsNested editLastCondition(); - - public V1StatefulSetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - + public V1StatefulSetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); public Integer getCurrentReplicas(); - public A withCurrentReplicas(Integer currentReplicas); - public Boolean hasCurrentReplicas(); - public String getCurrentRevision(); - public A withCurrentRevision(String currentRevision); - public Boolean hasCurrentRevision(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public Integer getReadyReplicas(); - public A withReadyReplicas(Integer readyReplicas); - public Boolean hasReadyReplicas(); - public Integer getReplicas(); - public A withReplicas(Integer replicas); - public Boolean hasReplicas(); - public String getUpdateRevision(); - public A withUpdateRevision(String updateRevision); - public Boolean hasUpdateRevision(); - public Integer getUpdatedReplicas(); - public A withUpdatedReplicas(Integer updatedReplicas); - public Boolean hasUpdatedReplicas(); - - public interface ConditionsNested - extends Nested, - V1StatefulSetConditionFluent> { + public interface ConditionsNested extends Nested,V1StatefulSetConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java index 7e7ad38bc0..f1b2d2bb25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java @@ -1,31 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetStatusFluentImpl> - extends BaseFluent implements V1StatefulSetStatusFluent { - public V1StatefulSetStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetStatusFluentImpl> extends BaseFluent implements V1StatefulSetStatusFluent{ + public V1StatefulSetStatusFluentImpl() { + } public V1StatefulSetStatusFluentImpl(V1StatefulSetStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -46,8 +43,8 @@ public V1StatefulSetStatusFluentImpl(V1StatefulSetStatus instance) { this.withUpdateRevision(instance.getUpdateRevision()); this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } + } private Integer availableReplicas; private Integer collisionCount; private ArrayList conditions; @@ -58,110 +55,49 @@ public V1StatefulSetStatusFluentImpl(V1StatefulSetStatus instance) { private Integer replicas; private String updateRevision; private Integer updatedReplicas; - public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; + this.availableReplicas=availableReplicas; return (A) this; } - public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - public Integer getCollisionCount() { return this.collisionCount; } - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; - return (A) this; + this.collisionCount=collisionCount; return (A) this; } - public Boolean hasCollisionCount() { return this.collisionCount != null; } - - public A addToConditions(Integer index, V1StatefulSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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 addToConditions(Integer index,V1StatefulSetCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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(Integer index, V1StatefulSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1StatefulSetCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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; + 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.V1StatefulSetCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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 ArrayList(); - } - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { + for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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(); @@ -173,340 +109,192 @@ public A removeMatchingFromConditions(Predicate p each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1StatefulSetCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1StatefulSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1StatefulSetCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1StatefulSetCondition buildMatchingCondition( - Predicate predicate) { - for (V1StatefulSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1StatefulSetCondition buildMatchingCondition(Predicate predicate) { + for (V1StatefulSetConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1StatefulSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1StatefulSetConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1StatefulSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1StatefulSetCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1StatefulSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1StatefulSetCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1StatefulSetCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1StatefulSetStatusFluent.ConditionsNested addNewCondition() { return new V1StatefulSetStatusFluentImpl.ConditionsNestedImpl(); } - - public V1StatefulSetStatusFluent.ConditionsNested addNewConditionLike( - V1StatefulSetCondition item) { + public V1StatefulSetStatusFluent.ConditionsNested addNewConditionLike(V1StatefulSetCondition item) { return new V1StatefulSetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1StatefulSetStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1StatefulSetCondition item) { + public V1StatefulSetStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1StatefulSetCondition item) { return new V1StatefulSetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1StatefulSetStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1StatefulSetStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1StatefulSetStatusFluent.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 V1StatefulSetStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1StatefulSetStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1StatefulSetConditionFluentImpl> - implements V1StatefulSetStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1StatefulSetCondition item) { + class ConditionsNestedImpl extends V1StatefulSetConditionFluentImpl> implements V1StatefulSetStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1StatefulSetCondition item) { this.index = index; this.builder = new V1StatefulSetConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1StatefulSetConditionBuilder(this); } - V1StatefulSetConditionBuilder builder; Integer index; - public N and() { - return (N) V1StatefulSetStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1StatefulSetStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java index da094391b3..c4bd1f6665 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1StatefulSetUpdateStrategyBuilder - extends V1StatefulSetUpdateStrategyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatefulSetUpdateStrategyBuilder extends V1StatefulSetUpdateStrategyFluentImpl implements VisitableBuilder{ public V1StatefulSetUpdateStrategyBuilder() { this(false); } - public V1StatefulSetUpdateStrategyBuilder(Boolean validationEnabled) { this(new V1StatefulSetUpdateStrategy(), validationEnabled); } - public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent) { this(fluent, false); } - - public V1StatefulSetUpdateStrategyBuilder( - V1StatefulSetUpdateStrategyFluent fluent, Boolean validationEnabled) { + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatefulSetUpdateStrategy(), validationEnabled); } - - public V1StatefulSetUpdateStrategyBuilder( - V1StatefulSetUpdateStrategyFluent fluent, V1StatefulSetUpdateStrategy instance) { + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,V1StatefulSetUpdateStrategy instance) { this(fluent, instance, false); } - - public V1StatefulSetUpdateStrategyBuilder( - V1StatefulSetUpdateStrategyFluent fluent, - V1StatefulSetUpdateStrategy instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,V1StatefulSetUpdateStrategy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRollingUpdate(instance.getRollingUpdate()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategy instance) { - this(instance, false); + this(instance,false); } - - public V1StatefulSetUpdateStrategyBuilder( - V1StatefulSetUpdateStrategy instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategy instance,Boolean validationEnabled) { + this.fluent = this; this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatefulSetUpdateStrategyFluent fluent; Boolean validationEnabled; - public V1StatefulSetUpdateStrategy build() { V1StatefulSetUpdateStrategy buildable = new V1StatefulSetUpdateStrategy(); buildable.setRollingUpdate(fluent.getRollingUpdate()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java index 4b97cace4a..59e550e1dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java @@ -1,62 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1StatefulSetUpdateStrategyFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1StatefulSetUpdateStrategyFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildRollingUpdate instead. - * * @return The buildable object. */ @Deprecated public V1RollingUpdateStatefulSetStrategy getRollingUpdate(); - public V1RollingUpdateStatefulSetStrategy buildRollingUpdate(); - public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate); - public Boolean hasRollingUpdate(); - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdate(); - - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( - V1RollingUpdateStatefulSetStrategy item); - + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item); public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate(); - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate(); - - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( - V1RollingUpdateStatefulSetStrategy item); - + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface RollingUpdateNested - extends Nested, - V1RollingUpdateStatefulSetStrategyFluent< - V1StatefulSetUpdateStrategyFluent.RollingUpdateNested> { + public interface RollingUpdateNested extends Nested,V1RollingUpdateStatefulSetStrategyFluent>{ public N and(); - public N endRollingUpdate(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java index 3f34c1f1c2..94843f4e4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java @@ -1,153 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatefulSetUpdateStrategyFluentImpl> - extends BaseFluent implements V1StatefulSetUpdateStrategyFluent { - public V1StatefulSetUpdateStrategyFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatefulSetUpdateStrategyFluentImpl> extends BaseFluent implements V1StatefulSetUpdateStrategyFluent{ + public V1StatefulSetUpdateStrategyFluentImpl() { + } public V1StatefulSetUpdateStrategyFluentImpl(V1StatefulSetUpdateStrategy instance) { this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); - } + } private V1RollingUpdateStatefulSetStrategyBuilder rollingUpdate; private String type; - + /** * This method has been deprecated, please use method buildRollingUpdate instead. - * * @return The buildable object. */ @Deprecated public V1RollingUpdateStatefulSetStrategy getRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + return this.rollingUpdate!=null ?this.rollingUpdate.build():null; } - public V1RollingUpdateStatefulSetStrategy buildRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + return this.rollingUpdate!=null ?this.rollingUpdate.build():null; } - public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { _visitables.get("rollingUpdate").remove(this.rollingUpdate); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); - _visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - _visitables.get("rollingUpdate").remove(this.rollingUpdate); - } - return (A) this; + if (rollingUpdate!=null){ this.rollingUpdate= new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); _visitables.get("rollingUpdate").add(this.rollingUpdate);} else { this.rollingUpdate = null; _visitables.get("rollingUpdate").remove(this.rollingUpdate); } return (A) this; } - public Boolean hasRollingUpdate() { return this.rollingUpdate != null; } - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdate() { return new V1StatefulSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(); } - - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( - V1RollingUpdateStatefulSetStrategy item) { + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { return new V1StatefulSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(item); } - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate() { return withNewRollingUpdateLike(getRollingUpdate()); } - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike( - getRollingUpdate() != null - ? getRollingUpdate() - : new V1RollingUpdateStatefulSetStrategyBuilder().build()); + return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate(): new V1RollingUpdateStatefulSetStrategyBuilder().build()); } - - public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( - V1RollingUpdateStatefulSetStrategy item) { - return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate() : item); + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { + return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StatefulSetUpdateStrategyFluentImpl that = (V1StatefulSetUpdateStrategyFluentImpl) o; - if (rollingUpdate != null - ? !rollingUpdate.equals(that.rollingUpdate) - : that.rollingUpdate != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (rollingUpdate != null ? !rollingUpdate.equals(that.rollingUpdate) :that.rollingUpdate != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { - sb.append("rollingUpdate:"); - sb.append(rollingUpdate + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class RollingUpdateNestedImpl - extends V1RollingUpdateStatefulSetStrategyFluentImpl< - V1StatefulSetUpdateStrategyFluent.RollingUpdateNested> - implements V1StatefulSetUpdateStrategyFluent.RollingUpdateNested, Nested { + class RollingUpdateNestedImpl extends V1RollingUpdateStatefulSetStrategyFluentImpl> implements V1StatefulSetUpdateStrategyFluent.RollingUpdateNested,Nested{ RollingUpdateNestedImpl(V1RollingUpdateStatefulSetStrategy item) { this.builder = new V1RollingUpdateStatefulSetStrategyBuilder(this, item); } - RollingUpdateNestedImpl() { this.builder = new V1RollingUpdateStatefulSetStrategyBuilder(this); } - V1RollingUpdateStatefulSetStrategyBuilder builder; - public N and() { return (N) V1StatefulSetUpdateStrategyFluentImpl.this.withRollingUpdate(builder.build()); } - public N endRollingUpdate() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java index b7e77769f0..5d542ed52b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StatusBuilder extends V1StatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatusBuilder extends V1StatusFluentImpl implements VisitableBuilder{ public V1StatusBuilder() { this(false); } - public V1StatusBuilder(Boolean validationEnabled) { this(new V1Status(), validationEnabled); } - public V1StatusBuilder(V1StatusFluent fluent) { this(fluent, false); } - - public V1StatusBuilder(V1StatusFluent fluent, Boolean validationEnabled) { + public V1StatusBuilder(V1StatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1Status(), validationEnabled); } - - public V1StatusBuilder(V1StatusFluent fluent, V1Status instance) { + public V1StatusBuilder(V1StatusFluent fluent,V1Status instance) { this(fluent, instance, false); } - - public V1StatusBuilder(V1StatusFluent fluent, V1Status instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StatusBuilder(V1StatusFluent fluent,V1Status instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withCode(instance.getCode()); @@ -54,15 +36,13 @@ public V1StatusBuilder(V1StatusFluent fluent, V1Status instance, Boolean vali fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatusBuilder(V1Status instance) { - this(instance, false); + this(instance,false); } - - public V1StatusBuilder(V1Status instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatusBuilder(V1Status instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withCode(instance.getCode()); @@ -79,12 +59,10 @@ public V1StatusBuilder(V1Status instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatusFluent fluent; Boolean validationEnabled; - public V1Status build() { V1Status buildable = new V1Status(); buildable.setApiVersion(fluent.getApiVersion()); @@ -97,4 +75,5 @@ public V1Status build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java index e71b2b469b..9ff008e877 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1StatusCauseBuilder extends V1StatusCauseFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatusCauseBuilder extends V1StatusCauseFluentImpl implements VisitableBuilder{ public V1StatusCauseBuilder() { this(false); } - public V1StatusCauseBuilder(Boolean validationEnabled) { this(new V1StatusCause(), validationEnabled); } - public V1StatusCauseBuilder(V1StatusCauseFluent fluent) { this(fluent, false); } - - public V1StatusCauseBuilder(V1StatusCauseFluent fluent, Boolean validationEnabled) { + public V1StatusCauseBuilder(V1StatusCauseFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatusCause(), validationEnabled); } - - public V1StatusCauseBuilder(V1StatusCauseFluent fluent, V1StatusCause instance) { + public V1StatusCauseBuilder(V1StatusCauseFluent fluent,V1StatusCause instance) { this(fluent, instance, false); } - - public V1StatusCauseBuilder( - V1StatusCauseFluent fluent, V1StatusCause instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StatusCauseBuilder(V1StatusCauseFluent fluent,V1StatusCause instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withField(instance.getField()); fluent.withMessage(instance.getMessage()); fluent.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatusCauseBuilder(V1StatusCause instance) { - this(instance, false); + this(instance,false); } - - public V1StatusCauseBuilder(V1StatusCause instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatusCauseBuilder(V1StatusCause instance,Boolean validationEnabled) { + this.fluent = this; this.withField(instance.getField()); this.withMessage(instance.getMessage()); this.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatusCauseFluent fluent; Boolean validationEnabled; - public V1StatusCause build() { V1StatusCause buildable = new V1StatusCause(); buildable.setField(fluent.getField()); @@ -73,4 +50,5 @@ public V1StatusCause build() { buildable.setReason(fluent.getReason()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java index ec298ef9ec..6e57926a8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java @@ -1,36 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1StatusCauseFluent> extends Fluent { + /** + * Generated + */ +public interface V1StatusCauseFluent> extends Fluent{ public String getField(); - public A withField(String field); - public Boolean hasField(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java index b8e2f7ea09..deb2a5f98e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java @@ -1,106 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatusCauseFluentImpl> extends BaseFluent - implements V1StatusCauseFluent { - public V1StatusCauseFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatusCauseFluentImpl> extends BaseFluent implements V1StatusCauseFluent{ + public V1StatusCauseFluentImpl() { + } public V1StatusCauseFluentImpl(V1StatusCause instance) { this.withField(instance.getField()); this.withMessage(instance.getMessage()); this.withReason(instance.getReason()); - } + } private String field; private String message; private String reason; - public String getField() { return this.field; } - public A withField(String field) { - this.field = field; - return (A) this; + this.field=field; return (A) this; } - public Boolean hasField() { return this.field != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StatusCauseFluentImpl that = (V1StatusCauseFluentImpl) o; - if (field != null ? !field.equals(that.field) : that.field != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; + if (field != null ? !field.equals(that.field) :that.field != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(field, message, reason, super.hashCode()); + return java.util.Objects.hash(field, message, reason, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (field != null) { - sb.append("field:"); - sb.append(field + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason); - } + if (field != null) { sb.append("field:"); sb.append(field + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java index 2f21412b09..b921a073df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StatusDetailsBuilder extends V1StatusDetailsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StatusDetailsBuilder extends V1StatusDetailsFluentImpl implements VisitableBuilder{ public V1StatusDetailsBuilder() { this(false); } - public V1StatusDetailsBuilder(Boolean validationEnabled) { this(new V1StatusDetails(), validationEnabled); } - public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent) { this(fluent, false); } - - public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent, Boolean validationEnabled) { + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,Boolean validationEnabled) { this(fluent, new V1StatusDetails(), validationEnabled); } - - public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent, V1StatusDetails instance) { + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance) { this(fluent, instance, false); } - - public V1StatusDetailsBuilder( - V1StatusDetailsFluent fluent, V1StatusDetails instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCauses(instance.getCauses()); fluent.withGroup(instance.getGroup()); @@ -51,15 +32,13 @@ public V1StatusDetailsBuilder( fluent.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StatusDetailsBuilder(V1StatusDetails instance) { - this(instance, false); + this(instance,false); } - - public V1StatusDetailsBuilder(V1StatusDetails instance, Boolean validationEnabled) { - this.fluent = this; + public V1StatusDetailsBuilder(V1StatusDetails instance,Boolean validationEnabled) { + this.fluent = this; this.withCauses(instance.getCauses()); this.withGroup(instance.getGroup()); @@ -72,12 +51,10 @@ public V1StatusDetailsBuilder(V1StatusDetails instance, Boolean validationEnable this.withUid(instance.getUid()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StatusDetailsFluent fluent; Boolean validationEnabled; - public V1StatusDetails build() { V1StatusDetails buildable = new V1StatusDetails(); buildable.setCauses(fluent.getCauses()); @@ -88,4 +65,5 @@ public V1StatusDetails build() { buildable.setUid(fluent.getUid()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java index 63f85cca0a..6b9c20f544 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java @@ -1,114 +1,71 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1StatusDetailsFluent> extends Fluent { - public A addToCauses(Integer index, V1StatusCause item); - - public A setToCauses(Integer index, V1StatusCause item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1StatusDetailsFluent> extends Fluent{ + public A addToCauses(Integer index,V1StatusCause item); + public A setToCauses(Integer index,V1StatusCause item); public A addToCauses(io.kubernetes.client.openapi.models.V1StatusCause... items); - public A addAllToCauses(Collection items); - public A removeFromCauses(io.kubernetes.client.openapi.models.V1StatusCause... items); - public A removeAllFromCauses(Collection items); - public A removeMatchingFromCauses(Predicate predicate); - + /** * This method has been deprecated, please use method buildCauses instead. - * * @return The buildable object. */ @Deprecated public List getCauses(); - public List buildCauses(); - public V1StatusCause buildCause(Integer index); - public V1StatusCause buildFirstCause(); - public V1StatusCause buildLastCause(); - public V1StatusCause buildMatchingCause(Predicate predicate); - public Boolean hasMatchingCause(Predicate predicate); - public A withCauses(List causes); - public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes); - public Boolean hasCauses(); - public V1StatusDetailsFluent.CausesNested addNewCause(); - public V1StatusDetailsFluent.CausesNested addNewCauseLike(V1StatusCause item); - - public V1StatusDetailsFluent.CausesNested setNewCauseLike(Integer index, V1StatusCause item); - + public V1StatusDetailsFluent.CausesNested setNewCauseLike(Integer index,V1StatusCause item); public V1StatusDetailsFluent.CausesNested editCause(Integer index); - public V1StatusDetailsFluent.CausesNested editFirstCause(); - public V1StatusDetailsFluent.CausesNested editLastCause(); - - public V1StatusDetailsFluent.CausesNested editMatchingCause( - Predicate predicate); - + public V1StatusDetailsFluent.CausesNested editMatchingCause(Predicate predicate); public String getGroup(); - public A withGroup(String group); - public Boolean hasGroup(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Integer getRetryAfterSeconds(); - public A withRetryAfterSeconds(Integer retryAfterSeconds); - public Boolean hasRetryAfterSeconds(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); - - public interface CausesNested - extends Nested, V1StatusCauseFluent> { + public interface CausesNested extends Nested,V1StatusCauseFluent>{ public N and(); - public N endCause(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java index 398358143d..c6f7b68513 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatusDetailsFluentImpl> extends BaseFluent - implements V1StatusDetailsFluent { - public V1StatusDetailsFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatusDetailsFluentImpl> extends BaseFluent implements V1StatusDetailsFluent{ + public V1StatusDetailsFluentImpl() { + } public V1StatusDetailsFluentImpl(V1StatusDetails instance) { this.withCauses(instance.getCauses()); @@ -38,89 +34,39 @@ public V1StatusDetailsFluentImpl(V1StatusDetails instance) { this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); this.withUid(instance.getUid()); - } + } private ArrayList causes; private String group; private String kind; private String name; private Integer retryAfterSeconds; private String uid; - - public A addToCauses(Integer index, V1StatusCause item) { - if (this.causes == null) { - this.causes = new ArrayList(); - } - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").add(index >= 0 ? index : _visitables.get("causes").size(), builder); - this.causes.add(index >= 0 ? index : causes.size(), builder); - return (A) this; + public A addToCauses(Integer index,V1StatusCause item) { + if (this.causes == null) {this.causes = new ArrayList();} + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(index >= 0 ? index : _visitables.get("causes").size(), builder);this.causes.add(index >= 0 ? index : causes.size(), builder); return (A)this; } - - public A setToCauses(Integer index, V1StatusCause item) { - if (this.causes == null) { - this.causes = new ArrayList(); - } + public A setToCauses(Integer index,V1StatusCause item) { + if (this.causes == null) {this.causes = new ArrayList();} V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= _visitables.get("causes").size()) { - _visitables.get("causes").add(builder); - } else { - _visitables.get("causes").set(index, builder); - } - if (index < 0 || index >= causes.size()) { - causes.add(builder); - } else { - causes.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("causes").size()) { _visitables.get("causes").add(builder); } else { _visitables.get("causes").set(index, builder);} + if (index < 0 || index >= causes.size()) { causes.add(builder); } else { causes.set(index, builder);} + return (A)this; } - public A addToCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { - if (this.causes == null) { - this.causes = new ArrayList(); - } - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").add(builder); - this.causes.add(builder); - } - return (A) this; + if (this.causes == null) {this.causes = new ArrayList();} + for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(builder);this.causes.add(builder);} return (A)this; } - public A addAllToCauses(Collection items) { - if (this.causes == null) { - this.causes = new ArrayList(); - } - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").add(builder); - this.causes.add(builder); - } - return (A) this; + if (this.causes == null) {this.causes = new ArrayList();} + for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(builder);this.causes.add(builder);} return (A)this; } - public A removeFromCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").remove(builder); - if (this.causes != null) { - this.causes.remove(builder); - } - } - return (A) this; + for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").remove(builder);if (this.causes != null) {this.causes.remove(builder);}} return (A)this; } - public A removeAllFromCauses(Collection items) { - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").remove(builder); - if (this.causes != null) { - this.causes.remove(builder); - } - } - return (A) this; + for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").remove(builder);if (this.causes != null) {this.causes.remove(builder);}} return (A)this; } - public A removeMatchingFromCauses(Predicate predicate) { if (causes == null) return (A) this; final Iterator each = causes.iterator(); @@ -132,264 +78,166 @@ public A removeMatchingFromCauses(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildCauses instead. - * * @return The buildable object. */ @Deprecated public List getCauses() { return causes != null ? build(causes) : null; } - public List buildCauses() { return causes != null ? build(causes) : null; } - public V1StatusCause buildCause(Integer index) { return this.causes.get(index).build(); } - public V1StatusCause buildFirstCause() { return this.causes.get(0).build(); } - public V1StatusCause buildLastCause() { return this.causes.get(causes.size() - 1).build(); } - public V1StatusCause buildMatchingCause(Predicate predicate) { - for (V1StatusCauseBuilder item : causes) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1StatusCauseBuilder item: causes) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCause(Predicate predicate) { - for (V1StatusCauseBuilder item : causes) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1StatusCauseBuilder item: causes) { if(predicate.test(item)){ return true;} } return false; } - public A withCauses(List causes) { - if (this.causes != null) { - _visitables.get("causes").removeAll(this.causes); - } - if (causes != null) { - this.causes = new ArrayList(); - for (V1StatusCause item : causes) { - this.addToCauses(item); - } - } else { - this.causes = null; - } - return (A) this; + if (this.causes != null) { _visitables.get("causes").removeAll(this.causes);} + if (causes != null) {this.causes = new ArrayList(); for (V1StatusCause item : causes){this.addToCauses(item);}} else { this.causes = null;} return (A) this; } - public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes) { - if (this.causes != null) { - this.causes.clear(); - } - if (causes != null) { - for (V1StatusCause item : causes) { - this.addToCauses(item); - } - } - return (A) this; + if (this.causes != null) {this.causes.clear();} + if (causes != null) {for (V1StatusCause item :causes){ this.addToCauses(item);}} return (A) this; } - public Boolean hasCauses() { return causes != null && !causes.isEmpty(); } - public V1StatusDetailsFluent.CausesNested addNewCause() { return new V1StatusDetailsFluentImpl.CausesNestedImpl(); } - public V1StatusDetailsFluent.CausesNested addNewCauseLike(V1StatusCause item) { return new V1StatusDetailsFluentImpl.CausesNestedImpl(-1, item); } - - public V1StatusDetailsFluent.CausesNested setNewCauseLike(Integer index, V1StatusCause item) { + public V1StatusDetailsFluent.CausesNested setNewCauseLike(Integer index,V1StatusCause item) { return new V1StatusDetailsFluentImpl.CausesNestedImpl(index, item); } - public V1StatusDetailsFluent.CausesNested editCause(Integer index) { - if (causes.size() <= index) - throw new RuntimeException("Can't edit causes. Index exceeds size."); + if (causes.size() <= index) throw new RuntimeException("Can't edit causes. Index exceeds size."); return setNewCauseLike(index, buildCause(index)); } - public V1StatusDetailsFluent.CausesNested editFirstCause() { - if (causes.size() == 0) - throw new RuntimeException("Can't edit first causes. The list is empty."); + if (causes.size() == 0) throw new RuntimeException("Can't edit first causes. The list is empty."); return setNewCauseLike(0, buildCause(0)); } - public V1StatusDetailsFluent.CausesNested editLastCause() { int index = causes.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last causes. The list is empty."); return setNewCauseLike(index, buildCause(index)); } - - public V1StatusDetailsFluent.CausesNested editMatchingCause( - Predicate predicate) { + public V1StatusDetailsFluent.CausesNested editMatchingCause(Predicate predicate) { int index = -1; - for (int i = 0; i < causes.size(); i++) { - if (predicate.test(causes.get(i))) { - index = i; - break; - } - } + for (int i=0;i extends V1StatusCauseFluentImpl> - implements V1StatusDetailsFluent.CausesNested, Nested { - CausesNestedImpl(Integer index, V1StatusCause item) { + class CausesNestedImpl extends V1StatusCauseFluentImpl> implements V1StatusDetailsFluent.CausesNested,Nested{ + CausesNestedImpl(Integer index,V1StatusCause item) { this.index = index; this.builder = new V1StatusCauseBuilder(this, item); } - CausesNestedImpl() { this.index = -1; this.builder = new V1StatusCauseBuilder(this); } - V1StatusCauseBuilder builder; Integer index; - public N and() { - return (N) V1StatusDetailsFluentImpl.this.setToCauses(index, builder.build()); + return (N) V1StatusDetailsFluentImpl.this.setToCauses(index,builder.build()); } - public N endCause() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java index f7cbbc4a8c..a5a404c2d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java @@ -1,117 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1StatusFluent> extends Fluent { +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1StatusFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Integer getCode(); - public A withCode(Integer code); - public Boolean hasCode(); - + /** * This method has been deprecated, please use method buildDetails instead. - * * @return The buildable object. */ @Deprecated public V1StatusDetails getDetails(); - public V1StatusDetails buildDetails(); - public A withDetails(V1StatusDetails details); - public Boolean hasDetails(); - public V1StatusFluent.DetailsNested withNewDetails(); - public V1StatusFluent.DetailsNested withNewDetailsLike(V1StatusDetails item); - public V1StatusFluent.DetailsNested editDetails(); - public V1StatusFluent.DetailsNested editOrNewDetails(); - public V1StatusFluent.DetailsNested editOrNewDetailsLike(V1StatusDetails item); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1StatusFluent.MetadataNested withNewMetadata(); - public V1StatusFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1StatusFluent.MetadataNested editMetadata(); - public V1StatusFluent.MetadataNested editOrNewMetadata(); - public V1StatusFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - - public interface DetailsNested - extends Nested, V1StatusDetailsFluent> { + public interface DetailsNested extends Nested,V1StatusDetailsFluent>{ public N and(); - public N endDetails(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java index 2635ffa216..5290c2eca5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StatusFluentImpl> extends BaseFluent - implements V1StatusFluent { - public V1StatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StatusFluentImpl> extends BaseFluent implements V1StatusFluent{ + public V1StatusFluentImpl() { + } public V1StatusFluentImpl(V1Status instance) { this.withApiVersion(instance.getApiVersion()); @@ -37,8 +32,8 @@ public V1StatusFluentImpl(V1Status instance) { this.withReason(instance.getReason()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private Integer code; private V1StatusDetailsBuilder details; @@ -47,286 +42,190 @@ public V1StatusFluentImpl(V1Status instance) { private V1ListMetaBuilder metadata; private String reason; private String status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Integer getCode() { return this.code; } - public A withCode(Integer code) { - this.code = code; - return (A) this; + this.code=code; return (A) this; } - public Boolean hasCode() { return this.code != null; } - + /** * This method has been deprecated, please use method buildDetails instead. - * * @return The buildable object. */ @Deprecated public V1StatusDetails getDetails() { - return this.details != null ? this.details.build() : null; + return this.details!=null ?this.details.build():null; } - public V1StatusDetails buildDetails() { - return this.details != null ? this.details.build() : null; + return this.details!=null ?this.details.build():null; } - public A withDetails(V1StatusDetails details) { _visitables.get("details").remove(this.details); - if (details != null) { - this.details = new V1StatusDetailsBuilder(details); - _visitables.get("details").add(this.details); - } else { - this.details = null; - _visitables.get("details").remove(this.details); - } - return (A) this; + if (details!=null){ this.details= new V1StatusDetailsBuilder(details); _visitables.get("details").add(this.details);} else { this.details = null; _visitables.get("details").remove(this.details); } return (A) this; } - public Boolean hasDetails() { return this.details != null; } - public V1StatusFluent.DetailsNested withNewDetails() { return new V1StatusFluentImpl.DetailsNestedImpl(); } - public V1StatusFluent.DetailsNested withNewDetailsLike(V1StatusDetails item) { return new V1StatusFluentImpl.DetailsNestedImpl(item); } - public V1StatusFluent.DetailsNested editDetails() { return withNewDetailsLike(getDetails()); } - public V1StatusFluent.DetailsNested editOrNewDetails() { - return withNewDetailsLike( - getDetails() != null ? getDetails() : new V1StatusDetailsBuilder().build()); + return withNewDetailsLike(getDetails() != null ? getDetails(): new V1StatusDetailsBuilder().build()); } - public V1StatusFluent.DetailsNested editOrNewDetailsLike(V1StatusDetails item) { - return withNewDetailsLike(getDetails() != null ? getDetails() : item); + return withNewDetailsLike(getDetails() != null ? getDetails(): item); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1StatusFluent.MetadataNested withNewMetadata() { return new V1StatusFluentImpl.MetadataNestedImpl(); } - public V1StatusFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1StatusFluentImpl.MetadataNestedImpl(item); } - public V1StatusFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1StatusFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1StatusFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StatusFluentImpl that = (V1StatusFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (code != null ? !code.equals(that.code) : that.code != null) return false; - if (details != null ? !details.equals(that.details) : that.details != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (code != null ? !code.equals(that.code) :that.code != null) return false; + if (details != null ? !details.equals(that.details) :that.details != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, code, details, kind, message, metadata, reason, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (code != null) { - sb.append("code:"); - sb.append(code + ","); - } - if (details != null) { - sb.append("details:"); - sb.append(details + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (code != null) { sb.append("code:"); sb.append(code + ","); } + if (details != null) { sb.append("details:"); sb.append(details + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class DetailsNestedImpl extends V1StatusDetailsFluentImpl> - implements V1StatusFluent.DetailsNested, Nested { + class DetailsNestedImpl extends V1StatusDetailsFluentImpl> implements V1StatusFluent.DetailsNested,Nested{ DetailsNestedImpl(V1StatusDetails item) { this.builder = new V1StatusDetailsBuilder(this, item); } - DetailsNestedImpl() { this.builder = new V1StatusDetailsBuilder(this); } - V1StatusDetailsBuilder builder; - public N and() { return (N) V1StatusFluentImpl.this.withDetails(builder.build()); } - public N endDetails() { return and(); } + } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements V1StatusFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1StatusFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1StatusFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java index b473b68fa3..a9b4de2d12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StorageClassBuilder extends V1StorageClassFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StorageClassBuilder extends V1StorageClassFluentImpl implements VisitableBuilder{ public V1StorageClassBuilder() { this(false); } - public V1StorageClassBuilder(Boolean validationEnabled) { this(new V1StorageClass(), validationEnabled); } - public V1StorageClassBuilder(V1StorageClassFluent fluent) { this(fluent, false); } - - public V1StorageClassBuilder(V1StorageClassFluent fluent, Boolean validationEnabled) { + public V1StorageClassBuilder(V1StorageClassFluent fluent,Boolean validationEnabled) { this(fluent, new V1StorageClass(), validationEnabled); } - - public V1StorageClassBuilder(V1StorageClassFluent fluent, V1StorageClass instance) { + public V1StorageClassBuilder(V1StorageClassFluent fluent,V1StorageClass instance) { this(fluent, instance, false); } - - public V1StorageClassBuilder( - V1StorageClassFluent fluent, V1StorageClass instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StorageClassBuilder(V1StorageClassFluent fluent,V1StorageClass instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); fluent.withAllowedTopologies(instance.getAllowedTopologies()); @@ -59,15 +40,13 @@ public V1StorageClassBuilder( fluent.withVolumeBindingMode(instance.getVolumeBindingMode()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StorageClassBuilder(V1StorageClass instance) { - this(instance, false); + this(instance,false); } - - public V1StorageClassBuilder(V1StorageClass instance, Boolean validationEnabled) { - this.fluent = this; + public V1StorageClassBuilder(V1StorageClass instance,Boolean validationEnabled) { + this.fluent = this; this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); this.withAllowedTopologies(instance.getAllowedTopologies()); @@ -88,12 +67,10 @@ public V1StorageClassBuilder(V1StorageClass instance, Boolean validationEnabled) this.withVolumeBindingMode(instance.getVolumeBindingMode()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StorageClassFluent fluent; Boolean validationEnabled; - public V1StorageClass build() { V1StorageClass buildable = new V1StorageClass(); buildable.setAllowVolumeExpansion(fluent.getAllowVolumeExpansion()); @@ -108,4 +85,5 @@ public V1StorageClass build() { buildable.setVolumeBindingMode(fluent.getVolumeBindingMode()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java index e1fea9fb1f..9641863d9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java @@ -1,205 +1,119 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; -/** Generated */ -public interface V1StorageClassFluent> extends Fluent { + /** + * Generated + */ +public interface V1StorageClassFluent> extends Fluent{ public Boolean getAllowVolumeExpansion(); - public A withAllowVolumeExpansion(Boolean allowVolumeExpansion); - public Boolean hasAllowVolumeExpansion(); - - public A addToAllowedTopologies(Integer index, V1TopologySelectorTerm item); - - public A setToAllowedTopologies(Integer index, V1TopologySelectorTerm item); - - public A addToAllowedTopologies( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items); - + public A addToAllowedTopologies(Integer index,V1TopologySelectorTerm item); + public A setToAllowedTopologies(Integer index,V1TopologySelectorTerm item); + public A addToAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items); public A addAllToAllowedTopologies(Collection items); - - public A removeFromAllowedTopologies( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items); - + public A removeFromAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items); public A removeAllFromAllowedTopologies(Collection items); - public A removeMatchingFromAllowedTopologies(Predicate predicate); - + /** * This method has been deprecated, please use method buildAllowedTopologies instead. - * * @return The buildable object. */ @Deprecated public List getAllowedTopologies(); - public List buildAllowedTopologies(); - public V1TopologySelectorTerm buildAllowedTopology(Integer index); - public V1TopologySelectorTerm buildFirstAllowedTopology(); - public V1TopologySelectorTerm buildLastAllowedTopology(); - - public V1TopologySelectorTerm buildMatchingAllowedTopology( - Predicate predicate); - + public V1TopologySelectorTerm buildMatchingAllowedTopology(Predicate predicate); public Boolean hasMatchingAllowedTopology(Predicate predicate); - public A withAllowedTopologies(List allowedTopologies); - - public A withAllowedTopologies( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies); - + public A withAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies); public Boolean hasAllowedTopologies(); - public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopology(); - - public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopologyLike( - V1TopologySelectorTerm item); - - public V1StorageClassFluent.AllowedTopologiesNested setNewAllowedTopologyLike( - Integer index, V1TopologySelectorTerm item); - + public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item); + public V1StorageClassFluent.AllowedTopologiesNested setNewAllowedTopologyLike(Integer index,V1TopologySelectorTerm item); public V1StorageClassFluent.AllowedTopologiesNested editAllowedTopology(Integer index); - public V1StorageClassFluent.AllowedTopologiesNested editFirstAllowedTopology(); - public V1StorageClassFluent.AllowedTopologiesNested editLastAllowedTopology(); - - public V1StorageClassFluent.AllowedTopologiesNested editMatchingAllowedTopology( - Predicate predicate); - + public V1StorageClassFluent.AllowedTopologiesNested editMatchingAllowedTopology(Predicate predicate); public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1StorageClassFluent.MetadataNested withNewMetadata(); - public V1StorageClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1StorageClassFluent.MetadataNested editMetadata(); - public V1StorageClassFluent.MetadataNested editOrNewMetadata(); - public V1StorageClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - - public A addToMountOptions(Integer index, String item); - - public A setToMountOptions(Integer index, String item); - + public A addToMountOptions(Integer index,String item); + public A setToMountOptions(Integer index,String item); public A addToMountOptions(java.lang.String... items); - public A addAllToMountOptions(Collection items); - public A removeFromMountOptions(java.lang.String... items); - public A removeAllFromMountOptions(Collection items); - public List getMountOptions(); - public String getMountOption(Integer index); - public String getFirstMountOption(); - public String getLastMountOption(); - public String getMatchingMountOption(Predicate predicate); - public Boolean hasMatchingMountOption(Predicate predicate); - public A withMountOptions(List mountOptions); - public A withMountOptions(java.lang.String... mountOptions); - public Boolean hasMountOptions(); - - public A addToParameters(String key, String value); - - public A addToParameters(Map map); - + public A addToParameters(String key,String value); + public A addToParameters(Map map); public A removeFromParameters(String key); - - public A removeFromParameters(Map map); - - public Map getParameters(); - - public A withParameters(Map parameters); - + public A removeFromParameters(Map map); + public Map getParameters(); + public A withParameters(Map parameters); public Boolean hasParameters(); - public String getProvisioner(); - public A withProvisioner(String provisioner); - public Boolean hasProvisioner(); - public String getReclaimPolicy(); - public A withReclaimPolicy(String reclaimPolicy); - public Boolean hasReclaimPolicy(); - public String getVolumeBindingMode(); - public A withVolumeBindingMode(String volumeBindingMode); - public Boolean hasVolumeBindingMode(); - public A withAllowVolumeExpansion(); - - public interface AllowedTopologiesNested - extends Nested, - V1TopologySelectorTermFluent> { + public interface AllowedTopologiesNested extends Nested,V1TopologySelectorTermFluent>{ public N and(); - public N endAllowedTopology(); + } - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java index 07f83f519d..3a98553a77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java @@ -1,33 +1,29 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StorageClassFluentImpl> extends BaseFluent - implements V1StorageClassFluent { - public V1StorageClassFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StorageClassFluentImpl> extends BaseFluent implements V1StorageClassFluent{ + public V1StorageClassFluentImpl() { + } public V1StorageClassFluentImpl(V1StorageClass instance) { this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); @@ -48,110 +44,52 @@ public V1StorageClassFluentImpl(V1StorageClass instance) { this.withReclaimPolicy(instance.getReclaimPolicy()); this.withVolumeBindingMode(instance.getVolumeBindingMode()); - } + } private Boolean allowVolumeExpansion; private ArrayList allowedTopologies; private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private List mountOptions; - private Map parameters; + private Map parameters; private String provisioner; private String reclaimPolicy; private String volumeBindingMode; - public Boolean getAllowVolumeExpansion() { return this.allowVolumeExpansion; } - public A withAllowVolumeExpansion(Boolean allowVolumeExpansion) { - this.allowVolumeExpansion = allowVolumeExpansion; - return (A) this; + this.allowVolumeExpansion=allowVolumeExpansion; return (A) this; } - public Boolean hasAllowVolumeExpansion() { return this.allowVolumeExpansion != null; } - - public A addToAllowedTopologies(Integer index, V1TopologySelectorTerm item) { - if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); - } - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables - .get("allowedTopologies") - .add(index >= 0 ? index : _visitables.get("allowedTopologies").size(), builder); - this.allowedTopologies.add(index >= 0 ? index : allowedTopologies.size(), builder); - return (A) this; + public A addToAllowedTopologies(Integer index,V1TopologySelectorTerm item) { + if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(index >= 0 ? index : _visitables.get("allowedTopologies").size(), builder);this.allowedTopologies.add(index >= 0 ? index : allowedTopologies.size(), builder); return (A)this; } - - public A setToAllowedTopologies(Integer index, V1TopologySelectorTerm item) { - if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); - } + public A setToAllowedTopologies(Integer index,V1TopologySelectorTerm item) { + if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= _visitables.get("allowedTopologies").size()) { - _visitables.get("allowedTopologies").add(builder); - } else { - _visitables.get("allowedTopologies").set(index, builder); - } - if (index < 0 || index >= allowedTopologies.size()) { - allowedTopologies.add(builder); - } else { - allowedTopologies.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("allowedTopologies").size()) { _visitables.get("allowedTopologies").add(builder); } else { _visitables.get("allowedTopologies").set(index, builder);} + if (index < 0 || index >= allowedTopologies.size()) { allowedTopologies.add(builder); } else { allowedTopologies.set(index, builder);} + return (A)this; } - - public A addToAllowedTopologies( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); - } - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").add(builder); - this.allowedTopologies.add(builder); - } - return (A) this; + public A addToAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { + if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} + for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(builder);this.allowedTopologies.add(builder);} return (A)this; } - public A addAllToAllowedTopologies(Collection items) { - if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); - } - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").add(builder); - this.allowedTopologies.add(builder); - } - return (A) this; + if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} + for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(builder);this.allowedTopologies.add(builder);} return (A)this; } - - public A removeFromAllowedTopologies( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").remove(builder); - if (this.allowedTopologies != null) { - this.allowedTopologies.remove(builder); - } - } - return (A) this; + public A removeFromAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { + for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").remove(builder);if (this.allowedTopologies != null) {this.allowedTopologies.remove(builder);}} return (A)this; } - public A removeAllFromAllowedTopologies(Collection items) { - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").remove(builder); - if (this.allowedTopologies != null) { - this.allowedTopologies.remove(builder); - } - } - return (A) this; + for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").remove(builder);if (this.allowedTopologies != null) {this.allowedTopologies.remove(builder);}} return (A)this; } - public A removeMatchingFromAllowedTopologies(Predicate predicate) { if (allowedTopologies == null) return (A) this; final Iterator each = allowedTopologies.iterator(); @@ -163,564 +101,303 @@ public A removeMatchingFromAllowedTopologies(Predicate getAllowedTopologies() { return allowedTopologies != null ? build(allowedTopologies) : null; } - public List buildAllowedTopologies() { return allowedTopologies != null ? build(allowedTopologies) : null; } - public V1TopologySelectorTerm buildAllowedTopology(Integer index) { return this.allowedTopologies.get(index).build(); } - public V1TopologySelectorTerm buildFirstAllowedTopology() { return this.allowedTopologies.get(0).build(); } - public V1TopologySelectorTerm buildLastAllowedTopology() { return this.allowedTopologies.get(allowedTopologies.size() - 1).build(); } - - public V1TopologySelectorTerm buildMatchingAllowedTopology( - Predicate predicate) { - for (V1TopologySelectorTermBuilder item : allowedTopologies) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1TopologySelectorTerm buildMatchingAllowedTopology(Predicate predicate) { + for (V1TopologySelectorTermBuilder item: allowedTopologies) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingAllowedTopology(Predicate predicate) { - for (V1TopologySelectorTermBuilder item : allowedTopologies) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1TopologySelectorTermBuilder item: allowedTopologies) { if(predicate.test(item)){ return true;} } return false; } - public A withAllowedTopologies(List allowedTopologies) { - if (this.allowedTopologies != null) { - _visitables.get("allowedTopologies").removeAll(this.allowedTopologies); - } - if (allowedTopologies != null) { - this.allowedTopologies = new ArrayList(); - for (V1TopologySelectorTerm item : allowedTopologies) { - this.addToAllowedTopologies(item); - } - } else { - this.allowedTopologies = null; - } - return (A) this; + if (this.allowedTopologies != null) { _visitables.get("allowedTopologies").removeAll(this.allowedTopologies);} + if (allowedTopologies != null) {this.allowedTopologies = new ArrayList(); for (V1TopologySelectorTerm item : allowedTopologies){this.addToAllowedTopologies(item);}} else { this.allowedTopologies = null;} return (A) this; } - - public A withAllowedTopologies( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies) { - if (this.allowedTopologies != null) { - this.allowedTopologies.clear(); - } - if (allowedTopologies != null) { - for (V1TopologySelectorTerm item : allowedTopologies) { - this.addToAllowedTopologies(item); - } - } - return (A) this; + public A withAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies) { + if (this.allowedTopologies != null) {this.allowedTopologies.clear();} + if (allowedTopologies != null) {for (V1TopologySelectorTerm item :allowedTopologies){ this.addToAllowedTopologies(item);}} return (A) this; } - public Boolean hasAllowedTopologies() { return allowedTopologies != null && !allowedTopologies.isEmpty(); } - public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopology() { return new V1StorageClassFluentImpl.AllowedTopologiesNestedImpl(); } - - public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopologyLike( - V1TopologySelectorTerm item) { + public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item) { return new V1StorageClassFluentImpl.AllowedTopologiesNestedImpl(-1, item); } - - public V1StorageClassFluent.AllowedTopologiesNested setNewAllowedTopologyLike( - Integer index, V1TopologySelectorTerm item) { + public V1StorageClassFluent.AllowedTopologiesNested setNewAllowedTopologyLike(Integer index,V1TopologySelectorTerm item) { return new V1StorageClassFluentImpl.AllowedTopologiesNestedImpl(index, item); } - public V1StorageClassFluent.AllowedTopologiesNested editAllowedTopology(Integer index) { - if (allowedTopologies.size() <= index) - throw new RuntimeException("Can't edit allowedTopologies. Index exceeds size."); + if (allowedTopologies.size() <= index) throw new RuntimeException("Can't edit allowedTopologies. Index exceeds size."); return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); } - public V1StorageClassFluent.AllowedTopologiesNested editFirstAllowedTopology() { - if (allowedTopologies.size() == 0) - throw new RuntimeException("Can't edit first allowedTopologies. The list is empty."); + if (allowedTopologies.size() == 0) throw new RuntimeException("Can't edit first allowedTopologies. The list is empty."); return setNewAllowedTopologyLike(0, buildAllowedTopology(0)); } - public V1StorageClassFluent.AllowedTopologiesNested editLastAllowedTopology() { int index = allowedTopologies.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last allowedTopologies. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last allowedTopologies. The list is empty."); return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); } - - public V1StorageClassFluent.AllowedTopologiesNested editMatchingAllowedTopology( - Predicate predicate) { + public V1StorageClassFluent.AllowedTopologiesNested editMatchingAllowedTopology(Predicate predicate) { int index = -1; - for (int i = 0; i < allowedTopologies.size(); i++) { - if (predicate.test(allowedTopologies.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching allowedTopologies. No match found."); + for (int i=0;i withNewMetadata() { return new V1StorageClassFluentImpl.MetadataNestedImpl(); } - public V1StorageClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1StorageClassFluentImpl.MetadataNestedImpl(item); } - public V1StorageClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1StorageClassFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1StorageClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToMountOptions(Integer index, String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } + public A addToMountOptions(Integer index,String item) { + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} this.mountOptions.add(index, item); - return (A) this; + return (A)this; } - - public A setToMountOptions(Integer index, String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - this.mountOptions.set(index, item); - return (A) this; + public A setToMountOptions(Integer index,String item) { + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + this.mountOptions.set(index, item); return (A)this; } - public A addToMountOptions(java.lang.String... items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + for (String item : items) {this.mountOptions.add(item);} return (A)this; } - public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + for (String item : items) {this.mountOptions.add(item);} return (A)this; } - public A removeFromMountOptions(java.lang.String... items) { - for (String item : items) { - if (this.mountOptions != null) { - this.mountOptions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.mountOptions!= null){ this.mountOptions.remove(item);}} return (A)this; } - public A removeAllFromMountOptions(Collection items) { - for (String item : items) { - if (this.mountOptions != null) { - this.mountOptions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.mountOptions!= null){ this.mountOptions.remove(item);}} return (A)this; } - public List getMountOptions() { return this.mountOptions; } - public String getMountOption(Integer index) { return this.mountOptions.get(index); } - public String getFirstMountOption() { return this.mountOptions.get(0); } - public String getLastMountOption() { return this.mountOptions.get(mountOptions.size() - 1); } - public String getMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: mountOptions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: mountOptions) { if(predicate.test(item)){ return true;} } return false; } - public A withMountOptions(List mountOptions) { - if (mountOptions != null) { - this.mountOptions = new ArrayList(); - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } else { - this.mountOptions = null; - } - return (A) this; + if (mountOptions != null) {this.mountOptions = new ArrayList(); for (String item : mountOptions){this.addToMountOptions(item);}} else { this.mountOptions = null;} return (A) this; } - public A withMountOptions(java.lang.String... mountOptions) { - if (this.mountOptions != null) { - this.mountOptions.clear(); - } - if (mountOptions != null) { - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } - return (A) this; + if (this.mountOptions != null) {this.mountOptions.clear();} + if (mountOptions != null) {for (String item :mountOptions){ this.addToMountOptions(item);}} return (A) this; } - public Boolean hasMountOptions() { return mountOptions != null && !mountOptions.isEmpty(); } - - public A addToParameters(String key, String value) { - if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.parameters.put(key, value); - } - return (A) this; + public A addToParameters(String key,String value) { + if(this.parameters == null && key != null && value != null) { this.parameters = new LinkedHashMap(); } + if(key != null && value != null) {this.parameters.put(key, value);} return (A)this; } - - public A addToParameters(Map map) { - if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); - } - if (map != null) { - this.parameters.putAll(map); - } - return (A) this; + public A addToParameters(Map map) { + if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); } + if(map != null) { this.parameters.putAll(map);} return (A)this; } - public A removeFromParameters(String key) { - if (this.parameters == null) { - return (A) this; - } - if (key != null && this.parameters != null) { - this.parameters.remove(key); - } - return (A) this; + if(this.parameters == null) { return (A) this; } + if(key != null && this.parameters != null) {this.parameters.remove(key);} return (A)this; } - - public A removeFromParameters(Map map) { - if (this.parameters == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.parameters != null) { - this.parameters.remove(key); - } - } - } - return (A) this; + public A removeFromParameters(Map map) { + if(this.parameters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.parameters != null){this.parameters.remove(key);}}} return (A)this; } - - public Map getParameters() { + public Map getParameters() { return this.parameters; } - - public A withParameters(Map parameters) { - if (parameters == null) { - this.parameters = null; - } else { - this.parameters = new LinkedHashMap(parameters); - } - return (A) this; + public A withParameters(Map parameters) { + if (parameters == null) { this.parameters = null;} else {this.parameters = new LinkedHashMap(parameters);} return (A) this; } - public Boolean hasParameters() { return this.parameters != null; } - public String getProvisioner() { return this.provisioner; } - public A withProvisioner(String provisioner) { - this.provisioner = provisioner; - return (A) this; + this.provisioner=provisioner; return (A) this; } - public Boolean hasProvisioner() { return this.provisioner != null; } - public String getReclaimPolicy() { return this.reclaimPolicy; } - public A withReclaimPolicy(String reclaimPolicy) { - this.reclaimPolicy = reclaimPolicy; - return (A) this; + this.reclaimPolicy=reclaimPolicy; return (A) this; } - public Boolean hasReclaimPolicy() { return this.reclaimPolicy != null; } - public String getVolumeBindingMode() { return this.volumeBindingMode; } - public A withVolumeBindingMode(String volumeBindingMode) { - this.volumeBindingMode = volumeBindingMode; - return (A) this; + this.volumeBindingMode=volumeBindingMode; return (A) this; } - public Boolean hasVolumeBindingMode() { return this.volumeBindingMode != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StorageClassFluentImpl that = (V1StorageClassFluentImpl) o; - if (allowVolumeExpansion != null - ? !allowVolumeExpansion.equals(that.allowVolumeExpansion) - : that.allowVolumeExpansion != null) return false; - if (allowedTopologies != null - ? !allowedTopologies.equals(that.allowedTopologies) - : that.allowedTopologies != null) return false; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (mountOptions != null ? !mountOptions.equals(that.mountOptions) : that.mountOptions != null) - return false; - if (parameters != null ? !parameters.equals(that.parameters) : that.parameters != null) - return false; - if (provisioner != null ? !provisioner.equals(that.provisioner) : that.provisioner != null) - return false; - if (reclaimPolicy != null - ? !reclaimPolicy.equals(that.reclaimPolicy) - : that.reclaimPolicy != null) return false; - if (volumeBindingMode != null - ? !volumeBindingMode.equals(that.volumeBindingMode) - : that.volumeBindingMode != null) return false; + if (allowVolumeExpansion != null ? !allowVolumeExpansion.equals(that.allowVolumeExpansion) :that.allowVolumeExpansion != null) return false; + if (allowedTopologies != null ? !allowedTopologies.equals(that.allowedTopologies) :that.allowedTopologies != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (mountOptions != null ? !mountOptions.equals(that.mountOptions) :that.mountOptions != null) return false; + if (parameters != null ? !parameters.equals(that.parameters) :that.parameters != null) return false; + if (provisioner != null ? !provisioner.equals(that.provisioner) :that.provisioner != null) return false; + if (reclaimPolicy != null ? !reclaimPolicy.equals(that.reclaimPolicy) :that.reclaimPolicy != null) return false; + if (volumeBindingMode != null ? !volumeBindingMode.equals(that.volumeBindingMode) :that.volumeBindingMode != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - allowVolumeExpansion, - allowedTopologies, - apiVersion, - kind, - metadata, - mountOptions, - parameters, - provisioner, - reclaimPolicy, - volumeBindingMode, - super.hashCode()); + return java.util.Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowVolumeExpansion != null) { - sb.append("allowVolumeExpansion:"); - sb.append(allowVolumeExpansion + ","); - } - if (allowedTopologies != null && !allowedTopologies.isEmpty()) { - sb.append("allowedTopologies:"); - sb.append(allowedTopologies + ","); - } - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (mountOptions != null && !mountOptions.isEmpty()) { - sb.append("mountOptions:"); - sb.append(mountOptions + ","); - } - if (parameters != null && !parameters.isEmpty()) { - sb.append("parameters:"); - sb.append(parameters + ","); - } - if (provisioner != null) { - sb.append("provisioner:"); - sb.append(provisioner + ","); - } - if (reclaimPolicy != null) { - sb.append("reclaimPolicy:"); - sb.append(reclaimPolicy + ","); - } - if (volumeBindingMode != null) { - sb.append("volumeBindingMode:"); - sb.append(volumeBindingMode); - } + if (allowVolumeExpansion != null) { sb.append("allowVolumeExpansion:"); sb.append(allowVolumeExpansion + ","); } + if (allowedTopologies != null && !allowedTopologies.isEmpty()) { sb.append("allowedTopologies:"); sb.append(allowedTopologies + ","); } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); } + if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters + ","); } + if (provisioner != null) { sb.append("provisioner:"); sb.append(provisioner + ","); } + if (reclaimPolicy != null) { sb.append("reclaimPolicy:"); sb.append(reclaimPolicy + ","); } + if (volumeBindingMode != null) { sb.append("volumeBindingMode:"); sb.append(volumeBindingMode); } sb.append("}"); return sb.toString(); } - public A withAllowVolumeExpansion() { return withAllowVolumeExpansion(true); } - - class AllowedTopologiesNestedImpl - extends V1TopologySelectorTermFluentImpl> - implements V1StorageClassFluent.AllowedTopologiesNested, Nested { - AllowedTopologiesNestedImpl(Integer index, V1TopologySelectorTerm item) { + class AllowedTopologiesNestedImpl extends V1TopologySelectorTermFluentImpl> implements V1StorageClassFluent.AllowedTopologiesNested,Nested{ + AllowedTopologiesNestedImpl(Integer index,V1TopologySelectorTerm item) { this.index = index; this.builder = new V1TopologySelectorTermBuilder(this, item); } - AllowedTopologiesNestedImpl() { this.index = -1; this.builder = new V1TopologySelectorTermBuilder(this); } - V1TopologySelectorTermBuilder builder; Integer index; - public N and() { - return (N) V1StorageClassFluentImpl.this.setToAllowedTopologies(index, builder.build()); + return (N) V1StorageClassFluentImpl.this.setToAllowedTopologies(index,builder.build()); } - public N endAllowedTopology() { return and(); } + } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1StorageClassFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1StorageClassFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1StorageClassFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java index 5565d0ae4b..4a23f12adb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StorageClassListBuilder - extends V1StorageClassListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StorageClassListBuilder extends V1StorageClassListFluentImpl implements VisitableBuilder{ public V1StorageClassListBuilder() { this(false); } - public V1StorageClassListBuilder(Boolean validationEnabled) { this(new V1StorageClassList(), validationEnabled); } - public V1StorageClassListBuilder(V1StorageClassListFluent fluent) { this(fluent, false); } - - public V1StorageClassListBuilder(V1StorageClassListFluent fluent, Boolean validationEnabled) { + public V1StorageClassListBuilder(V1StorageClassListFluent fluent,Boolean validationEnabled) { this(fluent, new V1StorageClassList(), validationEnabled); } - - public V1StorageClassListBuilder( - V1StorageClassListFluent fluent, V1StorageClassList instance) { + public V1StorageClassListBuilder(V1StorageClassListFluent fluent,V1StorageClassList instance) { this(fluent, instance, false); } - - public V1StorageClassListBuilder( - V1StorageClassListFluent fluent, V1StorageClassList instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1StorageClassListBuilder(V1StorageClassListFluent fluent,V1StorageClassList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -49,15 +28,13 @@ public V1StorageClassListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StorageClassListBuilder(V1StorageClassList instance) { - this(instance, false); + this(instance,false); } - - public V1StorageClassListBuilder(V1StorageClassList instance, Boolean validationEnabled) { - this.fluent = this; + public V1StorageClassListBuilder(V1StorageClassList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -66,12 +43,10 @@ public V1StorageClassListBuilder(V1StorageClassList instance, Boolean validation this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StorageClassListFluent fluent; Boolean validationEnabled; - public V1StorageClassList build() { V1StorageClassList buildable = new V1StorageClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -80,4 +55,5 @@ public V1StorageClassList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java index 768fc51c67..bf8d05a61d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java @@ -1,127 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1StorageClassListFluent> extends Fluent { + /** + * Generated + */ +public interface V1StorageClassListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1StorageClass item); - - public A setToItems(Integer index, V1StorageClass item); - + public A addToItems(Integer index,V1StorageClass item); + public A setToItems(Integer index,V1StorageClass item); public A addToItems(io.kubernetes.client.openapi.models.V1StorageClass... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1StorageClass... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1StorageClass buildItem(Integer index); - public V1StorageClass buildFirstItem(); - public V1StorageClass buildLastItem(); - public V1StorageClass buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items); - public Boolean hasItems(); - public V1StorageClassListFluent.ItemsNested addNewItem(); - public V1StorageClassListFluent.ItemsNested addNewItemLike(V1StorageClass item); - - public V1StorageClassListFluent.ItemsNested setNewItemLike(Integer index, V1StorageClass item); - + public V1StorageClassListFluent.ItemsNested setNewItemLike(Integer index,V1StorageClass item); public V1StorageClassListFluent.ItemsNested editItem(Integer index); - public V1StorageClassListFluent.ItemsNested editFirstItem(); - public V1StorageClassListFluent.ItemsNested editLastItem(); - - public V1StorageClassListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1StorageClassListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1StorageClassListFluent.MetadataNested withNewMetadata(); - public V1StorageClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1StorageClassListFluent.MetadataNested editMetadata(); - public V1StorageClassListFluent.MetadataNested editOrNewMetadata(); - public V1StorageClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1StorageClassFluent> { + public interface ItemsNested extends Nested,V1StorageClassFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java index 0700e0cf18..962f31c6a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StorageClassListFluentImpl> - extends BaseFluent implements V1StorageClassListFluent { - public V1StorageClassListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StorageClassListFluentImpl> extends BaseFluent implements V1StorageClassListFluent{ + public V1StorageClassListFluentImpl() { + } public V1StorageClassListFluentImpl(V1StorageClassList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1StorageClassListFluentImpl(V1StorageClassList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1StorageClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1StorageClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1StorageClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1StorageClass item) { + if (this.items == null) {this.items = new ArrayList();} V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,272 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1StorageClass buildItem(Integer index) { return this.items.get(index).build(); } - public V1StorageClass buildFirstItem() { return this.items.get(0).build(); } - public V1StorageClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1StorageClass buildMatchingItem(Predicate predicate) { - for (V1StorageClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1StorageClassBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1StorageClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1StorageClassBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1StorageClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1StorageClass item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1StorageClass item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1StorageClass item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1StorageClassListFluent.ItemsNested addNewItem() { return new V1StorageClassListFluentImpl.ItemsNestedImpl(); } - public V1StorageClassListFluent.ItemsNested addNewItemLike(V1StorageClass item) { return new V1StorageClassListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1StorageClassListFluent.ItemsNested setNewItemLike( - Integer index, V1StorageClass item) { + public V1StorageClassListFluent.ItemsNested setNewItemLike(Integer index,V1StorageClass item) { return new V1StorageClassListFluentImpl.ItemsNestedImpl(index, item); } - public V1StorageClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1StorageClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1StorageClassListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1StorageClassListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1StorageClassListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1StorageClassListFluentImpl.MetadataNestedImpl(); } - public V1StorageClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1StorageClassListFluentImpl.MetadataNestedImpl(item); } - public V1StorageClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1StorageClassListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1StorageClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StorageClassListFluentImpl that = (V1StorageClassListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl extends V1StorageClassFluentImpl> - implements V1StorageClassListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1StorageClass item) { + class ItemsNestedImpl extends V1StorageClassFluentImpl> implements V1StorageClassListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1StorageClass item) { this.index = index; this.builder = new V1StorageClassBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1StorageClassBuilder(this); } - V1StorageClassBuilder builder; Integer index; - public N and() { - return (N) V1StorageClassListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1StorageClassListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1StorageClassListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1StorageClassListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1StorageClassListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java index 05fade4c95..f4f02b842a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StorageOSPersistentVolumeSourceBuilder - extends V1StorageOSPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1StorageOSPersistentVolumeSource, V1StorageOSPersistentVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1StorageOSPersistentVolumeSourceBuilder extends V1StorageOSPersistentVolumeSourceFluentImpl implements VisitableBuilder{ public V1StorageOSPersistentVolumeSourceBuilder() { this(false); } - public V1StorageOSPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1StorageOSPersistentVolumeSource(), validationEnabled); } - - public V1StorageOSPersistentVolumeSourceBuilder( - V1StorageOSPersistentVolumeSourceFluent fluent) { + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent) { this(fluent, false); } - - public V1StorageOSPersistentVolumeSourceBuilder( - V1StorageOSPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1StorageOSPersistentVolumeSource(), validationEnabled); } - - public V1StorageOSPersistentVolumeSourceBuilder( - V1StorageOSPersistentVolumeSourceFluent fluent, - V1StorageOSPersistentVolumeSource instance) { + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,V1StorageOSPersistentVolumeSource instance) { this(fluent, instance, false); } - - public V1StorageOSPersistentVolumeSourceBuilder( - V1StorageOSPersistentVolumeSourceFluent fluent, - V1StorageOSPersistentVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,V1StorageOSPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withReadOnly(instance.getReadOnly()); @@ -57,16 +30,13 @@ public V1StorageOSPersistentVolumeSourceBuilder( fluent.withVolumeNamespace(instance.getVolumeNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1StorageOSPersistentVolumeSourceBuilder( - V1StorageOSPersistentVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -77,12 +47,10 @@ public V1StorageOSPersistentVolumeSourceBuilder( this.withVolumeNamespace(instance.getVolumeNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StorageOSPersistentVolumeSourceFluent fluent; Boolean validationEnabled; - public V1StorageOSPersistentVolumeSource build() { V1StorageOSPersistentVolumeSource buildable = new V1StorageOSPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -92,4 +60,5 @@ public V1StorageOSPersistentVolumeSource build() { buildable.setVolumeNamespace(fluent.getVolumeNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java index 651715217c..6448161ea9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java @@ -1,81 +1,47 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1StorageOSPersistentVolumeSourceFluent< - A extends V1StorageOSPersistentVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1StorageOSPersistentVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getSecretRef(); - public V1ObjectReference buildSecretRef(); - public A withSecretRef(V1ObjectReference secretRef); - public Boolean hasSecretRef(); - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1ObjectReference item); - + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1ObjectReference item); public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1ObjectReference item); - + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1ObjectReference item); public String getVolumeName(); - public A withVolumeName(String volumeName); - public Boolean hasVolumeName(); - public String getVolumeNamespace(); - public A withVolumeNamespace(String volumeNamespace); - public Boolean hasVolumeNamespace(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1ObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1ObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java index 367a063949..199351cc63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StorageOSPersistentVolumeSourceFluentImpl< - A extends V1StorageOSPersistentVolumeSourceFluent> - extends BaseFluent implements V1StorageOSPersistentVolumeSourceFluent { - public V1StorageOSPersistentVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StorageOSPersistentVolumeSourceFluentImpl> extends BaseFluent implements V1StorageOSPersistentVolumeSourceFluent{ + public V1StorageOSPersistentVolumeSourceFluentImpl() { + } public V1StorageOSPersistentVolumeSourceFluentImpl(V1StorageOSPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -32,192 +25,126 @@ public V1StorageOSPersistentVolumeSourceFluentImpl(V1StorageOSPersistentVolumeSo this.withVolumeName(instance.getVolumeName()); this.withVolumeNamespace(instance.getVolumeNamespace()); - } + } private String fsType; private Boolean readOnly; private V1ObjectReferenceBuilder secretRef; private String volumeName; private String volumeNamespace; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1ObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1ObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1ObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1ObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1ObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1StorageOSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1ObjectReference item) { + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1ObjectReference item) { return new V1StorageOSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1ObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1ObjectReferenceBuilder().build()); } - - public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1ObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1ObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getVolumeName() { return this.volumeName; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + this.volumeName=volumeName; return (A) this; } - public Boolean hasVolumeName() { return this.volumeName != null; } - public String getVolumeNamespace() { return this.volumeNamespace; } - public A withVolumeNamespace(String volumeNamespace) { - this.volumeNamespace = volumeNamespace; - return (A) this; + this.volumeNamespace=volumeNamespace; return (A) this; } - public Boolean hasVolumeNamespace() { return this.volumeNamespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1StorageOSPersistentVolumeSourceFluentImpl that = - (V1StorageOSPersistentVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (volumeName != null ? !volumeName.equals(that.volumeName) : that.volumeName != null) - return false; - if (volumeNamespace != null - ? !volumeNamespace.equals(that.volumeNamespace) - : that.volumeNamespace != null) return false; + V1StorageOSPersistentVolumeSourceFluentImpl that = (V1StorageOSPersistentVolumeSourceFluentImpl) o; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (volumeName != null ? !volumeName.equals(that.volumeName) :that.volumeName != null) return false; + if (volumeNamespace != null ? !volumeNamespace.equals(that.volumeNamespace) :that.volumeNamespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); + return java.util.Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (volumeName != null) { - sb.append("volumeName:"); - sb.append(volumeName + ","); - } - if (volumeNamespace != null) { - sb.append("volumeNamespace:"); - sb.append(volumeNamespace); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName + ","); } + if (volumeNamespace != null) { sb.append("volumeNamespace:"); sb.append(volumeNamespace); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1ObjectReferenceFluentImpl< - V1StorageOSPersistentVolumeSourceFluent.SecretRefNested> - implements V1StorageOSPersistentVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1ObjectReferenceFluentImpl> implements V1StorageOSPersistentVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1ObjectReferenceBuilder(this); } - V1ObjectReferenceBuilder builder; - public N and() { return (N) V1StorageOSPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java index ec0bdd1fef..12eb741be0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1StorageOSVolumeSourceBuilder - extends V1StorageOSVolumeSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1StorageOSVolumeSourceBuilder extends V1StorageOSVolumeSourceFluentImpl implements VisitableBuilder{ public V1StorageOSVolumeSourceBuilder() { this(false); } - public V1StorageOSVolumeSourceBuilder(Boolean validationEnabled) { this(new V1StorageOSVolumeSource(), validationEnabled); } - public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent) { this(fluent, false); } - - public V1StorageOSVolumeSourceBuilder( - V1StorageOSVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1StorageOSVolumeSource(), validationEnabled); } - - public V1StorageOSVolumeSourceBuilder( - V1StorageOSVolumeSourceFluent fluent, V1StorageOSVolumeSource instance) { + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,V1StorageOSVolumeSource instance) { this(fluent, instance, false); } - - public V1StorageOSVolumeSourceBuilder( - V1StorageOSVolumeSourceFluent fluent, - V1StorageOSVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,V1StorageOSVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withReadOnly(instance.getReadOnly()); @@ -54,16 +30,13 @@ public V1StorageOSVolumeSourceBuilder( fluent.withVolumeNamespace(instance.getVolumeNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1StorageOSVolumeSourceBuilder( - V1StorageOSVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -74,12 +47,10 @@ public V1StorageOSVolumeSourceBuilder( this.withVolumeNamespace(instance.getVolumeNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1StorageOSVolumeSourceFluent fluent; Boolean validationEnabled; - public V1StorageOSVolumeSource build() { V1StorageOSVolumeSource buildable = new V1StorageOSVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -89,4 +60,5 @@ public V1StorageOSVolumeSource build() { buildable.setVolumeNamespace(fluent.getVolumeNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java index 906900951c..e42daeb47c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java @@ -1,80 +1,47 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1StorageOSVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1StorageOSVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef(); - public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(V1LocalObjectReference secretRef); - public Boolean hasSecretRef(); - public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRef(); - - public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item); - + public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item); public V1StorageOSVolumeSourceFluent.SecretRefNested editSecretRef(); - public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - - public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item); - + public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item); public String getVolumeName(); - public A withVolumeName(String volumeName); - public Boolean hasVolumeName(); - public String getVolumeNamespace(); - public A withVolumeNamespace(String volumeNamespace); - public Boolean hasVolumeNamespace(); - public A withReadOnly(); - - public interface SecretRefNested - extends Nested, - V1LocalObjectReferenceFluent> { + public interface SecretRefNested extends Nested,V1LocalObjectReferenceFluent>{ public N and(); - public N endSecretRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java index 42d8d35caf..13f3ab7b76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1StorageOSVolumeSourceFluentImpl> - extends BaseFluent implements V1StorageOSVolumeSourceFluent { - public V1StorageOSVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1StorageOSVolumeSourceFluentImpl> extends BaseFluent implements V1StorageOSVolumeSourceFluent{ + public V1StorageOSVolumeSourceFluentImpl() { + } public V1StorageOSVolumeSourceFluentImpl(V1StorageOSVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -31,190 +25,126 @@ public V1StorageOSVolumeSourceFluentImpl(V1StorageOSVolumeSource instance) { this.withVolumeName(instance.getVolumeName()); this.withVolumeNamespace(instance.getVolumeNamespace()); - } + } private String fsType; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String volumeName; private String volumeNamespace; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - + /** * This method has been deprecated, please use method buildSecretRef instead. - * * @return The buildable object. */ @Deprecated public V1LocalObjectReference getSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + return this.secretRef!=null ?this.secretRef.build():null; } - public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - _visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - _visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + if (secretRef!=null){ this.secretRef= new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} else { this.secretRef = null; _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public Boolean hasSecretRef() { return this.secretRef != null; } - public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1StorageOSVolumeSourceFluentImpl.SecretRefNestedImpl(); } - - public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( - V1LocalObjectReference item) { + public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new V1StorageOSVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public V1StorageOSVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike( - getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new V1LocalObjectReferenceBuilder().build()); } - - public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( - V1LocalObjectReference item) { - return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); + public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item); } - public String getVolumeName() { return this.volumeName; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + this.volumeName=volumeName; return (A) this; } - public Boolean hasVolumeName() { return this.volumeName != null; } - public String getVolumeNamespace() { return this.volumeNamespace; } - public A withVolumeNamespace(String volumeNamespace) { - this.volumeNamespace = volumeNamespace; - return (A) this; + this.volumeNamespace=volumeNamespace; return (A) this; } - public Boolean hasVolumeNamespace() { return this.volumeNamespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1StorageOSVolumeSourceFluentImpl that = (V1StorageOSVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (secretRef != null ? !secretRef.equals(that.secretRef) : that.secretRef != null) - return false; - if (volumeName != null ? !volumeName.equals(that.volumeName) : that.volumeName != null) - return false; - if (volumeNamespace != null - ? !volumeNamespace.equals(that.volumeNamespace) - : that.volumeNamespace != null) return false; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false; + if (volumeName != null ? !volumeName.equals(that.volumeName) :that.volumeName != null) return false; + if (volumeNamespace != null ? !volumeNamespace.equals(that.volumeNamespace) :that.volumeNamespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); + return java.util.Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (secretRef != null) { - sb.append("secretRef:"); - sb.append(secretRef + ","); - } - if (volumeName != null) { - sb.append("volumeName:"); - sb.append(volumeName + ","); - } - if (volumeNamespace != null) { - sb.append("volumeNamespace:"); - sb.append(volumeNamespace); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } + if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName + ","); } + if (volumeNamespace != null) { sb.append("volumeNamespace:"); sb.append(volumeNamespace); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } - - class SecretRefNestedImpl - extends V1LocalObjectReferenceFluentImpl> - implements V1StorageOSVolumeSourceFluent.SecretRefNested, Nested { + class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> implements V1StorageOSVolumeSourceFluent.SecretRefNested,Nested{ SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - SecretRefNestedImpl() { this.builder = new V1LocalObjectReferenceBuilder(this); } - V1LocalObjectReferenceBuilder builder; - public N and() { return (N) V1StorageOSVolumeSourceFluentImpl.this.withSecretRef(builder.build()); } - public N endSecretRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java index 2ec8253841..38a9da640d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SubjectAccessReviewBuilder - extends V1SubjectAccessReviewFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SubjectAccessReviewBuilder extends V1SubjectAccessReviewFluentImpl implements VisitableBuilder{ public V1SubjectAccessReviewBuilder() { this(false); } - public V1SubjectAccessReviewBuilder(Boolean validationEnabled) { this(new V1SubjectAccessReview(), validationEnabled); } - public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent) { this(fluent, false); } - - public V1SubjectAccessReviewBuilder( - V1SubjectAccessReviewFluent fluent, Boolean validationEnabled) { + public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,Boolean validationEnabled) { this(fluent, new V1SubjectAccessReview(), validationEnabled); } - - public V1SubjectAccessReviewBuilder( - V1SubjectAccessReviewFluent fluent, V1SubjectAccessReview instance) { + public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,V1SubjectAccessReview instance) { this(fluent, instance, false); } - - public V1SubjectAccessReviewBuilder( - V1SubjectAccessReviewFluent fluent, - V1SubjectAccessReview instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,V1SubjectAccessReview instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,15 +30,13 @@ public V1SubjectAccessReviewBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance) { - this(instance, false); + this(instance,false); } - - public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance, Boolean validationEnabled) { - this.fluent = this; + public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -73,12 +47,10 @@ public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance, Boolean vali this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SubjectAccessReviewFluent fluent; Boolean validationEnabled; - public V1SubjectAccessReview build() { V1SubjectAccessReview buildable = new V1SubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +60,5 @@ public V1SubjectAccessReview build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java index c04c3be9a6..4f13b8315d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java @@ -1,130 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1SubjectAccessReviewFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1SubjectAccessReviewFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1SubjectAccessReviewFluent.MetadataNested withNewMetadata(); - public V1SubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1SubjectAccessReviewFluent.MetadataNested editMetadata(); - public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadata(); - public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewSpec getSpec(); - public V1SubjectAccessReviewSpec buildSpec(); - public A withSpec(V1SubjectAccessReviewSpec spec); - public Boolean hasSpec(); - public V1SubjectAccessReviewFluent.SpecNested withNewSpec(); - public V1SubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item); - public V1SubjectAccessReviewFluent.SpecNested editSpec(); - public V1SubjectAccessReviewFluent.SpecNested editOrNewSpec(); - - public V1SubjectAccessReviewFluent.SpecNested editOrNewSpecLike( - V1SubjectAccessReviewSpec item); - + public V1SubjectAccessReviewFluent.SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewStatus getStatus(); - public V1SubjectAccessReviewStatus buildStatus(); - public A withStatus(V1SubjectAccessReviewStatus status); - public Boolean hasStatus(); - public V1SubjectAccessReviewFluent.StatusNested withNewStatus(); - - public V1SubjectAccessReviewFluent.StatusNested withNewStatusLike( - V1SubjectAccessReviewStatus item); - + public V1SubjectAccessReviewFluent.StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item); public V1SubjectAccessReviewFluent.StatusNested editStatus(); - public V1SubjectAccessReviewFluent.StatusNested editOrNewStatus(); - - public V1SubjectAccessReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectAccessReviewStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1SubjectAccessReviewFluent.StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1SubjectAccessReviewSpecFluent> { + public interface SpecNested extends Nested,V1SubjectAccessReviewSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1SubjectAccessReviewStatusFluent> { + public interface StatusNested extends Nested,V1SubjectAccessReviewStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java index 364c5505ad..330aa04c47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SubjectAccessReviewFluentImpl> - extends BaseFluent implements V1SubjectAccessReviewFluent { - public V1SubjectAccessReviewFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SubjectAccessReviewFluentImpl> extends BaseFluent implements V1SubjectAccessReviewFluent{ + public V1SubjectAccessReviewFluentImpl() { + } public V1SubjectAccessReviewFluentImpl(V1SubjectAccessReview instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,303 +25,205 @@ public V1SubjectAccessReviewFluentImpl(V1SubjectAccessReview instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1SubjectAccessReviewFluent.MetadataNested withNewMetadata() { return new V1SubjectAccessReviewFluentImpl.MetadataNestedImpl(); } - public V1SubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SubjectAccessReviewFluentImpl.MetadataNestedImpl(item); } - public V1SubjectAccessReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1SubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1SubjectAccessReviewSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1SubjectAccessReviewSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1SubjectAccessReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1SubjectAccessReviewFluent.SpecNested withNewSpec() { return new V1SubjectAccessReviewFluentImpl.SpecNestedImpl(); } - public V1SubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { return new V1SubjectAccessReviewFluentImpl.SpecNestedImpl(item); } - public V1SubjectAccessReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1SubjectAccessReviewFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1SubjectAccessReviewSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1SubjectAccessReviewSpecBuilder().build()); } - - public V1SubjectAccessReviewFluent.SpecNested editOrNewSpecLike( - V1SubjectAccessReviewSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1SubjectAccessReviewFluent.SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1SubjectAccessReviewStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1SubjectAccessReviewStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1SubjectAccessReviewStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1SubjectAccessReviewStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1SubjectAccessReviewFluent.StatusNested withNewStatus() { return new V1SubjectAccessReviewFluentImpl.StatusNestedImpl(); } - - public V1SubjectAccessReviewFluent.StatusNested withNewStatusLike( - V1SubjectAccessReviewStatus item) { + public V1SubjectAccessReviewFluent.StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { return new V1SubjectAccessReviewFluentImpl.StatusNestedImpl(item); } - public V1SubjectAccessReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1SubjectAccessReviewFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1SubjectAccessReviewStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1SubjectAccessReviewStatusBuilder().build()); } - - public V1SubjectAccessReviewFluent.StatusNested editOrNewStatusLike( - V1SubjectAccessReviewStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1SubjectAccessReviewFluent.StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SubjectAccessReviewFluentImpl that = (V1SubjectAccessReviewFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1SubjectAccessReviewFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1SubjectAccessReviewFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1SubjectAccessReviewFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1SubjectAccessReviewSpecFluentImpl> - implements V1SubjectAccessReviewFluent.SpecNested, Nested { + class SpecNestedImpl extends V1SubjectAccessReviewSpecFluentImpl> implements V1SubjectAccessReviewFluent.SpecNested,Nested{ SpecNestedImpl(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1SubjectAccessReviewSpecBuilder(this); } - V1SubjectAccessReviewSpecBuilder builder; - public N and() { return (N) V1SubjectAccessReviewFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1SubjectAccessReviewStatusFluentImpl> - implements V1SubjectAccessReviewFluent.StatusNested, Nested { + class StatusNestedImpl extends V1SubjectAccessReviewStatusFluentImpl> implements V1SubjectAccessReviewFluent.StatusNested,Nested{ StatusNestedImpl(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1SubjectAccessReviewStatusBuilder(this); } - V1SubjectAccessReviewStatusBuilder builder; - public N and() { return (N) V1SubjectAccessReviewFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java index 16aaeab2bb..2b342d0a52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SubjectAccessReviewSpecBuilder - extends V1SubjectAccessReviewSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SubjectAccessReviewSpecBuilder extends V1SubjectAccessReviewSpecFluentImpl implements VisitableBuilder{ public V1SubjectAccessReviewSpecBuilder() { this(false); } - public V1SubjectAccessReviewSpecBuilder(Boolean validationEnabled) { this(new V1SubjectAccessReviewSpec(), validationEnabled); } - public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent) { this(fluent, false); } - - public V1SubjectAccessReviewSpecBuilder( - V1SubjectAccessReviewSpecFluent fluent, Boolean validationEnabled) { + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1SubjectAccessReviewSpec(), validationEnabled); } - - public V1SubjectAccessReviewSpecBuilder( - V1SubjectAccessReviewSpecFluent fluent, V1SubjectAccessReviewSpec instance) { + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,V1SubjectAccessReviewSpec instance) { this(fluent, instance, false); } - - public V1SubjectAccessReviewSpecBuilder( - V1SubjectAccessReviewSpecFluent fluent, - V1SubjectAccessReviewSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,V1SubjectAccessReviewSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withExtra(instance.getExtra()); fluent.withGroups(instance.getGroups()); @@ -56,16 +32,13 @@ public V1SubjectAccessReviewSpecBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpec instance) { - this(instance, false); + this(instance,false); } - - public V1SubjectAccessReviewSpecBuilder( - V1SubjectAccessReviewSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withExtra(instance.getExtra()); this.withGroups(instance.getGroups()); @@ -78,12 +51,10 @@ public V1SubjectAccessReviewSpecBuilder( this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SubjectAccessReviewSpecFluent fluent; Boolean validationEnabled; - public V1SubjectAccessReviewSpec build() { V1SubjectAccessReviewSpec buildable = new V1SubjectAccessReviewSpec(); buildable.setExtra(fluent.getExtra()); @@ -94,4 +65,5 @@ public V1SubjectAccessReviewSpec build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java index 6a63ade4ad..cf3f49ac31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java @@ -1,151 +1,89 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1SubjectAccessReviewSpecFluent> - extends Fluent { - public A addToExtra(String key, List value); - - public A addToExtra(Map> map); + /** + * Generated + */ +public interface V1SubjectAccessReviewSpecFluent> extends Fluent{ + public A addToExtra(String key,List value); + public A addToExtra(Map> map); public A removeFromExtra(String key); - - public A removeFromExtra(Map> map); - - public Map> getExtra(); - - public A withExtra(Map> extra); - + public A removeFromExtra(Map> map); + public Map> getExtra(); + public A withExtra(Map> extra); public Boolean hasExtra(); - - public A addToGroups(Integer index, String item); - - public A setToGroups(Integer index, String item); - + public A addToGroups(Integer index,String item); + public A setToGroups(Integer index,String item); public A addToGroups(java.lang.String... items); - public A addAllToGroups(Collection items); - public A removeFromGroups(java.lang.String... items); - public A removeAllFromGroups(Collection items); - public List getGroups(); - public String getGroup(Integer index); - public String getFirstGroup(); - public String getLastGroup(); - public String getMatchingGroup(Predicate predicate); - public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(List groups); - public A withGroups(java.lang.String... groups); - public Boolean hasGroups(); - + /** * This method has been deprecated, please use method buildNonResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1NonResourceAttributes getNonResourceAttributes(); - public V1NonResourceAttributes buildNonResourceAttributes(); - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes); - public Boolean hasNonResourceAttributes(); - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributes(); - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributesLike(V1NonResourceAttributes item); - + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes(); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item); public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes(); - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributes(); - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributesLike(V1NonResourceAttributes item); - + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes(); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item); + /** * This method has been deprecated, please use method buildResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1ResourceAttributes getResourceAttributes(); - public V1ResourceAttributes buildResourceAttributes(); - public A withResourceAttributes(V1ResourceAttributes resourceAttributes); - public Boolean hasResourceAttributes(); - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes(); - - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike( - V1ResourceAttributes item); - + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item); public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes(); - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes(); - - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested - editOrNewResourceAttributesLike(V1ResourceAttributes item); - + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item); public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); - public String getUser(); - public A withUser(String user); - public Boolean hasUser(); - - public interface NonResourceAttributesNested - extends Nested, - V1NonResourceAttributesFluent< - V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested> { + public interface NonResourceAttributesNested extends Nested,V1NonResourceAttributesFluent>{ public N and(); - public N endNonResourceAttributes(); + } - - public interface ResourceAttributesNested - extends Nested, - V1ResourceAttributesFluent> { + public interface ResourceAttributesNested extends Nested,V1ResourceAttributesFluent>{ public N and(); - public N endResourceAttributes(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java index 8ef36e42e7..a71dd8a183 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java @@ -1,32 +1,27 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SubjectAccessReviewSpecFluentImpl> - extends BaseFluent implements V1SubjectAccessReviewSpecFluent { - public V1SubjectAccessReviewSpecFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SubjectAccessReviewSpecFluentImpl> extends BaseFluent implements V1SubjectAccessReviewSpecFluent{ + public V1SubjectAccessReviewSpecFluentImpl() { + } public V1SubjectAccessReviewSpecFluentImpl(V1SubjectAccessReviewSpec instance) { this.withExtra(instance.getExtra()); @@ -39,430 +34,234 @@ public V1SubjectAccessReviewSpecFluentImpl(V1SubjectAccessReviewSpec instance) { this.withUid(instance.getUid()); this.withUser(instance.getUser()); - } - private Map> extra; + } + private Map> extra; private List groups; private V1NonResourceAttributesBuilder nonResourceAttributes; private V1ResourceAttributesBuilder resourceAttributes; private String uid; private String user; - - public A addToExtra(String key, List value) { - if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); - } - if (key != null && value != null) { - this.extra.put(key, value); - } - return (A) this; + public A addToExtra(String key,List value) { + if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } + if(key != null && value != null) {this.extra.put(key, value);} return (A)this; } - - public A addToExtra(Map> map) { - if (this.extra == null && map != null) { - this.extra = new LinkedHashMap(); - } - if (map != null) { - this.extra.putAll(map); - } - return (A) this; + public A addToExtra(Map> map) { + if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } + if(map != null) { this.extra.putAll(map);} return (A)this; } - public A removeFromExtra(String key) { - if (this.extra == null) { - return (A) this; - } - if (key != null && this.extra != null) { - this.extra.remove(key); - } - return (A) this; + if(this.extra == null) { return (A) this; } + if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; } - - public A removeFromExtra(Map> map) { - if (this.extra == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.extra != null) { - this.extra.remove(key); - } - } - } - return (A) this; + public A removeFromExtra(Map> map) { + if(this.extra == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; } - - public Map> getExtra() { + public Map> getExtra() { return this.extra; } - - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); - } - return (A) this; + public A withExtra(Map> extra) { + if (extra == null) { this.extra = null;} else {this.extra = new LinkedHashMap(extra);} return (A) this; } - public Boolean hasExtra() { return this.extra != null; } - - public A addToGroups(Integer index, String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } + public A addToGroups(Integer index,String item) { + if (this.groups == null) {this.groups = new ArrayList();} this.groups.add(index, item); - return (A) this; + return (A)this; } - - public A setToGroups(Integer index, String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - this.groups.set(index, item); - return (A) this; + public A setToGroups(Integer index,String item) { + if (this.groups == null) {this.groups = new ArrayList();} + this.groups.set(index, item); return (A)this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (String item : items) {this.groups.add(item);} return (A)this; } - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (String item : items) {this.groups.add(item);} return (A)this; } - public A removeFromGroups(java.lang.String... items) { - for (String item : items) { - if (this.groups != null) { - this.groups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.groups!= null){ this.groups.remove(item);}} return (A)this; } - public A removeAllFromGroups(Collection items) { - for (String item : items) { - if (this.groups != null) { - this.groups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.groups!= null){ this.groups.remove(item);}} return (A)this; } - public List getGroups() { return this.groups; } - public String getGroup(Integer index) { return this.groups.get(index); } - public String getFirstGroup() { return this.groups.get(0); } - public String getLastGroup() { return this.groups.get(groups.size() - 1); } - public String getMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: groups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: groups) { if(predicate.test(item)){ return true;} } return false; } - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; + if (groups != null) {this.groups = new ArrayList(); for (String item : groups){this.addToGroups(item);}} else { this.groups = null;} return (A) this; } - public A withGroups(java.lang.String... groups) { - if (this.groups != null) { - this.groups.clear(); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; + if (this.groups != null) {this.groups.clear();} + if (groups != null) {for (String item :groups){ this.addToGroups(item);}} return (A) this; } - public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } - + /** * This method has been deprecated, please use method buildNonResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1NonResourceAttributes getNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; + return this.nonResourceAttributes!=null ?this.nonResourceAttributes.build():null; } - public V1NonResourceAttributes buildNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; + return this.nonResourceAttributes!=null ?this.nonResourceAttributes.build():null; } - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - if (nonResourceAttributes != null) { - this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); - _visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); - } else { - this.nonResourceAttributes = null; - _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - } - return (A) this; + if (nonResourceAttributes!=null){ this.nonResourceAttributes= new V1NonResourceAttributesBuilder(nonResourceAttributes); _visitables.get("nonResourceAttributes").add(this.nonResourceAttributes);} else { this.nonResourceAttributes = null; _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); } return (A) this; } - public Boolean hasNonResourceAttributes() { return this.nonResourceAttributes != null; } - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributes() { + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes() { return new V1SubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(); } - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - withNewNonResourceAttributesLike(V1NonResourceAttributes item) { + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { return new V1SubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(item); } - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - editNonResourceAttributes() { + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes() { return withNewNonResourceAttributesLike(getNonResourceAttributes()); } - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributes() { - return withNewNonResourceAttributesLike( - getNonResourceAttributes() != null - ? getNonResourceAttributes() - : new V1NonResourceAttributesBuilder().build()); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes() { + return withNewNonResourceAttributesLike(getNonResourceAttributes() != null ? getNonResourceAttributes(): new V1NonResourceAttributesBuilder().build()); } - - public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested - editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return withNewNonResourceAttributesLike( - getNonResourceAttributes() != null ? getNonResourceAttributes() : item); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return withNewNonResourceAttributesLike(getNonResourceAttributes() != null ? getNonResourceAttributes(): item); } - + /** * This method has been deprecated, please use method buildResourceAttributes instead. - * * @return The buildable object. */ @Deprecated public V1ResourceAttributes getResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; + return this.resourceAttributes!=null ?this.resourceAttributes.build():null; } - public V1ResourceAttributes buildResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; + return this.resourceAttributes!=null ?this.resourceAttributes.build():null; } - public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { _visitables.get("resourceAttributes").remove(this.resourceAttributes); - if (resourceAttributes != null) { - this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); - _visitables.get("resourceAttributes").add(this.resourceAttributes); - } else { - this.resourceAttributes = null; - _visitables.get("resourceAttributes").remove(this.resourceAttributes); - } - return (A) this; + if (resourceAttributes!=null){ this.resourceAttributes= new V1ResourceAttributesBuilder(resourceAttributes); _visitables.get("resourceAttributes").add(this.resourceAttributes);} else { this.resourceAttributes = null; _visitables.get("resourceAttributes").remove(this.resourceAttributes); } return (A) this; } - public Boolean hasResourceAttributes() { return this.resourceAttributes != null; } - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes() { return new V1SubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(); } - - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike( - V1ResourceAttributes item) { + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { return new V1SubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(item); } - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes() { return withNewResourceAttributesLike(getResourceAttributes()); } - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes() { - return withNewResourceAttributesLike( - getResourceAttributes() != null - ? getResourceAttributes() - : new V1ResourceAttributesBuilder().build()); + return withNewResourceAttributesLike(getResourceAttributes() != null ? getResourceAttributes(): new V1ResourceAttributesBuilder().build()); } - - public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested - editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return withNewResourceAttributesLike( - getResourceAttributes() != null ? getResourceAttributes() : item); + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { + return withNewResourceAttributesLike(getResourceAttributes() != null ? getResourceAttributes(): item); } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public String getUser() { return this.user; } - public A withUser(String user) { - this.user = user; - return (A) this; + this.user=user; return (A) this; } - public Boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SubjectAccessReviewSpecFluentImpl that = (V1SubjectAccessReviewSpecFluentImpl) o; - if (extra != null ? !extra.equals(that.extra) : that.extra != null) return false; - if (groups != null ? !groups.equals(that.groups) : that.groups != null) return false; - if (nonResourceAttributes != null - ? !nonResourceAttributes.equals(that.nonResourceAttributes) - : that.nonResourceAttributes != null) return false; - if (resourceAttributes != null - ? !resourceAttributes.equals(that.resourceAttributes) - : that.resourceAttributes != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (extra != null ? !extra.equals(that.extra) :that.extra != null) return false; + if (groups != null ? !groups.equals(that.groups) :that.groups != null) return false; + if (nonResourceAttributes != null ? !nonResourceAttributes.equals(that.nonResourceAttributes) :that.nonResourceAttributes != null) return false; + if (resourceAttributes != null ? !resourceAttributes.equals(that.resourceAttributes) :that.resourceAttributes != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - extra, groups, nonResourceAttributes, resourceAttributes, uid, user, super.hashCode()); + return java.util.Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (extra != null && !extra.isEmpty()) { - sb.append("extra:"); - sb.append(extra + ","); - } - if (groups != null && !groups.isEmpty()) { - sb.append("groups:"); - sb.append(groups + ","); - } - if (nonResourceAttributes != null) { - sb.append("nonResourceAttributes:"); - sb.append(nonResourceAttributes + ","); - } - if (resourceAttributes != null) { - sb.append("resourceAttributes:"); - sb.append(resourceAttributes + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } + if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } + if (nonResourceAttributes != null) { sb.append("nonResourceAttributes:"); sb.append(nonResourceAttributes + ","); } + if (resourceAttributes != null) { sb.append("resourceAttributes:"); sb.append(resourceAttributes + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - - class NonResourceAttributesNestedImpl - extends V1NonResourceAttributesFluentImpl< - V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested> - implements V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested, Nested { + class NonResourceAttributesNestedImpl extends V1NonResourceAttributesFluentImpl> implements V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested,Nested{ NonResourceAttributesNestedImpl(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } - NonResourceAttributesNestedImpl() { this.builder = new V1NonResourceAttributesBuilder(this); } - V1NonResourceAttributesBuilder builder; - public N and() { - return (N) - V1SubjectAccessReviewSpecFluentImpl.this.withNonResourceAttributes(builder.build()); + return (N) V1SubjectAccessReviewSpecFluentImpl.this.withNonResourceAttributes(builder.build()); } - public N endNonResourceAttributes() { return and(); } + } - - class ResourceAttributesNestedImpl - extends V1ResourceAttributesFluentImpl< - V1SubjectAccessReviewSpecFluent.ResourceAttributesNested> - implements V1SubjectAccessReviewSpecFluent.ResourceAttributesNested, Nested { + class ResourceAttributesNestedImpl extends V1ResourceAttributesFluentImpl> implements V1SubjectAccessReviewSpecFluent.ResourceAttributesNested,Nested{ ResourceAttributesNestedImpl(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } - ResourceAttributesNestedImpl() { this.builder = new V1ResourceAttributesBuilder(this); } - V1ResourceAttributesBuilder builder; - public N and() { return (N) V1SubjectAccessReviewSpecFluentImpl.this.withResourceAttributes(builder.build()); } - public N endResourceAttributes() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java index ed82ee4580..a89f26d18f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SubjectAccessReviewStatusBuilder - extends V1SubjectAccessReviewStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SubjectAccessReviewStatusBuilder extends V1SubjectAccessReviewStatusFluentImpl implements VisitableBuilder{ public V1SubjectAccessReviewStatusBuilder() { this(false); } - public V1SubjectAccessReviewStatusBuilder(Boolean validationEnabled) { this(new V1SubjectAccessReviewStatus(), validationEnabled); } - public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent) { this(fluent, false); } - - public V1SubjectAccessReviewStatusBuilder( - V1SubjectAccessReviewStatusFluent fluent, Boolean validationEnabled) { + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1SubjectAccessReviewStatus(), validationEnabled); } - - public V1SubjectAccessReviewStatusBuilder( - V1SubjectAccessReviewStatusFluent fluent, V1SubjectAccessReviewStatus instance) { + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,V1SubjectAccessReviewStatus instance) { this(fluent, instance, false); } - - public V1SubjectAccessReviewStatusBuilder( - V1SubjectAccessReviewStatusFluent fluent, - V1SubjectAccessReviewStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,V1SubjectAccessReviewStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAllowed(instance.getAllowed()); fluent.withDenied(instance.getDenied()); @@ -52,16 +28,13 @@ public V1SubjectAccessReviewStatusBuilder( fluent.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatus instance) { - this(instance, false); + this(instance,false); } - - public V1SubjectAccessReviewStatusBuilder( - V1SubjectAccessReviewStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAllowed(instance.getAllowed()); this.withDenied(instance.getDenied()); @@ -70,12 +43,10 @@ public V1SubjectAccessReviewStatusBuilder( this.withReason(instance.getReason()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SubjectAccessReviewStatusFluent fluent; Boolean validationEnabled; - public V1SubjectAccessReviewStatus build() { V1SubjectAccessReviewStatus buildable = new V1SubjectAccessReviewStatus(); buildable.setAllowed(fluent.getAllowed()); @@ -84,4 +55,5 @@ public V1SubjectAccessReviewStatus build() { buildable.setReason(fluent.getReason()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java index 35ece48882..fb056e4352 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java @@ -1,47 +1,26 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SubjectAccessReviewStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1SubjectAccessReviewStatusFluent> extends Fluent{ public Boolean getAllowed(); - public A withAllowed(Boolean allowed); - public Boolean hasAllowed(); - public Boolean getDenied(); - public A withDenied(Boolean denied); - public Boolean hasDenied(); - public String getEvaluationError(); - public A withEvaluationError(String evaluationError); - public Boolean hasEvaluationError(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public A withAllowed(); - public A withDenied(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java index 4133fd8475..b843a2ee82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SubjectAccessReviewStatusFluentImpl> - extends BaseFluent implements V1SubjectAccessReviewStatusFluent { - public V1SubjectAccessReviewStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SubjectAccessReviewStatusFluentImpl> extends BaseFluent implements V1SubjectAccessReviewStatusFluent{ + public V1SubjectAccessReviewStatusFluentImpl() { + } public V1SubjectAccessReviewStatusFluentImpl(V1SubjectAccessReviewStatus instance) { this.withAllowed(instance.getAllowed()); @@ -28,110 +21,76 @@ public V1SubjectAccessReviewStatusFluentImpl(V1SubjectAccessReviewStatus instanc this.withEvaluationError(instance.getEvaluationError()); this.withReason(instance.getReason()); - } + } private Boolean allowed; private Boolean denied; private String evaluationError; private String reason; - public Boolean getAllowed() { return this.allowed; } - public A withAllowed(Boolean allowed) { - this.allowed = allowed; - return (A) this; + this.allowed=allowed; return (A) this; } - public Boolean hasAllowed() { return this.allowed != null; } - public Boolean getDenied() { return this.denied; } - public A withDenied(Boolean denied) { - this.denied = denied; - return (A) this; + this.denied=denied; return (A) this; } - public Boolean hasDenied() { return this.denied != null; } - public String getEvaluationError() { return this.evaluationError; } - public A withEvaluationError(String evaluationError) { - this.evaluationError = evaluationError; - return (A) this; + this.evaluationError=evaluationError; return (A) this; } - public Boolean hasEvaluationError() { return this.evaluationError != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SubjectAccessReviewStatusFluentImpl that = (V1SubjectAccessReviewStatusFluentImpl) o; - if (allowed != null ? !allowed.equals(that.allowed) : that.allowed != null) return false; - if (denied != null ? !denied.equals(that.denied) : that.denied != null) return false; - if (evaluationError != null - ? !evaluationError.equals(that.evaluationError) - : that.evaluationError != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; + if (allowed != null ? !allowed.equals(that.allowed) :that.allowed != null) return false; + if (denied != null ? !denied.equals(that.denied) :that.denied != null) return false; + if (evaluationError != null ? !evaluationError.equals(that.evaluationError) :that.evaluationError != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(allowed, denied, evaluationError, reason, super.hashCode()); + return java.util.Objects.hash(allowed, denied, evaluationError, reason, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowed != null) { - sb.append("allowed:"); - sb.append(allowed + ","); - } - if (denied != null) { - sb.append("denied:"); - sb.append(denied + ","); - } - if (evaluationError != null) { - sb.append("evaluationError:"); - sb.append(evaluationError + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason); - } + if (allowed != null) { sb.append("allowed:"); sb.append(allowed + ","); } + if (denied != null) { sb.append("denied:"); sb.append(denied + ","); } + if (evaluationError != null) { sb.append("evaluationError:"); sb.append(evaluationError + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason); } sb.append("}"); return sb.toString(); } - public A withAllowed() { return withAllowed(true); } - public A withDenied() { return withDenied(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java index ab91b71784..72351138f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SubjectBuilder extends V1SubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SubjectBuilder extends V1SubjectFluentImpl implements VisitableBuilder{ public V1SubjectBuilder() { this(false); } - public V1SubjectBuilder(Boolean validationEnabled) { this(new V1Subject(), validationEnabled); } - public V1SubjectBuilder(V1SubjectFluent fluent) { this(fluent, false); } - - public V1SubjectBuilder(V1SubjectFluent fluent, Boolean validationEnabled) { + public V1SubjectBuilder(V1SubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1Subject(), validationEnabled); } - - public V1SubjectBuilder(V1SubjectFluent fluent, V1Subject instance) { + public V1SubjectBuilder(V1SubjectFluent fluent,V1Subject instance) { this(fluent, instance, false); } - - public V1SubjectBuilder( - V1SubjectFluent fluent, V1Subject instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SubjectBuilder(V1SubjectFluent fluent,V1Subject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1SubjectBuilder( fluent.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SubjectBuilder(V1Subject instance) { - this(instance, false); + this(instance,false); } - - public V1SubjectBuilder(V1Subject instance, Boolean validationEnabled) { - this.fluent = this; + public V1SubjectBuilder(V1Subject instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1SubjectBuilder(V1Subject instance, Boolean validationEnabled) { this.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SubjectFluent fluent; Boolean validationEnabled; - public V1Subject build() { V1Subject buildable = new V1Subject(); buildable.setApiGroup(fluent.getApiGroup()); @@ -78,4 +55,5 @@ public V1Subject build() { buildable.setNamespace(fluent.getNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java index 58769db564..6efb1b71c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java @@ -1,42 +1,24 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SubjectFluent> extends Fluent { + /** + * Generated + */ +public interface V1SubjectFluent> extends Fluent{ public String getApiGroup(); - public A withApiGroup(String apiGroup); - public Boolean hasApiGroup(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java index beaa9c6a6f..1411fdda6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SubjectFluentImpl> extends BaseFluent - implements V1SubjectFluent { - public V1SubjectFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SubjectFluentImpl> extends BaseFluent implements V1SubjectFluent{ + public V1SubjectFluentImpl() { + } public V1SubjectFluentImpl(V1Subject instance) { this.withApiGroup(instance.getApiGroup()); @@ -28,101 +21,70 @@ public V1SubjectFluentImpl(V1Subject instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - } + } private String apiGroup; private String kind; private String name; private String namespace; - public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + this.apiGroup=apiGroup; return (A) this; } - public Boolean hasApiGroup() { return this.apiGroup != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SubjectFluentImpl that = (V1SubjectFluentImpl) o; - if (apiGroup != null ? !apiGroup.equals(that.apiGroup) : that.apiGroup != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; + if (apiGroup != null ? !apiGroup.equals(that.apiGroup) :that.apiGroup != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); + return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { - sb.append("apiGroup:"); - sb.append(apiGroup + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace); - } + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java index 8fcd34a20c..bd928c275b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1SubjectRulesReviewStatusBuilder - extends V1SubjectRulesReviewStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SubjectRulesReviewStatusBuilder extends V1SubjectRulesReviewStatusFluentImpl implements VisitableBuilder{ public V1SubjectRulesReviewStatusBuilder() { this(false); } - public V1SubjectRulesReviewStatusBuilder(Boolean validationEnabled) { this(new V1SubjectRulesReviewStatus(), validationEnabled); } - public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent) { this(fluent, false); } - - public V1SubjectRulesReviewStatusBuilder( - V1SubjectRulesReviewStatusFluent fluent, Boolean validationEnabled) { + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1SubjectRulesReviewStatus(), validationEnabled); } - - public V1SubjectRulesReviewStatusBuilder( - V1SubjectRulesReviewStatusFluent fluent, V1SubjectRulesReviewStatus instance) { + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,V1SubjectRulesReviewStatus instance) { this(fluent, instance, false); } - - public V1SubjectRulesReviewStatusBuilder( - V1SubjectRulesReviewStatusFluent fluent, - V1SubjectRulesReviewStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,V1SubjectRulesReviewStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEvaluationError(instance.getEvaluationError()); fluent.withIncomplete(instance.getIncomplete()); @@ -52,16 +28,13 @@ public V1SubjectRulesReviewStatusBuilder( fluent.withResourceRules(instance.getResourceRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatus instance) { - this(instance, false); + this(instance,false); } - - public V1SubjectRulesReviewStatusBuilder( - V1SubjectRulesReviewStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withEvaluationError(instance.getEvaluationError()); this.withIncomplete(instance.getIncomplete()); @@ -70,12 +43,10 @@ public V1SubjectRulesReviewStatusBuilder( this.withResourceRules(instance.getResourceRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SubjectRulesReviewStatusFluent fluent; Boolean validationEnabled; - public V1SubjectRulesReviewStatus build() { V1SubjectRulesReviewStatus buildable = new V1SubjectRulesReviewStatus(); buildable.setEvaluationError(fluent.getEvaluationError()); @@ -84,4 +55,5 @@ public V1SubjectRulesReviewStatus build() { buildable.setResourceRules(fluent.getResourceRules()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java index bc1f0d8501..3de64e9633 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java @@ -1,171 +1,98 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1SubjectRulesReviewStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1SubjectRulesReviewStatusFluent> extends Fluent{ public String getEvaluationError(); - public A withEvaluationError(String evaluationError); - public Boolean hasEvaluationError(); - public Boolean getIncomplete(); - public A withIncomplete(Boolean incomplete); - public Boolean hasIncomplete(); - - public A addToNonResourceRules(Integer index, V1NonResourceRule item); - - public A setToNonResourceRules(Integer index, V1NonResourceRule item); - + public A addToNonResourceRules(Integer index,V1NonResourceRule item); + public A setToNonResourceRules(Integer index,V1NonResourceRule item); public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items); - public A addAllToNonResourceRules(Collection items); - - public A removeFromNonResourceRules( - io.kubernetes.client.openapi.models.V1NonResourceRule... items); - + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items); public A removeAllFromNonResourceRules(Collection items); - public A removeMatchingFromNonResourceRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildNonResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getNonResourceRules(); - public List buildNonResourceRules(); - public V1NonResourceRule buildNonResourceRule(Integer index); - public V1NonResourceRule buildFirstNonResourceRule(); - public V1NonResourceRule buildLastNonResourceRule(); - - public V1NonResourceRule buildMatchingNonResourceRule( - Predicate predicate); - + public V1NonResourceRule buildMatchingNonResourceRule(Predicate predicate); public Boolean hasMatchingNonResourceRule(Predicate predicate); - public A withNonResourceRules(List nonResourceRules); - - public A withNonResourceRules( - io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules); - + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules); public Boolean hasNonResourceRules(); - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRule(); - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRuleLike( - V1NonResourceRule item); - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested setNewNonResourceRuleLike( - Integer index, V1NonResourceRule item); - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editNonResourceRule( - Integer index); - + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested setNewNonResourceRuleLike(Integer index,V1NonResourceRule item); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editNonResourceRule(Integer index); public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editFirstNonResourceRule(); - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editLastNonResourceRule(); - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editMatchingNonResourceRule( - Predicate predicate); - - public A addToResourceRules(Integer index, V1ResourceRule item); - - public A setToResourceRules(Integer index, V1ResourceRule item); - + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate); + public A addToResourceRules(Integer index,V1ResourceRule item); + public A setToResourceRules(Integer index,V1ResourceRule item); public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items); - public A addAllToResourceRules(Collection items); - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items); - public A removeAllFromResourceRules(Collection items); - public A removeMatchingFromResourceRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getResourceRules(); - public List buildResourceRules(); - public V1ResourceRule buildResourceRule(Integer index); - public V1ResourceRule buildFirstResourceRule(); - public V1ResourceRule buildLastResourceRule(); - public V1ResourceRule buildMatchingResourceRule(Predicate predicate); - public Boolean hasMatchingResourceRule(Predicate predicate); - public A withResourceRules(List resourceRules); - public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... resourceRules); - public Boolean hasResourceRules(); - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRule(); - - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRuleLike( - V1ResourceRule item); - - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested setNewResourceRuleLike( - Integer index, V1ResourceRule item); - + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested setNewResourceRuleLike(Integer index,V1ResourceRule item); public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editResourceRule(Integer index); - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editFirstResourceRule(); - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editLastResourceRule(); - - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editMatchingResourceRule( - Predicate predicate); - + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editMatchingResourceRule(Predicate predicate); public A withIncomplete(); - - public interface NonResourceRulesNested - extends Nested, - V1NonResourceRuleFluent> { + public interface NonResourceRulesNested extends Nested,V1NonResourceRuleFluent>{ public N and(); - public N endNonResourceRule(); + } - - public interface ResourceRulesNested - extends Nested, - V1ResourceRuleFluent> { + public interface ResourceRulesNested extends Nested,V1ResourceRuleFluent>{ public N and(); - public N endResourceRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java index 48cabf2ed9..2e721e3dc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SubjectRulesReviewStatusFluentImpl> - extends BaseFluent implements V1SubjectRulesReviewStatusFluent { - public V1SubjectRulesReviewStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SubjectRulesReviewStatusFluentImpl> extends BaseFluent implements V1SubjectRulesReviewStatusFluent{ + public V1SubjectRulesReviewStatusFluentImpl() { + } public V1SubjectRulesReviewStatusFluentImpl(V1SubjectRulesReviewStatus instance) { this.withEvaluationError(instance.getEvaluationError()); @@ -34,116 +30,55 @@ public V1SubjectRulesReviewStatusFluentImpl(V1SubjectRulesReviewStatus instance) this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); - } + } private String evaluationError; private Boolean incomplete; private ArrayList nonResourceRules; private ArrayList resourceRules; - public String getEvaluationError() { return this.evaluationError; } - public A withEvaluationError(String evaluationError) { - this.evaluationError = evaluationError; - return (A) this; + this.evaluationError=evaluationError; return (A) this; } - public Boolean hasEvaluationError() { return this.evaluationError != null; } - public Boolean getIncomplete() { return this.incomplete; } - public A withIncomplete(Boolean incomplete) { - this.incomplete = incomplete; - return (A) this; + this.incomplete=incomplete; return (A) this; } - public Boolean hasIncomplete() { return this.incomplete != null; } - - public A addToNonResourceRules(Integer index, V1NonResourceRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables - .get("nonResourceRules") - .add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder); - this.nonResourceRules.add(index >= 0 ? index : nonResourceRules.size(), builder); - return (A) this; + public A addToNonResourceRules(Integer index,V1NonResourceRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder);this.nonResourceRules.add(index >= 0 ? index : nonResourceRules.size(), builder); return (A)this; } - - public A setToNonResourceRules(Integer index, V1NonResourceRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } + public A setToNonResourceRules(Integer index,V1NonResourceRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { - _visitables.get("nonResourceRules").add(builder); - } else { - _visitables.get("nonResourceRules").set(index, builder); - } - if (index < 0 || index >= nonResourceRules.size()) { - nonResourceRules.add(builder); - } else { - nonResourceRules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { _visitables.get("nonResourceRules").add(builder); } else { _visitables.get("nonResourceRules").set(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { nonResourceRules.add(builder); } else { nonResourceRules.set(index, builder);} + return (A)this; } - public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; } - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; } - - public A removeFromNonResourceRules( - io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - if (this.nonResourceRules != null) { - this.nonResourceRules.remove(builder); - } - } - return (A) this; + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { + for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder);if (this.nonResourceRules != null) {this.nonResourceRules.remove(builder);}} return (A)this; } - public A removeAllFromNonResourceRules(Collection items) { - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - if (this.nonResourceRules != null) { - this.nonResourceRules.remove(builder); - } - } - return (A) this; + for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder);if (this.nonResourceRules != null) {this.nonResourceRules.remove(builder);}} return (A)this; } - public A removeMatchingFromNonResourceRules(Predicate predicate) { if (nonResourceRules == null) return (A) this; final Iterator each = nonResourceRules.iterator(); @@ -155,210 +90,101 @@ public A removeMatchingFromNonResourceRules(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildNonResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public List buildNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public V1NonResourceRule buildNonResourceRule(Integer index) { return this.nonResourceRules.get(index).build(); } - public V1NonResourceRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } - public V1NonResourceRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } - - public V1NonResourceRule buildMatchingNonResourceRule( - Predicate predicate) { - for (V1NonResourceRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NonResourceRule buildMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourceRuleBuilder item: nonResourceRules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingNonResourceRule(Predicate predicate) { - for (V1NonResourceRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1NonResourceRuleBuilder item: nonResourceRules) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - _visitables.get("nonResourceRules").removeAll(this.nonResourceRules); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1NonResourceRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } else { - this.nonResourceRules = null; - } - return (A) this; + if (this.nonResourceRules != null) { _visitables.get("nonResourceRules").removeAll(this.nonResourceRules);} + if (nonResourceRules != null) {this.nonResourceRules = new ArrayList(); for (V1NonResourceRule item : nonResourceRules){this.addToNonResourceRules(item);}} else { this.nonResourceRules = null;} return (A) this; } - - public A withNonResourceRules( - io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - } - if (nonResourceRules != null) { - for (V1NonResourceRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules) { + if (this.nonResourceRules != null) {this.nonResourceRules.clear();} + if (nonResourceRules != null) {for (V1NonResourceRule item :nonResourceRules){ this.addToNonResourceRules(item);}} return (A) this; } - public Boolean hasNonResourceRules() { return nonResourceRules != null && !nonResourceRules.isEmpty(); } - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRule() { return new V1SubjectRulesReviewStatusFluentImpl.NonResourceRulesNestedImpl(); } - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRuleLike( - V1NonResourceRule item) { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item) { return new V1SubjectRulesReviewStatusFluentImpl.NonResourceRulesNestedImpl(-1, item); } - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested setNewNonResourceRuleLike( - Integer index, V1NonResourceRule item) { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested setNewNonResourceRuleLike(Integer index,V1NonResourceRule item) { return new V1SubjectRulesReviewStatusFluentImpl.NonResourceRulesNestedImpl(index, item); } - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editNonResourceRule( - Integer index) { - if (nonResourceRules.size() <= index) - throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editNonResourceRule(Integer index) { + if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) - throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); + if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); } - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - - public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editMatchingNonResourceRule( - Predicate predicate) { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; - for (int i = 0; i < nonResourceRules.size(); i++) { - if (predicate.test(nonResourceRules.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching nonResourceRules. No match found."); + for (int i=0;i(); - } - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables - .get("resourceRules") - .add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder); - this.resourceRules.add(index >= 0 ? index : resourceRules.size(), builder); - return (A) this; + public A addToResourceRules(Integer index,V1ResourceRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder);this.resourceRules.add(index >= 0 ? index : resourceRules.size(), builder); return (A)this; } - - public A setToResourceRules(Integer index, V1ResourceRule item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } + public A setToResourceRules(Integer index,V1ResourceRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= _visitables.get("resourceRules").size()) { - _visitables.get("resourceRules").add(builder); - } else { - _visitables.get("resourceRules").set(index, builder); - } - if (index < 0 || index >= resourceRules.size()) { - resourceRules.add(builder); - } else { - resourceRules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("resourceRules").size()) { _visitables.get("resourceRules").add(builder); } else { _visitables.get("resourceRules").set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { resourceRules.add(builder); } else { resourceRules.set(index, builder);} + return (A)this; } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); - } - return (A) this; + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); - } - return (A) this; + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - if (this.resourceRules != null) { - this.resourceRules.remove(builder); - } - } - return (A) this; + for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").remove(builder);if (this.resourceRules != null) {this.resourceRules.remove(builder);}} return (A)this; } - public A removeAllFromResourceRules(Collection items) { - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - if (this.resourceRules != null) { - this.resourceRules.remove(builder); - } - } - return (A) this; + for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").remove(builder);if (this.resourceRules != null) {this.resourceRules.remove(builder);}} return (A)this; } - public A removeMatchingFromResourceRules(Predicate predicate) { if (resourceRules == null) return (A) this; final Iterator each = resourceRules.iterator(); @@ -370,229 +196,139 @@ public A removeMatchingFromResourceRules(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public List buildResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public V1ResourceRule buildResourceRule(Integer index) { return this.resourceRules.get(index).build(); } - public V1ResourceRule buildFirstResourceRule() { return this.resourceRules.get(0).build(); } - public V1ResourceRule buildLastResourceRule() { return this.resourceRules.get(resourceRules.size() - 1).build(); } - public V1ResourceRule buildMatchingResourceRule(Predicate predicate) { - for (V1ResourceRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ResourceRuleBuilder item: resourceRules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingResourceRule(Predicate predicate) { - for (V1ResourceRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ResourceRuleBuilder item: resourceRules) { if(predicate.test(item)){ return true;} } return false; } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - _visitables.get("resourceRules").removeAll(this.resourceRules); - } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1ResourceRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; - } - return (A) this; + if (this.resourceRules != null) { _visitables.get("resourceRules").removeAll(this.resourceRules);} + if (resourceRules != null) {this.resourceRules = new ArrayList(); for (V1ResourceRule item : resourceRules){this.addToResourceRules(item);}} else { this.resourceRules = null;} return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - } - if (resourceRules != null) { - for (V1ResourceRule item : resourceRules) { - this.addToResourceRules(item); - } - } - return (A) this; + if (this.resourceRules != null) {this.resourceRules.clear();} + if (resourceRules != null) {for (V1ResourceRule item :resourceRules){ this.addToResourceRules(item);}} return (A) this; } - public Boolean hasResourceRules() { return resourceRules != null && !resourceRules.isEmpty(); } - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRule() { return new V1SubjectRulesReviewStatusFluentImpl.ResourceRulesNestedImpl(); } - - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRuleLike( - V1ResourceRule item) { + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item) { return new V1SubjectRulesReviewStatusFluentImpl.ResourceRulesNestedImpl(-1, item); } - - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested setNewResourceRuleLike( - Integer index, V1ResourceRule item) { + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested setNewResourceRuleLike(Integer index,V1ResourceRule item) { return new V1SubjectRulesReviewStatusFluentImpl.ResourceRulesNestedImpl(index, item); } - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editResourceRule(Integer index) { - if (resourceRules.size() <= index) - throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); + if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) - throw new RuntimeException("Can't edit first resourceRules. The list is empty."); + if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); return setNewResourceRuleLike(0, buildResourceRule(0)); } - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - - public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editMatchingResourceRule( - Predicate predicate) { + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i = 0; i < resourceRules.size(); i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1NonResourceRuleFluentImpl< - V1SubjectRulesReviewStatusFluent.NonResourceRulesNested> - implements V1SubjectRulesReviewStatusFluent.NonResourceRulesNested, Nested { - NonResourceRulesNestedImpl(Integer index, V1NonResourceRule item) { + class NonResourceRulesNestedImpl extends V1NonResourceRuleFluentImpl> implements V1SubjectRulesReviewStatusFluent.NonResourceRulesNested,Nested{ + NonResourceRulesNestedImpl(Integer index,V1NonResourceRule item) { this.index = index; this.builder = new V1NonResourceRuleBuilder(this, item); } - NonResourceRulesNestedImpl() { this.index = -1; this.builder = new V1NonResourceRuleBuilder(this); } - V1NonResourceRuleBuilder builder; Integer index; - public N and() { - return (N) - V1SubjectRulesReviewStatusFluentImpl.this.setToNonResourceRules(index, builder.build()); + return (N) V1SubjectRulesReviewStatusFluentImpl.this.setToNonResourceRules(index,builder.build()); } - public N endNonResourceRule() { return and(); } + } - - class ResourceRulesNestedImpl - extends V1ResourceRuleFluentImpl> - implements V1SubjectRulesReviewStatusFluent.ResourceRulesNested, Nested { - ResourceRulesNestedImpl(Integer index, V1ResourceRule item) { + class ResourceRulesNestedImpl extends V1ResourceRuleFluentImpl> implements V1SubjectRulesReviewStatusFluent.ResourceRulesNested,Nested{ + ResourceRulesNestedImpl(Integer index,V1ResourceRule item) { this.index = index; this.builder = new V1ResourceRuleBuilder(this, item); } - ResourceRulesNestedImpl() { this.index = -1; this.builder = new V1ResourceRuleBuilder(this); } - V1ResourceRuleBuilder builder; Integer index; - public N and() { - return (N) - V1SubjectRulesReviewStatusFluentImpl.this.setToResourceRules(index, builder.build()); + return (N) V1SubjectRulesReviewStatusFluentImpl.this.setToResourceRules(index,builder.build()); } - public N endResourceRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java index 90e17bc9c5..164433fa29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java @@ -1,70 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1SysctlBuilder extends V1SysctlFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1SysctlBuilder extends V1SysctlFluentImpl implements VisitableBuilder{ public V1SysctlBuilder() { this(false); } - public V1SysctlBuilder(Boolean validationEnabled) { this(new V1Sysctl(), validationEnabled); } - public V1SysctlBuilder(V1SysctlFluent fluent) { this(fluent, false); } - - public V1SysctlBuilder(V1SysctlFluent fluent, Boolean validationEnabled) { + public V1SysctlBuilder(V1SysctlFluent fluent,Boolean validationEnabled) { this(fluent, new V1Sysctl(), validationEnabled); } - - public V1SysctlBuilder(V1SysctlFluent fluent, V1Sysctl instance) { + public V1SysctlBuilder(V1SysctlFluent fluent,V1Sysctl instance) { this(fluent, instance, false); } - - public V1SysctlBuilder(V1SysctlFluent fluent, V1Sysctl instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1SysctlBuilder(V1SysctlFluent fluent,V1Sysctl instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1SysctlBuilder(V1Sysctl instance) { - this(instance, false); + this(instance,false); } - - public V1SysctlBuilder(V1Sysctl instance, Boolean validationEnabled) { - this.fluent = this; + public V1SysctlBuilder(V1Sysctl instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1SysctlFluent fluent; Boolean validationEnabled; - public V1Sysctl build() { V1Sysctl buildable = new V1Sysctl(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java index 434c8701d4..cbd9848b07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1SysctlFluent> extends Fluent { + /** + * Generated + */ +public interface V1SysctlFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getValue(); - public A withValue(String value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java index 02ea5f0abe..1c82d42db4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1SysctlFluentImpl> extends BaseFluent - implements V1SysctlFluent { - public V1SysctlFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1SysctlFluentImpl> extends BaseFluent implements V1SysctlFluent{ + public V1SysctlFluentImpl() { + } public V1SysctlFluentImpl(V1Sysctl instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); - } + } private String name; private String value; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1SysctlFluentImpl that = (V1SysctlFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return java.util.Objects.hash(name, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java index d489abee41..077c491389 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluentImpl implements VisitableBuilder{ public V1TCPSocketActionBuilder() { this(false); } - public V1TCPSocketActionBuilder(Boolean validationEnabled) { this(new V1TCPSocketAction(), validationEnabled); } - public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent) { this(fluent, false); } - - public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent, Boolean validationEnabled) { + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,Boolean validationEnabled) { this(fluent, new V1TCPSocketAction(), validationEnabled); } - - public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent, V1TCPSocketAction instance) { + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,V1TCPSocketAction instance) { this(fluent, instance, false); } - - public V1TCPSocketActionBuilder( - V1TCPSocketActionFluent fluent, V1TCPSocketAction instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,V1TCPSocketAction instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHost(instance.getHost()); fluent.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TCPSocketActionBuilder(V1TCPSocketAction instance) { - this(instance, false); + this(instance,false); } - - public V1TCPSocketActionBuilder(V1TCPSocketAction instance, Boolean validationEnabled) { - this.fluent = this; + public V1TCPSocketActionBuilder(V1TCPSocketAction instance,Boolean validationEnabled) { + this.fluent = this; this.withHost(instance.getHost()); this.withPort(instance.getPort()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TCPSocketActionFluent fluent; Boolean validationEnabled; - public V1TCPSocketAction build() { V1TCPSocketAction buildable = new V1TCPSocketAction(); buildable.setHost(fluent.getHost()); buildable.setPort(fluent.getPort()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java index 554b693304..376cb83d61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java @@ -1,35 +1,21 @@ -/* -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.custom.IntOrString; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1TCPSocketActionFluent> extends Fluent { + /** + * Generated + */ +public interface V1TCPSocketActionFluent> extends Fluent{ public String getHost(); - public A withHost(String host); - public Boolean hasHost(); - public IntOrString getPort(); - public A withPort(IntOrString port); - public Boolean hasPort(); - public A withNewPort(int value); - public A withNewPort(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java index 1c1b013902..d402c55acc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java @@ -1,94 +1,69 @@ -/* -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.custom.IntOrString; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TCPSocketActionFluentImpl> extends BaseFluent - implements V1TCPSocketActionFluent { - public V1TCPSocketActionFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TCPSocketActionFluentImpl> extends BaseFluent implements V1TCPSocketActionFluent{ + public V1TCPSocketActionFluentImpl() { + } public V1TCPSocketActionFluentImpl(V1TCPSocketAction instance) { this.withHost(instance.getHost()); this.withPort(instance.getPort()); - } + } private String host; private IntOrString port; - public String getHost() { return this.host; } - public A withHost(String host) { - this.host = host; - return (A) this; + this.host=host; return (A) this; } - public Boolean hasHost() { return this.host != null; } - public IntOrString getPort() { return this.port; } - public A withPort(IntOrString port) { - this.port = port; - return (A) this; + this.port=port; return (A) this; } - public Boolean hasPort() { return this.port != null; } - public A withNewPort(int value) { - return (A) withPort(new IntOrString(value)); + return (A)withPort(new IntOrString(value)); } - public A withNewPort(String value) { - return (A) withPort(new IntOrString(value)); + return (A)withPort(new IntOrString(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TCPSocketActionFluentImpl that = (V1TCPSocketActionFluentImpl) o; - if (host != null ? !host.equals(that.host) : that.host != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; + if (host != null ? !host.equals(that.host) :that.host != null) return false; + if (port != null ? !port.equals(that.port) :that.port != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(host, port, super.hashCode()); + return java.util.Objects.hash(host, port, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (host != null) { - sb.append("host:"); - sb.append(host + ","); - } - if (port != null) { - sb.append("port:"); - sb.append(port); - } + if (host != null) { sb.append("host:"); sb.append(host + ","); } + if (port != null) { sb.append("port:"); sb.append(port); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java index c2accde823..f28e45036e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1TaintBuilder extends V1TaintFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TaintBuilder extends V1TaintFluentImpl implements VisitableBuilder{ public V1TaintBuilder() { this(false); } - public V1TaintBuilder(Boolean validationEnabled) { this(new V1Taint(), validationEnabled); } - public V1TaintBuilder(V1TaintFluent fluent) { this(fluent, false); } - - public V1TaintBuilder(V1TaintFluent fluent, Boolean validationEnabled) { + public V1TaintBuilder(V1TaintFluent fluent,Boolean validationEnabled) { this(fluent, new V1Taint(), validationEnabled); } - - public V1TaintBuilder(V1TaintFluent fluent, V1Taint instance) { + public V1TaintBuilder(V1TaintFluent fluent,V1Taint instance) { this(fluent, instance, false); } - - public V1TaintBuilder(V1TaintFluent fluent, V1Taint instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1TaintBuilder(V1TaintFluent fluent,V1Taint instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEffect(instance.getEffect()); fluent.withKey(instance.getKey()); @@ -46,15 +28,13 @@ public V1TaintBuilder(V1TaintFluent fluent, V1Taint instance, Boolean validat fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TaintBuilder(V1Taint instance) { - this(instance, false); + this(instance,false); } - - public V1TaintBuilder(V1Taint instance, Boolean validationEnabled) { - this.fluent = this; + public V1TaintBuilder(V1Taint instance,Boolean validationEnabled) { + this.fluent = this; this.withEffect(instance.getEffect()); this.withKey(instance.getKey()); @@ -63,12 +43,10 @@ public V1TaintBuilder(V1Taint instance, Boolean validationEnabled) { this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TaintFluent fluent; Boolean validationEnabled; - public V1Taint build() { V1Taint buildable = new V1Taint(); buildable.setEffect(fluent.getEffect()); @@ -77,4 +55,5 @@ public V1Taint build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java index 6c112277c0..03f0a747db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java @@ -1,43 +1,25 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1TaintFluent> extends Fluent { + /** + * Generated + */ +public interface V1TaintFluent> extends Fluent{ public String getEffect(); - public A withEffect(String effect); - public Boolean hasEffect(); - public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public OffsetDateTime getTimeAdded(); - public A withTimeAdded(OffsetDateTime timeAdded); - public Boolean hasTimeAdded(); - public String getValue(); - public A withValue(String value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java index d27ac28afb..2d5860943e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TaintFluentImpl> extends BaseFluent - implements V1TaintFluent { - public V1TaintFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TaintFluentImpl> extends BaseFluent implements V1TaintFluent{ + public V1TaintFluentImpl() { + } public V1TaintFluentImpl(V1Taint instance) { this.withEffect(instance.getEffect()); @@ -29,101 +22,70 @@ public V1TaintFluentImpl(V1Taint instance) { this.withTimeAdded(instance.getTimeAdded()); this.withValue(instance.getValue()); - } + } private String effect; private String key; private OffsetDateTime timeAdded; private String value; - public String getEffect() { return this.effect; } - public A withEffect(String effect) { - this.effect = effect; - return (A) this; + this.effect=effect; return (A) this; } - public Boolean hasEffect() { return this.effect != null; } - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public OffsetDateTime getTimeAdded() { return this.timeAdded; } - public A withTimeAdded(OffsetDateTime timeAdded) { - this.timeAdded = timeAdded; - return (A) this; + this.timeAdded=timeAdded; return (A) this; } - public Boolean hasTimeAdded() { return this.timeAdded != null; } - public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TaintFluentImpl that = (V1TaintFluentImpl) o; - if (effect != null ? !effect.equals(that.effect) : that.effect != null) return false; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (timeAdded != null ? !timeAdded.equals(that.timeAdded) : that.timeAdded != null) - return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (effect != null ? !effect.equals(that.effect) :that.effect != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (timeAdded != null ? !timeAdded.equals(that.timeAdded) :that.timeAdded != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { - sb.append("effect:"); - sb.append(effect + ","); - } - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (timeAdded != null) { - sb.append("timeAdded:"); - sb.append(timeAdded + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java index 9d07d0b930..8215901e05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java @@ -1,73 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1TokenRequestSpecBuilder - extends V1TokenRequestSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TokenRequestSpecBuilder extends V1TokenRequestSpecFluentImpl implements VisitableBuilder{ public V1TokenRequestSpecBuilder() { this(false); } - public V1TokenRequestSpecBuilder(Boolean validationEnabled) { this(new V1TokenRequestSpec(), validationEnabled); } - public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent) { this(fluent, false); } - - public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent, Boolean validationEnabled) { + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1TokenRequestSpec(), validationEnabled); } - - public V1TokenRequestSpecBuilder( - V1TokenRequestSpecFluent fluent, V1TokenRequestSpec instance) { + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenRequestSpec instance) { this(fluent, instance, false); } - - public V1TokenRequestSpecBuilder( - V1TokenRequestSpecFluent fluent, V1TokenRequestSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenRequestSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAudiences(instance.getAudiences()); fluent.withBoundObjectRef(instance.getBoundObjectRef()); fluent.withExpirationSeconds(instance.getExpirationSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance) { - this(instance, false); + this(instance,false); } - - public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAudiences(instance.getAudiences()); this.withBoundObjectRef(instance.getBoundObjectRef()); this.withExpirationSeconds(instance.getExpirationSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TokenRequestSpecFluent fluent; Boolean validationEnabled; - public V1TokenRequestSpec build() { V1TokenRequestSpec buildable = new V1TokenRequestSpec(); buildable.setAudiences(fluent.getAudiences()); @@ -75,4 +50,5 @@ public V1TokenRequestSpec build() { buildable.setExpirationSeconds(fluent.getExpirationSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java index 8a64025ff1..8b0adaedfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java @@ -1,92 +1,58 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.lang.Long; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1TokenRequestSpecFluent> extends Fluent { - public A addToAudiences(Integer index, String item); - - public A setToAudiences(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1TokenRequestSpecFluent> extends Fluent{ + public A addToAudiences(Integer index,String item); + public A setToAudiences(Integer index,String item); public A addToAudiences(java.lang.String... items); - public A addAllToAudiences(Collection items); - public A removeFromAudiences(java.lang.String... items); - public A removeAllFromAudiences(Collection items); - public List getAudiences(); - public String getAudience(Integer index); - public String getFirstAudience(); - public String getLastAudience(); - public String getMatchingAudience(Predicate predicate); - public Boolean hasMatchingAudience(Predicate predicate); - public A withAudiences(List audiences); - public A withAudiences(java.lang.String... audiences); - public Boolean hasAudiences(); - + /** * This method has been deprecated, please use method buildBoundObjectRef instead. - * * @return The buildable object. */ @Deprecated public V1BoundObjectReference getBoundObjectRef(); - public V1BoundObjectReference buildBoundObjectRef(); - public A withBoundObjectRef(V1BoundObjectReference boundObjectRef); - public Boolean hasBoundObjectRef(); - public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRef(); - - public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRefLike( - V1BoundObjectReference item); - + public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRefLike(V1BoundObjectReference item); public V1TokenRequestSpecFluent.BoundObjectRefNested editBoundObjectRef(); - public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRef(); - - public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRefLike( - V1BoundObjectReference item); - + public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item); public Long getExpirationSeconds(); - public A withExpirationSeconds(Long expirationSeconds); - public Boolean hasExpirationSeconds(); - - public interface BoundObjectRefNested - extends Nested, - V1BoundObjectReferenceFluent> { + public interface BoundObjectRefNested extends Nested,V1BoundObjectReferenceFluent>{ public N and(); - public N endBoundObjectRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java index 66cff00522..9f73936e1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java @@ -1,283 +1,167 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TokenRequestSpecFluentImpl> - extends BaseFluent implements V1TokenRequestSpecFluent { - public V1TokenRequestSpecFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TokenRequestSpecFluentImpl> extends BaseFluent implements V1TokenRequestSpecFluent{ + public V1TokenRequestSpecFluentImpl() { + } public V1TokenRequestSpecFluentImpl(V1TokenRequestSpec instance) { this.withAudiences(instance.getAudiences()); this.withBoundObjectRef(instance.getBoundObjectRef()); this.withExpirationSeconds(instance.getExpirationSeconds()); - } + } private List audiences; private V1BoundObjectReferenceBuilder boundObjectRef; private Long expirationSeconds; - - public A addToAudiences(Integer index, String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } + public A addToAudiences(Integer index,String item) { + if (this.audiences == null) {this.audiences = new ArrayList();} this.audiences.add(index, item); - return (A) this; + return (A)this; } - - public A setToAudiences(Integer index, String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - this.audiences.set(index, item); - return (A) this; + public A setToAudiences(Integer index,String item) { + if (this.audiences == null) {this.audiences = new ArrayList();} + this.audiences.set(index, item); return (A)this; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - for (String item : items) { - this.audiences.add(item); - } - return (A) this; + if (this.audiences == null) {this.audiences = new ArrayList();} + for (String item : items) {this.audiences.add(item);} return (A)this; } - public A addAllToAudiences(Collection items) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - for (String item : items) { - this.audiences.add(item); - } - return (A) this; + if (this.audiences == null) {this.audiences = new ArrayList();} + for (String item : items) {this.audiences.add(item);} return (A)this; } - public A removeFromAudiences(java.lang.String... items) { - for (String item : items) { - if (this.audiences != null) { - this.audiences.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.audiences!= null){ this.audiences.remove(item);}} return (A)this; } - public A removeAllFromAudiences(Collection items) { - for (String item : items) { - if (this.audiences != null) { - this.audiences.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.audiences!= null){ this.audiences.remove(item);}} return (A)this; } - public List getAudiences() { return this.audiences; } - public String getAudience(Integer index) { return this.audiences.get(index); } - public String getFirstAudience() { return this.audiences.get(0); } - public String getLastAudience() { return this.audiences.get(audiences.size() - 1); } - public String getMatchingAudience(Predicate predicate) { - for (String item : audiences) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: audiences) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAudience(Predicate predicate) { - for (String item : audiences) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: audiences) { if(predicate.test(item)){ return true;} } return false; } - public A withAudiences(List audiences) { - if (audiences != null) { - this.audiences = new ArrayList(); - for (String item : audiences) { - this.addToAudiences(item); - } - } else { - this.audiences = null; - } - return (A) this; + if (audiences != null) {this.audiences = new ArrayList(); for (String item : audiences){this.addToAudiences(item);}} else { this.audiences = null;} return (A) this; } - public A withAudiences(java.lang.String... audiences) { - if (this.audiences != null) { - this.audiences.clear(); - } - if (audiences != null) { - for (String item : audiences) { - this.addToAudiences(item); - } - } - return (A) this; + if (this.audiences != null) {this.audiences.clear();} + if (audiences != null) {for (String item :audiences){ this.addToAudiences(item);}} return (A) this; } - public Boolean hasAudiences() { return audiences != null && !audiences.isEmpty(); } - + /** * This method has been deprecated, please use method buildBoundObjectRef instead. - * * @return The buildable object. */ @Deprecated public V1BoundObjectReference getBoundObjectRef() { - return this.boundObjectRef != null ? this.boundObjectRef.build() : null; + return this.boundObjectRef!=null ?this.boundObjectRef.build():null; } - public V1BoundObjectReference buildBoundObjectRef() { - return this.boundObjectRef != null ? this.boundObjectRef.build() : null; + return this.boundObjectRef!=null ?this.boundObjectRef.build():null; } - public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { _visitables.get("boundObjectRef").remove(this.boundObjectRef); - if (boundObjectRef != null) { - this.boundObjectRef = new V1BoundObjectReferenceBuilder(boundObjectRef); - _visitables.get("boundObjectRef").add(this.boundObjectRef); - } else { - this.boundObjectRef = null; - _visitables.get("boundObjectRef").remove(this.boundObjectRef); - } - return (A) this; + if (boundObjectRef!=null){ this.boundObjectRef= new V1BoundObjectReferenceBuilder(boundObjectRef); _visitables.get("boundObjectRef").add(this.boundObjectRef);} else { this.boundObjectRef = null; _visitables.get("boundObjectRef").remove(this.boundObjectRef); } return (A) this; } - public Boolean hasBoundObjectRef() { return this.boundObjectRef != null; } - public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRef() { return new V1TokenRequestSpecFluentImpl.BoundObjectRefNestedImpl(); } - - public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRefLike( - V1BoundObjectReference item) { + public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRefLike(V1BoundObjectReference item) { return new V1TokenRequestSpecFluentImpl.BoundObjectRefNestedImpl(item); } - public V1TokenRequestSpecFluent.BoundObjectRefNested editBoundObjectRef() { return withNewBoundObjectRefLike(getBoundObjectRef()); } - public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRef() { - return withNewBoundObjectRefLike( - getBoundObjectRef() != null - ? getBoundObjectRef() - : new V1BoundObjectReferenceBuilder().build()); + return withNewBoundObjectRefLike(getBoundObjectRef() != null ? getBoundObjectRef(): new V1BoundObjectReferenceBuilder().build()); } - - public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRefLike( - V1BoundObjectReference item) { - return withNewBoundObjectRefLike(getBoundObjectRef() != null ? getBoundObjectRef() : item); + public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item) { + return withNewBoundObjectRefLike(getBoundObjectRef() != null ? getBoundObjectRef(): item); } - public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; + this.expirationSeconds=expirationSeconds; return (A) this; } - public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TokenRequestSpecFluentImpl that = (V1TokenRequestSpecFluentImpl) o; - if (audiences != null ? !audiences.equals(that.audiences) : that.audiences != null) - return false; - if (boundObjectRef != null - ? !boundObjectRef.equals(that.boundObjectRef) - : that.boundObjectRef != null) return false; - if (expirationSeconds != null - ? !expirationSeconds.equals(that.expirationSeconds) - : that.expirationSeconds != null) return false; + if (audiences != null ? !audiences.equals(that.audiences) :that.audiences != null) return false; + if (boundObjectRef != null ? !boundObjectRef.equals(that.boundObjectRef) :that.boundObjectRef != null) return false; + if (expirationSeconds != null ? !expirationSeconds.equals(that.expirationSeconds) :that.expirationSeconds != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(audiences, boundObjectRef, expirationSeconds, super.hashCode()); + return java.util.Objects.hash(audiences, boundObjectRef, expirationSeconds, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { - sb.append("audiences:"); - sb.append(audiences + ","); - } - if (boundObjectRef != null) { - sb.append("boundObjectRef:"); - sb.append(boundObjectRef + ","); - } - if (expirationSeconds != null) { - sb.append("expirationSeconds:"); - sb.append(expirationSeconds); - } + if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } + if (boundObjectRef != null) { sb.append("boundObjectRef:"); sb.append(boundObjectRef + ","); } + if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds); } sb.append("}"); return sb.toString(); } - - class BoundObjectRefNestedImpl - extends V1BoundObjectReferenceFluentImpl> - implements V1TokenRequestSpecFluent.BoundObjectRefNested, Nested { + class BoundObjectRefNestedImpl extends V1BoundObjectReferenceFluentImpl> implements V1TokenRequestSpecFluent.BoundObjectRefNested,Nested{ BoundObjectRefNestedImpl(V1BoundObjectReference item) { this.builder = new V1BoundObjectReferenceBuilder(this, item); } - BoundObjectRefNestedImpl() { this.builder = new V1BoundObjectReferenceBuilder(this); } - V1BoundObjectReferenceBuilder builder; - public N and() { return (N) V1TokenRequestSpecFluentImpl.this.withBoundObjectRef(builder.build()); } - public N endBoundObjectRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java index 55baef1940..80bae856fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1TokenRequestStatusBuilder - extends V1TokenRequestStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluentImpl implements VisitableBuilder{ public V1TokenRequestStatusBuilder() { this(false); } - public V1TokenRequestStatusBuilder(Boolean validationEnabled) { this(new V1TokenRequestStatus(), validationEnabled); } - public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent) { this(fluent, false); } - - public V1TokenRequestStatusBuilder( - V1TokenRequestStatusFluent fluent, Boolean validationEnabled) { + public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1TokenRequestStatus(), validationEnabled); } - - public V1TokenRequestStatusBuilder( - V1TokenRequestStatusFluent fluent, V1TokenRequestStatus instance) { + public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,V1TokenRequestStatus instance) { this(fluent, instance, false); } - - public V1TokenRequestStatusBuilder( - V1TokenRequestStatusFluent fluent, - V1TokenRequestStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,V1TokenRequestStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withExpirationTimestamp(instance.getExpirationTimestamp()); fluent.withToken(instance.getToken()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance) { - this(instance, false); + this(instance,false); } - - public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withExpirationTimestamp(instance.getExpirationTimestamp()); this.withToken(instance.getToken()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TokenRequestStatusFluent fluent; Boolean validationEnabled; - public V1TokenRequestStatus build() { V1TokenRequestStatus buildable = new V1TokenRequestStatus(); buildable.setExpirationTimestamp(fluent.getExpirationTimestamp()); buildable.setToken(fluent.getToken()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java index 9bfafedbfb..0697459049 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java @@ -1,32 +1,19 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1TokenRequestStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1TokenRequestStatusFluent> extends Fluent{ public OffsetDateTime getExpirationTimestamp(); - public A withExpirationTimestamp(OffsetDateTime expirationTimestamp); - public Boolean hasExpirationTimestamp(); - public String getToken(); - public A withToken(String token); - public Boolean hasToken(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java index 7340970f89..323409007f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java @@ -1,88 +1,63 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TokenRequestStatusFluentImpl> - extends BaseFluent implements V1TokenRequestStatusFluent { - public V1TokenRequestStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TokenRequestStatusFluentImpl> extends BaseFluent implements V1TokenRequestStatusFluent{ + public V1TokenRequestStatusFluentImpl() { + } public V1TokenRequestStatusFluentImpl(V1TokenRequestStatus instance) { this.withExpirationTimestamp(instance.getExpirationTimestamp()); this.withToken(instance.getToken()); - } + } private OffsetDateTime expirationTimestamp; private String token; - public OffsetDateTime getExpirationTimestamp() { return this.expirationTimestamp; } - public A withExpirationTimestamp(OffsetDateTime expirationTimestamp) { - this.expirationTimestamp = expirationTimestamp; - return (A) this; + this.expirationTimestamp=expirationTimestamp; return (A) this; } - public Boolean hasExpirationTimestamp() { return this.expirationTimestamp != null; } - public String getToken() { return this.token; } - public A withToken(String token) { - this.token = token; - return (A) this; + this.token=token; return (A) this; } - public Boolean hasToken() { return this.token != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TokenRequestStatusFluentImpl that = (V1TokenRequestStatusFluentImpl) o; - if (expirationTimestamp != null - ? !expirationTimestamp.equals(that.expirationTimestamp) - : that.expirationTimestamp != null) return false; - if (token != null ? !token.equals(that.token) : that.token != null) return false; + if (expirationTimestamp != null ? !expirationTimestamp.equals(that.expirationTimestamp) :that.expirationTimestamp != null) return false; + if (token != null ? !token.equals(that.token) :that.token != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(expirationTimestamp, token, super.hashCode()); + return java.util.Objects.hash(expirationTimestamp, token, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expirationTimestamp != null) { - sb.append("expirationTimestamp:"); - sb.append(expirationTimestamp + ","); - } - if (token != null) { - sb.append("token:"); - sb.append(token); - } + if (expirationTimestamp != null) { sb.append("expirationTimestamp:"); sb.append(expirationTimestamp + ","); } + if (token != null) { sb.append("token:"); sb.append(token); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java index 88ca0ee877..00fe44f371 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1TokenReviewBuilder extends V1TokenReviewFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TokenReviewBuilder extends V1TokenReviewFluentImpl implements VisitableBuilder{ public V1TokenReviewBuilder() { this(false); } - public V1TokenReviewBuilder(Boolean validationEnabled) { this(new V1TokenReview(), validationEnabled); } - public V1TokenReviewBuilder(V1TokenReviewFluent fluent) { this(fluent, false); } - - public V1TokenReviewBuilder(V1TokenReviewFluent fluent, Boolean validationEnabled) { + public V1TokenReviewBuilder(V1TokenReviewFluent fluent,Boolean validationEnabled) { this(fluent, new V1TokenReview(), validationEnabled); } - - public V1TokenReviewBuilder(V1TokenReviewFluent fluent, V1TokenReview instance) { + public V1TokenReviewBuilder(V1TokenReviewFluent fluent,V1TokenReview instance) { this(fluent, instance, false); } - - public V1TokenReviewBuilder( - V1TokenReviewFluent fluent, V1TokenReview instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1TokenReviewBuilder(V1TokenReviewFluent fluent,V1TokenReview instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1TokenReviewBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TokenReviewBuilder(V1TokenReview instance) { - this(instance, false); + this(instance,false); } - - public V1TokenReviewBuilder(V1TokenReview instance, Boolean validationEnabled) { - this.fluent = this; + public V1TokenReviewBuilder(V1TokenReview instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1TokenReviewBuilder(V1TokenReview instance, Boolean validationEnabled) { this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TokenReviewFluent fluent; Boolean validationEnabled; - public V1TokenReview build() { V1TokenReview buildable = new V1TokenReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1TokenReview build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java index 90f3247b99..f367201b7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1TokenReviewFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1TokenReviewFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1TokenReviewFluent.MetadataNested withNewMetadata(); - public V1TokenReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1TokenReviewFluent.MetadataNested editMetadata(); - public V1TokenReviewFluent.MetadataNested editOrNewMetadata(); - public V1TokenReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1TokenReviewSpec getSpec(); - public V1TokenReviewSpec buildSpec(); - public A withSpec(V1TokenReviewSpec spec); - public Boolean hasSpec(); - public V1TokenReviewFluent.SpecNested withNewSpec(); - public V1TokenReviewFluent.SpecNested withNewSpecLike(V1TokenReviewSpec item); - public V1TokenReviewFluent.SpecNested editSpec(); - public V1TokenReviewFluent.SpecNested editOrNewSpec(); - public V1TokenReviewFluent.SpecNested editOrNewSpecLike(V1TokenReviewSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1TokenReviewStatus getStatus(); - public V1TokenReviewStatus buildStatus(); - public A withStatus(V1TokenReviewStatus status); - public Boolean hasStatus(); - public V1TokenReviewFluent.StatusNested withNewStatus(); - public V1TokenReviewFluent.StatusNested withNewStatusLike(V1TokenReviewStatus item); - public V1TokenReviewFluent.StatusNested editStatus(); - public V1TokenReviewFluent.StatusNested editOrNewStatus(); - public V1TokenReviewFluent.StatusNested editOrNewStatusLike(V1TokenReviewStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1TokenReviewSpecFluent> { + public interface SpecNested extends Nested,V1TokenReviewSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1TokenReviewStatusFluent> { + public interface StatusNested extends Nested,V1TokenReviewStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java index 52e46dffaf..5a2c5364bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TokenReviewFluentImpl> extends BaseFluent - implements V1TokenReviewFluent { - public V1TokenReviewFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TokenReviewFluentImpl> extends BaseFluent implements V1TokenReviewFluent{ + public V1TokenReviewFluentImpl() { + } public V1TokenReviewFluentImpl(V1TokenReview instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,297 +25,205 @@ public V1TokenReviewFluentImpl(V1TokenReview instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1TokenReviewSpecBuilder spec; private V1TokenReviewStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1TokenReviewFluent.MetadataNested withNewMetadata() { return new V1TokenReviewFluentImpl.MetadataNestedImpl(); } - public V1TokenReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1TokenReviewFluentImpl.MetadataNestedImpl(item); } - public V1TokenReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1TokenReviewFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1TokenReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1TokenReviewSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1TokenReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1TokenReviewSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1TokenReviewSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1TokenReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1TokenReviewFluent.SpecNested withNewSpec() { return new V1TokenReviewFluentImpl.SpecNestedImpl(); } - public V1TokenReviewFluent.SpecNested withNewSpecLike(V1TokenReviewSpec item) { return new V1TokenReviewFluentImpl.SpecNestedImpl(item); } - public V1TokenReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1TokenReviewFluent.SpecNested editOrNewSpec() { - return withNewSpecLike(getSpec() != null ? getSpec() : new V1TokenReviewSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1TokenReviewSpecBuilder().build()); } - public V1TokenReviewFluent.SpecNested editOrNewSpecLike(V1TokenReviewSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1TokenReviewStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1TokenReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1TokenReviewStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1TokenReviewStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1TokenReviewStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1TokenReviewFluent.StatusNested withNewStatus() { return new V1TokenReviewFluentImpl.StatusNestedImpl(); } - public V1TokenReviewFluent.StatusNested withNewStatusLike(V1TokenReviewStatus item) { return new V1TokenReviewFluentImpl.StatusNestedImpl(item); } - public V1TokenReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1TokenReviewFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1TokenReviewStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1TokenReviewStatusBuilder().build()); } - public V1TokenReviewFluent.StatusNested editOrNewStatusLike(V1TokenReviewStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TokenReviewFluentImpl that = (V1TokenReviewFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements V1TokenReviewFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1TokenReviewFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1TokenReviewFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl extends V1TokenReviewSpecFluentImpl> - implements V1TokenReviewFluent.SpecNested, Nested { + class SpecNestedImpl extends V1TokenReviewSpecFluentImpl> implements V1TokenReviewFluent.SpecNested,Nested{ SpecNestedImpl(V1TokenReviewSpec item) { this.builder = new V1TokenReviewSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1TokenReviewSpecBuilder(this); } - V1TokenReviewSpecBuilder builder; - public N and() { return (N) V1TokenReviewFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1TokenReviewStatusFluentImpl> - implements V1TokenReviewFluent.StatusNested, Nested { + class StatusNestedImpl extends V1TokenReviewStatusFluentImpl> implements V1TokenReviewFluent.StatusNested,Nested{ StatusNestedImpl(V1TokenReviewStatus item) { this.builder = new V1TokenReviewStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1TokenReviewStatusBuilder(this); } - V1TokenReviewStatusBuilder builder; - public N and() { return (N) V1TokenReviewFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java index 9d5c950245..5dff004b67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluentImpl implements VisitableBuilder{ public V1TokenReviewSpecBuilder() { this(false); } - public V1TokenReviewSpecBuilder(Boolean validationEnabled) { this(new V1TokenReviewSpec(), validationEnabled); } - public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent) { this(fluent, false); } - - public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent, Boolean validationEnabled) { + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1TokenReviewSpec(), validationEnabled); } - - public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent, V1TokenReviewSpec instance) { + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,V1TokenReviewSpec instance) { this(fluent, instance, false); } - - public V1TokenReviewSpecBuilder( - V1TokenReviewSpecFluent fluent, V1TokenReviewSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,V1TokenReviewSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAudiences(instance.getAudiences()); fluent.withToken(instance.getToken()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance) { - this(instance, false); + this(instance,false); } - - public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAudiences(instance.getAudiences()); this.withToken(instance.getToken()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TokenReviewSpecFluent fluent; Boolean validationEnabled; - public V1TokenReviewSpec build() { V1TokenReviewSpec buildable = new V1TokenReviewSpec(); buildable.setAudiences(fluent.getAudiences()); buildable.setToken(fluent.getToken()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java index fee9fac4ae..ff2d73deb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java @@ -1,57 +1,35 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1TokenReviewSpecFluent> extends Fluent { - public A addToAudiences(Integer index, String item); - - public A setToAudiences(Integer index, String item); - + /** + * Generated + */ +public interface V1TokenReviewSpecFluent> extends Fluent{ + public A addToAudiences(Integer index,String item); + public A setToAudiences(Integer index,String item); public A addToAudiences(java.lang.String... items); - public A addAllToAudiences(Collection items); - public A removeFromAudiences(java.lang.String... items); - public A removeAllFromAudiences(Collection items); - public List getAudiences(); - public String getAudience(Integer index); - public String getFirstAudience(); - public String getLastAudience(); - public String getMatchingAudience(Predicate predicate); - public Boolean hasMatchingAudience(Predicate predicate); - public A withAudiences(List audiences); - public A withAudiences(java.lang.String... audiences); - public Boolean hasAudiences(); - public String getToken(); - public A withToken(String token); - public Boolean hasToken(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java index d79e13aa6e..465b953aca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java @@ -1,193 +1,109 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TokenReviewSpecFluentImpl> extends BaseFluent - implements V1TokenReviewSpecFluent { - public V1TokenReviewSpecFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TokenReviewSpecFluentImpl> extends BaseFluent implements V1TokenReviewSpecFluent{ + public V1TokenReviewSpecFluentImpl() { + } public V1TokenReviewSpecFluentImpl(V1TokenReviewSpec instance) { this.withAudiences(instance.getAudiences()); this.withToken(instance.getToken()); - } + } private List audiences; private String token; - - public A addToAudiences(Integer index, String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } + public A addToAudiences(Integer index,String item) { + if (this.audiences == null) {this.audiences = new ArrayList();} this.audiences.add(index, item); - return (A) this; + return (A)this; } - - public A setToAudiences(Integer index, String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - this.audiences.set(index, item); - return (A) this; + public A setToAudiences(Integer index,String item) { + if (this.audiences == null) {this.audiences = new ArrayList();} + this.audiences.set(index, item); return (A)this; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - for (String item : items) { - this.audiences.add(item); - } - return (A) this; + if (this.audiences == null) {this.audiences = new ArrayList();} + for (String item : items) {this.audiences.add(item);} return (A)this; } - public A addAllToAudiences(Collection items) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - for (String item : items) { - this.audiences.add(item); - } - return (A) this; + if (this.audiences == null) {this.audiences = new ArrayList();} + for (String item : items) {this.audiences.add(item);} return (A)this; } - public A removeFromAudiences(java.lang.String... items) { - for (String item : items) { - if (this.audiences != null) { - this.audiences.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.audiences!= null){ this.audiences.remove(item);}} return (A)this; } - public A removeAllFromAudiences(Collection items) { - for (String item : items) { - if (this.audiences != null) { - this.audiences.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.audiences!= null){ this.audiences.remove(item);}} return (A)this; } - public List getAudiences() { return this.audiences; } - public String getAudience(Integer index) { return this.audiences.get(index); } - public String getFirstAudience() { return this.audiences.get(0); } - public String getLastAudience() { return this.audiences.get(audiences.size() - 1); } - public String getMatchingAudience(Predicate predicate) { - for (String item : audiences) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: audiences) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAudience(Predicate predicate) { - for (String item : audiences) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: audiences) { if(predicate.test(item)){ return true;} } return false; } - public A withAudiences(List audiences) { - if (audiences != null) { - this.audiences = new ArrayList(); - for (String item : audiences) { - this.addToAudiences(item); - } - } else { - this.audiences = null; - } - return (A) this; + if (audiences != null) {this.audiences = new ArrayList(); for (String item : audiences){this.addToAudiences(item);}} else { this.audiences = null;} return (A) this; } - public A withAudiences(java.lang.String... audiences) { - if (this.audiences != null) { - this.audiences.clear(); - } - if (audiences != null) { - for (String item : audiences) { - this.addToAudiences(item); - } - } - return (A) this; + if (this.audiences != null) {this.audiences.clear();} + if (audiences != null) {for (String item :audiences){ this.addToAudiences(item);}} return (A) this; } - public Boolean hasAudiences() { return audiences != null && !audiences.isEmpty(); } - public String getToken() { return this.token; } - public A withToken(String token) { - this.token = token; - return (A) this; + this.token=token; return (A) this; } - public Boolean hasToken() { return this.token != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TokenReviewSpecFluentImpl that = (V1TokenReviewSpecFluentImpl) o; - if (audiences != null ? !audiences.equals(that.audiences) : that.audiences != null) - return false; - if (token != null ? !token.equals(that.token) : that.token != null) return false; + if (audiences != null ? !audiences.equals(that.audiences) :that.audiences != null) return false; + if (token != null ? !token.equals(that.token) :that.token != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(audiences, token, super.hashCode()); + return java.util.Objects.hash(audiences, token, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { - sb.append("audiences:"); - sb.append(audiences + ","); - } - if (token != null) { - sb.append("token:"); - sb.append(token); - } + if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } + if (token != null) { sb.append("token:"); sb.append(token); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java index 6528d2370b..88f1bee104 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1TokenReviewStatusBuilder - extends V1TokenReviewStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TokenReviewStatusBuilder extends V1TokenReviewStatusFluentImpl implements VisitableBuilder{ public V1TokenReviewStatusBuilder() { this(false); } - public V1TokenReviewStatusBuilder(Boolean validationEnabled) { this(new V1TokenReviewStatus(), validationEnabled); } - public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent) { this(fluent, false); } - - public V1TokenReviewStatusBuilder( - V1TokenReviewStatusFluent fluent, Boolean validationEnabled) { + public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1TokenReviewStatus(), validationEnabled); } - - public V1TokenReviewStatusBuilder( - V1TokenReviewStatusFluent fluent, V1TokenReviewStatus instance) { + public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,V1TokenReviewStatus instance) { this(fluent, instance, false); } - - public V1TokenReviewStatusBuilder( - V1TokenReviewStatusFluent fluent, - V1TokenReviewStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,V1TokenReviewStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAudiences(instance.getAudiences()); fluent.withAuthenticated(instance.getAuthenticated()); @@ -52,15 +28,13 @@ public V1TokenReviewStatusBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance) { - this(instance, false); + this(instance,false); } - - public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAudiences(instance.getAudiences()); this.withAuthenticated(instance.getAuthenticated()); @@ -69,12 +43,10 @@ public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance, Boolean validati this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TokenReviewStatusFluent fluent; Boolean validationEnabled; - public V1TokenReviewStatus build() { V1TokenReviewStatus buildable = new V1TokenReviewStatus(); buildable.setAudiences(fluent.getAudiences()); @@ -83,4 +55,5 @@ public V1TokenReviewStatus build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java index d0a8710906..7ad8751de6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java @@ -1,98 +1,61 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1TokenReviewStatusFluent> - extends Fluent { - public A addToAudiences(Integer index, String item); - - public A setToAudiences(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1TokenReviewStatusFluent> extends Fluent{ + public A addToAudiences(Integer index,String item); + public A setToAudiences(Integer index,String item); public A addToAudiences(java.lang.String... items); - public A addAllToAudiences(Collection items); - public A removeFromAudiences(java.lang.String... items); - public A removeAllFromAudiences(Collection items); - public List getAudiences(); - public String getAudience(Integer index); - public String getFirstAudience(); - public String getLastAudience(); - public String getMatchingAudience(Predicate predicate); - public Boolean hasMatchingAudience(Predicate predicate); - public A withAudiences(List audiences); - public A withAudiences(java.lang.String... audiences); - public Boolean hasAudiences(); - public Boolean getAuthenticated(); - public A withAuthenticated(Boolean authenticated); - public Boolean hasAuthenticated(); - public String getError(); - public A withError(String error); - public Boolean hasError(); - + /** * This method has been deprecated, please use method buildUser instead. - * * @return The buildable object. */ @Deprecated public V1UserInfo getUser(); - public V1UserInfo buildUser(); - public A withUser(V1UserInfo user); - public Boolean hasUser(); - public V1TokenReviewStatusFluent.UserNested withNewUser(); - public V1TokenReviewStatusFluent.UserNested withNewUserLike(V1UserInfo item); - public V1TokenReviewStatusFluent.UserNested editUser(); - public V1TokenReviewStatusFluent.UserNested editOrNewUser(); - public V1TokenReviewStatusFluent.UserNested editOrNewUserLike(V1UserInfo item); - public A withAuthenticated(); - - public interface UserNested - extends Nested, V1UserInfoFluent> { + public interface UserNested extends Nested,V1UserInfoFluent>{ public N and(); - public N endUser(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java index cfc672c314..b4136d7494 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TokenReviewStatusFluentImpl> - extends BaseFluent implements V1TokenReviewStatusFluent { - public V1TokenReviewStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TokenReviewStatusFluentImpl> extends BaseFluent implements V1TokenReviewStatusFluent{ + public V1TokenReviewStatusFluentImpl() { + } public V1TokenReviewStatusFluentImpl(V1TokenReviewStatus instance) { this.withAudiences(instance.getAudiences()); @@ -33,268 +28,156 @@ public V1TokenReviewStatusFluentImpl(V1TokenReviewStatus instance) { this.withError(instance.getError()); this.withUser(instance.getUser()); - } + } private List audiences; private Boolean authenticated; private String error; private V1UserInfoBuilder user; - - public A addToAudiences(Integer index, String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } + public A addToAudiences(Integer index,String item) { + if (this.audiences == null) {this.audiences = new ArrayList();} this.audiences.add(index, item); - return (A) this; + return (A)this; } - - public A setToAudiences(Integer index, String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - this.audiences.set(index, item); - return (A) this; + public A setToAudiences(Integer index,String item) { + if (this.audiences == null) {this.audiences = new ArrayList();} + this.audiences.set(index, item); return (A)this; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - for (String item : items) { - this.audiences.add(item); - } - return (A) this; + if (this.audiences == null) {this.audiences = new ArrayList();} + for (String item : items) {this.audiences.add(item);} return (A)this; } - public A addAllToAudiences(Collection items) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - for (String item : items) { - this.audiences.add(item); - } - return (A) this; + if (this.audiences == null) {this.audiences = new ArrayList();} + for (String item : items) {this.audiences.add(item);} return (A)this; } - public A removeFromAudiences(java.lang.String... items) { - for (String item : items) { - if (this.audiences != null) { - this.audiences.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.audiences!= null){ this.audiences.remove(item);}} return (A)this; } - public A removeAllFromAudiences(Collection items) { - for (String item : items) { - if (this.audiences != null) { - this.audiences.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.audiences!= null){ this.audiences.remove(item);}} return (A)this; } - public List getAudiences() { return this.audiences; } - public String getAudience(Integer index) { return this.audiences.get(index); } - public String getFirstAudience() { return this.audiences.get(0); } - public String getLastAudience() { return this.audiences.get(audiences.size() - 1); } - public String getMatchingAudience(Predicate predicate) { - for (String item : audiences) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: audiences) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAudience(Predicate predicate) { - for (String item : audiences) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: audiences) { if(predicate.test(item)){ return true;} } return false; } - public A withAudiences(List audiences) { - if (audiences != null) { - this.audiences = new ArrayList(); - for (String item : audiences) { - this.addToAudiences(item); - } - } else { - this.audiences = null; - } - return (A) this; + if (audiences != null) {this.audiences = new ArrayList(); for (String item : audiences){this.addToAudiences(item);}} else { this.audiences = null;} return (A) this; } - public A withAudiences(java.lang.String... audiences) { - if (this.audiences != null) { - this.audiences.clear(); - } - if (audiences != null) { - for (String item : audiences) { - this.addToAudiences(item); - } - } - return (A) this; + if (this.audiences != null) {this.audiences.clear();} + if (audiences != null) {for (String item :audiences){ this.addToAudiences(item);}} return (A) this; } - public Boolean hasAudiences() { return audiences != null && !audiences.isEmpty(); } - public Boolean getAuthenticated() { return this.authenticated; } - public A withAuthenticated(Boolean authenticated) { - this.authenticated = authenticated; - return (A) this; + this.authenticated=authenticated; return (A) this; } - public Boolean hasAuthenticated() { return this.authenticated != null; } - public String getError() { return this.error; } - public A withError(String error) { - this.error = error; - return (A) this; + this.error=error; return (A) this; } - public Boolean hasError() { return this.error != null; } - + /** * This method has been deprecated, please use method buildUser instead. - * * @return The buildable object. */ @Deprecated public V1UserInfo getUser() { - return this.user != null ? this.user.build() : null; + return this.user!=null ?this.user.build():null; } - public V1UserInfo buildUser() { - return this.user != null ? this.user.build() : null; + return this.user!=null ?this.user.build():null; } - public A withUser(V1UserInfo user) { _visitables.get("user").remove(this.user); - if (user != null) { - this.user = new V1UserInfoBuilder(user); - _visitables.get("user").add(this.user); - } else { - this.user = null; - _visitables.get("user").remove(this.user); - } - return (A) this; + if (user!=null){ this.user= new V1UserInfoBuilder(user); _visitables.get("user").add(this.user);} else { this.user = null; _visitables.get("user").remove(this.user); } return (A) this; } - public Boolean hasUser() { return this.user != null; } - public V1TokenReviewStatusFluent.UserNested withNewUser() { return new V1TokenReviewStatusFluentImpl.UserNestedImpl(); } - public V1TokenReviewStatusFluent.UserNested withNewUserLike(V1UserInfo item) { return new V1TokenReviewStatusFluentImpl.UserNestedImpl(item); } - public V1TokenReviewStatusFluent.UserNested editUser() { return withNewUserLike(getUser()); } - public V1TokenReviewStatusFluent.UserNested editOrNewUser() { - return withNewUserLike(getUser() != null ? getUser() : new V1UserInfoBuilder().build()); + return withNewUserLike(getUser() != null ? getUser(): new V1UserInfoBuilder().build()); } - public V1TokenReviewStatusFluent.UserNested editOrNewUserLike(V1UserInfo item) { - return withNewUserLike(getUser() != null ? getUser() : item); + return withNewUserLike(getUser() != null ? getUser(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TokenReviewStatusFluentImpl that = (V1TokenReviewStatusFluentImpl) o; - if (audiences != null ? !audiences.equals(that.audiences) : that.audiences != null) - return false; - if (authenticated != null - ? !authenticated.equals(that.authenticated) - : that.authenticated != null) return false; - if (error != null ? !error.equals(that.error) : that.error != null) return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (audiences != null ? !audiences.equals(that.audiences) :that.audiences != null) return false; + if (authenticated != null ? !authenticated.equals(that.authenticated) :that.authenticated != null) return false; + if (error != null ? !error.equals(that.error) :that.error != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(audiences, authenticated, error, user, super.hashCode()); + return java.util.Objects.hash(audiences, authenticated, error, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { - sb.append("audiences:"); - sb.append(audiences + ","); - } - if (authenticated != null) { - sb.append("authenticated:"); - sb.append(authenticated + ","); - } - if (error != null) { - sb.append("error:"); - sb.append(error + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } + if (authenticated != null) { sb.append("authenticated:"); sb.append(authenticated + ","); } + if (error != null) { sb.append("error:"); sb.append(error + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - public A withAuthenticated() { return withAuthenticated(true); } - - class UserNestedImpl extends V1UserInfoFluentImpl> - implements V1TokenReviewStatusFluent.UserNested, Nested { + class UserNestedImpl extends V1UserInfoFluentImpl> implements V1TokenReviewStatusFluent.UserNested,Nested{ UserNestedImpl(V1UserInfo item) { this.builder = new V1UserInfoBuilder(this, item); } - UserNestedImpl() { this.builder = new V1UserInfoBuilder(this); } - V1UserInfoBuilder builder; - public N and() { return (N) V1TokenReviewStatusFluentImpl.this.withUser(builder.build()); } - public N endUser() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java index 52b292ac5c..33e0eb6e20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1TolerationBuilder extends V1TolerationFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TolerationBuilder extends V1TolerationFluentImpl implements VisitableBuilder{ public V1TolerationBuilder() { this(false); } - public V1TolerationBuilder(Boolean validationEnabled) { this(new V1Toleration(), validationEnabled); } - public V1TolerationBuilder(V1TolerationFluent fluent) { this(fluent, false); } - - public V1TolerationBuilder(V1TolerationFluent fluent, Boolean validationEnabled) { + public V1TolerationBuilder(V1TolerationFluent fluent,Boolean validationEnabled) { this(fluent, new V1Toleration(), validationEnabled); } - - public V1TolerationBuilder(V1TolerationFluent fluent, V1Toleration instance) { + public V1TolerationBuilder(V1TolerationFluent fluent,V1Toleration instance) { this(fluent, instance, false); } - - public V1TolerationBuilder( - V1TolerationFluent fluent, V1Toleration instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1TolerationBuilder(V1TolerationFluent fluent,V1Toleration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withEffect(instance.getEffect()); fluent.withKey(instance.getKey()); @@ -49,15 +30,13 @@ public V1TolerationBuilder( fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TolerationBuilder(V1Toleration instance) { - this(instance, false); + this(instance,false); } - - public V1TolerationBuilder(V1Toleration instance, Boolean validationEnabled) { - this.fluent = this; + public V1TolerationBuilder(V1Toleration instance,Boolean validationEnabled) { + this.fluent = this; this.withEffect(instance.getEffect()); this.withKey(instance.getKey()); @@ -68,12 +47,10 @@ public V1TolerationBuilder(V1Toleration instance, Boolean validationEnabled) { this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TolerationFluent fluent; Boolean validationEnabled; - public V1Toleration build() { V1Toleration buildable = new V1Toleration(); buildable.setEffect(fluent.getEffect()); @@ -83,4 +60,5 @@ public V1Toleration build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java index 672c03e2a9..50ca400e25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java @@ -1,48 +1,28 @@ -/* -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.Fluent; - -/** Generated */ -public interface V1TolerationFluent> extends Fluent { +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1TolerationFluent> extends Fluent{ public String getEffect(); - public A withEffect(String effect); - public Boolean hasEffect(); - public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - public String getOperator(); - public A withOperator(String operator); - public Boolean hasOperator(); - public Long getTolerationSeconds(); - public A withTolerationSeconds(Long tolerationSeconds); - public Boolean hasTolerationSeconds(); - public String getValue(); - public A withValue(String value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java index 470924ef5b..a0ba3bba19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java @@ -1,25 +1,19 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TolerationFluentImpl> extends BaseFluent - implements V1TolerationFluent { - public V1TolerationFluentImpl() {} - +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TolerationFluentImpl> extends BaseFluent implements V1TolerationFluent{ + public V1TolerationFluentImpl() { + } public V1TolerationFluentImpl(V1Toleration instance) { this.withEffect(instance.getEffect()); @@ -30,122 +24,82 @@ public V1TolerationFluentImpl(V1Toleration instance) { this.withTolerationSeconds(instance.getTolerationSeconds()); this.withValue(instance.getValue()); - } + } private String effect; private String key; private String operator; private Long tolerationSeconds; private String value; - public String getEffect() { return this.effect; } - public A withEffect(String effect) { - this.effect = effect; - return (A) this; + this.effect=effect; return (A) this; } - public Boolean hasEffect() { return this.effect != null; } - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + this.operator=operator; return (A) this; } - public Boolean hasOperator() { return this.operator != null; } - public Long getTolerationSeconds() { return this.tolerationSeconds; } - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; + this.tolerationSeconds=tolerationSeconds; return (A) this; } - public Boolean hasTolerationSeconds() { return this.tolerationSeconds != null; } - public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TolerationFluentImpl that = (V1TolerationFluentImpl) o; - if (effect != null ? !effect.equals(that.effect) : that.effect != null) return false; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (operator != null ? !operator.equals(that.operator) : that.operator != null) return false; - if (tolerationSeconds != null - ? !tolerationSeconds.equals(that.tolerationSeconds) - : that.tolerationSeconds != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (effect != null ? !effect.equals(that.effect) :that.effect != null) return false; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (operator != null ? !operator.equals(that.operator) :that.operator != null) return false; + if (tolerationSeconds != null ? !tolerationSeconds.equals(that.tolerationSeconds) :that.tolerationSeconds != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - effect, key, operator, tolerationSeconds, value, super.hashCode()); + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { - sb.append("effect:"); - sb.append(effect + ","); - } - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (operator != null) { - sb.append("operator:"); - sb.append(operator + ","); - } - if (tolerationSeconds != null) { - sb.append("tolerationSeconds:"); - sb.append(tolerationSeconds + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java index a07d5082a6..9fc416a35b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java @@ -1,80 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1TopologySelectorLabelRequirementBuilder - extends V1TopologySelectorLabelRequirementFluentImpl - implements VisitableBuilder< - V1TopologySelectorLabelRequirement, V1TopologySelectorLabelRequirementBuilder> { +import java.lang.Boolean; +public class V1TopologySelectorLabelRequirementBuilder extends V1TopologySelectorLabelRequirementFluentImpl implements VisitableBuilder{ public V1TopologySelectorLabelRequirementBuilder() { this(false); } - public V1TopologySelectorLabelRequirementBuilder(Boolean validationEnabled) { this(new V1TopologySelectorLabelRequirement(), validationEnabled); } - - public V1TopologySelectorLabelRequirementBuilder( - V1TopologySelectorLabelRequirementFluent fluent) { + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent) { this(fluent, false); } - - public V1TopologySelectorLabelRequirementBuilder( - V1TopologySelectorLabelRequirementFluent fluent, Boolean validationEnabled) { + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,Boolean validationEnabled) { this(fluent, new V1TopologySelectorLabelRequirement(), validationEnabled); } - - public V1TopologySelectorLabelRequirementBuilder( - V1TopologySelectorLabelRequirementFluent fluent, - V1TopologySelectorLabelRequirement instance) { + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,V1TopologySelectorLabelRequirement instance) { this(fluent, instance, false); } - - public V1TopologySelectorLabelRequirementBuilder( - V1TopologySelectorLabelRequirementFluent fluent, - V1TopologySelectorLabelRequirement instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,V1TopologySelectorLabelRequirement instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withKey(instance.getKey()); fluent.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirement instance) { - this(instance, false); + this(instance,false); } - - public V1TopologySelectorLabelRequirementBuilder( - V1TopologySelectorLabelRequirement instance, Boolean validationEnabled) { - this.fluent = this; + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirement instance,Boolean validationEnabled) { + this.fluent = this; this.withKey(instance.getKey()); this.withValues(instance.getValues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TopologySelectorLabelRequirementFluent fluent; Boolean validationEnabled; - public V1TopologySelectorLabelRequirement build() { V1TopologySelectorLabelRequirement buildable = new V1TopologySelectorLabelRequirement(); buildable.setKey(fluent.getKey()); buildable.setValues(fluent.getValues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java index 2800f6843e..eebb295b98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java @@ -1,59 +1,35 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1TopologySelectorLabelRequirementFluent< - A extends V1TopologySelectorLabelRequirementFluent> - extends Fluent { + /** + * Generated + */ +public interface V1TopologySelectorLabelRequirementFluent> extends Fluent{ public String getKey(); - public A withKey(String key); - public Boolean hasKey(); - - public A addToValues(Integer index, String item); - - public A setToValues(Integer index, String item); - + public A addToValues(Integer index,String item); + public A setToValues(Integer index,String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); - public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(Collection items); - public List getValues(); - public String getValue(Integer index); - public String getFirstValue(); - public String getLastValue(); - public String getMatchingValue(Predicate predicate); - public Boolean hasMatchingValue(Predicate predicate); - public A withValues(List values); - public A withValues(java.lang.String... values); - public Boolean hasValues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java index 3584da757f..40a450b9e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java @@ -1,194 +1,109 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TopologySelectorLabelRequirementFluentImpl< - A extends V1TopologySelectorLabelRequirementFluent> - extends BaseFluent implements V1TopologySelectorLabelRequirementFluent { - public V1TopologySelectorLabelRequirementFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TopologySelectorLabelRequirementFluentImpl> extends BaseFluent implements V1TopologySelectorLabelRequirementFluent{ + public V1TopologySelectorLabelRequirementFluentImpl() { + } public V1TopologySelectorLabelRequirementFluentImpl(V1TopologySelectorLabelRequirement instance) { this.withKey(instance.getKey()); this.withValues(instance.getValues()); - } + } private String key; private List values; - public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + this.key=key; return (A) this; } - public Boolean hasKey() { return this.key != null; } - - public A addToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } + public A addToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} this.values.add(index, item); - return (A) this; + return (A)this; } - - public A setToValues(Integer index, String item) { - if (this.values == null) { - this.values = new ArrayList(); - } - this.values.set(index, item); - return (A) this; + public A setToValues(Integer index,String item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.set(index, item); return (A)this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A addAllToValues(Collection items) { - if (this.values == null) { - this.values = new ArrayList(); - } - for (String item : items) { - this.values.add(item); - } - return (A) this; + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; } - public A removeFromValues(java.lang.String... items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public A removeAllFromValues(Collection items) { - for (String item : items) { - if (this.values != null) { - this.values.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.values!= null){ this.values.remove(item);}} return (A)this; } - public List getValues() { return this.values; } - public String getValue(Integer index) { return this.values.get(index); } - public String getFirstValue() { return this.values.get(0); } - public String getLastValue() { return this.values.get(values.size() - 1); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: values) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: values) { if(predicate.test(item)){ return true;} } return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + if (values != null) {this.values = new ArrayList(); for (String item : values){this.addToValues(item);}} else { this.values = null;} return (A) this; } - public A withValues(java.lang.String... values) { - if (this.values != null) { - this.values.clear(); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + if (this.values != null) {this.values.clear();} + if (values != null) {for (String item :values){ this.addToValues(item);}} return (A) this; } - public Boolean hasValues() { return values != null && !values.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1TopologySelectorLabelRequirementFluentImpl that = - (V1TopologySelectorLabelRequirementFluentImpl) o; - if (key != null ? !key.equals(that.key) : that.key != null) return false; - if (values != null ? !values.equals(that.values) : that.values != null) return false; + V1TopologySelectorLabelRequirementFluentImpl that = (V1TopologySelectorLabelRequirementFluentImpl) o; + if (key != null ? !key.equals(that.key) :that.key != null) return false; + if (values != null ? !values.equals(that.values) :that.values != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(key, values, super.hashCode()); + return java.util.Objects.hash(key, values, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { - sb.append("key:"); - sb.append(key + ","); - } - if (values != null && !values.isEmpty()) { - sb.append("values:"); - sb.append(values); - } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java index c4cf34e184..a5e63b6f6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1TopologySelectorTermBuilder - extends V1TopologySelectorTermFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TopologySelectorTermBuilder extends V1TopologySelectorTermFluentImpl implements VisitableBuilder{ public V1TopologySelectorTermBuilder() { this(false); } - public V1TopologySelectorTermBuilder(Boolean validationEnabled) { this(new V1TopologySelectorTerm(), validationEnabled); } - public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent) { this(fluent, false); } - - public V1TopologySelectorTermBuilder( - V1TopologySelectorTermFluent fluent, Boolean validationEnabled) { + public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,Boolean validationEnabled) { this(fluent, new V1TopologySelectorTerm(), validationEnabled); } - - public V1TopologySelectorTermBuilder( - V1TopologySelectorTermFluent fluent, V1TopologySelectorTerm instance) { + public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,V1TopologySelectorTerm instance) { this(fluent, instance, false); } - - public V1TopologySelectorTermBuilder( - V1TopologySelectorTermFluent fluent, - V1TopologySelectorTerm instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,V1TopologySelectorTerm instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMatchLabelExpressions(instance.getMatchLabelExpressions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance) { - this(instance, false); + this(instance,false); } - - public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance, Boolean validationEnabled) { - this.fluent = this; + public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance,Boolean validationEnabled) { + this.fluent = this; this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TopologySelectorTermFluent fluent; Boolean validationEnabled; - public V1TopologySelectorTerm build() { V1TopologySelectorTerm buildable = new V1TopologySelectorTerm(); buildable.setMatchLabelExpressions(fluent.getMatchLabelExpressions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java index 305de3b815..cdf073d855 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java @@ -1,100 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1TopologySelectorTermFluent> - extends Fluent { - public A addToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item); - - public A setToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item); - - public A addToMatchLabelExpressions( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1TopologySelectorTermFluent> extends Fluent{ + public A addToMatchLabelExpressions(Integer index,V1TopologySelectorLabelRequirement item); + public A setToMatchLabelExpressions(Integer index,V1TopologySelectorLabelRequirement item); + public A addToMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items); public A addAllToMatchLabelExpressions(Collection items); - - public A removeFromMatchLabelExpressions( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items); - + public A removeFromMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items); public A removeAllFromMatchLabelExpressions(Collection items); - - public A removeMatchingFromMatchLabelExpressions( - Predicate predicate); - + public A removeMatchingFromMatchLabelExpressions(Predicate predicate); + /** * This method has been deprecated, please use method buildMatchLabelExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchLabelExpressions(); - public List buildMatchLabelExpressions(); - public V1TopologySelectorLabelRequirement buildMatchLabelExpression(Integer index); - public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression(); - public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression(); - - public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression( - Predicate predicate); - - public Boolean hasMatchingMatchLabelExpression( - Predicate predicate); - - public A withMatchLabelExpressions( - List matchLabelExpressions); - - public A withMatchLabelExpressions( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... - matchLabelExpressions); - + public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression(Predicate predicate); + public Boolean hasMatchingMatchLabelExpression(Predicate predicate); + public A withMatchLabelExpressions(List matchLabelExpressions); + public A withMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... matchLabelExpressions); public Boolean hasMatchLabelExpressions(); - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpression(); - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpressionLike( - V1TopologySelectorLabelRequirement item); - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested setNewMatchLabelExpressionLike( - Integer index, V1TopologySelectorLabelRequirement item); - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchLabelExpression( - Integer index); - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested - editFirstMatchLabelExpression(); - + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested setNewMatchLabelExpressionLike(Integer index,V1TopologySelectorLabelRequirement item); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchLabelExpression(Integer index); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editFirstMatchLabelExpression(); public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editLastMatchLabelExpression(); - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested - editMatchingMatchLabelExpression( - Predicate predicate); - - public interface MatchLabelExpressionsNested - extends Nested, - V1TopologySelectorLabelRequirementFluent< - V1TopologySelectorTermFluent.MatchLabelExpressionsNested> { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchingMatchLabelExpression(Predicate predicate); + public interface MatchLabelExpressionsNested extends Nested,V1TopologySelectorLabelRequirementFluent>{ public N and(); - public N endMatchLabelExpression(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java index 0d05770534..5cb2520fb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java @@ -1,127 +1,60 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TopologySelectorTermFluentImpl> - extends BaseFluent implements V1TopologySelectorTermFluent { - public V1TopologySelectorTermFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TopologySelectorTermFluentImpl> extends BaseFluent implements V1TopologySelectorTermFluent{ + public V1TopologySelectorTermFluentImpl() { + } public V1TopologySelectorTermFluentImpl(V1TopologySelectorTerm instance) { this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); - } + } private ArrayList matchLabelExpressions; - - public A addToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item) { - if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); - } - V1TopologySelectorLabelRequirementBuilder builder = - new V1TopologySelectorLabelRequirementBuilder(item); - _visitables - .get("matchLabelExpressions") - .add(index >= 0 ? index : _visitables.get("matchLabelExpressions").size(), builder); - this.matchLabelExpressions.add(index >= 0 ? index : matchLabelExpressions.size(), builder); - return (A) this; + public A addToMatchLabelExpressions(Integer index,V1TopologySelectorLabelRequirement item) { + if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(index >= 0 ? index : _visitables.get("matchLabelExpressions").size(), builder);this.matchLabelExpressions.add(index >= 0 ? index : matchLabelExpressions.size(), builder); return (A)this; } - - public A setToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item) { - if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); - } - V1TopologySelectorLabelRequirementBuilder builder = - new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= _visitables.get("matchLabelExpressions").size()) { - _visitables.get("matchLabelExpressions").add(builder); - } else { - _visitables.get("matchLabelExpressions").set(index, builder); - } - if (index < 0 || index >= matchLabelExpressions.size()) { - matchLabelExpressions.add(builder); - } else { - matchLabelExpressions.set(index, builder); - } - return (A) this; + public A setToMatchLabelExpressions(Integer index,V1TopologySelectorLabelRequirement item) { + if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + if (index < 0 || index >= _visitables.get("matchLabelExpressions").size()) { _visitables.get("matchLabelExpressions").add(builder); } else { _visitables.get("matchLabelExpressions").set(index, builder);} + if (index < 0 || index >= matchLabelExpressions.size()) { matchLabelExpressions.add(builder); } else { matchLabelExpressions.set(index, builder);} + return (A)this; } - - public A addToMatchLabelExpressions( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); - } - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = - new V1TopologySelectorLabelRequirementBuilder(item); - _visitables.get("matchLabelExpressions").add(builder); - this.matchLabelExpressions.add(builder); - } - return (A) this; + public A addToMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { + if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(builder);this.matchLabelExpressions.add(builder);} return (A)this; } - public A addAllToMatchLabelExpressions(Collection items) { - if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); - } - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = - new V1TopologySelectorLabelRequirementBuilder(item); - _visitables.get("matchLabelExpressions").add(builder); - this.matchLabelExpressions.add(builder); - } - return (A) this; + if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(builder);this.matchLabelExpressions.add(builder);} return (A)this; } - - public A removeFromMatchLabelExpressions( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = - new V1TopologySelectorLabelRequirementBuilder(item); - _visitables.get("matchLabelExpressions").remove(builder); - if (this.matchLabelExpressions != null) { - this.matchLabelExpressions.remove(builder); - } - } - return (A) this; + public A removeFromMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { + for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").remove(builder);if (this.matchLabelExpressions != null) {this.matchLabelExpressions.remove(builder);}} return (A)this; } - - public A removeAllFromMatchLabelExpressions( - Collection items) { - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = - new V1TopologySelectorLabelRequirementBuilder(item); - _visitables.get("matchLabelExpressions").remove(builder); - if (this.matchLabelExpressions != null) { - this.matchLabelExpressions.remove(builder); - } - } - return (A) this; + public A removeAllFromMatchLabelExpressions(Collection items) { + for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").remove(builder);if (this.matchLabelExpressions != null) {this.matchLabelExpressions.remove(builder);}} return (A)this; } - - public A removeMatchingFromMatchLabelExpressions( - Predicate predicate) { + public A removeMatchingFromMatchLabelExpressions(Predicate predicate) { if (matchLabelExpressions == null) return (A) this; - final Iterator each = - matchLabelExpressions.iterator(); + final Iterator each = matchLabelExpressions.iterator(); final List visitables = _visitables.get("matchLabelExpressions"); while (each.hasNext()) { V1TopologySelectorLabelRequirementBuilder builder = each.next(); @@ -130,189 +63,111 @@ public A removeMatchingFromMatchLabelExpressions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildMatchLabelExpressions instead. - * * @return The buildable object. */ @Deprecated public List getMatchLabelExpressions() { return matchLabelExpressions != null ? build(matchLabelExpressions) : null; } - public List buildMatchLabelExpressions() { return matchLabelExpressions != null ? build(matchLabelExpressions) : null; } - public V1TopologySelectorLabelRequirement buildMatchLabelExpression(Integer index) { return this.matchLabelExpressions.get(index).build(); } - public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression() { return this.matchLabelExpressions.get(0).build(); } - public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression() { return this.matchLabelExpressions.get(matchLabelExpressions.size() - 1).build(); } - - public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression( - Predicate predicate) { - for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression(Predicate predicate) { + for (V1TopologySelectorLabelRequirementBuilder item: matchLabelExpressions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingMatchLabelExpression( - Predicate predicate) { - for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingMatchLabelExpression(Predicate predicate) { + for (V1TopologySelectorLabelRequirementBuilder item: matchLabelExpressions) { if(predicate.test(item)){ return true;} } return false; } - - public A withMatchLabelExpressions( - List matchLabelExpressions) { - if (this.matchLabelExpressions != null) { - _visitables.get("matchLabelExpressions").removeAll(this.matchLabelExpressions); - } - if (matchLabelExpressions != null) { - this.matchLabelExpressions = new ArrayList(); - for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { - this.addToMatchLabelExpressions(item); - } - } else { - this.matchLabelExpressions = null; - } - return (A) this; + public A withMatchLabelExpressions(List matchLabelExpressions) { + if (this.matchLabelExpressions != null) { _visitables.get("matchLabelExpressions").removeAll(this.matchLabelExpressions);} + if (matchLabelExpressions != null) {this.matchLabelExpressions = new ArrayList(); for (V1TopologySelectorLabelRequirement item : matchLabelExpressions){this.addToMatchLabelExpressions(item);}} else { this.matchLabelExpressions = null;} return (A) this; } - - public A withMatchLabelExpressions( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... - matchLabelExpressions) { - if (this.matchLabelExpressions != null) { - this.matchLabelExpressions.clear(); - } - if (matchLabelExpressions != null) { - for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { - this.addToMatchLabelExpressions(item); - } - } - return (A) this; + public A withMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... matchLabelExpressions) { + if (this.matchLabelExpressions != null) {this.matchLabelExpressions.clear();} + if (matchLabelExpressions != null) {for (V1TopologySelectorLabelRequirement item :matchLabelExpressions){ this.addToMatchLabelExpressions(item);}} return (A) this; } - public Boolean hasMatchLabelExpressions() { return matchLabelExpressions != null && !matchLabelExpressions.isEmpty(); } - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpression() { return new V1TopologySelectorTermFluentImpl.MatchLabelExpressionsNestedImpl(); } - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpressionLike( - V1TopologySelectorLabelRequirement item) { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item) { return new V1TopologySelectorTermFluentImpl.MatchLabelExpressionsNestedImpl(-1, item); } - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested setNewMatchLabelExpressionLike( - Integer index, V1TopologySelectorLabelRequirement item) { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested setNewMatchLabelExpressionLike(Integer index,V1TopologySelectorLabelRequirement item) { return new V1TopologySelectorTermFluentImpl.MatchLabelExpressionsNestedImpl(index, item); } - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchLabelExpression( - Integer index) { - if (matchLabelExpressions.size() <= index) - throw new RuntimeException("Can't edit matchLabelExpressions. Index exceeds size."); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchLabelExpression(Integer index) { + if (matchLabelExpressions.size() <= index) throw new RuntimeException("Can't edit matchLabelExpressions. Index exceeds size."); return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); } - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested - editFirstMatchLabelExpression() { - if (matchLabelExpressions.size() == 0) - throw new RuntimeException("Can't edit first matchLabelExpressions. The list is empty."); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editFirstMatchLabelExpression() { + if (matchLabelExpressions.size() == 0) throw new RuntimeException("Can't edit first matchLabelExpressions. The list is empty."); return setNewMatchLabelExpressionLike(0, buildMatchLabelExpression(0)); } - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested - editLastMatchLabelExpression() { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editLastMatchLabelExpression() { int index = matchLabelExpressions.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last matchLabelExpressions. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last matchLabelExpressions. The list is empty."); return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); } - - public V1TopologySelectorTermFluent.MatchLabelExpressionsNested - editMatchingMatchLabelExpression( - Predicate predicate) { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchingMatchLabelExpression(Predicate predicate) { int index = -1; - for (int i = 0; i < matchLabelExpressions.size(); i++) { - if (predicate.test(matchLabelExpressions.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching matchLabelExpressions. No match found."); + for (int i=0;i - extends V1TopologySelectorLabelRequirementFluentImpl< - V1TopologySelectorTermFluent.MatchLabelExpressionsNested> - implements V1TopologySelectorTermFluent.MatchLabelExpressionsNested, Nested { - MatchLabelExpressionsNestedImpl(Integer index, V1TopologySelectorLabelRequirement item) { + class MatchLabelExpressionsNestedImpl extends V1TopologySelectorLabelRequirementFluentImpl> implements V1TopologySelectorTermFluent.MatchLabelExpressionsNested,Nested{ + MatchLabelExpressionsNestedImpl(Integer index,V1TopologySelectorLabelRequirement item) { this.index = index; this.builder = new V1TopologySelectorLabelRequirementBuilder(this, item); } - MatchLabelExpressionsNestedImpl() { this.index = -1; this.builder = new V1TopologySelectorLabelRequirementBuilder(this); } - V1TopologySelectorLabelRequirementBuilder builder; Integer index; - public N and() { - return (N) - V1TopologySelectorTermFluentImpl.this.setToMatchLabelExpressions(index, builder.build()); + return (N) V1TopologySelectorTermFluentImpl.this.setToMatchLabelExpressions(index,builder.build()); } - public N endMatchLabelExpression() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java index 294c0aca23..c65bb8762a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1TopologySpreadConstraintBuilder - extends V1TopologySpreadConstraintFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TopologySpreadConstraintBuilder extends V1TopologySpreadConstraintFluentImpl implements VisitableBuilder{ public V1TopologySpreadConstraintBuilder() { this(false); } - public V1TopologySpreadConstraintBuilder(Boolean validationEnabled) { this(new V1TopologySpreadConstraint(), validationEnabled); } - public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent) { this(fluent, false); } - - public V1TopologySpreadConstraintBuilder( - V1TopologySpreadConstraintFluent fluent, Boolean validationEnabled) { + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,Boolean validationEnabled) { this(fluent, new V1TopologySpreadConstraint(), validationEnabled); } - - public V1TopologySpreadConstraintBuilder( - V1TopologySpreadConstraintFluent fluent, V1TopologySpreadConstraint instance) { + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,V1TopologySpreadConstraint instance) { this(fluent, instance, false); } - - public V1TopologySpreadConstraintBuilder( - V1TopologySpreadConstraintFluent fluent, - V1TopologySpreadConstraint instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,V1TopologySpreadConstraint instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLabelSelector(instance.getLabelSelector()); fluent.withMatchLabelKeys(instance.getMatchLabelKeys()); @@ -60,16 +36,13 @@ public V1TopologySpreadConstraintBuilder( fluent.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraint instance) { - this(instance, false); + this(instance,false); } - - public V1TopologySpreadConstraintBuilder( - V1TopologySpreadConstraint instance, Boolean validationEnabled) { - this.fluent = this; + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraint instance,Boolean validationEnabled) { + this.fluent = this; this.withLabelSelector(instance.getLabelSelector()); this.withMatchLabelKeys(instance.getMatchLabelKeys()); @@ -86,12 +59,10 @@ public V1TopologySpreadConstraintBuilder( this.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TopologySpreadConstraintFluent fluent; Boolean validationEnabled; - public V1TopologySpreadConstraint build() { V1TopologySpreadConstraint buildable = new V1TopologySpreadConstraint(); buildable.setLabelSelector(fluent.getLabelSelector()); @@ -104,4 +75,5 @@ public V1TopologySpreadConstraint build() { buildable.setWhenUnsatisfiable(fluent.getWhenUnsatisfiable()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java index 735241d3f0..d5b4e44693 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java @@ -1,124 +1,72 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1TopologySpreadConstraintFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1TopologySpreadConstraintFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildLabelSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getLabelSelector(); - public V1LabelSelector buildLabelSelector(); - public A withLabelSelector(V1LabelSelector labelSelector); - public Boolean hasLabelSelector(); - public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelector(); - - public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelectorLike( - V1LabelSelector item); - + public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item); public V1TopologySpreadConstraintFluent.LabelSelectorNested editLabelSelector(); - public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelector(); - - public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelectorLike( - V1LabelSelector item); - - public A addToMatchLabelKeys(Integer index, String item); - - public A setToMatchLabelKeys(Integer index, String item); - + public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item); + public A addToMatchLabelKeys(Integer index,String item); + public A setToMatchLabelKeys(Integer index,String item); public A addToMatchLabelKeys(java.lang.String... items); - public A addAllToMatchLabelKeys(Collection items); - public A removeFromMatchLabelKeys(java.lang.String... items); - public A removeAllFromMatchLabelKeys(Collection items); - public List getMatchLabelKeys(); - public String getMatchLabelKey(Integer index); - public String getFirstMatchLabelKey(); - public String getLastMatchLabelKey(); - public String getMatchingMatchLabelKey(Predicate predicate); - public Boolean hasMatchingMatchLabelKey(Predicate predicate); - public A withMatchLabelKeys(List matchLabelKeys); - public A withMatchLabelKeys(java.lang.String... matchLabelKeys); - public Boolean hasMatchLabelKeys(); - public Integer getMaxSkew(); - public A withMaxSkew(Integer maxSkew); - public Boolean hasMaxSkew(); - public Integer getMinDomains(); - public A withMinDomains(Integer minDomains); - public Boolean hasMinDomains(); - public String getNodeAffinityPolicy(); - public A withNodeAffinityPolicy(String nodeAffinityPolicy); - public Boolean hasNodeAffinityPolicy(); - public String getNodeTaintsPolicy(); - public A withNodeTaintsPolicy(String nodeTaintsPolicy); - public Boolean hasNodeTaintsPolicy(); - public String getTopologyKey(); - public A withTopologyKey(String topologyKey); - public Boolean hasTopologyKey(); - public String getWhenUnsatisfiable(); - public A withWhenUnsatisfiable(String whenUnsatisfiable); - public Boolean hasWhenUnsatisfiable(); - - public interface LabelSelectorNested - extends Nested, - V1LabelSelectorFluent> { + public interface LabelSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endLabelSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java index 0641bfa2c8..3d5e3a2f19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java @@ -1,30 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TopologySpreadConstraintFluentImpl> - extends BaseFluent implements V1TopologySpreadConstraintFluent { - public V1TopologySpreadConstraintFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TopologySpreadConstraintFluentImpl> extends BaseFluent implements V1TopologySpreadConstraintFluent{ + public V1TopologySpreadConstraintFluentImpl() { + } public V1TopologySpreadConstraintFluentImpl(V1TopologySpreadConstraint instance) { this.withLabelSelector(instance.getLabelSelector()); @@ -41,8 +36,8 @@ public V1TopologySpreadConstraintFluentImpl(V1TopologySpreadConstraint instance) this.withTopologyKey(instance.getTopologyKey()); this.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); - } + } private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; private Integer maxSkew; @@ -51,352 +46,191 @@ public V1TopologySpreadConstraintFluentImpl(V1TopologySpreadConstraint instance) private String nodeTaintsPolicy; private String topologyKey; private String whenUnsatisfiable; - + /** * This method has been deprecated, please use method buildLabelSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + return this.labelSelector!=null ?this.labelSelector.build():null; } - public V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + return this.labelSelector!=null ?this.labelSelector.build():null; } - public A withLabelSelector(V1LabelSelector labelSelector) { _visitables.get("labelSelector").remove(this.labelSelector); - if (labelSelector != null) { - this.labelSelector = new V1LabelSelectorBuilder(labelSelector); - _visitables.get("labelSelector").add(this.labelSelector); - } else { - this.labelSelector = null; - _visitables.get("labelSelector").remove(this.labelSelector); - } - return (A) this; + if (labelSelector!=null){ this.labelSelector= new V1LabelSelectorBuilder(labelSelector); _visitables.get("labelSelector").add(this.labelSelector);} else { this.labelSelector = null; _visitables.get("labelSelector").remove(this.labelSelector); } return (A) this; } - public Boolean hasLabelSelector() { return this.labelSelector != null; } - public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelector() { return new V1TopologySpreadConstraintFluentImpl.LabelSelectorNestedImpl(); } - - public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelectorLike( - V1LabelSelector item) { + public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { return new V1TopologySpreadConstraintFluentImpl.LabelSelectorNestedImpl(item); } - public V1TopologySpreadConstraintFluent.LabelSelectorNested editLabelSelector() { return withNewLabelSelectorLike(getLabelSelector()); } - public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike( - getLabelSelector() != null ? getLabelSelector() : new V1LabelSelectorBuilder().build()); + return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector(): new V1LabelSelectorBuilder().build()); } - - public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelectorLike( - V1LabelSelector item) { - return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector() : item); + public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { + return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector(): item); } - - public A addToMatchLabelKeys(Integer index, String item) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); - } + public A addToMatchLabelKeys(Integer index,String item) { + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} this.matchLabelKeys.add(index, item); - return (A) this; + return (A)this; } - - public A setToMatchLabelKeys(Integer index, String item) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); - } - this.matchLabelKeys.set(index, item); - return (A) this; + public A setToMatchLabelKeys(Integer index,String item) { + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + this.matchLabelKeys.set(index, item); return (A)this; } - public A addToMatchLabelKeys(java.lang.String... items) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); - } - for (String item : items) { - this.matchLabelKeys.add(item); - } - return (A) this; + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; } - public A addAllToMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); - } - for (String item : items) { - this.matchLabelKeys.add(item); - } - return (A) this; + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; } - public A removeFromMatchLabelKeys(java.lang.String... items) { - for (String item : items) { - if (this.matchLabelKeys != null) { - this.matchLabelKeys.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.matchLabelKeys!= null){ this.matchLabelKeys.remove(item);}} return (A)this; } - public A removeAllFromMatchLabelKeys(Collection items) { - for (String item : items) { - if (this.matchLabelKeys != null) { - this.matchLabelKeys.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.matchLabelKeys!= null){ this.matchLabelKeys.remove(item);}} return (A)this; } - public List getMatchLabelKeys() { return this.matchLabelKeys; } - public String getMatchLabelKey(Integer index) { return this.matchLabelKeys.get(index); } - public String getFirstMatchLabelKey() { return this.matchLabelKeys.get(0); } - public String getLastMatchLabelKey() { return this.matchLabelKeys.get(matchLabelKeys.size() - 1); } - public String getMatchingMatchLabelKey(Predicate predicate) { - for (String item : matchLabelKeys) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: matchLabelKeys) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingMatchLabelKey(Predicate predicate) { - for (String item : matchLabelKeys) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: matchLabelKeys) { if(predicate.test(item)){ return true;} } return false; } - public A withMatchLabelKeys(List matchLabelKeys) { - if (matchLabelKeys != null) { - this.matchLabelKeys = new ArrayList(); - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); - } - } else { - this.matchLabelKeys = null; - } - return (A) this; + if (matchLabelKeys != null) {this.matchLabelKeys = new ArrayList(); for (String item : matchLabelKeys){this.addToMatchLabelKeys(item);}} else { this.matchLabelKeys = null;} return (A) this; } - public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { - if (this.matchLabelKeys != null) { - this.matchLabelKeys.clear(); - } - if (matchLabelKeys != null) { - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); - } - } - return (A) this; + if (this.matchLabelKeys != null) {this.matchLabelKeys.clear();} + if (matchLabelKeys != null) {for (String item :matchLabelKeys){ this.addToMatchLabelKeys(item);}} return (A) this; } - public Boolean hasMatchLabelKeys() { return matchLabelKeys != null && !matchLabelKeys.isEmpty(); } - public Integer getMaxSkew() { return this.maxSkew; } - public A withMaxSkew(Integer maxSkew) { - this.maxSkew = maxSkew; - return (A) this; + this.maxSkew=maxSkew; return (A) this; } - public Boolean hasMaxSkew() { return this.maxSkew != null; } - public Integer getMinDomains() { return this.minDomains; } - public A withMinDomains(Integer minDomains) { - this.minDomains = minDomains; - return (A) this; + this.minDomains=minDomains; return (A) this; } - public Boolean hasMinDomains() { return this.minDomains != null; } - public String getNodeAffinityPolicy() { return this.nodeAffinityPolicy; } - public A withNodeAffinityPolicy(String nodeAffinityPolicy) { - this.nodeAffinityPolicy = nodeAffinityPolicy; - return (A) this; + this.nodeAffinityPolicy=nodeAffinityPolicy; return (A) this; } - public Boolean hasNodeAffinityPolicy() { return this.nodeAffinityPolicy != null; } - public String getNodeTaintsPolicy() { return this.nodeTaintsPolicy; } - public A withNodeTaintsPolicy(String nodeTaintsPolicy) { - this.nodeTaintsPolicy = nodeTaintsPolicy; - return (A) this; + this.nodeTaintsPolicy=nodeTaintsPolicy; return (A) this; } - public Boolean hasNodeTaintsPolicy() { return this.nodeTaintsPolicy != null; } - public String getTopologyKey() { return this.topologyKey; } - public A withTopologyKey(String topologyKey) { - this.topologyKey = topologyKey; - return (A) this; + this.topologyKey=topologyKey; return (A) this; } - public Boolean hasTopologyKey() { return this.topologyKey != null; } - public String getWhenUnsatisfiable() { return this.whenUnsatisfiable; } - public A withWhenUnsatisfiable(String whenUnsatisfiable) { - this.whenUnsatisfiable = whenUnsatisfiable; - return (A) this; + this.whenUnsatisfiable=whenUnsatisfiable; return (A) this; } - public Boolean hasWhenUnsatisfiable() { return this.whenUnsatisfiable != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TopologySpreadConstraintFluentImpl that = (V1TopologySpreadConstraintFluentImpl) o; - if (labelSelector != null - ? !labelSelector.equals(that.labelSelector) - : that.labelSelector != null) return false; - if (matchLabelKeys != null - ? !matchLabelKeys.equals(that.matchLabelKeys) - : that.matchLabelKeys != null) return false; - if (maxSkew != null ? !maxSkew.equals(that.maxSkew) : that.maxSkew != null) return false; - if (minDomains != null ? !minDomains.equals(that.minDomains) : that.minDomains != null) - return false; - if (nodeAffinityPolicy != null - ? !nodeAffinityPolicy.equals(that.nodeAffinityPolicy) - : that.nodeAffinityPolicy != null) return false; - if (nodeTaintsPolicy != null - ? !nodeTaintsPolicy.equals(that.nodeTaintsPolicy) - : that.nodeTaintsPolicy != null) return false; - if (topologyKey != null ? !topologyKey.equals(that.topologyKey) : that.topologyKey != null) - return false; - if (whenUnsatisfiable != null - ? !whenUnsatisfiable.equals(that.whenUnsatisfiable) - : that.whenUnsatisfiable != null) return false; + if (labelSelector != null ? !labelSelector.equals(that.labelSelector) :that.labelSelector != null) return false; + if (matchLabelKeys != null ? !matchLabelKeys.equals(that.matchLabelKeys) :that.matchLabelKeys != null) return false; + if (maxSkew != null ? !maxSkew.equals(that.maxSkew) :that.maxSkew != null) return false; + if (minDomains != null ? !minDomains.equals(that.minDomains) :that.minDomains != null) return false; + if (nodeAffinityPolicy != null ? !nodeAffinityPolicy.equals(that.nodeAffinityPolicy) :that.nodeAffinityPolicy != null) return false; + if (nodeTaintsPolicy != null ? !nodeTaintsPolicy.equals(that.nodeTaintsPolicy) :that.nodeTaintsPolicy != null) return false; + if (topologyKey != null ? !topologyKey.equals(that.topologyKey) :that.topologyKey != null) return false; + if (whenUnsatisfiable != null ? !whenUnsatisfiable.equals(that.whenUnsatisfiable) :that.whenUnsatisfiable != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - labelSelector, - matchLabelKeys, - maxSkew, - minDomains, - nodeAffinityPolicy, - nodeTaintsPolicy, - topologyKey, - whenUnsatisfiable, - super.hashCode()); + return java.util.Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelector != null) { - sb.append("labelSelector:"); - sb.append(labelSelector + ","); - } - if (matchLabelKeys != null && !matchLabelKeys.isEmpty()) { - sb.append("matchLabelKeys:"); - sb.append(matchLabelKeys + ","); - } - if (maxSkew != null) { - sb.append("maxSkew:"); - sb.append(maxSkew + ","); - } - if (minDomains != null) { - sb.append("minDomains:"); - sb.append(minDomains + ","); - } - if (nodeAffinityPolicy != null) { - sb.append("nodeAffinityPolicy:"); - sb.append(nodeAffinityPolicy + ","); - } - if (nodeTaintsPolicy != null) { - sb.append("nodeTaintsPolicy:"); - sb.append(nodeTaintsPolicy + ","); - } - if (topologyKey != null) { - sb.append("topologyKey:"); - sb.append(topologyKey + ","); - } - if (whenUnsatisfiable != null) { - sb.append("whenUnsatisfiable:"); - sb.append(whenUnsatisfiable); - } + if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } + if (matchLabelKeys != null && !matchLabelKeys.isEmpty()) { sb.append("matchLabelKeys:"); sb.append(matchLabelKeys + ","); } + if (maxSkew != null) { sb.append("maxSkew:"); sb.append(maxSkew + ","); } + if (minDomains != null) { sb.append("minDomains:"); sb.append(minDomains + ","); } + if (nodeAffinityPolicy != null) { sb.append("nodeAffinityPolicy:"); sb.append(nodeAffinityPolicy + ","); } + if (nodeTaintsPolicy != null) { sb.append("nodeTaintsPolicy:"); sb.append(nodeTaintsPolicy + ","); } + if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey + ","); } + if (whenUnsatisfiable != null) { sb.append("whenUnsatisfiable:"); sb.append(whenUnsatisfiable); } sb.append("}"); return sb.toString(); } - - class LabelSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1TopologySpreadConstraintFluent.LabelSelectorNested, Nested { + class LabelSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1TopologySpreadConstraintFluent.LabelSelectorNested,Nested{ LabelSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - LabelSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1TopologySpreadConstraintFluentImpl.this.withLabelSelector(builder.build()); } - public N endLabelSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java index 1583e65a67..97f1609bca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1TypedLocalObjectReferenceBuilder - extends V1TypedLocalObjectReferenceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1TypedLocalObjectReferenceBuilder extends V1TypedLocalObjectReferenceFluentImpl implements VisitableBuilder{ public V1TypedLocalObjectReferenceBuilder() { this(false); } - public V1TypedLocalObjectReferenceBuilder(Boolean validationEnabled) { this(new V1TypedLocalObjectReference(), validationEnabled); } - public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent) { this(fluent, false); } - - public V1TypedLocalObjectReferenceBuilder( - V1TypedLocalObjectReferenceFluent fluent, Boolean validationEnabled) { + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1TypedLocalObjectReference(), validationEnabled); } - - public V1TypedLocalObjectReferenceBuilder( - V1TypedLocalObjectReferenceFluent fluent, V1TypedLocalObjectReference instance) { + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,V1TypedLocalObjectReference instance) { this(fluent, instance, false); } - - public V1TypedLocalObjectReferenceBuilder( - V1TypedLocalObjectReferenceFluent fluent, - V1TypedLocalObjectReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,V1TypedLocalObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); fluent.withKind(instance.getKind()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V1TypedLocalObjectReferenceBuilder( - V1TypedLocalObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1TypedLocalObjectReferenceFluent fluent; Boolean validationEnabled; - public V1TypedLocalObjectReference build() { V1TypedLocalObjectReference buildable = new V1TypedLocalObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -79,4 +50,5 @@ public V1TypedLocalObjectReference build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java index 798b8e05d7..1e6c11c5a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java @@ -1,37 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1TypedLocalObjectReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1TypedLocalObjectReferenceFluent> extends Fluent{ public String getApiGroup(); - public A withApiGroup(String apiGroup); - public Boolean hasApiGroup(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java index dba1a55a38..6f15bb6b41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java @@ -1,106 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1TypedLocalObjectReferenceFluentImpl> - extends BaseFluent implements V1TypedLocalObjectReferenceFluent { - public V1TypedLocalObjectReferenceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1TypedLocalObjectReferenceFluentImpl> extends BaseFluent implements V1TypedLocalObjectReferenceFluent{ + public V1TypedLocalObjectReferenceFluentImpl() { + } public V1TypedLocalObjectReferenceFluentImpl(V1TypedLocalObjectReference instance) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); this.withName(instance.getName()); - } + } private String apiGroup; private String kind; private String name; - public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + this.apiGroup=apiGroup; return (A) this; } - public Boolean hasApiGroup() { return this.apiGroup != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1TypedLocalObjectReferenceFluentImpl that = (V1TypedLocalObjectReferenceFluentImpl) o; - if (apiGroup != null ? !apiGroup.equals(that.apiGroup) : that.apiGroup != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (apiGroup != null ? !apiGroup.equals(that.apiGroup) :that.apiGroup != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); + return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { - sb.append("apiGroup:"); - sb.append(apiGroup + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java index 0af7be9f53..8d78fdba08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1UncountedTerminatedPodsBuilder - extends V1UncountedTerminatedPodsFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1UncountedTerminatedPodsBuilder extends V1UncountedTerminatedPodsFluentImpl implements VisitableBuilder{ public V1UncountedTerminatedPodsBuilder() { this(false); } - public V1UncountedTerminatedPodsBuilder(Boolean validationEnabled) { this(new V1UncountedTerminatedPods(), validationEnabled); } - public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent) { this(fluent, false); } - - public V1UncountedTerminatedPodsBuilder( - V1UncountedTerminatedPodsFluent fluent, Boolean validationEnabled) { + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,Boolean validationEnabled) { this(fluent, new V1UncountedTerminatedPods(), validationEnabled); } - - public V1UncountedTerminatedPodsBuilder( - V1UncountedTerminatedPodsFluent fluent, V1UncountedTerminatedPods instance) { + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,V1UncountedTerminatedPods instance) { this(fluent, instance, false); } - - public V1UncountedTerminatedPodsBuilder( - V1UncountedTerminatedPodsFluent fluent, - V1UncountedTerminatedPods instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,V1UncountedTerminatedPods instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFailed(instance.getFailed()); fluent.withSucceeded(instance.getSucceeded()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPods instance) { - this(instance, false); + this(instance,false); } - - public V1UncountedTerminatedPodsBuilder( - V1UncountedTerminatedPods instance, Boolean validationEnabled) { - this.fluent = this; + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPods instance,Boolean validationEnabled) { + this.fluent = this; this.withFailed(instance.getFailed()); this.withSucceeded(instance.getSucceeded()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1UncountedTerminatedPodsFluent fluent; Boolean validationEnabled; - public V1UncountedTerminatedPods build() { V1UncountedTerminatedPods buildable = new V1UncountedTerminatedPods(); buildable.setFailed(fluent.getFailed()); buildable.setSucceeded(fluent.getSucceeded()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java index d12d12512f..cf4fb84cc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java @@ -1,82 +1,47 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1UncountedTerminatedPodsFluent> - extends Fluent { - public A addToFailed(Integer index, String item); - - public A setToFailed(Integer index, String item); - + /** + * Generated + */ +public interface V1UncountedTerminatedPodsFluent> extends Fluent{ + public A addToFailed(Integer index,String item); + public A setToFailed(Integer index,String item); public A addToFailed(java.lang.String... items); - public A addAllToFailed(Collection items); - public A removeFromFailed(java.lang.String... items); - public A removeAllFromFailed(Collection items); - public List getFailed(); - public String getFailed(Integer index); - public String getFirstFailed(); - public String getLastFailed(); - public String getMatchingFailed(Predicate predicate); - public Boolean hasMatchingFailed(Predicate predicate); - public A withFailed(List failed); - public A withFailed(java.lang.String... failed); - public Boolean hasFailed(); - - public A addToSucceeded(Integer index, String item); - - public A setToSucceeded(Integer index, String item); - + public A addToSucceeded(Integer index,String item); + public A setToSucceeded(Integer index,String item); public A addToSucceeded(java.lang.String... items); - public A addAllToSucceeded(Collection items); - public A removeFromSucceeded(java.lang.String... items); - public A removeAllFromSucceeded(Collection items); - public List getSucceeded(); - public String getSucceeded(Integer index); - public String getFirstSucceeded(); - public String getLastSucceeded(); - public String getMatchingSucceeded(Predicate predicate); - public Boolean hasMatchingSucceeded(Predicate predicate); - public A withSucceeded(List succeeded); - public A withSucceeded(java.lang.String... succeeded); - public Boolean hasSucceeded(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java index c0ab2756fe..cac145cc2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java @@ -1,296 +1,151 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1UncountedTerminatedPodsFluentImpl> - extends BaseFluent implements V1UncountedTerminatedPodsFluent { - public V1UncountedTerminatedPodsFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1UncountedTerminatedPodsFluentImpl> extends BaseFluent implements V1UncountedTerminatedPodsFluent{ + public V1UncountedTerminatedPodsFluentImpl() { + } public V1UncountedTerminatedPodsFluentImpl(V1UncountedTerminatedPods instance) { this.withFailed(instance.getFailed()); this.withSucceeded(instance.getSucceeded()); - } + } private List failed; private List succeeded; - - public A addToFailed(Integer index, String item) { - if (this.failed == null) { - this.failed = new ArrayList(); - } + public A addToFailed(Integer index,String item) { + if (this.failed == null) {this.failed = new ArrayList();} this.failed.add(index, item); - return (A) this; + return (A)this; } - - public A setToFailed(Integer index, String item) { - if (this.failed == null) { - this.failed = new ArrayList(); - } - this.failed.set(index, item); - return (A) this; + public A setToFailed(Integer index,String item) { + if (this.failed == null) {this.failed = new ArrayList();} + this.failed.set(index, item); return (A)this; } - public A addToFailed(java.lang.String... items) { - if (this.failed == null) { - this.failed = new ArrayList(); - } - for (String item : items) { - this.failed.add(item); - } - return (A) this; + if (this.failed == null) {this.failed = new ArrayList();} + for (String item : items) {this.failed.add(item);} return (A)this; } - public A addAllToFailed(Collection items) { - if (this.failed == null) { - this.failed = new ArrayList(); - } - for (String item : items) { - this.failed.add(item); - } - return (A) this; + if (this.failed == null) {this.failed = new ArrayList();} + for (String item : items) {this.failed.add(item);} return (A)this; } - public A removeFromFailed(java.lang.String... items) { - for (String item : items) { - if (this.failed != null) { - this.failed.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.failed!= null){ this.failed.remove(item);}} return (A)this; } - public A removeAllFromFailed(Collection items) { - for (String item : items) { - if (this.failed != null) { - this.failed.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.failed!= null){ this.failed.remove(item);}} return (A)this; } - public List getFailed() { return this.failed; } - public String getFailed(Integer index) { return this.failed.get(index); } - public String getFirstFailed() { return this.failed.get(0); } - public String getLastFailed() { return this.failed.get(failed.size() - 1); } - public String getMatchingFailed(Predicate predicate) { - for (String item : failed) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: failed) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingFailed(Predicate predicate) { - for (String item : failed) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: failed) { if(predicate.test(item)){ return true;} } return false; } - public A withFailed(List failed) { - if (failed != null) { - this.failed = new ArrayList(); - for (String item : failed) { - this.addToFailed(item); - } - } else { - this.failed = null; - } - return (A) this; + if (failed != null) {this.failed = new ArrayList(); for (String item : failed){this.addToFailed(item);}} else { this.failed = null;} return (A) this; } - public A withFailed(java.lang.String... failed) { - if (this.failed != null) { - this.failed.clear(); - } - if (failed != null) { - for (String item : failed) { - this.addToFailed(item); - } - } - return (A) this; + if (this.failed != null) {this.failed.clear();} + if (failed != null) {for (String item :failed){ this.addToFailed(item);}} return (A) this; } - public Boolean hasFailed() { return failed != null && !failed.isEmpty(); } - - public A addToSucceeded(Integer index, String item) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); - } + public A addToSucceeded(Integer index,String item) { + if (this.succeeded == null) {this.succeeded = new ArrayList();} this.succeeded.add(index, item); - return (A) this; + return (A)this; } - - public A setToSucceeded(Integer index, String item) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); - } - this.succeeded.set(index, item); - return (A) this; + public A setToSucceeded(Integer index,String item) { + if (this.succeeded == null) {this.succeeded = new ArrayList();} + this.succeeded.set(index, item); return (A)this; } - public A addToSucceeded(java.lang.String... items) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); - } - for (String item : items) { - this.succeeded.add(item); - } - return (A) this; + if (this.succeeded == null) {this.succeeded = new ArrayList();} + for (String item : items) {this.succeeded.add(item);} return (A)this; } - public A addAllToSucceeded(Collection items) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); - } - for (String item : items) { - this.succeeded.add(item); - } - return (A) this; + if (this.succeeded == null) {this.succeeded = new ArrayList();} + for (String item : items) {this.succeeded.add(item);} return (A)this; } - public A removeFromSucceeded(java.lang.String... items) { - for (String item : items) { - if (this.succeeded != null) { - this.succeeded.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.succeeded!= null){ this.succeeded.remove(item);}} return (A)this; } - public A removeAllFromSucceeded(Collection items) { - for (String item : items) { - if (this.succeeded != null) { - this.succeeded.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.succeeded!= null){ this.succeeded.remove(item);}} return (A)this; } - public List getSucceeded() { return this.succeeded; } - public String getSucceeded(Integer index) { return this.succeeded.get(index); } - public String getFirstSucceeded() { return this.succeeded.get(0); } - public String getLastSucceeded() { return this.succeeded.get(succeeded.size() - 1); } - public String getMatchingSucceeded(Predicate predicate) { - for (String item : succeeded) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: succeeded) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingSucceeded(Predicate predicate) { - for (String item : succeeded) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: succeeded) { if(predicate.test(item)){ return true;} } return false; } - public A withSucceeded(List succeeded) { - if (succeeded != null) { - this.succeeded = new ArrayList(); - for (String item : succeeded) { - this.addToSucceeded(item); - } - } else { - this.succeeded = null; - } - return (A) this; + if (succeeded != null) {this.succeeded = new ArrayList(); for (String item : succeeded){this.addToSucceeded(item);}} else { this.succeeded = null;} return (A) this; } - public A withSucceeded(java.lang.String... succeeded) { - if (this.succeeded != null) { - this.succeeded.clear(); - } - if (succeeded != null) { - for (String item : succeeded) { - this.addToSucceeded(item); - } - } - return (A) this; + if (this.succeeded != null) {this.succeeded.clear();} + if (succeeded != null) {for (String item :succeeded){ this.addToSucceeded(item);}} return (A) this; } - public Boolean hasSucceeded() { return succeeded != null && !succeeded.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1UncountedTerminatedPodsFluentImpl that = (V1UncountedTerminatedPodsFluentImpl) o; - if (failed != null ? !failed.equals(that.failed) : that.failed != null) return false; - if (succeeded != null ? !succeeded.equals(that.succeeded) : that.succeeded != null) - return false; + if (failed != null ? !failed.equals(that.failed) :that.failed != null) return false; + if (succeeded != null ? !succeeded.equals(that.succeeded) :that.succeeded != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(failed, succeeded, super.hashCode()); + return java.util.Objects.hash(failed, succeeded, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (failed != null && !failed.isEmpty()) { - sb.append("failed:"); - sb.append(failed + ","); - } - if (succeeded != null && !succeeded.isEmpty()) { - sb.append("succeeded:"); - sb.append(succeeded); - } + if (failed != null && !failed.isEmpty()) { sb.append("failed:"); sb.append(failed + ","); } + if (succeeded != null && !succeeded.isEmpty()) { sb.append("succeeded:"); sb.append(succeeded); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java index 1ab3824e8d..22e3349e09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1UserInfoBuilder extends V1UserInfoFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1UserInfoBuilder extends V1UserInfoFluentImpl implements VisitableBuilder{ public V1UserInfoBuilder() { this(false); } - public V1UserInfoBuilder(Boolean validationEnabled) { this(new V1UserInfo(), validationEnabled); } - public V1UserInfoBuilder(V1UserInfoFluent fluent) { this(fluent, false); } - - public V1UserInfoBuilder(V1UserInfoFluent fluent, Boolean validationEnabled) { + public V1UserInfoBuilder(V1UserInfoFluent fluent,Boolean validationEnabled) { this(fluent, new V1UserInfo(), validationEnabled); } - - public V1UserInfoBuilder(V1UserInfoFluent fluent, V1UserInfo instance) { + public V1UserInfoBuilder(V1UserInfoFluent fluent,V1UserInfo instance) { this(fluent, instance, false); } - - public V1UserInfoBuilder( - V1UserInfoFluent fluent, V1UserInfo instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1UserInfoBuilder(V1UserInfoFluent fluent,V1UserInfo instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withExtra(instance.getExtra()); fluent.withGroups(instance.getGroups()); @@ -47,15 +28,13 @@ public V1UserInfoBuilder( fluent.withUsername(instance.getUsername()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1UserInfoBuilder(V1UserInfo instance) { - this(instance, false); + this(instance,false); } - - public V1UserInfoBuilder(V1UserInfo instance, Boolean validationEnabled) { - this.fluent = this; + public V1UserInfoBuilder(V1UserInfo instance,Boolean validationEnabled) { + this.fluent = this; this.withExtra(instance.getExtra()); this.withGroups(instance.getGroups()); @@ -64,12 +43,10 @@ public V1UserInfoBuilder(V1UserInfo instance, Boolean validationEnabled) { this.withUsername(instance.getUsername()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1UserInfoFluent fluent; Boolean validationEnabled; - public V1UserInfo build() { V1UserInfo buildable = new V1UserInfo(); buildable.setExtra(fluent.getExtra()); @@ -78,4 +55,5 @@ public V1UserInfo build() { buildable.setUsername(fluent.getUsername()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java index fb0cefc2fd..8cfe9df6c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java @@ -1,78 +1,47 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; import java.util.function.Predicate; -/** Generated */ -public interface V1UserInfoFluent> extends Fluent { - public A addToExtra(String key, List value); - - public A addToExtra(Map> map); - + /** + * Generated + */ +public interface V1UserInfoFluent> extends Fluent{ + public A addToExtra(String key,List value); + public A addToExtra(Map> map); public A removeFromExtra(String key); - - public A removeFromExtra(Map> map); - - public Map> getExtra(); - - public A withExtra(Map> extra); - + public A removeFromExtra(Map> map); + public Map> getExtra(); + public A withExtra(Map> extra); public Boolean hasExtra(); - - public A addToGroups(Integer index, String item); - - public A setToGroups(Integer index, String item); - + public A addToGroups(Integer index,String item); + public A setToGroups(Integer index,String item); public A addToGroups(java.lang.String... items); - public A addAllToGroups(Collection items); - public A removeFromGroups(java.lang.String... items); - public A removeAllFromGroups(Collection items); - public List getGroups(); - public String getGroup(Integer index); - public String getFirstGroup(); - public String getLastGroup(); - public String getMatchingGroup(Predicate predicate); - public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(List groups); - public A withGroups(java.lang.String... groups); - public Boolean hasGroups(); - public String getUid(); - public A withUid(String uid); - public Boolean hasUid(); - public String getUsername(); - public A withUsername(String username); - public Boolean hasUsername(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java index cce3eae5e8..abf0754dd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java @@ -1,31 +1,25 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; import java.util.List; +import java.lang.Boolean; import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1UserInfoFluentImpl> extends BaseFluent - implements V1UserInfoFluent { - public V1UserInfoFluentImpl() {} + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1UserInfoFluentImpl> extends BaseFluent implements V1UserInfoFluent{ + public V1UserInfoFluentImpl() { + } public V1UserInfoFluentImpl(V1UserInfo instance) { this.withExtra(instance.getExtra()); @@ -34,251 +28,128 @@ public V1UserInfoFluentImpl(V1UserInfo instance) { this.withUid(instance.getUid()); this.withUsername(instance.getUsername()); - } - private Map> extra; + } + private Map> extra; private List groups; private String uid; private String username; - - public A addToExtra(String key, List value) { - if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); - } - if (key != null && value != null) { - this.extra.put(key, value); - } - return (A) this; + public A addToExtra(String key,List value) { + if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } + if(key != null && value != null) {this.extra.put(key, value);} return (A)this; } - - public A addToExtra(Map> map) { - if (this.extra == null && map != null) { - this.extra = new LinkedHashMap(); - } - if (map != null) { - this.extra.putAll(map); - } - return (A) this; + public A addToExtra(Map> map) { + if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } + if(map != null) { this.extra.putAll(map);} return (A)this; } - public A removeFromExtra(String key) { - if (this.extra == null) { - return (A) this; - } - if (key != null && this.extra != null) { - this.extra.remove(key); - } - return (A) this; + if(this.extra == null) { return (A) this; } + if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; } - - public A removeFromExtra(Map> map) { - if (this.extra == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.extra != null) { - this.extra.remove(key); - } - } - } - return (A) this; + public A removeFromExtra(Map> map) { + if(this.extra == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; } - - public Map> getExtra() { + public Map> getExtra() { return this.extra; } - - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); - } - return (A) this; + public A withExtra(Map> extra) { + if (extra == null) { this.extra = null;} else {this.extra = new LinkedHashMap(extra);} return (A) this; } - public Boolean hasExtra() { return this.extra != null; } - - public A addToGroups(Integer index, String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } + public A addToGroups(Integer index,String item) { + if (this.groups == null) {this.groups = new ArrayList();} this.groups.add(index, item); - return (A) this; + return (A)this; } - - public A setToGroups(Integer index, String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - this.groups.set(index, item); - return (A) this; + public A setToGroups(Integer index,String item) { + if (this.groups == null) {this.groups = new ArrayList();} + this.groups.set(index, item); return (A)this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (String item : items) {this.groups.add(item);} return (A)this; } - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + if (this.groups == null) {this.groups = new ArrayList();} + for (String item : items) {this.groups.add(item);} return (A)this; } - public A removeFromGroups(java.lang.String... items) { - for (String item : items) { - if (this.groups != null) { - this.groups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.groups!= null){ this.groups.remove(item);}} return (A)this; } - public A removeAllFromGroups(Collection items) { - for (String item : items) { - if (this.groups != null) { - this.groups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.groups!= null){ this.groups.remove(item);}} return (A)this; } - public List getGroups() { return this.groups; } - public String getGroup(Integer index) { return this.groups.get(index); } - public String getFirstGroup() { return this.groups.get(0); } - public String getLastGroup() { return this.groups.get(groups.size() - 1); } - public String getMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: groups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: groups) { if(predicate.test(item)){ return true;} } return false; } - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; + if (groups != null) {this.groups = new ArrayList(); for (String item : groups){this.addToGroups(item);}} else { this.groups = null;} return (A) this; } - public A withGroups(java.lang.String... groups) { - if (this.groups != null) { - this.groups.clear(); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; + if (this.groups != null) {this.groups.clear();} + if (groups != null) {for (String item :groups){ this.addToGroups(item);}} return (A) this; } - public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } - public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + this.uid=uid; return (A) this; } - public Boolean hasUid() { return this.uid != null; } - public String getUsername() { return this.username; } - public A withUsername(String username) { - this.username = username; - return (A) this; + this.username=username; return (A) this; } - public Boolean hasUsername() { return this.username != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1UserInfoFluentImpl that = (V1UserInfoFluentImpl) o; - if (extra != null ? !extra.equals(that.extra) : that.extra != null) return false; - if (groups != null ? !groups.equals(that.groups) : that.groups != null) return false; - if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false; - if (username != null ? !username.equals(that.username) : that.username != null) return false; + if (extra != null ? !extra.equals(that.extra) :that.extra != null) return false; + if (groups != null ? !groups.equals(that.groups) :that.groups != null) return false; + if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false; + if (username != null ? !username.equals(that.username) :that.username != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(extra, groups, uid, username, super.hashCode()); + return java.util.Objects.hash(extra, groups, uid, username, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (extra != null && !extra.isEmpty()) { - sb.append("extra:"); - sb.append(extra + ","); - } - if (groups != null && !groups.isEmpty()) { - sb.append("groups:"); - sb.append(groups + ","); - } - if (uid != null) { - sb.append("uid:"); - sb.append(uid + ","); - } - if (username != null) { - sb.append("username:"); - sb.append(username); - } + if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } + if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } + if (username != null) { sb.append("username:"); sb.append(username); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java index 6d509d8a80..5c657cf64c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ValidatingWebhookBuilder - extends V1ValidatingWebhookFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ValidatingWebhookBuilder extends V1ValidatingWebhookFluentImpl implements VisitableBuilder{ public V1ValidatingWebhookBuilder() { this(false); } - public V1ValidatingWebhookBuilder(Boolean validationEnabled) { this(new V1ValidatingWebhook(), validationEnabled); } - public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent) { this(fluent, false); } - - public V1ValidatingWebhookBuilder( - V1ValidatingWebhookFluent fluent, Boolean validationEnabled) { + public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,Boolean validationEnabled) { this(fluent, new V1ValidatingWebhook(), validationEnabled); } - - public V1ValidatingWebhookBuilder( - V1ValidatingWebhookFluent fluent, V1ValidatingWebhook instance) { + public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,V1ValidatingWebhook instance) { this(fluent, instance, false); } - - public V1ValidatingWebhookBuilder( - V1ValidatingWebhookFluent fluent, - V1ValidatingWebhook instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,V1ValidatingWebhook instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); fluent.withClientConfig(instance.getClientConfig()); @@ -64,15 +40,13 @@ public V1ValidatingWebhookBuilder( fluent.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance) { - this(instance, false); + this(instance,false); } - - public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance, Boolean validationEnabled) { - this.fluent = this; + public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance,Boolean validationEnabled) { + this.fluent = this; this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); this.withClientConfig(instance.getClientConfig()); @@ -93,12 +67,10 @@ public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance, Boolean validati this.withTimeoutSeconds(instance.getTimeoutSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ValidatingWebhookFluent fluent; Boolean validationEnabled; - public V1ValidatingWebhook build() { V1ValidatingWebhook buildable = new V1ValidatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); @@ -113,4 +85,5 @@ public V1ValidatingWebhook build() { buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java index fec0b5b8f8..664c477823 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ValidatingWebhookConfigurationBuilder - extends V1ValidatingWebhookConfigurationFluentImpl - implements VisitableBuilder< - V1ValidatingWebhookConfiguration, V1ValidatingWebhookConfigurationBuilder> { +import java.lang.Boolean; +public class V1ValidatingWebhookConfigurationBuilder extends V1ValidatingWebhookConfigurationFluentImpl implements VisitableBuilder{ public V1ValidatingWebhookConfigurationBuilder() { this(false); } - public V1ValidatingWebhookConfigurationBuilder(Boolean validationEnabled) { this(new V1ValidatingWebhookConfiguration(), validationEnabled); } - public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent) { this(fluent, false); } - - public V1ValidatingWebhookConfigurationBuilder( - V1ValidatingWebhookConfigurationFluent fluent, Boolean validationEnabled) { + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1ValidatingWebhookConfiguration(), validationEnabled); } - - public V1ValidatingWebhookConfigurationBuilder( - V1ValidatingWebhookConfigurationFluent fluent, V1ValidatingWebhookConfiguration instance) { + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,V1ValidatingWebhookConfiguration instance) { this(fluent, instance, false); } - - public V1ValidatingWebhookConfigurationBuilder( - V1ValidatingWebhookConfigurationFluent fluent, - V1ValidatingWebhookConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,V1ValidatingWebhookConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -53,16 +28,13 @@ public V1ValidatingWebhookConfigurationBuilder( fluent.withWebhooks(instance.getWebhooks()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfiguration instance) { - this(instance, false); + this(instance,false); } - - public V1ValidatingWebhookConfigurationBuilder( - V1ValidatingWebhookConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -71,12 +43,10 @@ public V1ValidatingWebhookConfigurationBuilder( this.withWebhooks(instance.getWebhooks()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ValidatingWebhookConfigurationFluent fluent; Boolean validationEnabled; - public V1ValidatingWebhookConfiguration build() { V1ValidatingWebhookConfiguration buildable = new V1ValidatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V1ValidatingWebhookConfiguration build() { buildable.setWebhooks(fluent.getWebhooks()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java index 3c7c043e11..294d295e54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java @@ -1,135 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ValidatingWebhookConfigurationFluent< - A extends V1ValidatingWebhookConfigurationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ValidatingWebhookConfigurationFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadata(); - - public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public V1ValidatingWebhookConfigurationFluent.MetadataNested editMetadata(); - public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata(); - - public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - - public A addToWebhooks(Integer index, V1ValidatingWebhook item); - - public A setToWebhooks(Integer index, V1ValidatingWebhook item); - + public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + public A addToWebhooks(Integer index,V1ValidatingWebhook item); + public A setToWebhooks(Integer index,V1ValidatingWebhook item); public A addToWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items); - public A addAllToWebhooks(Collection items); - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items); - public A removeAllFromWebhooks(Collection items); - public A removeMatchingFromWebhooks(Predicate predicate); - + /** * This method has been deprecated, please use method buildWebhooks instead. - * * @return The buildable object. */ @Deprecated public List getWebhooks(); - public List buildWebhooks(); - public V1ValidatingWebhook buildWebhook(Integer index); - public V1ValidatingWebhook buildFirstWebhook(); - public V1ValidatingWebhook buildLastWebhook(); - public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate); - public Boolean hasMatchingWebhook(Predicate predicate); - public A withWebhooks(List webhooks); - public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... webhooks); - public Boolean hasWebhooks(); - public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhook(); - - public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( - V1ValidatingWebhook item); - - public V1ValidatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( - Integer index, V1ValidatingWebhook item); - + public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike(V1ValidatingWebhook item); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike(Integer index,V1ValidatingWebhook item); public V1ValidatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index); - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook(); - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editLastWebhook(); - - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( - Predicate predicate); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook(Predicate predicate); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface WebhooksNested - extends Nested, - V1ValidatingWebhookFluent> { + public interface WebhooksNested extends Nested,V1ValidatingWebhookFluent>{ public N and(); - public N endWebhook(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java index 90b9432432..d1cf0fa2b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ValidatingWebhookConfigurationFluentImpl< - A extends V1ValidatingWebhookConfigurationFluent> - extends BaseFluent implements V1ValidatingWebhookConfigurationFluent { - public V1ValidatingWebhookConfigurationFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ValidatingWebhookConfigurationFluentImpl> extends BaseFluent implements V1ValidatingWebhookConfigurationFluent{ + public V1ValidatingWebhookConfigurationFluentImpl() { + } public V1ValidatingWebhookConfigurationFluentImpl(V1ValidatingWebhookConfiguration instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,168 +30,89 @@ public V1ValidatingWebhookConfigurationFluentImpl(V1ValidatingWebhookConfigurati this.withMetadata(instance.getMetadata()); this.withWebhooks(instance.getWebhooks()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList webhooks; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadata() { return new V1ValidatingWebhookConfigurationFluentImpl.MetadataNestedImpl(); } - - public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ValidatingWebhookConfigurationFluentImpl.MetadataNestedImpl(item); } - public V1ValidatingWebhookConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - - public A addToWebhooks(Integer index, V1ValidatingWebhook item) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables - .get("webhooks") - .add(index >= 0 ? index : _visitables.get("webhooks").size(), builder); - this.webhooks.add(index >= 0 ? index : webhooks.size(), builder); - return (A) this; + public A addToWebhooks(Integer index,V1ValidatingWebhook item) { + if (this.webhooks == null) {this.webhooks = new ArrayList();} + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(index >= 0 ? index : _visitables.get("webhooks").size(), builder);this.webhooks.add(index >= 0 ? index : webhooks.size(), builder); return (A)this; } - - public A setToWebhooks(Integer index, V1ValidatingWebhook item) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } + public A setToWebhooks(Integer index,V1ValidatingWebhook item) { + if (this.webhooks == null) {this.webhooks = new ArrayList();} V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= _visitables.get("webhooks").size()) { - _visitables.get("webhooks").add(builder); - } else { - _visitables.get("webhooks").set(index, builder); - } - if (index < 0 || index >= webhooks.size()) { - webhooks.add(builder); - } else { - webhooks.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("webhooks").size()) { _visitables.get("webhooks").add(builder); } else { _visitables.get("webhooks").set(index, builder);} + if (index < 0 || index >= webhooks.size()) { webhooks.add(builder); } else { webhooks.set(index, builder);} + return (A)this; } - public A addToWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); - this.webhooks.add(builder); - } - return (A) this; + if (this.webhooks == null) {this.webhooks = new ArrayList();} + for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; } - public A addAllToWebhooks(Collection items) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); - this.webhooks.add(builder); - } - return (A) this; + if (this.webhooks == null) {this.webhooks = new ArrayList();} + for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; } - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - if (this.webhooks != null) { - this.webhooks.remove(builder); - } - } - return (A) this; + for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder);if (this.webhooks != null) {this.webhooks.remove(builder);}} return (A)this; } - public A removeAllFromWebhooks(Collection items) { - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - if (this.webhooks != null) { - this.webhooks.remove(builder); - } - } - return (A) this; + for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder);if (this.webhooks != null) {this.webhooks.remove(builder);}} return (A)this; } - public A removeMatchingFromWebhooks(Predicate predicate) { if (webhooks == null) return (A) this; final Iterator each = webhooks.iterator(); @@ -208,215 +124,133 @@ public A removeMatchingFromWebhooks(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildWebhooks instead. - * * @return The buildable object. */ @Deprecated public List getWebhooks() { return webhooks != null ? build(webhooks) : null; } - public List buildWebhooks() { return webhooks != null ? build(webhooks) : null; } - public V1ValidatingWebhook buildWebhook(Integer index) { return this.webhooks.get(index).build(); } - public V1ValidatingWebhook buildFirstWebhook() { return this.webhooks.get(0).build(); } - public V1ValidatingWebhook buildLastWebhook() { return this.webhooks.get(webhooks.size() - 1).build(); } - public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate) { - for (V1ValidatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1ValidatingWebhookBuilder item: webhooks) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingWebhook(Predicate predicate) { - for (V1ValidatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ValidatingWebhookBuilder item: webhooks) { if(predicate.test(item)){ return true;} } return false; } - public A withWebhooks(List webhooks) { - if (this.webhooks != null) { - _visitables.get("webhooks").removeAll(this.webhooks); - } - if (webhooks != null) { - this.webhooks = new ArrayList(); - for (V1ValidatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } else { - this.webhooks = null; - } - return (A) this; + if (this.webhooks != null) { _visitables.get("webhooks").removeAll(this.webhooks);} + if (webhooks != null) {this.webhooks = new ArrayList(); for (V1ValidatingWebhook item : webhooks){this.addToWebhooks(item);}} else { this.webhooks = null;} return (A) this; } - public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... webhooks) { - if (this.webhooks != null) { - this.webhooks.clear(); - } - if (webhooks != null) { - for (V1ValidatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } - return (A) this; + if (this.webhooks != null) {this.webhooks.clear();} + if (webhooks != null) {for (V1ValidatingWebhook item :webhooks){ this.addToWebhooks(item);}} return (A) this; } - public Boolean hasWebhooks() { return webhooks != null && !webhooks.isEmpty(); } - public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhook() { return new V1ValidatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(); } - - public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( - V1ValidatingWebhook item) { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike(V1ValidatingWebhook item) { return new V1ValidatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(-1, item); } - - public V1ValidatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( - Integer index, V1ValidatingWebhook item) { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike(Integer index,V1ValidatingWebhook item) { return new V1ValidatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(index, item); } - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index) { - if (webhooks.size() <= index) - throw new RuntimeException("Can't edit webhooks. Index exceeds size."); + if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); return setNewWebhookLike(index, buildWebhook(index)); } - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook() { - if (webhooks.size() == 0) - throw new RuntimeException("Can't edit first webhooks. The list is empty."); + if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); return setNewWebhookLike(0, buildWebhook(0)); } - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editLastWebhook() { int index = webhooks.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last webhooks. The list is empty."); return setNewWebhookLike(index, buildWebhook(index)); } - - public V1ValidatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( - Predicate predicate) { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook(Predicate predicate) { int index = -1; - for (int i = 0; i < webhooks.size(); i++) { - if (predicate.test(webhooks.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1ObjectMetaFluentImpl> - implements V1ValidatingWebhookConfigurationFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1ValidatingWebhookConfigurationFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1ValidatingWebhookConfigurationFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class WebhooksNestedImpl - extends V1ValidatingWebhookFluentImpl< - V1ValidatingWebhookConfigurationFluent.WebhooksNested> - implements V1ValidatingWebhookConfigurationFluent.WebhooksNested, Nested { - WebhooksNestedImpl(Integer index, V1ValidatingWebhook item) { + class WebhooksNestedImpl extends V1ValidatingWebhookFluentImpl> implements V1ValidatingWebhookConfigurationFluent.WebhooksNested,Nested{ + WebhooksNestedImpl(Integer index,V1ValidatingWebhook item) { this.index = index; this.builder = new V1ValidatingWebhookBuilder(this, item); } - WebhooksNestedImpl() { this.index = -1; this.builder = new V1ValidatingWebhookBuilder(this); } - V1ValidatingWebhookBuilder builder; Integer index; - public N and() { - return (N) - V1ValidatingWebhookConfigurationFluentImpl.this.setToWebhooks(index, builder.build()); + return (N) V1ValidatingWebhookConfigurationFluentImpl.this.setToWebhooks(index,builder.build()); } - public N endWebhook() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java index eb566525d3..04477a3042 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1ValidatingWebhookConfigurationListBuilder - extends V1ValidatingWebhookConfigurationListFluentImpl< - V1ValidatingWebhookConfigurationListBuilder> - implements VisitableBuilder< - V1ValidatingWebhookConfigurationList, V1ValidatingWebhookConfigurationListBuilder> { +import java.lang.Boolean; +public class V1ValidatingWebhookConfigurationListBuilder extends V1ValidatingWebhookConfigurationListFluentImpl implements VisitableBuilder{ public V1ValidatingWebhookConfigurationListBuilder() { this(false); } - public V1ValidatingWebhookConfigurationListBuilder(Boolean validationEnabled) { this(new V1ValidatingWebhookConfigurationList(), validationEnabled); } - - public V1ValidatingWebhookConfigurationListBuilder( - V1ValidatingWebhookConfigurationListFluent fluent) { + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent) { this(fluent, false); } - - public V1ValidatingWebhookConfigurationListBuilder( - V1ValidatingWebhookConfigurationListFluent fluent, Boolean validationEnabled) { + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,Boolean validationEnabled) { this(fluent, new V1ValidatingWebhookConfigurationList(), validationEnabled); } - - public V1ValidatingWebhookConfigurationListBuilder( - V1ValidatingWebhookConfigurationListFluent fluent, - V1ValidatingWebhookConfigurationList instance) { + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,V1ValidatingWebhookConfigurationList instance) { this(fluent, instance, false); } - - public V1ValidatingWebhookConfigurationListBuilder( - V1ValidatingWebhookConfigurationListFluent fluent, - V1ValidatingWebhookConfigurationList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,V1ValidatingWebhookConfigurationList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -56,17 +28,13 @@ public V1ValidatingWebhookConfigurationListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1ValidatingWebhookConfigurationListBuilder( - V1ValidatingWebhookConfigurationList instance) { - this(instance, false); + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationList instance) { + this(instance,false); } - - public V1ValidatingWebhookConfigurationListBuilder( - V1ValidatingWebhookConfigurationList instance, Boolean validationEnabled) { - this.fluent = this; + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -75,12 +43,10 @@ public V1ValidatingWebhookConfigurationListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ValidatingWebhookConfigurationListFluent fluent; Boolean validationEnabled; - public V1ValidatingWebhookConfigurationList build() { V1ValidatingWebhookConfigurationList buildable = new V1ValidatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +55,5 @@ public V1ValidatingWebhookConfigurationList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java index d276d78dc0..b4b6c7dc99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java @@ -1,139 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1ValidatingWebhookConfigurationListFluent< - A extends V1ValidatingWebhookConfigurationListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1ValidatingWebhookConfigurationListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1ValidatingWebhookConfiguration item); - - public A setToItems(Integer index, V1ValidatingWebhookConfiguration item); - - public A addToItems( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); - + public A addToItems(Integer index,V1ValidatingWebhookConfiguration item); + public A setToItems(Integer index,V1ValidatingWebhookConfiguration item); + public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); public A addAllToItems(Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); - + public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1ValidatingWebhookConfiguration buildItem(Integer index); - public V1ValidatingWebhookConfiguration buildFirstItem(); - public V1ValidatingWebhookConfiguration buildLastItem(); - - public V1ValidatingWebhookConfiguration buildMatchingItem( - Predicate predicate); - + public V1ValidatingWebhookConfiguration buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); - public Boolean hasItems(); - public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItem(); - - public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( - V1ValidatingWebhookConfiguration item); - - public V1ValidatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1ValidatingWebhookConfiguration item); - + public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1ValidatingWebhookConfiguration item); public V1ValidatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index); - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editFirstItem(); - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editLastItem(); - - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadata(); - - public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V1ValidatingWebhookConfigurationListFluent.MetadataNested editMetadata(); - public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata(); - - public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1ValidatingWebhookConfigurationFluent< - V1ValidatingWebhookConfigurationListFluent.ItemsNested> { + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1ValidatingWebhookConfigurationFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, - V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java index 14be8b1b89..1280350e54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java @@ -1,34 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ValidatingWebhookConfigurationListFluentImpl< - A extends V1ValidatingWebhookConfigurationListFluent> - extends BaseFluent implements V1ValidatingWebhookConfigurationListFluent { - public V1ValidatingWebhookConfigurationListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; - public V1ValidatingWebhookConfigurationListFluentImpl( - V1ValidatingWebhookConfigurationList instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ValidatingWebhookConfigurationListFluentImpl> extends BaseFluent implements V1ValidatingWebhookConfigurationListFluent{ + public V1ValidatingWebhookConfigurationListFluentImpl() { + } + public V1ValidatingWebhookConfigurationListFluentImpl(V1ValidatingWebhookConfigurationList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -36,108 +30,46 @@ public V1ValidatingWebhookConfigurationListFluentImpl( this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1ValidatingWebhookConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ValidatingWebhookConfigurationBuilder builder = - new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1ValidatingWebhookConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1ValidatingWebhookConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ValidatingWebhookConfigurationBuilder builder = - new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + public A setToItems(Integer index,V1ValidatingWebhookConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - - public A addToItems( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = - new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = - new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = - new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { + for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = - new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -149,281 +81,176 @@ public A removeMatchingFromItems(Predicate getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1ValidatingWebhookConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public V1ValidatingWebhookConfiguration buildFirstItem() { return this.items.get(0).build(); } - public V1ValidatingWebhookConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1ValidatingWebhookConfiguration buildMatchingItem( - Predicate predicate) { - for (V1ValidatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ValidatingWebhookConfiguration buildMatchingItem(Predicate predicate) { + for (V1ValidatingWebhookConfigurationBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1ValidatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1ValidatingWebhookConfigurationBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ValidatingWebhookConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1ValidatingWebhookConfiguration item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - - public A withItems( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1ValidatingWebhookConfiguration item : items) { - this.addToItems(item); - } - } - return (A) this; + public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1ValidatingWebhookConfiguration item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItem() { return new V1ValidatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(); } - - public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( - V1ValidatingWebhookConfiguration item) { + public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item) { return new V1ValidatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1ValidatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1ValidatingWebhookConfiguration item) { + public V1ValidatingWebhookConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1ValidatingWebhookConfiguration item) { return new V1ValidatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1ValidatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1ValidatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(); } - - public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1ValidatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(item); } - public V1ValidatingWebhookConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1ValidatingWebhookConfigurationListFluentImpl that = - (V1ValidatingWebhookConfigurationListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + V1ValidatingWebhookConfigurationListFluentImpl that = (V1ValidatingWebhookConfigurationListFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1ValidatingWebhookConfigurationFluentImpl< - V1ValidatingWebhookConfigurationListFluent.ItemsNested> - implements V1ValidatingWebhookConfigurationListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1ValidatingWebhookConfiguration item) { + class ItemsNestedImpl extends V1ValidatingWebhookConfigurationFluentImpl> implements V1ValidatingWebhookConfigurationListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1ValidatingWebhookConfiguration item) { this.index = index; this.builder = new V1ValidatingWebhookConfigurationBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1ValidatingWebhookConfigurationBuilder(this); } - V1ValidatingWebhookConfigurationBuilder builder; Integer index; - public N and() { - return (N) - V1ValidatingWebhookConfigurationListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1ValidatingWebhookConfigurationListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1ValidatingWebhookConfigurationListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1ValidatingWebhookConfigurationListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1ValidatingWebhookConfigurationListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java index 137058e2e2..4b1aa5304b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java @@ -1,248 +1,146 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1ValidatingWebhookFluent> - extends Fluent { - public A addToAdmissionReviewVersions(Integer index, String item); - - public A setToAdmissionReviewVersions(Integer index, String item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1ValidatingWebhookFluent> extends Fluent{ + public A addToAdmissionReviewVersions(Integer index,String item); + public A setToAdmissionReviewVersions(Integer index,String item); public A addToAdmissionReviewVersions(java.lang.String... items); - public A addAllToAdmissionReviewVersions(Collection items); - public A removeFromAdmissionReviewVersions(java.lang.String... items); - public A removeAllFromAdmissionReviewVersions(Collection items); - public List getAdmissionReviewVersions(); - public String getAdmissionReviewVersion(Integer index); - public String getFirstAdmissionReviewVersion(); - public String getLastAdmissionReviewVersion(); - public String getMatchingAdmissionReviewVersion(Predicate predicate); - public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate); - public A withAdmissionReviewVersions(List admissionReviewVersions); - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions); - public Boolean hasAdmissionReviewVersions(); - + /** * This method has been deprecated, please use method buildClientConfig instead. - * * @return The buildable object. */ @Deprecated public AdmissionregistrationV1WebhookClientConfig getClientConfig(); - public AdmissionregistrationV1WebhookClientConfig buildClientConfig(); - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig); - public Boolean hasClientConfig(); - public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfig(); - - public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item); - + public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item); public V1ValidatingWebhookFluent.ClientConfigNested editClientConfig(); - public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfig(); - - public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item); - + public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item); public String getFailurePolicy(); - public A withFailurePolicy(String failurePolicy); - public Boolean hasFailurePolicy(); - public String getMatchPolicy(); - public A withMatchPolicy(String matchPolicy); - public Boolean hasMatchPolicy(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector(); - public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public Boolean hasNamespaceSelector(); - public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelector(); - - public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item); public V1ValidatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector(); - public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - - public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item); - + public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item); + /** * This method has been deprecated, please use method buildObjectSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getObjectSelector(); - public V1LabelSelector buildObjectSelector(); - public A withObjectSelector(V1LabelSelector objectSelector); - public Boolean hasObjectSelector(); - public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelector(); - - public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( - V1LabelSelector item); - + public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item); public V1ValidatingWebhookFluent.ObjectSelectorNested editObjectSelector(); - public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector(); - - public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( - V1LabelSelector item); - - public A addToRules(Integer index, V1RuleWithOperations item); - - public A setToRules(Integer index, V1RuleWithOperations item); - + public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item); + public A addToRules(Integer index,V1RuleWithOperations item); + public A setToRules(Integer index,V1RuleWithOperations item); public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A addAllToRules(Collection items); - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1RuleWithOperations buildRule(Integer index); - public V1RuleWithOperations buildFirstRule(); - public V1RuleWithOperations buildLastRule(); - public V1RuleWithOperations buildMatchingRule(Predicate predicate); - public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules); - public Boolean hasRules(); - public V1ValidatingWebhookFluent.RulesNested addNewRule(); - public V1ValidatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item); - - public V1ValidatingWebhookFluent.RulesNested setNewRuleLike( - Integer index, V1RuleWithOperations item); - + public V1ValidatingWebhookFluent.RulesNested setNewRuleLike(Integer index,V1RuleWithOperations item); public V1ValidatingWebhookFluent.RulesNested editRule(Integer index); - public V1ValidatingWebhookFluent.RulesNested editFirstRule(); - public V1ValidatingWebhookFluent.RulesNested editLastRule(); - - public V1ValidatingWebhookFluent.RulesNested editMatchingRule( - Predicate predicate); - + public V1ValidatingWebhookFluent.RulesNested editMatchingRule(Predicate predicate); public String getSideEffects(); - public A withSideEffects(String sideEffects); - public Boolean hasSideEffects(); - public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(Integer timeoutSeconds); - public Boolean hasTimeoutSeconds(); - - public interface ClientConfigNested - extends Nested, - AdmissionregistrationV1WebhookClientConfigFluent< - V1ValidatingWebhookFluent.ClientConfigNested> { + public interface ClientConfigNested extends Nested,AdmissionregistrationV1WebhookClientConfigFluent>{ public N and(); - public N endClientConfig(); + } - - public interface NamespaceSelectorNested - extends Nested, - V1LabelSelectorFluent> { + public interface NamespaceSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endNamespaceSelector(); + } - - public interface ObjectSelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface ObjectSelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endObjectSelector(); + } - - public interface RulesNested - extends Nested, V1RuleWithOperationsFluent> { + public interface RulesNested extends Nested,V1RuleWithOperationsFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java index 2fd1c5e1b5..cb1350505e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ValidatingWebhookFluentImpl> - extends BaseFluent implements V1ValidatingWebhookFluent { - public V1ValidatingWebhookFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ValidatingWebhookFluentImpl> extends BaseFluent implements V1ValidatingWebhookFluent{ + public V1ValidatingWebhookFluentImpl() { + } public V1ValidatingWebhookFluentImpl(V1ValidatingWebhook instance) { this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); @@ -46,8 +42,8 @@ public V1ValidatingWebhookFluentImpl(V1ValidatingWebhook instance) { this.withSideEffects(instance.getSideEffects()); this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + } private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; private String failurePolicy; @@ -58,400 +54,211 @@ public V1ValidatingWebhookFluentImpl(V1ValidatingWebhook instance) { private ArrayList rules; private String sideEffects; private Integer timeoutSeconds; - - public A addToAdmissionReviewVersions(Integer index, String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } + public A addToAdmissionReviewVersions(Integer index,String item) { + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} this.admissionReviewVersions.add(index, item); - return (A) this; + return (A)this; } - - public A setToAdmissionReviewVersions(Integer index, String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - this.admissionReviewVersions.set(index, item); - return (A) this; + public A setToAdmissionReviewVersions(Integer index,String item) { + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + this.admissionReviewVersions.set(index, item); return (A)this; } - public A addToAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.admissionReviewVersions.add(item); - } - return (A) this; + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; } - public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.admissionReviewVersions.add(item); - } - return (A) this; + if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; } - public A removeFromAdmissionReviewVersions(java.lang.String... items) { - for (String item : items) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.admissionReviewVersions!= null){ this.admissionReviewVersions.remove(item);}} return (A)this; } - public A removeAllFromAdmissionReviewVersions(Collection items) { - for (String item : items) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.admissionReviewVersions!= null){ this.admissionReviewVersions.remove(item);}} return (A)this; } - public List getAdmissionReviewVersions() { return this.admissionReviewVersions; } - public String getAdmissionReviewVersion(Integer index) { return this.admissionReviewVersions.get(index); } - public String getFirstAdmissionReviewVersion() { return this.admissionReviewVersions.get(0); } - public String getLastAdmissionReviewVersion() { return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - public String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: admissionReviewVersions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: admissionReviewVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withAdmissionReviewVersions(List admissionReviewVersions) { - if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } - } else { - this.admissionReviewVersions = null; - } - return (A) this; + if (admissionReviewVersions != null) {this.admissionReviewVersions = new ArrayList(); for (String item : admissionReviewVersions){this.addToAdmissionReviewVersions(item);}} else { this.admissionReviewVersions = null;} return (A) this; } - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.clear(); - } - if (admissionReviewVersions != null) { - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } - } - return (A) this; + if (this.admissionReviewVersions != null) {this.admissionReviewVersions.clear();} + if (admissionReviewVersions != null) {for (String item :admissionReviewVersions){ this.addToAdmissionReviewVersions(item);}} return (A) this; } - public Boolean hasAdmissionReviewVersions() { return admissionReviewVersions != null && !admissionReviewVersions.isEmpty(); } - + /** * This method has been deprecated, please use method buildClientConfig instead. - * * @return The buildable object. */ @Deprecated public AdmissionregistrationV1WebhookClientConfig getClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + return this.clientConfig!=null ?this.clientConfig.build():null; } - public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + return this.clientConfig!=null ?this.clientConfig.build():null; } - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { _visitables.get("clientConfig").remove(this.clientConfig); - if (clientConfig != null) { - this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); - _visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - _visitables.get("clientConfig").remove(this.clientConfig); - } - return (A) this; + if (clientConfig!=null){ this.clientConfig= new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); _visitables.get("clientConfig").add(this.clientConfig);} else { this.clientConfig = null; _visitables.get("clientConfig").remove(this.clientConfig); } return (A) this; } - public Boolean hasClientConfig() { return this.clientConfig != null; } - public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfig() { return new V1ValidatingWebhookFluentImpl.ClientConfigNestedImpl(); } - - public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item) { + public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { return new V1ValidatingWebhookFluentImpl.ClientConfigNestedImpl(item); } - public V1ValidatingWebhookFluent.ClientConfigNested editClientConfig() { return withNewClientConfigLike(getClientConfig()); } - public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike( - getClientConfig() != null - ? getClientConfig() - : new AdmissionregistrationV1WebhookClientConfigBuilder().build()); + return withNewClientConfigLike(getClientConfig() != null ? getClientConfig(): new AdmissionregistrationV1WebhookClientConfigBuilder().build()); } - - public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( - AdmissionregistrationV1WebhookClientConfig item) { - return withNewClientConfigLike(getClientConfig() != null ? getClientConfig() : item); + public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return withNewClientConfigLike(getClientConfig() != null ? getClientConfig(): item); } - public String getFailurePolicy() { return this.failurePolicy; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + this.failurePolicy=failurePolicy; return (A) this; } - public Boolean hasFailurePolicy() { return this.failurePolicy != null; } - public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + this.matchPolicy=matchPolicy; return (A) this; } - public Boolean hasMatchPolicy() { return this.matchPolicy != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildNamespaceSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + return this.namespaceSelector!=null ?this.namespaceSelector.build():null; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - _visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - _visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + if (namespaceSelector!=null){ this.namespaceSelector= new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector);} else { this.namespaceSelector = null; _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelector() { return new V1ValidatingWebhookFluentImpl.NamespaceSelectorNestedImpl(); } - - public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( - V1LabelSelector item) { + public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { return new V1ValidatingWebhookFluentImpl.NamespaceSelectorNestedImpl(item); } - public V1ValidatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null - ? getNamespaceSelector() - : new V1LabelSelectorBuilder().build()); + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): new V1LabelSelectorBuilder().build()); } - - public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( - V1LabelSelector item) { - return withNewNamespaceSelectorLike( - getNamespaceSelector() != null ? getNamespaceSelector() : item); + public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return withNewNamespaceSelectorLike(getNamespaceSelector() != null ? getNamespaceSelector(): item); } - + /** * This method has been deprecated, please use method buildObjectSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + return this.objectSelector!=null ?this.objectSelector.build():null; } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + return this.objectSelector!=null ?this.objectSelector.build():null; } - public A withObjectSelector(V1LabelSelector objectSelector) { _visitables.get("objectSelector").remove(this.objectSelector); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - _visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - _visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; + if (objectSelector!=null){ this.objectSelector= new V1LabelSelectorBuilder(objectSelector); _visitables.get("objectSelector").add(this.objectSelector);} else { this.objectSelector = null; _visitables.get("objectSelector").remove(this.objectSelector); } return (A) this; } - public Boolean hasObjectSelector() { return this.objectSelector != null; } - public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelector() { return new V1ValidatingWebhookFluentImpl.ObjectSelectorNestedImpl(); } - - public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( - V1LabelSelector item) { + public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { return new V1ValidatingWebhookFluentImpl.ObjectSelectorNestedImpl(item); } - public V1ValidatingWebhookFluent.ObjectSelectorNested editObjectSelector() { return withNewObjectSelectorLike(getObjectSelector()); } - public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike( - getObjectSelector() != null ? getObjectSelector() : new V1LabelSelectorBuilder().build()); + return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector(): new V1LabelSelectorBuilder().build()); } - - public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( - V1LabelSelector item) { - return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector() : item); + public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector(): item); } - - public A addToRules(Integer index, V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1RuleWithOperations item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1RuleWithOperations item) { + if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -463,333 +270,195 @@ public A removeMatchingFromRules(Predicate predicat each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1RuleWithOperations buildRule(Integer index) { return this.rules.get(index).build(); } - public V1RuleWithOperations buildFirstRule() { return this.rules.get(0).build(); } - public V1RuleWithOperations buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public V1RuleWithOperations buildMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1RuleWithOperationsBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1RuleWithOperationsBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1RuleWithOperations item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1RuleWithOperations item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1ValidatingWebhookFluent.RulesNested addNewRule() { return new V1ValidatingWebhookFluentImpl.RulesNestedImpl(); } - public V1ValidatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item) { return new V1ValidatingWebhookFluentImpl.RulesNestedImpl(-1, item); } - - public V1ValidatingWebhookFluent.RulesNested setNewRuleLike( - Integer index, V1RuleWithOperations item) { + public V1ValidatingWebhookFluent.RulesNested setNewRuleLike(Integer index,V1RuleWithOperations item) { return new V1ValidatingWebhookFluentImpl.RulesNestedImpl(index, item); } - public V1ValidatingWebhookFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1ValidatingWebhookFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1ValidatingWebhookFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1ValidatingWebhookFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1ValidatingWebhookFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends AdmissionregistrationV1WebhookClientConfigFluentImpl< - V1ValidatingWebhookFluent.ClientConfigNested> - implements V1ValidatingWebhookFluent.ClientConfigNested, Nested { + class ClientConfigNestedImpl extends AdmissionregistrationV1WebhookClientConfigFluentImpl> implements V1ValidatingWebhookFluent.ClientConfigNested,Nested{ ClientConfigNestedImpl(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } - ClientConfigNestedImpl() { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this); } - AdmissionregistrationV1WebhookClientConfigBuilder builder; - public N and() { return (N) V1ValidatingWebhookFluentImpl.this.withClientConfig(builder.build()); } - public N endClientConfig() { return and(); } + } - - class NamespaceSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1ValidatingWebhookFluent.NamespaceSelectorNested, Nested { + class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1ValidatingWebhookFluent.NamespaceSelectorNested,Nested{ NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - NamespaceSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1ValidatingWebhookFluentImpl.this.withNamespaceSelector(builder.build()); } - public N endNamespaceSelector() { return and(); } + } - - class ObjectSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1ValidatingWebhookFluent.ObjectSelectorNested, Nested { + class ObjectSelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V1ValidatingWebhookFluent.ObjectSelectorNested,Nested{ ObjectSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - ObjectSelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1ValidatingWebhookFluentImpl.this.withObjectSelector(builder.build()); } - public N endObjectSelector() { return and(); } + } - - class RulesNestedImpl - extends V1RuleWithOperationsFluentImpl> - implements V1ValidatingWebhookFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1RuleWithOperations item) { + class RulesNestedImpl extends V1RuleWithOperationsFluentImpl> implements V1ValidatingWebhookFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1RuleWithOperationsBuilder(this); } - V1RuleWithOperationsBuilder builder; Integer index; - public N and() { - return (N) V1ValidatingWebhookFluentImpl.this.setToRules(index, builder.build()); + return (N) V1ValidatingWebhookFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java index 519fbe3a8f..1db61d0447 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1ValidationRuleBuilder extends V1ValidationRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1ValidationRuleBuilder extends V1ValidationRuleFluentImpl implements VisitableBuilder{ public V1ValidationRuleBuilder() { this(false); } - public V1ValidationRuleBuilder(Boolean validationEnabled) { this(new V1ValidationRule(), validationEnabled); } - public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent) { this(fluent, false); } - - public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent, Boolean validationEnabled) { + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1ValidationRule(), validationEnabled); } - - public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent, V1ValidationRule instance) { + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,V1ValidationRule instance) { this(fluent, instance, false); } - - public V1ValidationRuleBuilder( - V1ValidationRuleFluent fluent, V1ValidationRule instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,V1ValidationRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMessage(instance.getMessage()); fluent.withRule(instance.getRule()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1ValidationRuleBuilder(V1ValidationRule instance) { - this(instance, false); + this(instance,false); } - - public V1ValidationRuleBuilder(V1ValidationRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1ValidationRuleBuilder(V1ValidationRule instance,Boolean validationEnabled) { + this.fluent = this; this.withMessage(instance.getMessage()); this.withRule(instance.getRule()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1ValidationRuleFluent fluent; Boolean validationEnabled; - public V1ValidationRule build() { V1ValidationRule buildable = new V1ValidationRule(); buildable.setMessage(fluent.getMessage()); buildable.setRule(fluent.getRule()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java index 5f4402ebf7..db712ba6e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1ValidationRuleFluent> extends Fluent { + /** + * Generated + */ +public interface V1ValidationRuleFluent> extends Fluent{ public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getRule(); - public A withRule(String rule); - public Boolean hasRule(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java index 33558ada08..2df7fe652e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1ValidationRuleFluentImpl> extends BaseFluent - implements V1ValidationRuleFluent { - public V1ValidationRuleFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1ValidationRuleFluentImpl> extends BaseFluent implements V1ValidationRuleFluent{ + public V1ValidationRuleFluentImpl() { + } public V1ValidationRuleFluentImpl(V1ValidationRule instance) { this.withMessage(instance.getMessage()); this.withRule(instance.getRule()); - } + } private String message; private String rule; - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getRule() { return this.rule; } - public A withRule(String rule) { - this.rule = rule; - return (A) this; + this.rule=rule; return (A) this; } - public Boolean hasRule() { return this.rule != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ValidationRuleFluentImpl that = (V1ValidationRuleFluentImpl) o; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (rule != null ? !rule.equals(that.rule) :that.rule != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(message, rule, super.hashCode()); + return java.util.Objects.hash(message, rule, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (rule != null) { - sb.append("rule:"); - sb.append(rule); - } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (rule != null) { sb.append("rule:"); sb.append(rule); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java index 4e3bd06fac..00fa08fbc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VolumeAttachmentBuilder - extends V1VolumeAttachmentFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeAttachmentBuilder extends V1VolumeAttachmentFluentImpl implements VisitableBuilder{ public V1VolumeAttachmentBuilder() { this(false); } - public V1VolumeAttachmentBuilder(Boolean validationEnabled) { this(new V1VolumeAttachment(), validationEnabled); } - public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent) { this(fluent, false); } - - public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent, Boolean validationEnabled) { + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeAttachment(), validationEnabled); } - - public V1VolumeAttachmentBuilder( - V1VolumeAttachmentFluent fluent, V1VolumeAttachment instance) { + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,V1VolumeAttachment instance) { this(fluent, instance, false); } - - public V1VolumeAttachmentBuilder( - V1VolumeAttachmentFluent fluent, V1VolumeAttachment instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,V1VolumeAttachment instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -51,15 +30,13 @@ public V1VolumeAttachmentBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentBuilder(V1VolumeAttachment instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeAttachmentBuilder(V1VolumeAttachment instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeAttachmentBuilder(V1VolumeAttachment instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -70,12 +47,10 @@ public V1VolumeAttachmentBuilder(V1VolumeAttachment instance, Boolean validation this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeAttachmentFluent fluent; Boolean validationEnabled; - public V1VolumeAttachment build() { V1VolumeAttachment buildable = new V1VolumeAttachment(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +60,5 @@ public V1VolumeAttachment build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java index c37271f824..39e52f3497 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java @@ -1,125 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1VolumeAttachmentFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1VolumeAttachmentFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1VolumeAttachmentFluent.MetadataNested withNewMetadata(); - public V1VolumeAttachmentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1VolumeAttachmentFluent.MetadataNested editMetadata(); - public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadata(); - public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1VolumeAttachmentSpec getSpec(); - public V1VolumeAttachmentSpec buildSpec(); - public A withSpec(V1VolumeAttachmentSpec spec); - public Boolean hasSpec(); - public V1VolumeAttachmentFluent.SpecNested withNewSpec(); - public V1VolumeAttachmentFluent.SpecNested withNewSpecLike(V1VolumeAttachmentSpec item); - public V1VolumeAttachmentFluent.SpecNested editSpec(); - public V1VolumeAttachmentFluent.SpecNested editOrNewSpec(); - public V1VolumeAttachmentFluent.SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1VolumeAttachmentStatus getStatus(); - public V1VolumeAttachmentStatus buildStatus(); - public A withStatus(V1VolumeAttachmentStatus status); - public Boolean hasStatus(); - public V1VolumeAttachmentFluent.StatusNested withNewStatus(); - public V1VolumeAttachmentFluent.StatusNested withNewStatusLike(V1VolumeAttachmentStatus item); - public V1VolumeAttachmentFluent.StatusNested editStatus(); - public V1VolumeAttachmentFluent.StatusNested editOrNewStatus(); - - public V1VolumeAttachmentFluent.StatusNested editOrNewStatusLike( - V1VolumeAttachmentStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1VolumeAttachmentFluent.StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1VolumeAttachmentSpecFluent> { + public interface SpecNested extends Nested,V1VolumeAttachmentSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1VolumeAttachmentStatusFluent> { + public interface StatusNested extends Nested,V1VolumeAttachmentStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java index 93cb959676..7cd07809d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeAttachmentFluentImpl> - extends BaseFluent implements V1VolumeAttachmentFluent { - public V1VolumeAttachmentFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeAttachmentFluentImpl> extends BaseFluent implements V1VolumeAttachmentFluent{ + public V1VolumeAttachmentFluentImpl() { + } public V1VolumeAttachmentFluentImpl(V1VolumeAttachment instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,301 +25,205 @@ public V1VolumeAttachmentFluentImpl(V1VolumeAttachment instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1VolumeAttachmentSpecBuilder spec; private V1VolumeAttachmentStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1VolumeAttachmentFluent.MetadataNested withNewMetadata() { return new V1VolumeAttachmentFluentImpl.MetadataNestedImpl(); } - public V1VolumeAttachmentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1VolumeAttachmentFluentImpl.MetadataNestedImpl(item); } - public V1VolumeAttachmentFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1VolumeAttachmentSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1VolumeAttachmentSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1VolumeAttachmentSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1VolumeAttachmentSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1VolumeAttachmentSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1VolumeAttachmentFluent.SpecNested withNewSpec() { return new V1VolumeAttachmentFluentImpl.SpecNestedImpl(); } - public V1VolumeAttachmentFluent.SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { return new V1VolumeAttachmentFluentImpl.SpecNestedImpl(item); } - public V1VolumeAttachmentFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1VolumeAttachmentFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1VolumeAttachmentSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1VolumeAttachmentSpecBuilder().build()); } - public V1VolumeAttachmentFluent.SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1VolumeAttachmentStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1VolumeAttachmentStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1VolumeAttachmentStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1VolumeAttachmentStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1VolumeAttachmentStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1VolumeAttachmentFluent.StatusNested withNewStatus() { return new V1VolumeAttachmentFluentImpl.StatusNestedImpl(); } - public V1VolumeAttachmentFluent.StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { return new V1VolumeAttachmentFluentImpl.StatusNestedImpl(item); } - public V1VolumeAttachmentFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1VolumeAttachmentFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1VolumeAttachmentStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1VolumeAttachmentStatusBuilder().build()); } - - public V1VolumeAttachmentFluent.StatusNested editOrNewStatusLike( - V1VolumeAttachmentStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1VolumeAttachmentFluent.StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeAttachmentFluentImpl that = (V1VolumeAttachmentFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1VolumeAttachmentFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1VolumeAttachmentFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1VolumeAttachmentFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1VolumeAttachmentSpecFluentImpl> - implements V1VolumeAttachmentFluent.SpecNested, Nested { + class SpecNestedImpl extends V1VolumeAttachmentSpecFluentImpl> implements V1VolumeAttachmentFluent.SpecNested,Nested{ SpecNestedImpl(V1VolumeAttachmentSpec item) { this.builder = new V1VolumeAttachmentSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1VolumeAttachmentSpecBuilder(this); } - V1VolumeAttachmentSpecBuilder builder; - public N and() { return (N) V1VolumeAttachmentFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1VolumeAttachmentStatusFluentImpl> - implements V1VolumeAttachmentFluent.StatusNested, Nested { + class StatusNestedImpl extends V1VolumeAttachmentStatusFluentImpl> implements V1VolumeAttachmentFluent.StatusNested,Nested{ StatusNestedImpl(V1VolumeAttachmentStatus item) { this.builder = new V1VolumeAttachmentStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1VolumeAttachmentStatusBuilder(this); } - V1VolumeAttachmentStatusBuilder builder; - public N and() { return (N) V1VolumeAttachmentFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java index 3e34ffc35d..d16e7c7fc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VolumeAttachmentListBuilder - extends V1VolumeAttachmentListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeAttachmentListBuilder extends V1VolumeAttachmentListFluentImpl implements VisitableBuilder{ public V1VolumeAttachmentListBuilder() { this(false); } - public V1VolumeAttachmentListBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentList(), validationEnabled); } - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent) { this(fluent, false); } - - public V1VolumeAttachmentListBuilder( - V1VolumeAttachmentListFluent fluent, Boolean validationEnabled) { + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentList(), validationEnabled); } - - public V1VolumeAttachmentListBuilder( - V1VolumeAttachmentListFluent fluent, V1VolumeAttachmentList instance) { + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,V1VolumeAttachmentList instance) { this(fluent, instance, false); } - - public V1VolumeAttachmentListBuilder( - V1VolumeAttachmentListFluent fluent, - V1VolumeAttachmentList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,V1VolumeAttachmentList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1VolumeAttachmentListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance, Boolean va this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeAttachmentListFluent fluent; Boolean validationEnabled; - public V1VolumeAttachmentList build() { V1VolumeAttachmentList buildable = new V1VolumeAttachmentList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1VolumeAttachmentList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java index 9ee097ac65..b0d1da0f1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeAttachmentListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1VolumeAttachmentListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1VolumeAttachment item); - - public A setToItems(Integer index, V1VolumeAttachment item); - + public A addToItems(Integer index,V1VolumeAttachment item); + public A setToItems(Integer index,V1VolumeAttachment item); public A addToItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1VolumeAttachment buildItem(Integer index); - public V1VolumeAttachment buildFirstItem(); - public V1VolumeAttachment buildLastItem(); - public V1VolumeAttachment buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items); - public Boolean hasItems(); - public V1VolumeAttachmentListFluent.ItemsNested addNewItem(); - public V1VolumeAttachmentListFluent.ItemsNested addNewItemLike(V1VolumeAttachment item); - - public V1VolumeAttachmentListFluent.ItemsNested setNewItemLike( - Integer index, V1VolumeAttachment item); - + public V1VolumeAttachmentListFluent.ItemsNested setNewItemLike(Integer index,V1VolumeAttachment item); public V1VolumeAttachmentListFluent.ItemsNested editItem(Integer index); - public V1VolumeAttachmentListFluent.ItemsNested editFirstItem(); - public V1VolumeAttachmentListFluent.ItemsNested editLastItem(); - - public V1VolumeAttachmentListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1VolumeAttachmentListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1VolumeAttachmentListFluent.MetadataNested withNewMetadata(); - public V1VolumeAttachmentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1VolumeAttachmentListFluent.MetadataNested editMetadata(); - public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadata(); - public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1VolumeAttachmentFluent> { + public interface ItemsNested extends Nested,V1VolumeAttachmentFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java index 158d60cd46..2009f81a91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeAttachmentListFluentImpl> - extends BaseFluent implements V1VolumeAttachmentListFluent { - public V1VolumeAttachmentListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeAttachmentListFluentImpl> extends BaseFluent implements V1VolumeAttachmentListFluent{ + public V1VolumeAttachmentListFluentImpl() { + } public V1VolumeAttachmentListFluentImpl(V1VolumeAttachmentList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1VolumeAttachmentListFluentImpl(V1VolumeAttachmentList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1VolumeAttachment item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1VolumeAttachment item) { + if (this.items == null) {this.items = new ArrayList();} + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1VolumeAttachment item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1VolumeAttachment item) { + if (this.items == null) {this.items = new ArrayList();} V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1VolumeAttachment buildItem(Integer index) { return this.items.get(index).build(); } - public V1VolumeAttachment buildFirstItem() { return this.items.get(0).build(); } - public V1VolumeAttachment buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1VolumeAttachment buildMatchingItem(Predicate predicate) { - for (V1VolumeAttachmentBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1VolumeAttachmentBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1VolumeAttachmentBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1VolumeAttachmentBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1VolumeAttachment item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1VolumeAttachment item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1VolumeAttachment item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1VolumeAttachment item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1VolumeAttachmentListFluent.ItemsNested addNewItem() { return new V1VolumeAttachmentListFluentImpl.ItemsNestedImpl(); } - public V1VolumeAttachmentListFluent.ItemsNested addNewItemLike(V1VolumeAttachment item) { return new V1VolumeAttachmentListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1VolumeAttachmentListFluent.ItemsNested setNewItemLike( - Integer index, V1VolumeAttachment item) { + public V1VolumeAttachmentListFluent.ItemsNested setNewItemLike(Integer index,V1VolumeAttachment item) { return new V1VolumeAttachmentListFluentImpl.ItemsNestedImpl(index, item); } - public V1VolumeAttachmentListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1VolumeAttachmentListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1VolumeAttachmentListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1VolumeAttachmentListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1VolumeAttachmentListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1VolumeAttachmentListFluentImpl.MetadataNestedImpl(); } - public V1VolumeAttachmentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1VolumeAttachmentListFluentImpl.MetadataNestedImpl(item); } - public V1VolumeAttachmentListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeAttachmentListFluentImpl that = (V1VolumeAttachmentListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1VolumeAttachmentFluentImpl> - implements V1VolumeAttachmentListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1VolumeAttachment item) { + class ItemsNestedImpl extends V1VolumeAttachmentFluentImpl> implements V1VolumeAttachmentListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1VolumeAttachment item) { this.index = index; this.builder = new V1VolumeAttachmentBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1VolumeAttachmentBuilder(this); } - V1VolumeAttachmentBuilder builder; Integer index; - public N and() { - return (N) V1VolumeAttachmentListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1VolumeAttachmentListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1VolumeAttachmentListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1VolumeAttachmentListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1VolumeAttachmentListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java index c9a559d531..91f4b80343 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1VolumeAttachmentSourceBuilder - extends V1VolumeAttachmentSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeAttachmentSourceBuilder extends V1VolumeAttachmentSourceFluentImpl implements VisitableBuilder{ public V1VolumeAttachmentSourceBuilder() { this(false); } - public V1VolumeAttachmentSourceBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentSource(), validationEnabled); } - public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent) { this(fluent, false); } - - public V1VolumeAttachmentSourceBuilder( - V1VolumeAttachmentSourceFluent fluent, Boolean validationEnabled) { + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentSource(), validationEnabled); } - - public V1VolumeAttachmentSourceBuilder( - V1VolumeAttachmentSourceFluent fluent, V1VolumeAttachmentSource instance) { + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,V1VolumeAttachmentSource instance) { this(fluent, instance, false); } - - public V1VolumeAttachmentSourceBuilder( - V1VolumeAttachmentSourceFluent fluent, - V1VolumeAttachmentSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,V1VolumeAttachmentSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withInlineVolumeSpec(instance.getInlineVolumeSpec()); fluent.withPersistentVolumeName(instance.getPersistentVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSource instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeAttachmentSourceBuilder( - V1VolumeAttachmentSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSource instance,Boolean validationEnabled) { + this.fluent = this; this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); this.withPersistentVolumeName(instance.getPersistentVolumeName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeAttachmentSourceFluent fluent; Boolean validationEnabled; - public V1VolumeAttachmentSource build() { V1VolumeAttachmentSource buildable = new V1VolumeAttachmentSource(); buildable.setInlineVolumeSpec(fluent.getInlineVolumeSpec()); buildable.setPersistentVolumeName(fluent.getPersistentVolumeName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java index c8a8f988b8..1516f23fe5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1VolumeAttachmentSourceFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1VolumeAttachmentSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildInlineVolumeSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeSpec getInlineVolumeSpec(); - public V1PersistentVolumeSpec buildInlineVolumeSpec(); - public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec); - public Boolean hasInlineVolumeSpec(); - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpec(); - - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpecLike( - V1PersistentVolumeSpec item); - + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item); public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editInlineVolumeSpec(); - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpec(); - - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpecLike( - V1PersistentVolumeSpec item); - + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpecLike(V1PersistentVolumeSpec item); public String getPersistentVolumeName(); - public A withPersistentVolumeName(String persistentVolumeName); - public Boolean hasPersistentVolumeName(); - - public interface InlineVolumeSpecNested - extends Nested, - V1PersistentVolumeSpecFluent> { + public interface InlineVolumeSpecNested extends Nested,V1PersistentVolumeSpecFluent>{ public N and(); - public N endInlineVolumeSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java index 00699e0c49..5d2771b472 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java @@ -1,156 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeAttachmentSourceFluentImpl> - extends BaseFluent implements V1VolumeAttachmentSourceFluent { - public V1VolumeAttachmentSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeAttachmentSourceFluentImpl> extends BaseFluent implements V1VolumeAttachmentSourceFluent{ + public V1VolumeAttachmentSourceFluentImpl() { + } public V1VolumeAttachmentSourceFluentImpl(V1VolumeAttachmentSource instance) { this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); this.withPersistentVolumeName(instance.getPersistentVolumeName()); - } + } private V1PersistentVolumeSpecBuilder inlineVolumeSpec; private String persistentVolumeName; - + /** * This method has been deprecated, please use method buildInlineVolumeSpec instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeSpec getInlineVolumeSpec() { - return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; + return this.inlineVolumeSpec!=null ?this.inlineVolumeSpec.build():null; } - public V1PersistentVolumeSpec buildInlineVolumeSpec() { - return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; + return this.inlineVolumeSpec!=null ?this.inlineVolumeSpec.build():null; } - public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { _visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); - if (inlineVolumeSpec != null) { - this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); - _visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); - } else { - this.inlineVolumeSpec = null; - _visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); - } - return (A) this; + if (inlineVolumeSpec!=null){ this.inlineVolumeSpec= new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); _visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec);} else { this.inlineVolumeSpec = null; _visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); } return (A) this; } - public Boolean hasInlineVolumeSpec() { return this.inlineVolumeSpec != null; } - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpec() { return new V1VolumeAttachmentSourceFluentImpl.InlineVolumeSpecNestedImpl(); } - - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpecLike( - V1PersistentVolumeSpec item) { + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { return new V1VolumeAttachmentSourceFluentImpl.InlineVolumeSpecNestedImpl(item); } - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editInlineVolumeSpec() { return withNewInlineVolumeSpecLike(getInlineVolumeSpec()); } - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpec() { - return withNewInlineVolumeSpecLike( - getInlineVolumeSpec() != null - ? getInlineVolumeSpec() - : new V1PersistentVolumeSpecBuilder().build()); + return withNewInlineVolumeSpecLike(getInlineVolumeSpec() != null ? getInlineVolumeSpec(): new V1PersistentVolumeSpecBuilder().build()); } - - public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpecLike( - V1PersistentVolumeSpec item) { - return withNewInlineVolumeSpecLike( - getInlineVolumeSpec() != null ? getInlineVolumeSpec() : item); + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { + return withNewInlineVolumeSpecLike(getInlineVolumeSpec() != null ? getInlineVolumeSpec(): item); } - public String getPersistentVolumeName() { return this.persistentVolumeName; } - public A withPersistentVolumeName(String persistentVolumeName) { - this.persistentVolumeName = persistentVolumeName; - return (A) this; + this.persistentVolumeName=persistentVolumeName; return (A) this; } - public Boolean hasPersistentVolumeName() { return this.persistentVolumeName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeAttachmentSourceFluentImpl that = (V1VolumeAttachmentSourceFluentImpl) o; - if (inlineVolumeSpec != null - ? !inlineVolumeSpec.equals(that.inlineVolumeSpec) - : that.inlineVolumeSpec != null) return false; - if (persistentVolumeName != null - ? !persistentVolumeName.equals(that.persistentVolumeName) - : that.persistentVolumeName != null) return false; + if (inlineVolumeSpec != null ? !inlineVolumeSpec.equals(that.inlineVolumeSpec) :that.inlineVolumeSpec != null) return false; + if (persistentVolumeName != null ? !persistentVolumeName.equals(that.persistentVolumeName) :that.persistentVolumeName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(inlineVolumeSpec, persistentVolumeName, super.hashCode()); + return java.util.Objects.hash(inlineVolumeSpec, persistentVolumeName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (inlineVolumeSpec != null) { - sb.append("inlineVolumeSpec:"); - sb.append(inlineVolumeSpec + ","); - } - if (persistentVolumeName != null) { - sb.append("persistentVolumeName:"); - sb.append(persistentVolumeName); - } + if (inlineVolumeSpec != null) { sb.append("inlineVolumeSpec:"); sb.append(inlineVolumeSpec + ","); } + if (persistentVolumeName != null) { sb.append("persistentVolumeName:"); sb.append(persistentVolumeName); } sb.append("}"); return sb.toString(); } - - class InlineVolumeSpecNestedImpl - extends V1PersistentVolumeSpecFluentImpl< - V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested> - implements V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested, Nested { + class InlineVolumeSpecNestedImpl extends V1PersistentVolumeSpecFluentImpl> implements V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested,Nested{ InlineVolumeSpecNestedImpl(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } - InlineVolumeSpecNestedImpl() { this.builder = new V1PersistentVolumeSpecBuilder(this); } - V1PersistentVolumeSpecBuilder builder; - public N and() { return (N) V1VolumeAttachmentSourceFluentImpl.this.withInlineVolumeSpec(builder.build()); } - public N endInlineVolumeSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java index 42e25d8b2c..b3fd1307e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1VolumeAttachmentSpecBuilder - extends V1VolumeAttachmentSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeAttachmentSpecBuilder extends V1VolumeAttachmentSpecFluentImpl implements VisitableBuilder{ public V1VolumeAttachmentSpecBuilder() { this(false); } - public V1VolumeAttachmentSpecBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentSpec(), validationEnabled); } - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent) { this(fluent, false); } - - public V1VolumeAttachmentSpecBuilder( - V1VolumeAttachmentSpecFluent fluent, Boolean validationEnabled) { + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentSpec(), validationEnabled); } - - public V1VolumeAttachmentSpecBuilder( - V1VolumeAttachmentSpecFluent fluent, V1VolumeAttachmentSpec instance) { + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,V1VolumeAttachmentSpec instance) { this(fluent, instance, false); } - - public V1VolumeAttachmentSpecBuilder( - V1VolumeAttachmentSpecFluent fluent, - V1VolumeAttachmentSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,V1VolumeAttachmentSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAttacher(instance.getAttacher()); fluent.withNodeName(instance.getNodeName()); fluent.withSource(instance.getSource()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withAttacher(instance.getAttacher()); this.withNodeName(instance.getNodeName()); this.withSource(instance.getSource()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeAttachmentSpecFluent fluent; Boolean validationEnabled; - public V1VolumeAttachmentSpec build() { V1VolumeAttachmentSpec buildable = new V1VolumeAttachmentSpec(); buildable.setAttacher(fluent.getAttacher()); @@ -78,4 +50,5 @@ public V1VolumeAttachmentSpec build() { buildable.setSource(fluent.getSource()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java index 0a66638dd5..3295ec017b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java @@ -1,66 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeAttachmentSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1VolumeAttachmentSpecFluent> extends Fluent{ public String getAttacher(); - public A withAttacher(String attacher); - public Boolean hasAttacher(); - public String getNodeName(); - public A withNodeName(String nodeName); - public Boolean hasNodeName(); - + /** * This method has been deprecated, please use method buildSource instead. - * * @return The buildable object. */ @Deprecated public V1VolumeAttachmentSource getSource(); - public V1VolumeAttachmentSource buildSource(); - public A withSource(V1VolumeAttachmentSource source); - public Boolean hasSource(); - public V1VolumeAttachmentSpecFluent.SourceNested withNewSource(); - - public V1VolumeAttachmentSpecFluent.SourceNested withNewSourceLike( - V1VolumeAttachmentSource item); - + public V1VolumeAttachmentSpecFluent.SourceNested withNewSourceLike(V1VolumeAttachmentSource item); public V1VolumeAttachmentSpecFluent.SourceNested editSource(); - public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSource(); - - public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSourceLike( - V1VolumeAttachmentSource item); - - public interface SourceNested - extends Nested, - V1VolumeAttachmentSourceFluent> { + public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSourceLike(V1VolumeAttachmentSource item); + public interface SourceNested extends Nested,V1VolumeAttachmentSourceFluent>{ public N and(); - public N endSource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java index 991cddcc76..69596e9b35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java @@ -1,169 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeAttachmentSpecFluentImpl> - extends BaseFluent implements V1VolumeAttachmentSpecFluent { - public V1VolumeAttachmentSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeAttachmentSpecFluentImpl> extends BaseFluent implements V1VolumeAttachmentSpecFluent{ + public V1VolumeAttachmentSpecFluentImpl() { + } public V1VolumeAttachmentSpecFluentImpl(V1VolumeAttachmentSpec instance) { this.withAttacher(instance.getAttacher()); this.withNodeName(instance.getNodeName()); this.withSource(instance.getSource()); - } + } private String attacher; private String nodeName; private V1VolumeAttachmentSourceBuilder source; - public String getAttacher() { return this.attacher; } - public A withAttacher(String attacher) { - this.attacher = attacher; - return (A) this; + this.attacher=attacher; return (A) this; } - public Boolean hasAttacher() { return this.attacher != null; } - public String getNodeName() { return this.nodeName; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + this.nodeName=nodeName; return (A) this; } - public Boolean hasNodeName() { return this.nodeName != null; } - + /** * This method has been deprecated, please use method buildSource instead. - * * @return The buildable object. */ @Deprecated public V1VolumeAttachmentSource getSource() { - return this.source != null ? this.source.build() : null; + return this.source!=null ?this.source.build():null; } - public V1VolumeAttachmentSource buildSource() { - return this.source != null ? this.source.build() : null; + return this.source!=null ?this.source.build():null; } - public A withSource(V1VolumeAttachmentSource source) { _visitables.get("source").remove(this.source); - if (source != null) { - this.source = new V1VolumeAttachmentSourceBuilder(source); - _visitables.get("source").add(this.source); - } else { - this.source = null; - _visitables.get("source").remove(this.source); - } - return (A) this; + if (source!=null){ this.source= new V1VolumeAttachmentSourceBuilder(source); _visitables.get("source").add(this.source);} else { this.source = null; _visitables.get("source").remove(this.source); } return (A) this; } - public Boolean hasSource() { return this.source != null; } - public V1VolumeAttachmentSpecFluent.SourceNested withNewSource() { return new V1VolumeAttachmentSpecFluentImpl.SourceNestedImpl(); } - - public V1VolumeAttachmentSpecFluent.SourceNested withNewSourceLike( - V1VolumeAttachmentSource item) { + public V1VolumeAttachmentSpecFluent.SourceNested withNewSourceLike(V1VolumeAttachmentSource item) { return new V1VolumeAttachmentSpecFluentImpl.SourceNestedImpl(item); } - public V1VolumeAttachmentSpecFluent.SourceNested editSource() { return withNewSourceLike(getSource()); } - public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSource() { - return withNewSourceLike( - getSource() != null ? getSource() : new V1VolumeAttachmentSourceBuilder().build()); + return withNewSourceLike(getSource() != null ? getSource(): new V1VolumeAttachmentSourceBuilder().build()); } - - public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSourceLike( - V1VolumeAttachmentSource item) { - return withNewSourceLike(getSource() != null ? getSource() : item); + public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSourceLike(V1VolumeAttachmentSource item) { + return withNewSourceLike(getSource() != null ? getSource(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeAttachmentSpecFluentImpl that = (V1VolumeAttachmentSpecFluentImpl) o; - if (attacher != null ? !attacher.equals(that.attacher) : that.attacher != null) return false; - if (nodeName != null ? !nodeName.equals(that.nodeName) : that.nodeName != null) return false; - if (source != null ? !source.equals(that.source) : that.source != null) return false; + if (attacher != null ? !attacher.equals(that.attacher) :that.attacher != null) return false; + if (nodeName != null ? !nodeName.equals(that.nodeName) :that.nodeName != null) return false; + if (source != null ? !source.equals(that.source) :that.source != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(attacher, nodeName, source, super.hashCode()); + return java.util.Objects.hash(attacher, nodeName, source, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (attacher != null) { - sb.append("attacher:"); - sb.append(attacher + ","); - } - if (nodeName != null) { - sb.append("nodeName:"); - sb.append(nodeName + ","); - } - if (source != null) { - sb.append("source:"); - sb.append(source); - } + if (attacher != null) { sb.append("attacher:"); sb.append(attacher + ","); } + if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } + if (source != null) { sb.append("source:"); sb.append(source); } sb.append("}"); return sb.toString(); } - - class SourceNestedImpl - extends V1VolumeAttachmentSourceFluentImpl> - implements V1VolumeAttachmentSpecFluent.SourceNested, Nested { + class SourceNestedImpl extends V1VolumeAttachmentSourceFluentImpl> implements V1VolumeAttachmentSpecFluent.SourceNested,Nested{ SourceNestedImpl(V1VolumeAttachmentSource item) { this.builder = new V1VolumeAttachmentSourceBuilder(this, item); } - SourceNestedImpl() { this.builder = new V1VolumeAttachmentSourceBuilder(this); } - V1VolumeAttachmentSourceBuilder builder; - public N and() { return (N) V1VolumeAttachmentSpecFluentImpl.this.withSource(builder.build()); } - public N endSource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java index 127bd6391c..af9fb149f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VolumeAttachmentStatusBuilder - extends V1VolumeAttachmentStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeAttachmentStatusBuilder extends V1VolumeAttachmentStatusFluentImpl implements VisitableBuilder{ public V1VolumeAttachmentStatusBuilder() { this(false); } - public V1VolumeAttachmentStatusBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentStatus(), validationEnabled); } - public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent) { this(fluent, false); } - - public V1VolumeAttachmentStatusBuilder( - V1VolumeAttachmentStatusFluent fluent, Boolean validationEnabled) { + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentStatus(), validationEnabled); } - - public V1VolumeAttachmentStatusBuilder( - V1VolumeAttachmentStatusFluent fluent, V1VolumeAttachmentStatus instance) { + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,V1VolumeAttachmentStatus instance) { this(fluent, instance, false); } - - public V1VolumeAttachmentStatusBuilder( - V1VolumeAttachmentStatusFluent fluent, - V1VolumeAttachmentStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,V1VolumeAttachmentStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAttachError(instance.getAttachError()); fluent.withAttached(instance.getAttached()); @@ -52,16 +28,13 @@ public V1VolumeAttachmentStatusBuilder( fluent.withDetachError(instance.getDetachError()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatus instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeAttachmentStatusBuilder( - V1VolumeAttachmentStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAttachError(instance.getAttachError()); this.withAttached(instance.getAttached()); @@ -70,12 +43,10 @@ public V1VolumeAttachmentStatusBuilder( this.withDetachError(instance.getDetachError()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeAttachmentStatusFluent fluent; Boolean validationEnabled; - public V1VolumeAttachmentStatus build() { V1VolumeAttachmentStatus buildable = new V1VolumeAttachmentStatus(); buildable.setAttachError(fluent.getAttachError()); @@ -84,4 +55,5 @@ public V1VolumeAttachmentStatus build() { buildable.setDetachError(fluent.getDetachError()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java index 89f7456a10..2c74195674 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java @@ -1,110 +1,67 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; import java.util.Map; +import java.util.LinkedHashMap; -/** Generated */ -public interface V1VolumeAttachmentStatusFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1VolumeAttachmentStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildAttachError instead. - * * @return The buildable object. */ @Deprecated public V1VolumeError getAttachError(); - public V1VolumeError buildAttachError(); - public A withAttachError(V1VolumeError attachError); - public Boolean hasAttachError(); - public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachError(); - - public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachErrorLike( - V1VolumeError item); - + public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachErrorLike(V1VolumeError item); public V1VolumeAttachmentStatusFluent.AttachErrorNested editAttachError(); - public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachError(); - - public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachErrorLike( - V1VolumeError item); - + public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item); public Boolean getAttached(); - public A withAttached(Boolean attached); - public Boolean hasAttached(); - - public A addToAttachmentMetadata(String key, String value); - - public A addToAttachmentMetadata(Map map); - + public A addToAttachmentMetadata(String key,String value); + public A addToAttachmentMetadata(Map map); public A removeFromAttachmentMetadata(String key); - - public A removeFromAttachmentMetadata(Map map); - - public Map getAttachmentMetadata(); - - public A withAttachmentMetadata(Map attachmentMetadata); - + public A removeFromAttachmentMetadata(Map map); + public Map getAttachmentMetadata(); + public A withAttachmentMetadata(Map attachmentMetadata); public Boolean hasAttachmentMetadata(); - + /** * This method has been deprecated, please use method buildDetachError instead. - * * @return The buildable object. */ @Deprecated public V1VolumeError getDetachError(); - public V1VolumeError buildDetachError(); - public A withDetachError(V1VolumeError detachError); - public Boolean hasDetachError(); - public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachError(); - - public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachErrorLike( - V1VolumeError item); - + public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachErrorLike(V1VolumeError item); public V1VolumeAttachmentStatusFluent.DetachErrorNested editDetachError(); - public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachError(); - - public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachErrorLike( - V1VolumeError item); - + public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachErrorLike(V1VolumeError item); public A withAttached(); - - public interface AttachErrorNested - extends Nested, V1VolumeErrorFluent> { + public interface AttachErrorNested extends Nested,V1VolumeErrorFluent>{ public N and(); - public N endAttachError(); + } - - public interface DetachErrorNested - extends Nested, V1VolumeErrorFluent> { + public interface DetachErrorNested extends Nested,V1VolumeErrorFluent>{ public N and(); - public N endDetachError(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java index c5982092bd..7b47257208 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java @@ -1,28 +1,22 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; import java.util.LinkedHashMap; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; import java.util.Map; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeAttachmentStatusFluentImpl> - extends BaseFluent implements V1VolumeAttachmentStatusFluent { - public V1VolumeAttachmentStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeAttachmentStatusFluentImpl> extends BaseFluent implements V1VolumeAttachmentStatusFluent{ + public V1VolumeAttachmentStatusFluentImpl() { + } public V1VolumeAttachmentStatusFluentImpl(V1VolumeAttachmentStatus instance) { this.withAttachError(instance.getAttachError()); @@ -31,281 +25,171 @@ public V1VolumeAttachmentStatusFluentImpl(V1VolumeAttachmentStatus instance) { this.withAttachmentMetadata(instance.getAttachmentMetadata()); this.withDetachError(instance.getDetachError()); - } + } private V1VolumeErrorBuilder attachError; private Boolean attached; - private Map attachmentMetadata; + private Map attachmentMetadata; private V1VolumeErrorBuilder detachError; - + /** * This method has been deprecated, please use method buildAttachError instead. - * * @return The buildable object. */ @Deprecated public V1VolumeError getAttachError() { - return this.attachError != null ? this.attachError.build() : null; + return this.attachError!=null ?this.attachError.build():null; } - public V1VolumeError buildAttachError() { - return this.attachError != null ? this.attachError.build() : null; + return this.attachError!=null ?this.attachError.build():null; } - public A withAttachError(V1VolumeError attachError) { _visitables.get("attachError").remove(this.attachError); - if (attachError != null) { - this.attachError = new V1VolumeErrorBuilder(attachError); - _visitables.get("attachError").add(this.attachError); - } else { - this.attachError = null; - _visitables.get("attachError").remove(this.attachError); - } - return (A) this; + if (attachError!=null){ this.attachError= new V1VolumeErrorBuilder(attachError); _visitables.get("attachError").add(this.attachError);} else { this.attachError = null; _visitables.get("attachError").remove(this.attachError); } return (A) this; } - public Boolean hasAttachError() { return this.attachError != null; } - public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachError() { return new V1VolumeAttachmentStatusFluentImpl.AttachErrorNestedImpl(); } - - public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachErrorLike( - V1VolumeError item) { + public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { return new V1VolumeAttachmentStatusFluentImpl.AttachErrorNestedImpl(item); } - public V1VolumeAttachmentStatusFluent.AttachErrorNested editAttachError() { return withNewAttachErrorLike(getAttachError()); } - public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachError() { - return withNewAttachErrorLike( - getAttachError() != null ? getAttachError() : new V1VolumeErrorBuilder().build()); + return withNewAttachErrorLike(getAttachError() != null ? getAttachError(): new V1VolumeErrorBuilder().build()); } - - public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachErrorLike( - V1VolumeError item) { - return withNewAttachErrorLike(getAttachError() != null ? getAttachError() : item); + public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item) { + return withNewAttachErrorLike(getAttachError() != null ? getAttachError(): item); } - public Boolean getAttached() { return this.attached; } - public A withAttached(Boolean attached) { - this.attached = attached; - return (A) this; + this.attached=attached; return (A) this; } - public Boolean hasAttached() { return this.attached != null; } - - public A addToAttachmentMetadata(String key, String value) { - if (this.attachmentMetadata == null && key != null && value != null) { - this.attachmentMetadata = new LinkedHashMap(); - } - if (key != null && value != null) { - this.attachmentMetadata.put(key, value); - } - return (A) this; + public A addToAttachmentMetadata(String key,String value) { + if(this.attachmentMetadata == null && key != null && value != null) { this.attachmentMetadata = new LinkedHashMap(); } + if(key != null && value != null) {this.attachmentMetadata.put(key, value);} return (A)this; } - - public A addToAttachmentMetadata(Map map) { - if (this.attachmentMetadata == null && map != null) { - this.attachmentMetadata = new LinkedHashMap(); - } - if (map != null) { - this.attachmentMetadata.putAll(map); - } - return (A) this; + public A addToAttachmentMetadata(Map map) { + if(this.attachmentMetadata == null && map != null) { this.attachmentMetadata = new LinkedHashMap(); } + if(map != null) { this.attachmentMetadata.putAll(map);} return (A)this; } - public A removeFromAttachmentMetadata(String key) { - if (this.attachmentMetadata == null) { - return (A) this; - } - if (key != null && this.attachmentMetadata != null) { - this.attachmentMetadata.remove(key); - } - return (A) this; + if(this.attachmentMetadata == null) { return (A) this; } + if(key != null && this.attachmentMetadata != null) {this.attachmentMetadata.remove(key);} return (A)this; } - - public A removeFromAttachmentMetadata(Map map) { - if (this.attachmentMetadata == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.attachmentMetadata != null) { - this.attachmentMetadata.remove(key); - } - } - } - return (A) this; + public A removeFromAttachmentMetadata(Map map) { + if(this.attachmentMetadata == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.attachmentMetadata != null){this.attachmentMetadata.remove(key);}}} return (A)this; } - - public Map getAttachmentMetadata() { + public Map getAttachmentMetadata() { return this.attachmentMetadata; } - - public A withAttachmentMetadata(Map attachmentMetadata) { - if (attachmentMetadata == null) { - this.attachmentMetadata = null; - } else { - this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); - } - return (A) this; + public A withAttachmentMetadata(Map attachmentMetadata) { + if (attachmentMetadata == null) { this.attachmentMetadata = null;} else {this.attachmentMetadata = new LinkedHashMap(attachmentMetadata);} return (A) this; } - public Boolean hasAttachmentMetadata() { return this.attachmentMetadata != null; } - + /** * This method has been deprecated, please use method buildDetachError instead. - * * @return The buildable object. */ @Deprecated public V1VolumeError getDetachError() { - return this.detachError != null ? this.detachError.build() : null; + return this.detachError!=null ?this.detachError.build():null; } - public V1VolumeError buildDetachError() { - return this.detachError != null ? this.detachError.build() : null; + return this.detachError!=null ?this.detachError.build():null; } - public A withDetachError(V1VolumeError detachError) { _visitables.get("detachError").remove(this.detachError); - if (detachError != null) { - this.detachError = new V1VolumeErrorBuilder(detachError); - _visitables.get("detachError").add(this.detachError); - } else { - this.detachError = null; - _visitables.get("detachError").remove(this.detachError); - } - return (A) this; + if (detachError!=null){ this.detachError= new V1VolumeErrorBuilder(detachError); _visitables.get("detachError").add(this.detachError);} else { this.detachError = null; _visitables.get("detachError").remove(this.detachError); } return (A) this; } - public Boolean hasDetachError() { return this.detachError != null; } - public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachError() { return new V1VolumeAttachmentStatusFluentImpl.DetachErrorNestedImpl(); } - - public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachErrorLike( - V1VolumeError item) { + public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachErrorLike(V1VolumeError item) { return new V1VolumeAttachmentStatusFluentImpl.DetachErrorNestedImpl(item); } - public V1VolumeAttachmentStatusFluent.DetachErrorNested editDetachError() { return withNewDetachErrorLike(getDetachError()); } - public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachError() { - return withNewDetachErrorLike( - getDetachError() != null ? getDetachError() : new V1VolumeErrorBuilder().build()); + return withNewDetachErrorLike(getDetachError() != null ? getDetachError(): new V1VolumeErrorBuilder().build()); } - - public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachErrorLike( - V1VolumeError item) { - return withNewDetachErrorLike(getDetachError() != null ? getDetachError() : item); + public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachErrorLike(V1VolumeError item) { + return withNewDetachErrorLike(getDetachError() != null ? getDetachError(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeAttachmentStatusFluentImpl that = (V1VolumeAttachmentStatusFluentImpl) o; - if (attachError != null ? !attachError.equals(that.attachError) : that.attachError != null) - return false; - if (attached != null ? !attached.equals(that.attached) : that.attached != null) return false; - if (attachmentMetadata != null - ? !attachmentMetadata.equals(that.attachmentMetadata) - : that.attachmentMetadata != null) return false; - if (detachError != null ? !detachError.equals(that.detachError) : that.detachError != null) - return false; + if (attachError != null ? !attachError.equals(that.attachError) :that.attachError != null) return false; + if (attached != null ? !attached.equals(that.attached) :that.attached != null) return false; + if (attachmentMetadata != null ? !attachmentMetadata.equals(that.attachmentMetadata) :that.attachmentMetadata != null) return false; + if (detachError != null ? !detachError.equals(that.detachError) :that.detachError != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - attachError, attached, attachmentMetadata, detachError, super.hashCode()); + return java.util.Objects.hash(attachError, attached, attachmentMetadata, detachError, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (attachError != null) { - sb.append("attachError:"); - sb.append(attachError + ","); - } - if (attached != null) { - sb.append("attached:"); - sb.append(attached + ","); - } - if (attachmentMetadata != null && !attachmentMetadata.isEmpty()) { - sb.append("attachmentMetadata:"); - sb.append(attachmentMetadata + ","); - } - if (detachError != null) { - sb.append("detachError:"); - sb.append(detachError); - } + if (attachError != null) { sb.append("attachError:"); sb.append(attachError + ","); } + if (attached != null) { sb.append("attached:"); sb.append(attached + ","); } + if (attachmentMetadata != null && !attachmentMetadata.isEmpty()) { sb.append("attachmentMetadata:"); sb.append(attachmentMetadata + ","); } + if (detachError != null) { sb.append("detachError:"); sb.append(detachError); } sb.append("}"); return sb.toString(); } - public A withAttached() { return withAttached(true); } - - class AttachErrorNestedImpl - extends V1VolumeErrorFluentImpl> - implements V1VolumeAttachmentStatusFluent.AttachErrorNested, Nested { + class AttachErrorNestedImpl extends V1VolumeErrorFluentImpl> implements V1VolumeAttachmentStatusFluent.AttachErrorNested,Nested{ AttachErrorNestedImpl(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } - AttachErrorNestedImpl() { this.builder = new V1VolumeErrorBuilder(this); } - V1VolumeErrorBuilder builder; - public N and() { return (N) V1VolumeAttachmentStatusFluentImpl.this.withAttachError(builder.build()); } - public N endAttachError() { return and(); } + } - - class DetachErrorNestedImpl - extends V1VolumeErrorFluentImpl> - implements V1VolumeAttachmentStatusFluent.DetachErrorNested, Nested { + class DetachErrorNestedImpl extends V1VolumeErrorFluentImpl> implements V1VolumeAttachmentStatusFluent.DetachErrorNested,Nested{ DetachErrorNestedImpl(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } - DetachErrorNestedImpl() { this.builder = new V1VolumeErrorBuilder(this); } - V1VolumeErrorBuilder builder; - public N and() { return (N) V1VolumeAttachmentStatusFluentImpl.this.withDetachError(builder.build()); } - public N endDetachError() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index df386beb23..7beed2d395 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java @@ -1,43 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VolumeBuilder extends V1VolumeFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeBuilder extends V1VolumeFluentImpl implements VisitableBuilder{ public V1VolumeBuilder() { this(false); } - public V1VolumeBuilder(Boolean validationEnabled) { this(new V1Volume(), validationEnabled); } - public V1VolumeBuilder(V1VolumeFluent fluent) { this(fluent, false); } - - public V1VolumeBuilder(V1VolumeFluent fluent, Boolean validationEnabled) { + public V1VolumeBuilder(V1VolumeFluent fluent,Boolean validationEnabled) { this(fluent, new V1Volume(), validationEnabled); } - - public V1VolumeBuilder(V1VolumeFluent fluent, V1Volume instance) { + public V1VolumeBuilder(V1VolumeFluent fluent,V1Volume instance) { this(fluent, instance, false); } - - public V1VolumeBuilder(V1VolumeFluent fluent, V1Volume instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeBuilder(V1VolumeFluent fluent,V1Volume instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); fluent.withAzureDisk(instance.getAzureDisk()); @@ -98,15 +80,13 @@ public V1VolumeBuilder(V1VolumeFluent fluent, V1Volume instance, Boolean vali fluent.withVsphereVolume(instance.getVsphereVolume()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeBuilder(V1Volume instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeBuilder(V1Volume instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeBuilder(V1Volume instance,Boolean validationEnabled) { + this.fluent = this; this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); this.withAzureDisk(instance.getAzureDisk()); @@ -167,12 +147,10 @@ public V1VolumeBuilder(V1Volume instance, Boolean validationEnabled) { this.withVsphereVolume(instance.getVsphereVolume()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeFluent fluent; Boolean validationEnabled; - public V1Volume build() { V1Volume buildable = new V1Volume(); buildable.setAwsElasticBlockStore(fluent.getAwsElasticBlockStore()); @@ -207,4 +185,5 @@ public V1Volume build() { buildable.setVsphereVolume(fluent.getVsphereVolume()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java index 63df3b7fb0..f2a95c4764 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluentImpl implements VisitableBuilder{ public V1VolumeDeviceBuilder() { this(false); } - public V1VolumeDeviceBuilder(Boolean validationEnabled) { this(new V1VolumeDevice(), validationEnabled); } - public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent) { this(fluent, false); } - - public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent, Boolean validationEnabled) { + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeDevice(), validationEnabled); } - - public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent, V1VolumeDevice instance) { + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,V1VolumeDevice instance) { this(fluent, instance, false); } - - public V1VolumeDeviceBuilder( - V1VolumeDeviceFluent fluent, V1VolumeDevice instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,V1VolumeDevice instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDevicePath(instance.getDevicePath()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeDeviceBuilder(V1VolumeDevice instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeDeviceBuilder(V1VolumeDevice instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeDeviceBuilder(V1VolumeDevice instance,Boolean validationEnabled) { + this.fluent = this; this.withDevicePath(instance.getDevicePath()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeDeviceFluent fluent; Boolean validationEnabled; - public V1VolumeDevice build() { V1VolumeDevice buildable = new V1VolumeDevice(); buildable.setDevicePath(fluent.getDevicePath()); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java index d651d4a2a1..9f4cfbde79 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java @@ -1,30 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeDeviceFluent> extends Fluent { + /** + * Generated + */ +public interface V1VolumeDeviceFluent> extends Fluent{ public String getDevicePath(); - public A withDevicePath(String devicePath); - public Boolean hasDevicePath(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java index 13b2dd4fe5..94ac7006ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeDeviceFluentImpl> extends BaseFluent - implements V1VolumeDeviceFluent { - public V1VolumeDeviceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeDeviceFluentImpl> extends BaseFluent implements V1VolumeDeviceFluent{ + public V1VolumeDeviceFluentImpl() { + } public V1VolumeDeviceFluentImpl(V1VolumeDevice instance) { this.withDevicePath(instance.getDevicePath()); this.withName(instance.getName()); - } + } private String devicePath; private String name; - public String getDevicePath() { return this.devicePath; } - public A withDevicePath(String devicePath) { - this.devicePath = devicePath; - return (A) this; + this.devicePath=devicePath; return (A) this; } - public Boolean hasDevicePath() { return this.devicePath != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeDeviceFluentImpl that = (V1VolumeDeviceFluentImpl) o; - if (devicePath != null ? !devicePath.equals(that.devicePath) : that.devicePath != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (devicePath != null ? !devicePath.equals(that.devicePath) :that.devicePath != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(devicePath, name, super.hashCode()); + return java.util.Objects.hash(devicePath, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devicePath != null) { - sb.append("devicePath:"); - sb.append(devicePath + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (devicePath != null) { sb.append("devicePath:"); sb.append(devicePath + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java index 2bd0bdc10e..faafed93dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1VolumeErrorBuilder extends V1VolumeErrorFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeErrorBuilder extends V1VolumeErrorFluentImpl implements VisitableBuilder{ public V1VolumeErrorBuilder() { this(false); } - public V1VolumeErrorBuilder(Boolean validationEnabled) { this(new V1VolumeError(), validationEnabled); } - public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent) { this(fluent, false); } - - public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent, Boolean validationEnabled) { + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeError(), validationEnabled); } - - public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent, V1VolumeError instance) { + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,V1VolumeError instance) { this(fluent, instance, false); } - - public V1VolumeErrorBuilder( - V1VolumeErrorFluent fluent, V1VolumeError instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,V1VolumeError instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMessage(instance.getMessage()); fluent.withTime(instance.getTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeErrorBuilder(V1VolumeError instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeErrorBuilder(V1VolumeError instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeErrorBuilder(V1VolumeError instance,Boolean validationEnabled) { + this.fluent = this; this.withMessage(instance.getMessage()); this.withTime(instance.getTime()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeErrorFluent fluent; Boolean validationEnabled; - public V1VolumeError build() { V1VolumeError buildable = new V1VolumeError(); buildable.setMessage(fluent.getMessage()); buildable.setTime(fluent.getTime()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java index 1bcb6734f8..aae6ae616e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java @@ -1,31 +1,19 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeErrorFluent> extends Fluent { + /** + * Generated + */ +public interface V1VolumeErrorFluent> extends Fluent{ public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public OffsetDateTime getTime(); - public A withTime(OffsetDateTime time); - public Boolean hasTime(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java index dc124d4e47..1b54fdafe2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java @@ -1,86 +1,63 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeErrorFluentImpl> extends BaseFluent - implements V1VolumeErrorFluent { - public V1VolumeErrorFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeErrorFluentImpl> extends BaseFluent implements V1VolumeErrorFluent{ + public V1VolumeErrorFluentImpl() { + } public V1VolumeErrorFluentImpl(V1VolumeError instance) { this.withMessage(instance.getMessage()); this.withTime(instance.getTime()); - } + } private String message; private OffsetDateTime time; - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public OffsetDateTime getTime() { return this.time; } - public A withTime(OffsetDateTime time) { - this.time = time; - return (A) this; + this.time=time; return (A) this; } - public Boolean hasTime() { return this.time != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeErrorFluentImpl that = (V1VolumeErrorFluentImpl) o; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (time != null ? !time.equals(that.time) : that.time != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (time != null ? !time.equals(that.time) :that.time != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(message, time, super.hashCode()); + return java.util.Objects.hash(message, time, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (time != null) { - sb.append("time:"); - sb.append(time); - } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (time != null) { sb.append("time:"); sb.append(time); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java index ed36f27aa7..88ed052a25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java @@ -1,943 +1,597 @@ -/* -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 java.lang.String; +import java.lang.Boolean; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Deprecated; -/** Generated */ -public interface V1VolumeFluent> extends Fluent { - + /** + * Generated + */ +public interface V1VolumeFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildAwsElasticBlockStore instead. - * * @return The buildable object. */ @Deprecated public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore(); - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore(); - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore); - public Boolean hasAwsElasticBlockStore(); - public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore(); - - public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( - V1AWSElasticBlockStoreVolumeSource item); - + public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item); public V1VolumeFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore(); - public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore(); - - public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike( - V1AWSElasticBlockStoreVolumeSource item); - + public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item); + /** * This method has been deprecated, please use method buildAzureDisk instead. - * * @return The buildable object. */ @Deprecated public V1AzureDiskVolumeSource getAzureDisk(); - public V1AzureDiskVolumeSource buildAzureDisk(); - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk); - public Boolean hasAzureDisk(); - public V1VolumeFluent.AzureDiskNested withNewAzureDisk(); - public V1VolumeFluent.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item); - public V1VolumeFluent.AzureDiskNested editAzureDisk(); - public V1VolumeFluent.AzureDiskNested editOrNewAzureDisk(); - public V1VolumeFluent.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item); - + /** * This method has been deprecated, please use method buildAzureFile instead. - * * @return The buildable object. */ @Deprecated public V1AzureFileVolumeSource getAzureFile(); - public V1AzureFileVolumeSource buildAzureFile(); - public A withAzureFile(V1AzureFileVolumeSource azureFile); - public Boolean hasAzureFile(); - public V1VolumeFluent.AzureFileNested withNewAzureFile(); - public V1VolumeFluent.AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item); - public V1VolumeFluent.AzureFileNested editAzureFile(); - public V1VolumeFluent.AzureFileNested editOrNewAzureFile(); - public V1VolumeFluent.AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item); - + /** * This method has been deprecated, please use method buildCephfs instead. - * * @return The buildable object. */ @Deprecated public V1CephFSVolumeSource getCephfs(); - public V1CephFSVolumeSource buildCephfs(); - public A withCephfs(V1CephFSVolumeSource cephfs); - public Boolean hasCephfs(); - public V1VolumeFluent.CephfsNested withNewCephfs(); - public V1VolumeFluent.CephfsNested withNewCephfsLike(V1CephFSVolumeSource item); - public V1VolumeFluent.CephfsNested editCephfs(); - public V1VolumeFluent.CephfsNested editOrNewCephfs(); - public V1VolumeFluent.CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item); - + /** * This method has been deprecated, please use method buildCinder instead. - * * @return The buildable object. */ @Deprecated public V1CinderVolumeSource getCinder(); - public V1CinderVolumeSource buildCinder(); - public A withCinder(V1CinderVolumeSource cinder); - public Boolean hasCinder(); - public V1VolumeFluent.CinderNested withNewCinder(); - public V1VolumeFluent.CinderNested withNewCinderLike(V1CinderVolumeSource item); - public V1VolumeFluent.CinderNested editCinder(); - public V1VolumeFluent.CinderNested editOrNewCinder(); - public V1VolumeFluent.CinderNested editOrNewCinderLike(V1CinderVolumeSource item); - + /** * This method has been deprecated, please use method buildConfigMap instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapVolumeSource getConfigMap(); - public V1ConfigMapVolumeSource buildConfigMap(); - public A withConfigMap(V1ConfigMapVolumeSource configMap); - public Boolean hasConfigMap(); - public V1VolumeFluent.ConfigMapNested withNewConfigMap(); - public V1VolumeFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item); - public V1VolumeFluent.ConfigMapNested editConfigMap(); - public V1VolumeFluent.ConfigMapNested editOrNewConfigMap(); - public V1VolumeFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item); - + /** * This method has been deprecated, please use method buildCsi instead. - * * @return The buildable object. */ @Deprecated public V1CSIVolumeSource getCsi(); - public V1CSIVolumeSource buildCsi(); - public A withCsi(V1CSIVolumeSource csi); - public Boolean hasCsi(); - public V1VolumeFluent.CsiNested withNewCsi(); - public V1VolumeFluent.CsiNested withNewCsiLike(V1CSIVolumeSource item); - public V1VolumeFluent.CsiNested editCsi(); - public V1VolumeFluent.CsiNested editOrNewCsi(); - public V1VolumeFluent.CsiNested editOrNewCsiLike(V1CSIVolumeSource item); - + /** * This method has been deprecated, please use method buildDownwardAPI instead. - * * @return The buildable object. */ @Deprecated public V1DownwardAPIVolumeSource getDownwardAPI(); - public V1DownwardAPIVolumeSource buildDownwardAPI(); - public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI); - public Boolean hasDownwardAPI(); - public V1VolumeFluent.DownwardAPINested withNewDownwardAPI(); - public V1VolumeFluent.DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item); - public V1VolumeFluent.DownwardAPINested editDownwardAPI(); - public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPI(); - - public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPILike( - V1DownwardAPIVolumeSource item); - + public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item); + /** * This method has been deprecated, please use method buildEmptyDir instead. - * * @return The buildable object. */ @Deprecated public V1EmptyDirVolumeSource getEmptyDir(); - public V1EmptyDirVolumeSource buildEmptyDir(); - public A withEmptyDir(V1EmptyDirVolumeSource emptyDir); - public Boolean hasEmptyDir(); - public V1VolumeFluent.EmptyDirNested withNewEmptyDir(); - public V1VolumeFluent.EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item); - public V1VolumeFluent.EmptyDirNested editEmptyDir(); - public V1VolumeFluent.EmptyDirNested editOrNewEmptyDir(); - public V1VolumeFluent.EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item); - + /** * This method has been deprecated, please use method buildEphemeral instead. - * * @return The buildable object. */ @Deprecated public V1EphemeralVolumeSource getEphemeral(); - public V1EphemeralVolumeSource buildEphemeral(); - public A withEphemeral(V1EphemeralVolumeSource ephemeral); - public Boolean hasEphemeral(); - public V1VolumeFluent.EphemeralNested withNewEphemeral(); - public V1VolumeFluent.EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item); - public V1VolumeFluent.EphemeralNested editEphemeral(); - public V1VolumeFluent.EphemeralNested editOrNewEphemeral(); - public V1VolumeFluent.EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item); - + /** * This method has been deprecated, please use method buildFc instead. - * * @return The buildable object. */ @Deprecated public V1FCVolumeSource getFc(); - public V1FCVolumeSource buildFc(); - public A withFc(V1FCVolumeSource fc); - public Boolean hasFc(); - public V1VolumeFluent.FcNested withNewFc(); - public V1VolumeFluent.FcNested withNewFcLike(V1FCVolumeSource item); - public V1VolumeFluent.FcNested editFc(); - public V1VolumeFluent.FcNested editOrNewFc(); - public V1VolumeFluent.FcNested editOrNewFcLike(V1FCVolumeSource item); - + /** * This method has been deprecated, please use method buildFlexVolume instead. - * * @return The buildable object. */ @Deprecated public V1FlexVolumeSource getFlexVolume(); - public V1FlexVolumeSource buildFlexVolume(); - public A withFlexVolume(V1FlexVolumeSource flexVolume); - public Boolean hasFlexVolume(); - public V1VolumeFluent.FlexVolumeNested withNewFlexVolume(); - public V1VolumeFluent.FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item); - public V1VolumeFluent.FlexVolumeNested editFlexVolume(); - public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolume(); - public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item); - + /** * This method has been deprecated, please use method buildFlocker instead. - * * @return The buildable object. */ @Deprecated public V1FlockerVolumeSource getFlocker(); - public V1FlockerVolumeSource buildFlocker(); - public A withFlocker(V1FlockerVolumeSource flocker); - public Boolean hasFlocker(); - public V1VolumeFluent.FlockerNested withNewFlocker(); - public V1VolumeFluent.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item); - public V1VolumeFluent.FlockerNested editFlocker(); - public V1VolumeFluent.FlockerNested editOrNewFlocker(); - public V1VolumeFluent.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item); - + /** * This method has been deprecated, please use method buildGcePersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1GCEPersistentDiskVolumeSource getGcePersistentDisk(); - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk(); - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk); - public Boolean hasGcePersistentDisk(); - public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDisk(); - - public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item); - + public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item); public V1VolumeFluent.GcePersistentDiskNested editGcePersistentDisk(); - public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDisk(); - - public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item); - + public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item); + /** * This method has been deprecated, please use method buildGitRepo instead. - * * @return The buildable object. */ @Deprecated public V1GitRepoVolumeSource getGitRepo(); - public V1GitRepoVolumeSource buildGitRepo(); - public A withGitRepo(V1GitRepoVolumeSource gitRepo); - public Boolean hasGitRepo(); - public V1VolumeFluent.GitRepoNested withNewGitRepo(); - public V1VolumeFluent.GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item); - public V1VolumeFluent.GitRepoNested editGitRepo(); - public V1VolumeFluent.GitRepoNested editOrNewGitRepo(); - public V1VolumeFluent.GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item); - + /** * This method has been deprecated, please use method buildGlusterfs instead. - * * @return The buildable object. */ @Deprecated public V1GlusterfsVolumeSource getGlusterfs(); - public V1GlusterfsVolumeSource buildGlusterfs(); - public A withGlusterfs(V1GlusterfsVolumeSource glusterfs); - public Boolean hasGlusterfs(); - public V1VolumeFluent.GlusterfsNested withNewGlusterfs(); - public V1VolumeFluent.GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item); - public V1VolumeFluent.GlusterfsNested editGlusterfs(); - public V1VolumeFluent.GlusterfsNested editOrNewGlusterfs(); - public V1VolumeFluent.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item); - + /** * This method has been deprecated, please use method buildHostPath instead. - * * @return The buildable object. */ @Deprecated public V1HostPathVolumeSource getHostPath(); - public V1HostPathVolumeSource buildHostPath(); - public A withHostPath(V1HostPathVolumeSource hostPath); - public Boolean hasHostPath(); - public V1VolumeFluent.HostPathNested withNewHostPath(); - public V1VolumeFluent.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item); - public V1VolumeFluent.HostPathNested editHostPath(); - public V1VolumeFluent.HostPathNested editOrNewHostPath(); - public V1VolumeFluent.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item); - + /** * This method has been deprecated, please use method buildIscsi instead. - * * @return The buildable object. */ @Deprecated public V1ISCSIVolumeSource getIscsi(); - public V1ISCSIVolumeSource buildIscsi(); - public A withIscsi(V1ISCSIVolumeSource iscsi); - public Boolean hasIscsi(); - public V1VolumeFluent.IscsiNested withNewIscsi(); - public V1VolumeFluent.IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item); - public V1VolumeFluent.IscsiNested editIscsi(); - public V1VolumeFluent.IscsiNested editOrNewIscsi(); - public V1VolumeFluent.IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildNfs instead. - * * @return The buildable object. */ @Deprecated public V1NFSVolumeSource getNfs(); - public V1NFSVolumeSource buildNfs(); - public A withNfs(V1NFSVolumeSource nfs); - public Boolean hasNfs(); - public V1VolumeFluent.NfsNested withNewNfs(); - public V1VolumeFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item); - public V1VolumeFluent.NfsNested editNfs(); - public V1VolumeFluent.NfsNested editOrNewNfs(); - public V1VolumeFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item); - + /** * This method has been deprecated, please use method buildPersistentVolumeClaim instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim(); - public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim(); - public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim); - public Boolean hasPersistentVolumeClaim(); - public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaim(); - - public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaimLike( - V1PersistentVolumeClaimVolumeSource item); - + public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item); public V1VolumeFluent.PersistentVolumeClaimNested editPersistentVolumeClaim(); - public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaim(); - - public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike( - V1PersistentVolumeClaimVolumeSource item); - + public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item); + /** * This method has been deprecated, please use method buildPhotonPersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk(); - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk(); - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk); - public Boolean hasPhotonPersistentDisk(); - public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk(); - - public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( - V1PhotonPersistentDiskVolumeSource item); - + public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item); public V1VolumeFluent.PhotonPersistentDiskNested editPhotonPersistentDisk(); - public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk(); - - public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike( - V1PhotonPersistentDiskVolumeSource item); - + public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item); + /** * This method has been deprecated, please use method buildPortworxVolume instead. - * * @return The buildable object. */ @Deprecated public V1PortworxVolumeSource getPortworxVolume(); - public V1PortworxVolumeSource buildPortworxVolume(); - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume); - public Boolean hasPortworxVolume(); - public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolume(); - - public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolumeLike( - V1PortworxVolumeSource item); - + public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item); public V1VolumeFluent.PortworxVolumeNested editPortworxVolume(); - public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolume(); - - public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( - V1PortworxVolumeSource item); - + public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item); + /** * This method has been deprecated, please use method buildProjected instead. - * * @return The buildable object. */ @Deprecated public V1ProjectedVolumeSource getProjected(); - public V1ProjectedVolumeSource buildProjected(); - public A withProjected(V1ProjectedVolumeSource projected); - public Boolean hasProjected(); - public V1VolumeFluent.ProjectedNested withNewProjected(); - public V1VolumeFluent.ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item); - public V1VolumeFluent.ProjectedNested editProjected(); - public V1VolumeFluent.ProjectedNested editOrNewProjected(); - public V1VolumeFluent.ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item); - + /** * This method has been deprecated, please use method buildQuobyte instead. - * * @return The buildable object. */ @Deprecated public V1QuobyteVolumeSource getQuobyte(); - public V1QuobyteVolumeSource buildQuobyte(); - public A withQuobyte(V1QuobyteVolumeSource quobyte); - public Boolean hasQuobyte(); - public V1VolumeFluent.QuobyteNested withNewQuobyte(); - public V1VolumeFluent.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item); - public V1VolumeFluent.QuobyteNested editQuobyte(); - public V1VolumeFluent.QuobyteNested editOrNewQuobyte(); - public V1VolumeFluent.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item); - + /** * This method has been deprecated, please use method buildRbd instead. - * * @return The buildable object. */ @Deprecated public V1RBDVolumeSource getRbd(); - public V1RBDVolumeSource buildRbd(); - public A withRbd(V1RBDVolumeSource rbd); - public Boolean hasRbd(); - public V1VolumeFluent.RbdNested withNewRbd(); - public V1VolumeFluent.RbdNested withNewRbdLike(V1RBDVolumeSource item); - public V1VolumeFluent.RbdNested editRbd(); - public V1VolumeFluent.RbdNested editOrNewRbd(); - public V1VolumeFluent.RbdNested editOrNewRbdLike(V1RBDVolumeSource item); - + /** * This method has been deprecated, please use method buildScaleIO instead. - * * @return The buildable object. */ @Deprecated public V1ScaleIOVolumeSource getScaleIO(); - public V1ScaleIOVolumeSource buildScaleIO(); - public A withScaleIO(V1ScaleIOVolumeSource scaleIO); - public Boolean hasScaleIO(); - public V1VolumeFluent.ScaleIONested withNewScaleIO(); - public V1VolumeFluent.ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item); - public V1VolumeFluent.ScaleIONested editScaleIO(); - public V1VolumeFluent.ScaleIONested editOrNewScaleIO(); - public V1VolumeFluent.ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item); - + /** * This method has been deprecated, please use method buildSecret instead. - * * @return The buildable object. */ @Deprecated public V1SecretVolumeSource getSecret(); - public V1SecretVolumeSource buildSecret(); - public A withSecret(V1SecretVolumeSource secret); - public Boolean hasSecret(); - public V1VolumeFluent.SecretNested withNewSecret(); - public V1VolumeFluent.SecretNested withNewSecretLike(V1SecretVolumeSource item); - public V1VolumeFluent.SecretNested editSecret(); - public V1VolumeFluent.SecretNested editOrNewSecret(); - public V1VolumeFluent.SecretNested editOrNewSecretLike(V1SecretVolumeSource item); - + /** * This method has been deprecated, please use method buildStorageos instead. - * * @return The buildable object. */ @Deprecated public V1StorageOSVolumeSource getStorageos(); - public V1StorageOSVolumeSource buildStorageos(); - public A withStorageos(V1StorageOSVolumeSource storageos); - public Boolean hasStorageos(); - public V1VolumeFluent.StorageosNested withNewStorageos(); - public V1VolumeFluent.StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item); - public V1VolumeFluent.StorageosNested editStorageos(); - public V1VolumeFluent.StorageosNested editOrNewStorageos(); - public V1VolumeFluent.StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item); - + /** * This method has been deprecated, please use method buildVsphereVolume instead. - * * @return The buildable object. */ @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume(); - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume(); - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume); - public Boolean hasVsphereVolume(); - public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolume(); - - public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item); - + public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item); public V1VolumeFluent.VsphereVolumeNested editVsphereVolume(); - public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolume(); - - public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item); - - public interface AwsElasticBlockStoreNested - extends Nested, - V1AWSElasticBlockStoreVolumeSourceFluent> { + public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item); + public interface AwsElasticBlockStoreNested extends Nested,V1AWSElasticBlockStoreVolumeSourceFluent>{ public N and(); - public N endAwsElasticBlockStore(); + } - - public interface AzureDiskNested - extends Nested, V1AzureDiskVolumeSourceFluent> { + public interface AzureDiskNested extends Nested,V1AzureDiskVolumeSourceFluent>{ public N and(); - public N endAzureDisk(); + } - - public interface AzureFileNested - extends Nested, V1AzureFileVolumeSourceFluent> { + public interface AzureFileNested extends Nested,V1AzureFileVolumeSourceFluent>{ public N and(); - public N endAzureFile(); + } - - public interface CephfsNested - extends Nested, V1CephFSVolumeSourceFluent> { + public interface CephfsNested extends Nested,V1CephFSVolumeSourceFluent>{ public N and(); - public N endCephfs(); + } - - public interface CinderNested - extends Nested, V1CinderVolumeSourceFluent> { + public interface CinderNested extends Nested,V1CinderVolumeSourceFluent>{ public N and(); - public N endCinder(); + } - - public interface ConfigMapNested - extends Nested, V1ConfigMapVolumeSourceFluent> { + public interface ConfigMapNested extends Nested,V1ConfigMapVolumeSourceFluent>{ public N and(); - public N endConfigMap(); + } - - public interface CsiNested - extends Nested, V1CSIVolumeSourceFluent> { + public interface CsiNested extends Nested,V1CSIVolumeSourceFluent>{ public N and(); - public N endCsi(); + } - - public interface DownwardAPINested - extends Nested, V1DownwardAPIVolumeSourceFluent> { + public interface DownwardAPINested extends Nested,V1DownwardAPIVolumeSourceFluent>{ public N and(); - public N endDownwardAPI(); + } - - public interface EmptyDirNested - extends Nested, V1EmptyDirVolumeSourceFluent> { + public interface EmptyDirNested extends Nested,V1EmptyDirVolumeSourceFluent>{ public N and(); - public N endEmptyDir(); + } - - public interface EphemeralNested - extends Nested, V1EphemeralVolumeSourceFluent> { + public interface EphemeralNested extends Nested,V1EphemeralVolumeSourceFluent>{ public N and(); - public N endEphemeral(); + } - - public interface FcNested - extends Nested, V1FCVolumeSourceFluent> { + public interface FcNested extends Nested,V1FCVolumeSourceFluent>{ public N and(); - public N endFc(); + } - - public interface FlexVolumeNested - extends Nested, V1FlexVolumeSourceFluent> { + public interface FlexVolumeNested extends Nested,V1FlexVolumeSourceFluent>{ public N and(); - public N endFlexVolume(); + } - - public interface FlockerNested - extends Nested, V1FlockerVolumeSourceFluent> { + public interface FlockerNested extends Nested,V1FlockerVolumeSourceFluent>{ public N and(); - public N endFlocker(); + } - - public interface GcePersistentDiskNested - extends Nested, - V1GCEPersistentDiskVolumeSourceFluent> { + public interface GcePersistentDiskNested extends Nested,V1GCEPersistentDiskVolumeSourceFluent>{ public N and(); - public N endGcePersistentDisk(); + } - - public interface GitRepoNested - extends Nested, V1GitRepoVolumeSourceFluent> { + public interface GitRepoNested extends Nested,V1GitRepoVolumeSourceFluent>{ public N and(); - public N endGitRepo(); + } - - public interface GlusterfsNested - extends Nested, V1GlusterfsVolumeSourceFluent> { + public interface GlusterfsNested extends Nested,V1GlusterfsVolumeSourceFluent>{ public N and(); - public N endGlusterfs(); + } - - public interface HostPathNested - extends Nested, V1HostPathVolumeSourceFluent> { + public interface HostPathNested extends Nested,V1HostPathVolumeSourceFluent>{ public N and(); - public N endHostPath(); + } - - public interface IscsiNested - extends Nested, V1ISCSIVolumeSourceFluent> { + public interface IscsiNested extends Nested,V1ISCSIVolumeSourceFluent>{ public N and(); - public N endIscsi(); + } - - public interface NfsNested - extends Nested, V1NFSVolumeSourceFluent> { + public interface NfsNested extends Nested,V1NFSVolumeSourceFluent>{ public N and(); - public N endNfs(); + } - - public interface PersistentVolumeClaimNested - extends Nested, - V1PersistentVolumeClaimVolumeSourceFluent> { + public interface PersistentVolumeClaimNested extends Nested,V1PersistentVolumeClaimVolumeSourceFluent>{ public N and(); - public N endPersistentVolumeClaim(); + } - - public interface PhotonPersistentDiskNested - extends Nested, - V1PhotonPersistentDiskVolumeSourceFluent> { + public interface PhotonPersistentDiskNested extends Nested,V1PhotonPersistentDiskVolumeSourceFluent>{ public N and(); - public N endPhotonPersistentDisk(); + } - - public interface PortworxVolumeNested - extends Nested, V1PortworxVolumeSourceFluent> { + public interface PortworxVolumeNested extends Nested,V1PortworxVolumeSourceFluent>{ public N and(); - public N endPortworxVolume(); + } - - public interface ProjectedNested - extends Nested, V1ProjectedVolumeSourceFluent> { + public interface ProjectedNested extends Nested,V1ProjectedVolumeSourceFluent>{ public N and(); - public N endProjected(); + } - - public interface QuobyteNested - extends Nested, V1QuobyteVolumeSourceFluent> { + public interface QuobyteNested extends Nested,V1QuobyteVolumeSourceFluent>{ public N and(); - public N endQuobyte(); + } - - public interface RbdNested - extends Nested, V1RBDVolumeSourceFluent> { + public interface RbdNested extends Nested,V1RBDVolumeSourceFluent>{ public N and(); - public N endRbd(); + } - - public interface ScaleIONested - extends Nested, V1ScaleIOVolumeSourceFluent> { + public interface ScaleIONested extends Nested,V1ScaleIOVolumeSourceFluent>{ public N and(); - public N endScaleIO(); + } - - public interface SecretNested - extends Nested, V1SecretVolumeSourceFluent> { + public interface SecretNested extends Nested,V1SecretVolumeSourceFluent>{ public N and(); - public N endSecret(); + } - - public interface StorageosNested - extends Nested, V1StorageOSVolumeSourceFluent> { + public interface StorageosNested extends Nested,V1StorageOSVolumeSourceFluent>{ public N and(); - public N endStorageos(); + } - - public interface VsphereVolumeNested - extends Nested, - V1VsphereVirtualDiskVolumeSourceFluent> { + public interface VsphereVolumeNested extends Nested,V1VsphereVirtualDiskVolumeSourceFluent>{ public N and(); - public N endVsphereVolume(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java index fe91dbdae1..b96eba0e08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.Deprecated; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeFluentImpl> extends BaseFluent - implements V1VolumeFluent { - public V1VolumeFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeFluentImpl> extends BaseFluent implements V1VolumeFluent{ + public V1VolumeFluentImpl() { + } public V1VolumeFluentImpl(V1Volume instance) { this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); @@ -81,8 +75,8 @@ public V1VolumeFluentImpl(V1Volume instance) { this.withStorageos(instance.getStorageos()); this.withVsphereVolume(instance.getVsphereVolume()); - } + } private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; private V1AzureFileVolumeSourceBuilder azureFile; @@ -113,2380 +107,1539 @@ public V1VolumeFluentImpl(V1Volume instance) { private V1SecretVolumeSourceBuilder secret; private V1StorageOSVolumeSourceBuilder storageos; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; - + /** * This method has been deprecated, please use method buildAwsElasticBlockStore instead. - * * @return The buildable object. */ @Deprecated public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + return this.awsElasticBlockStore!=null ?this.awsElasticBlockStore.build():null; } - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + return this.awsElasticBlockStore!=null ?this.awsElasticBlockStore.build():null; } - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - if (awsElasticBlockStore != null) { - this.awsElasticBlockStore = - new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); - _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); - } else { - this.awsElasticBlockStore = null; - _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - } - return (A) this; + if (awsElasticBlockStore!=null){ this.awsElasticBlockStore= new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore);} else { this.awsElasticBlockStore = null; _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); } return (A) this; } - public Boolean hasAwsElasticBlockStore() { return this.awsElasticBlockStore != null; } - public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { return new V1VolumeFluentImpl.AwsElasticBlockStoreNestedImpl(); } - - public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( - V1AWSElasticBlockStoreVolumeSource item) { + public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { return new V1VolumeFluentImpl.AwsElasticBlockStoreNestedImpl(item); } - public V1VolumeFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore() { return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore()); } - public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike( - getAwsElasticBlockStore() != null - ? getAwsElasticBlockStore() - : new V1AWSElasticBlockStoreVolumeSourceBuilder().build()); + return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore() != null ? getAwsElasticBlockStore(): new V1AWSElasticBlockStoreVolumeSourceBuilder().build()); } - - public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike( - V1AWSElasticBlockStoreVolumeSource item) { - return withNewAwsElasticBlockStoreLike( - getAwsElasticBlockStore() != null ? getAwsElasticBlockStore() : item); + public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore() != null ? getAwsElasticBlockStore(): item); } - + /** * This method has been deprecated, please use method buildAzureDisk instead. - * * @return The buildable object. */ @Deprecated public V1AzureDiskVolumeSource getAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + return this.azureDisk!=null ?this.azureDisk.build():null; } - public V1AzureDiskVolumeSource buildAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + return this.azureDisk!=null ?this.azureDisk.build():null; } - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { _visitables.get("azureDisk").remove(this.azureDisk); - if (azureDisk != null) { - this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); - _visitables.get("azureDisk").add(this.azureDisk); - } else { - this.azureDisk = null; - _visitables.get("azureDisk").remove(this.azureDisk); - } - return (A) this; + if (azureDisk!=null){ this.azureDisk= new V1AzureDiskVolumeSourceBuilder(azureDisk); _visitables.get("azureDisk").add(this.azureDisk);} else { this.azureDisk = null; _visitables.get("azureDisk").remove(this.azureDisk); } return (A) this; } - public Boolean hasAzureDisk() { return this.azureDisk != null; } - public V1VolumeFluent.AzureDiskNested withNewAzureDisk() { return new V1VolumeFluentImpl.AzureDiskNestedImpl(); } - public V1VolumeFluent.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { return new V1VolumeFluentImpl.AzureDiskNestedImpl(item); } - public V1VolumeFluent.AzureDiskNested editAzureDisk() { return withNewAzureDiskLike(getAzureDisk()); } - public V1VolumeFluent.AzureDiskNested editOrNewAzureDisk() { - return withNewAzureDiskLike( - getAzureDisk() != null ? getAzureDisk() : new V1AzureDiskVolumeSourceBuilder().build()); + return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk(): new V1AzureDiskVolumeSourceBuilder().build()); } - public V1VolumeFluent.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk() : item); + return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk(): item); } - + /** * This method has been deprecated, please use method buildAzureFile instead. - * * @return The buildable object. */ @Deprecated public V1AzureFileVolumeSource getAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + return this.azureFile!=null ?this.azureFile.build():null; } - public V1AzureFileVolumeSource buildAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + return this.azureFile!=null ?this.azureFile.build():null; } - public A withAzureFile(V1AzureFileVolumeSource azureFile) { _visitables.get("azureFile").remove(this.azureFile); - if (azureFile != null) { - this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); - _visitables.get("azureFile").add(this.azureFile); - } else { - this.azureFile = null; - _visitables.get("azureFile").remove(this.azureFile); - } - return (A) this; + if (azureFile!=null){ this.azureFile= new V1AzureFileVolumeSourceBuilder(azureFile); _visitables.get("azureFile").add(this.azureFile);} else { this.azureFile = null; _visitables.get("azureFile").remove(this.azureFile); } return (A) this; } - public Boolean hasAzureFile() { return this.azureFile != null; } - public V1VolumeFluent.AzureFileNested withNewAzureFile() { return new V1VolumeFluentImpl.AzureFileNestedImpl(); } - public V1VolumeFluent.AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { return new V1VolumeFluentImpl.AzureFileNestedImpl(item); } - public V1VolumeFluent.AzureFileNested editAzureFile() { return withNewAzureFileLike(getAzureFile()); } - public V1VolumeFluent.AzureFileNested editOrNewAzureFile() { - return withNewAzureFileLike( - getAzureFile() != null ? getAzureFile() : new V1AzureFileVolumeSourceBuilder().build()); + return withNewAzureFileLike(getAzureFile() != null ? getAzureFile(): new V1AzureFileVolumeSourceBuilder().build()); } - public V1VolumeFluent.AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item) { - return withNewAzureFileLike(getAzureFile() != null ? getAzureFile() : item); + return withNewAzureFileLike(getAzureFile() != null ? getAzureFile(): item); } - + /** * This method has been deprecated, please use method buildCephfs instead. - * * @return The buildable object. */ @Deprecated public V1CephFSVolumeSource getCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + return this.cephfs!=null ?this.cephfs.build():null; } - public V1CephFSVolumeSource buildCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + return this.cephfs!=null ?this.cephfs.build():null; } - public A withCephfs(V1CephFSVolumeSource cephfs) { _visitables.get("cephfs").remove(this.cephfs); - if (cephfs != null) { - this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); - _visitables.get("cephfs").add(this.cephfs); - } else { - this.cephfs = null; - _visitables.get("cephfs").remove(this.cephfs); - } - return (A) this; + if (cephfs!=null){ this.cephfs= new V1CephFSVolumeSourceBuilder(cephfs); _visitables.get("cephfs").add(this.cephfs);} else { this.cephfs = null; _visitables.get("cephfs").remove(this.cephfs); } return (A) this; } - public Boolean hasCephfs() { return this.cephfs != null; } - public V1VolumeFluent.CephfsNested withNewCephfs() { return new V1VolumeFluentImpl.CephfsNestedImpl(); } - public V1VolumeFluent.CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { return new V1VolumeFluentImpl.CephfsNestedImpl(item); } - public V1VolumeFluent.CephfsNested editCephfs() { return withNewCephfsLike(getCephfs()); } - public V1VolumeFluent.CephfsNested editOrNewCephfs() { - return withNewCephfsLike( - getCephfs() != null ? getCephfs() : new V1CephFSVolumeSourceBuilder().build()); + return withNewCephfsLike(getCephfs() != null ? getCephfs(): new V1CephFSVolumeSourceBuilder().build()); } - public V1VolumeFluent.CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { - return withNewCephfsLike(getCephfs() != null ? getCephfs() : item); + return withNewCephfsLike(getCephfs() != null ? getCephfs(): item); } - + /** * This method has been deprecated, please use method buildCinder instead. - * * @return The buildable object. */ @Deprecated public V1CinderVolumeSource getCinder() { - return this.cinder != null ? this.cinder.build() : null; + return this.cinder!=null ?this.cinder.build():null; } - public V1CinderVolumeSource buildCinder() { - return this.cinder != null ? this.cinder.build() : null; + return this.cinder!=null ?this.cinder.build():null; } - public A withCinder(V1CinderVolumeSource cinder) { _visitables.get("cinder").remove(this.cinder); - if (cinder != null) { - this.cinder = new V1CinderVolumeSourceBuilder(cinder); - _visitables.get("cinder").add(this.cinder); - } else { - this.cinder = null; - _visitables.get("cinder").remove(this.cinder); - } - return (A) this; + if (cinder!=null){ this.cinder= new V1CinderVolumeSourceBuilder(cinder); _visitables.get("cinder").add(this.cinder);} else { this.cinder = null; _visitables.get("cinder").remove(this.cinder); } return (A) this; } - public Boolean hasCinder() { return this.cinder != null; } - public V1VolumeFluent.CinderNested withNewCinder() { return new V1VolumeFluentImpl.CinderNestedImpl(); } - public V1VolumeFluent.CinderNested withNewCinderLike(V1CinderVolumeSource item) { return new V1VolumeFluentImpl.CinderNestedImpl(item); } - public V1VolumeFluent.CinderNested editCinder() { return withNewCinderLike(getCinder()); } - public V1VolumeFluent.CinderNested editOrNewCinder() { - return withNewCinderLike( - getCinder() != null ? getCinder() : new V1CinderVolumeSourceBuilder().build()); + return withNewCinderLike(getCinder() != null ? getCinder(): new V1CinderVolumeSourceBuilder().build()); } - public V1VolumeFluent.CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { - return withNewCinderLike(getCinder() != null ? getCinder() : item); + return withNewCinderLike(getCinder() != null ? getCinder(): item); } - + /** * This method has been deprecated, please use method buildConfigMap instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapVolumeSource getConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + return this.configMap!=null ?this.configMap.build():null; } - public V1ConfigMapVolumeSource buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + return this.configMap!=null ?this.configMap.build():null; } - public A withConfigMap(V1ConfigMapVolumeSource configMap) { _visitables.get("configMap").remove(this.configMap); - if (configMap != null) { - this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); - _visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - _visitables.get("configMap").remove(this.configMap); - } - return (A) this; + if (configMap!=null){ this.configMap= new V1ConfigMapVolumeSourceBuilder(configMap); _visitables.get("configMap").add(this.configMap);} else { this.configMap = null; _visitables.get("configMap").remove(this.configMap); } return (A) this; } - public Boolean hasConfigMap() { return this.configMap != null; } - public V1VolumeFluent.ConfigMapNested withNewConfigMap() { return new V1VolumeFluentImpl.ConfigMapNestedImpl(); } - public V1VolumeFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { return new V1VolumeFluentImpl.ConfigMapNestedImpl(item); } - public V1VolumeFluent.ConfigMapNested editConfigMap() { return withNewConfigMapLike(getConfigMap()); } - public V1VolumeFluent.ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike( - getConfigMap() != null ? getConfigMap() : new V1ConfigMapVolumeSourceBuilder().build()); + return withNewConfigMapLike(getConfigMap() != null ? getConfigMap(): new V1ConfigMapVolumeSourceBuilder().build()); } - public V1VolumeFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { - return withNewConfigMapLike(getConfigMap() != null ? getConfigMap() : item); + return withNewConfigMapLike(getConfigMap() != null ? getConfigMap(): item); } - + /** * This method has been deprecated, please use method buildCsi instead. - * * @return The buildable object. */ @Deprecated public V1CSIVolumeSource getCsi() { - return this.csi != null ? this.csi.build() : null; + return this.csi!=null ?this.csi.build():null; } - public V1CSIVolumeSource buildCsi() { - return this.csi != null ? this.csi.build() : null; + return this.csi!=null ?this.csi.build():null; } - public A withCsi(V1CSIVolumeSource csi) { _visitables.get("csi").remove(this.csi); - if (csi != null) { - this.csi = new V1CSIVolumeSourceBuilder(csi); - _visitables.get("csi").add(this.csi); - } else { - this.csi = null; - _visitables.get("csi").remove(this.csi); - } - return (A) this; + if (csi!=null){ this.csi= new V1CSIVolumeSourceBuilder(csi); _visitables.get("csi").add(this.csi);} else { this.csi = null; _visitables.get("csi").remove(this.csi); } return (A) this; } - public Boolean hasCsi() { return this.csi != null; } - public V1VolumeFluent.CsiNested withNewCsi() { return new V1VolumeFluentImpl.CsiNestedImpl(); } - public V1VolumeFluent.CsiNested withNewCsiLike(V1CSIVolumeSource item) { return new V1VolumeFluentImpl.CsiNestedImpl(item); } - public V1VolumeFluent.CsiNested editCsi() { return withNewCsiLike(getCsi()); } - public V1VolumeFluent.CsiNested editOrNewCsi() { - return withNewCsiLike(getCsi() != null ? getCsi() : new V1CSIVolumeSourceBuilder().build()); + return withNewCsiLike(getCsi() != null ? getCsi(): new V1CSIVolumeSourceBuilder().build()); } - public V1VolumeFluent.CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { - return withNewCsiLike(getCsi() != null ? getCsi() : item); + return withNewCsiLike(getCsi() != null ? getCsi(): item); } - + /** * This method has been deprecated, please use method buildDownwardAPI instead. - * * @return The buildable object. */ @Deprecated public V1DownwardAPIVolumeSource getDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + return this.downwardAPI!=null ?this.downwardAPI.build():null; } - public V1DownwardAPIVolumeSource buildDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + return this.downwardAPI!=null ?this.downwardAPI.build():null; } - public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { _visitables.get("downwardAPI").remove(this.downwardAPI); - if (downwardAPI != null) { - this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); - _visitables.get("downwardAPI").add(this.downwardAPI); - } else { - this.downwardAPI = null; - _visitables.get("downwardAPI").remove(this.downwardAPI); - } - return (A) this; + if (downwardAPI!=null){ this.downwardAPI= new V1DownwardAPIVolumeSourceBuilder(downwardAPI); _visitables.get("downwardAPI").add(this.downwardAPI);} else { this.downwardAPI = null; _visitables.get("downwardAPI").remove(this.downwardAPI); } return (A) this; } - public Boolean hasDownwardAPI() { return this.downwardAPI != null; } - public V1VolumeFluent.DownwardAPINested withNewDownwardAPI() { return new V1VolumeFluentImpl.DownwardAPINestedImpl(); } - - public V1VolumeFluent.DownwardAPINested withNewDownwardAPILike( - V1DownwardAPIVolumeSource item) { + public V1VolumeFluent.DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item) { return new V1VolumeFluentImpl.DownwardAPINestedImpl(item); } - public V1VolumeFluent.DownwardAPINested editDownwardAPI() { return withNewDownwardAPILike(getDownwardAPI()); } - public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPI() { - return withNewDownwardAPILike( - getDownwardAPI() != null - ? getDownwardAPI() - : new V1DownwardAPIVolumeSourceBuilder().build()); + return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI(): new V1DownwardAPIVolumeSourceBuilder().build()); } - - public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPILike( - V1DownwardAPIVolumeSource item) { - return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI() : item); + public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item) { + return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI(): item); } - + /** * This method has been deprecated, please use method buildEmptyDir instead. - * * @return The buildable object. */ @Deprecated public V1EmptyDirVolumeSource getEmptyDir() { - return this.emptyDir != null ? this.emptyDir.build() : null; + return this.emptyDir!=null ?this.emptyDir.build():null; } - public V1EmptyDirVolumeSource buildEmptyDir() { - return this.emptyDir != null ? this.emptyDir.build() : null; + return this.emptyDir!=null ?this.emptyDir.build():null; } - public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { _visitables.get("emptyDir").remove(this.emptyDir); - if (emptyDir != null) { - this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); - _visitables.get("emptyDir").add(this.emptyDir); - } else { - this.emptyDir = null; - _visitables.get("emptyDir").remove(this.emptyDir); - } - return (A) this; + if (emptyDir!=null){ this.emptyDir= new V1EmptyDirVolumeSourceBuilder(emptyDir); _visitables.get("emptyDir").add(this.emptyDir);} else { this.emptyDir = null; _visitables.get("emptyDir").remove(this.emptyDir); } return (A) this; } - public Boolean hasEmptyDir() { return this.emptyDir != null; } - public V1VolumeFluent.EmptyDirNested withNewEmptyDir() { return new V1VolumeFluentImpl.EmptyDirNestedImpl(); } - public V1VolumeFluent.EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { return new V1VolumeFluentImpl.EmptyDirNestedImpl(item); } - public V1VolumeFluent.EmptyDirNested editEmptyDir() { return withNewEmptyDirLike(getEmptyDir()); } - public V1VolumeFluent.EmptyDirNested editOrNewEmptyDir() { - return withNewEmptyDirLike( - getEmptyDir() != null ? getEmptyDir() : new V1EmptyDirVolumeSourceBuilder().build()); + return withNewEmptyDirLike(getEmptyDir() != null ? getEmptyDir(): new V1EmptyDirVolumeSourceBuilder().build()); } - public V1VolumeFluent.EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return withNewEmptyDirLike(getEmptyDir() != null ? getEmptyDir() : item); + return withNewEmptyDirLike(getEmptyDir() != null ? getEmptyDir(): item); } - + /** * This method has been deprecated, please use method buildEphemeral instead. - * * @return The buildable object. */ @Deprecated public V1EphemeralVolumeSource getEphemeral() { - return this.ephemeral != null ? this.ephemeral.build() : null; + return this.ephemeral!=null ?this.ephemeral.build():null; } - public V1EphemeralVolumeSource buildEphemeral() { - return this.ephemeral != null ? this.ephemeral.build() : null; + return this.ephemeral!=null ?this.ephemeral.build():null; } - public A withEphemeral(V1EphemeralVolumeSource ephemeral) { _visitables.get("ephemeral").remove(this.ephemeral); - if (ephemeral != null) { - this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); - _visitables.get("ephemeral").add(this.ephemeral); - } else { - this.ephemeral = null; - _visitables.get("ephemeral").remove(this.ephemeral); - } - return (A) this; + if (ephemeral!=null){ this.ephemeral= new V1EphemeralVolumeSourceBuilder(ephemeral); _visitables.get("ephemeral").add(this.ephemeral);} else { this.ephemeral = null; _visitables.get("ephemeral").remove(this.ephemeral); } return (A) this; } - public Boolean hasEphemeral() { return this.ephemeral != null; } - public V1VolumeFluent.EphemeralNested withNewEphemeral() { return new V1VolumeFluentImpl.EphemeralNestedImpl(); } - public V1VolumeFluent.EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { return new V1VolumeFluentImpl.EphemeralNestedImpl(item); } - public V1VolumeFluent.EphemeralNested editEphemeral() { return withNewEphemeralLike(getEphemeral()); } - public V1VolumeFluent.EphemeralNested editOrNewEphemeral() { - return withNewEphemeralLike( - getEphemeral() != null ? getEphemeral() : new V1EphemeralVolumeSourceBuilder().build()); + return withNewEphemeralLike(getEphemeral() != null ? getEphemeral(): new V1EphemeralVolumeSourceBuilder().build()); } - public V1VolumeFluent.EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item) { - return withNewEphemeralLike(getEphemeral() != null ? getEphemeral() : item); + return withNewEphemeralLike(getEphemeral() != null ? getEphemeral(): item); } - + /** * This method has been deprecated, please use method buildFc instead. - * * @return The buildable object. */ @Deprecated public V1FCVolumeSource getFc() { - return this.fc != null ? this.fc.build() : null; + return this.fc!=null ?this.fc.build():null; } - public V1FCVolumeSource buildFc() { - return this.fc != null ? this.fc.build() : null; + return this.fc!=null ?this.fc.build():null; } - public A withFc(V1FCVolumeSource fc) { _visitables.get("fc").remove(this.fc); - if (fc != null) { - this.fc = new V1FCVolumeSourceBuilder(fc); - _visitables.get("fc").add(this.fc); - } else { - this.fc = null; - _visitables.get("fc").remove(this.fc); - } - return (A) this; + if (fc!=null){ this.fc= new V1FCVolumeSourceBuilder(fc); _visitables.get("fc").add(this.fc);} else { this.fc = null; _visitables.get("fc").remove(this.fc); } return (A) this; } - public Boolean hasFc() { return this.fc != null; } - public V1VolumeFluent.FcNested withNewFc() { return new V1VolumeFluentImpl.FcNestedImpl(); } - public V1VolumeFluent.FcNested withNewFcLike(V1FCVolumeSource item) { return new V1VolumeFluentImpl.FcNestedImpl(item); } - public V1VolumeFluent.FcNested editFc() { return withNewFcLike(getFc()); } - public V1VolumeFluent.FcNested editOrNewFc() { - return withNewFcLike(getFc() != null ? getFc() : new V1FCVolumeSourceBuilder().build()); + return withNewFcLike(getFc() != null ? getFc(): new V1FCVolumeSourceBuilder().build()); } - public V1VolumeFluent.FcNested editOrNewFcLike(V1FCVolumeSource item) { - return withNewFcLike(getFc() != null ? getFc() : item); + return withNewFcLike(getFc() != null ? getFc(): item); } - + /** * This method has been deprecated, please use method buildFlexVolume instead. - * * @return The buildable object. */ @Deprecated public V1FlexVolumeSource getFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + return this.flexVolume!=null ?this.flexVolume.build():null; } - public V1FlexVolumeSource buildFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + return this.flexVolume!=null ?this.flexVolume.build():null; } - public A withFlexVolume(V1FlexVolumeSource flexVolume) { _visitables.get("flexVolume").remove(this.flexVolume); - if (flexVolume != null) { - this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); - _visitables.get("flexVolume").add(this.flexVolume); - } else { - this.flexVolume = null; - _visitables.get("flexVolume").remove(this.flexVolume); - } - return (A) this; + if (flexVolume!=null){ this.flexVolume= new V1FlexVolumeSourceBuilder(flexVolume); _visitables.get("flexVolume").add(this.flexVolume);} else { this.flexVolume = null; _visitables.get("flexVolume").remove(this.flexVolume); } return (A) this; } - public Boolean hasFlexVolume() { return this.flexVolume != null; } - public V1VolumeFluent.FlexVolumeNested withNewFlexVolume() { return new V1VolumeFluentImpl.FlexVolumeNestedImpl(); } - public V1VolumeFluent.FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { return new V1VolumeFluentImpl.FlexVolumeNestedImpl(item); } - public V1VolumeFluent.FlexVolumeNested editFlexVolume() { return withNewFlexVolumeLike(getFlexVolume()); } - public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolume() { - return withNewFlexVolumeLike( - getFlexVolume() != null ? getFlexVolume() : new V1FlexVolumeSourceBuilder().build()); + return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume(): new V1FlexVolumeSourceBuilder().build()); } - public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { - return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume() : item); + return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume(): item); } - + /** * This method has been deprecated, please use method buildFlocker instead. - * * @return The buildable object. */ @Deprecated public V1FlockerVolumeSource getFlocker() { - return this.flocker != null ? this.flocker.build() : null; + return this.flocker!=null ?this.flocker.build():null; } - public V1FlockerVolumeSource buildFlocker() { - return this.flocker != null ? this.flocker.build() : null; + return this.flocker!=null ?this.flocker.build():null; } - public A withFlocker(V1FlockerVolumeSource flocker) { _visitables.get("flocker").remove(this.flocker); - if (flocker != null) { - this.flocker = new V1FlockerVolumeSourceBuilder(flocker); - _visitables.get("flocker").add(this.flocker); - } else { - this.flocker = null; - _visitables.get("flocker").remove(this.flocker); - } - return (A) this; + if (flocker!=null){ this.flocker= new V1FlockerVolumeSourceBuilder(flocker); _visitables.get("flocker").add(this.flocker);} else { this.flocker = null; _visitables.get("flocker").remove(this.flocker); } return (A) this; } - public Boolean hasFlocker() { return this.flocker != null; } - public V1VolumeFluent.FlockerNested withNewFlocker() { return new V1VolumeFluentImpl.FlockerNestedImpl(); } - public V1VolumeFluent.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { return new V1VolumeFluentImpl.FlockerNestedImpl(item); } - public V1VolumeFluent.FlockerNested editFlocker() { return withNewFlockerLike(getFlocker()); } - public V1VolumeFluent.FlockerNested editOrNewFlocker() { - return withNewFlockerLike( - getFlocker() != null ? getFlocker() : new V1FlockerVolumeSourceBuilder().build()); + return withNewFlockerLike(getFlocker() != null ? getFlocker(): new V1FlockerVolumeSourceBuilder().build()); } - public V1VolumeFluent.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return withNewFlockerLike(getFlocker() != null ? getFlocker() : item); + return withNewFlockerLike(getFlocker() != null ? getFlocker(): item); } - + /** * This method has been deprecated, please use method buildGcePersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + return this.gcePersistentDisk!=null ?this.gcePersistentDisk.build():null; } - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + return this.gcePersistentDisk!=null ?this.gcePersistentDisk.build():null; } - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - if (gcePersistentDisk != null) { - this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); - _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); - } else { - this.gcePersistentDisk = null; - _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - } - return (A) this; + if (gcePersistentDisk!=null){ this.gcePersistentDisk= new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk);} else { this.gcePersistentDisk = null; _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); } return (A) this; } - public Boolean hasGcePersistentDisk() { return this.gcePersistentDisk != null; } - public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDisk() { return new V1VolumeFluentImpl.GcePersistentDiskNestedImpl(); } - - public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item) { + public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { return new V1VolumeFluentImpl.GcePersistentDiskNestedImpl(item); } - public V1VolumeFluent.GcePersistentDiskNested editGcePersistentDisk() { return withNewGcePersistentDiskLike(getGcePersistentDisk()); } - public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDisk() { - return withNewGcePersistentDiskLike( - getGcePersistentDisk() != null - ? getGcePersistentDisk() - : new V1GCEPersistentDiskVolumeSourceBuilder().build()); + return withNewGcePersistentDiskLike(getGcePersistentDisk() != null ? getGcePersistentDisk(): new V1GCEPersistentDiskVolumeSourceBuilder().build()); } - - public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( - V1GCEPersistentDiskVolumeSource item) { - return withNewGcePersistentDiskLike( - getGcePersistentDisk() != null ? getGcePersistentDisk() : item); + public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return withNewGcePersistentDiskLike(getGcePersistentDisk() != null ? getGcePersistentDisk(): item); } - + /** * This method has been deprecated, please use method buildGitRepo instead. - * * @return The buildable object. */ @Deprecated public V1GitRepoVolumeSource getGitRepo() { - return this.gitRepo != null ? this.gitRepo.build() : null; + return this.gitRepo!=null ?this.gitRepo.build():null; } - public V1GitRepoVolumeSource buildGitRepo() { - return this.gitRepo != null ? this.gitRepo.build() : null; + return this.gitRepo!=null ?this.gitRepo.build():null; } - public A withGitRepo(V1GitRepoVolumeSource gitRepo) { _visitables.get("gitRepo").remove(this.gitRepo); - if (gitRepo != null) { - this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); - _visitables.get("gitRepo").add(this.gitRepo); - } else { - this.gitRepo = null; - _visitables.get("gitRepo").remove(this.gitRepo); - } - return (A) this; + if (gitRepo!=null){ this.gitRepo= new V1GitRepoVolumeSourceBuilder(gitRepo); _visitables.get("gitRepo").add(this.gitRepo);} else { this.gitRepo = null; _visitables.get("gitRepo").remove(this.gitRepo); } return (A) this; } - public Boolean hasGitRepo() { return this.gitRepo != null; } - public V1VolumeFluent.GitRepoNested withNewGitRepo() { return new V1VolumeFluentImpl.GitRepoNestedImpl(); } - public V1VolumeFluent.GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { return new V1VolumeFluentImpl.GitRepoNestedImpl(item); } - public V1VolumeFluent.GitRepoNested editGitRepo() { return withNewGitRepoLike(getGitRepo()); } - public V1VolumeFluent.GitRepoNested editOrNewGitRepo() { - return withNewGitRepoLike( - getGitRepo() != null ? getGitRepo() : new V1GitRepoVolumeSourceBuilder().build()); + return withNewGitRepoLike(getGitRepo() != null ? getGitRepo(): new V1GitRepoVolumeSourceBuilder().build()); } - public V1VolumeFluent.GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { - return withNewGitRepoLike(getGitRepo() != null ? getGitRepo() : item); + return withNewGitRepoLike(getGitRepo() != null ? getGitRepo(): item); } - + /** * This method has been deprecated, please use method buildGlusterfs instead. - * * @return The buildable object. */ @Deprecated public V1GlusterfsVolumeSource getGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + return this.glusterfs!=null ?this.glusterfs.build():null; } - public V1GlusterfsVolumeSource buildGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + return this.glusterfs!=null ?this.glusterfs.build():null; } - public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { _visitables.get("glusterfs").remove(this.glusterfs); - if (glusterfs != null) { - this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); - _visitables.get("glusterfs").add(this.glusterfs); - } else { - this.glusterfs = null; - _visitables.get("glusterfs").remove(this.glusterfs); - } - return (A) this; + if (glusterfs!=null){ this.glusterfs= new V1GlusterfsVolumeSourceBuilder(glusterfs); _visitables.get("glusterfs").add(this.glusterfs);} else { this.glusterfs = null; _visitables.get("glusterfs").remove(this.glusterfs); } return (A) this; } - public Boolean hasGlusterfs() { return this.glusterfs != null; } - public V1VolumeFluent.GlusterfsNested withNewGlusterfs() { return new V1VolumeFluentImpl.GlusterfsNestedImpl(); } - public V1VolumeFluent.GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { return new V1VolumeFluentImpl.GlusterfsNestedImpl(item); } - public V1VolumeFluent.GlusterfsNested editGlusterfs() { return withNewGlusterfsLike(getGlusterfs()); } - public V1VolumeFluent.GlusterfsNested editOrNewGlusterfs() { - return withNewGlusterfsLike( - getGlusterfs() != null ? getGlusterfs() : new V1GlusterfsVolumeSourceBuilder().build()); + return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs(): new V1GlusterfsVolumeSourceBuilder().build()); } - public V1VolumeFluent.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs() : item); + return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs(): item); } - + /** * This method has been deprecated, please use method buildHostPath instead. - * * @return The buildable object. */ @Deprecated public V1HostPathVolumeSource getHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; + return this.hostPath!=null ?this.hostPath.build():null; } - public V1HostPathVolumeSource buildHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; + return this.hostPath!=null ?this.hostPath.build():null; } - public A withHostPath(V1HostPathVolumeSource hostPath) { _visitables.get("hostPath").remove(this.hostPath); - if (hostPath != null) { - this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); - _visitables.get("hostPath").add(this.hostPath); - } else { - this.hostPath = null; - _visitables.get("hostPath").remove(this.hostPath); - } - return (A) this; + if (hostPath!=null){ this.hostPath= new V1HostPathVolumeSourceBuilder(hostPath); _visitables.get("hostPath").add(this.hostPath);} else { this.hostPath = null; _visitables.get("hostPath").remove(this.hostPath); } return (A) this; } - public Boolean hasHostPath() { return this.hostPath != null; } - public V1VolumeFluent.HostPathNested withNewHostPath() { return new V1VolumeFluentImpl.HostPathNestedImpl(); } - public V1VolumeFluent.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { return new V1VolumeFluentImpl.HostPathNestedImpl(item); } - public V1VolumeFluent.HostPathNested editHostPath() { return withNewHostPathLike(getHostPath()); } - public V1VolumeFluent.HostPathNested editOrNewHostPath() { - return withNewHostPathLike( - getHostPath() != null ? getHostPath() : new V1HostPathVolumeSourceBuilder().build()); + return withNewHostPathLike(getHostPath() != null ? getHostPath(): new V1HostPathVolumeSourceBuilder().build()); } - public V1VolumeFluent.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return withNewHostPathLike(getHostPath() != null ? getHostPath() : item); + return withNewHostPathLike(getHostPath() != null ? getHostPath(): item); } - + /** * This method has been deprecated, please use method buildIscsi instead. - * * @return The buildable object. */ @Deprecated public V1ISCSIVolumeSource getIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + return this.iscsi!=null ?this.iscsi.build():null; } - public V1ISCSIVolumeSource buildIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + return this.iscsi!=null ?this.iscsi.build():null; } - public A withIscsi(V1ISCSIVolumeSource iscsi) { _visitables.get("iscsi").remove(this.iscsi); - if (iscsi != null) { - this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); - _visitables.get("iscsi").add(this.iscsi); - } else { - this.iscsi = null; - _visitables.get("iscsi").remove(this.iscsi); - } - return (A) this; + if (iscsi!=null){ this.iscsi= new V1ISCSIVolumeSourceBuilder(iscsi); _visitables.get("iscsi").add(this.iscsi);} else { this.iscsi = null; _visitables.get("iscsi").remove(this.iscsi); } return (A) this; } - public Boolean hasIscsi() { return this.iscsi != null; } - public V1VolumeFluent.IscsiNested withNewIscsi() { return new V1VolumeFluentImpl.IscsiNestedImpl(); } - public V1VolumeFluent.IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { return new V1VolumeFluentImpl.IscsiNestedImpl(item); } - public V1VolumeFluent.IscsiNested editIscsi() { return withNewIscsiLike(getIscsi()); } - public V1VolumeFluent.IscsiNested editOrNewIscsi() { - return withNewIscsiLike( - getIscsi() != null ? getIscsi() : new V1ISCSIVolumeSourceBuilder().build()); + return withNewIscsiLike(getIscsi() != null ? getIscsi(): new V1ISCSIVolumeSourceBuilder().build()); } - public V1VolumeFluent.IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { - return withNewIscsiLike(getIscsi() != null ? getIscsi() : item); + return withNewIscsiLike(getIscsi() != null ? getIscsi(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildNfs instead. - * * @return The buildable object. */ @Deprecated public V1NFSVolumeSource getNfs() { - return this.nfs != null ? this.nfs.build() : null; + return this.nfs!=null ?this.nfs.build():null; } - public V1NFSVolumeSource buildNfs() { - return this.nfs != null ? this.nfs.build() : null; + return this.nfs!=null ?this.nfs.build():null; } - public A withNfs(V1NFSVolumeSource nfs) { _visitables.get("nfs").remove(this.nfs); - if (nfs != null) { - this.nfs = new V1NFSVolumeSourceBuilder(nfs); - _visitables.get("nfs").add(this.nfs); - } else { - this.nfs = null; - _visitables.get("nfs").remove(this.nfs); - } - return (A) this; + if (nfs!=null){ this.nfs= new V1NFSVolumeSourceBuilder(nfs); _visitables.get("nfs").add(this.nfs);} else { this.nfs = null; _visitables.get("nfs").remove(this.nfs); } return (A) this; } - public Boolean hasNfs() { return this.nfs != null; } - public V1VolumeFluent.NfsNested withNewNfs() { return new V1VolumeFluentImpl.NfsNestedImpl(); } - public V1VolumeFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item) { return new V1VolumeFluentImpl.NfsNestedImpl(item); } - public V1VolumeFluent.NfsNested editNfs() { return withNewNfsLike(getNfs()); } - public V1VolumeFluent.NfsNested editOrNewNfs() { - return withNewNfsLike(getNfs() != null ? getNfs() : new V1NFSVolumeSourceBuilder().build()); + return withNewNfsLike(getNfs() != null ? getNfs(): new V1NFSVolumeSourceBuilder().build()); } - public V1VolumeFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return withNewNfsLike(getNfs() != null ? getNfs() : item); + return withNewNfsLike(getNfs() != null ? getNfs(): item); } - + /** * This method has been deprecated, please use method buildPersistentVolumeClaim instead. - * * @return The buildable object. */ @Deprecated public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { - return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; + return this.persistentVolumeClaim!=null ?this.persistentVolumeClaim.build():null; } - public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { - return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; + return this.persistentVolumeClaim!=null ?this.persistentVolumeClaim.build():null; } - public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { _visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); - if (persistentVolumeClaim != null) { - this.persistentVolumeClaim = - new V1PersistentVolumeClaimVolumeSourceBuilder(persistentVolumeClaim); - _visitables.get("persistentVolumeClaim").add(this.persistentVolumeClaim); - } else { - this.persistentVolumeClaim = null; - _visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); - } - return (A) this; + if (persistentVolumeClaim!=null){ this.persistentVolumeClaim= new V1PersistentVolumeClaimVolumeSourceBuilder(persistentVolumeClaim); _visitables.get("persistentVolumeClaim").add(this.persistentVolumeClaim);} else { this.persistentVolumeClaim = null; _visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); } return (A) this; } - public Boolean hasPersistentVolumeClaim() { return this.persistentVolumeClaim != null; } - public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaim() { return new V1VolumeFluentImpl.PersistentVolumeClaimNestedImpl(); } - - public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaimLike( - V1PersistentVolumeClaimVolumeSource item) { + public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { return new V1VolumeFluentImpl.PersistentVolumeClaimNestedImpl(item); } - public V1VolumeFluent.PersistentVolumeClaimNested editPersistentVolumeClaim() { return withNewPersistentVolumeClaimLike(getPersistentVolumeClaim()); } - public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { - return withNewPersistentVolumeClaimLike( - getPersistentVolumeClaim() != null - ? getPersistentVolumeClaim() - : new V1PersistentVolumeClaimVolumeSourceBuilder().build()); + return withNewPersistentVolumeClaimLike(getPersistentVolumeClaim() != null ? getPersistentVolumeClaim(): new V1PersistentVolumeClaimVolumeSourceBuilder().build()); } - - public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike( - V1PersistentVolumeClaimVolumeSource item) { - return withNewPersistentVolumeClaimLike( - getPersistentVolumeClaim() != null ? getPersistentVolumeClaim() : item); + public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { + return withNewPersistentVolumeClaimLike(getPersistentVolumeClaim() != null ? getPersistentVolumeClaim(): item); } - + /** * This method has been deprecated, please use method buildPhotonPersistentDisk instead. - * * @return The buildable object. */ @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; + return this.photonPersistentDisk!=null ?this.photonPersistentDisk.build():null; } - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; + return this.photonPersistentDisk!=null ?this.photonPersistentDisk.build():null; } - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); - if (photonPersistentDisk != null) { - this.photonPersistentDisk = - new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); - _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); - } else { - this.photonPersistentDisk = null; - _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); - } - return (A) this; + if (photonPersistentDisk!=null){ this.photonPersistentDisk= new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk);} else { this.photonPersistentDisk = null; _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); } return (A) this; } - public Boolean hasPhotonPersistentDisk() { return this.photonPersistentDisk != null; } - public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk() { return new V1VolumeFluentImpl.PhotonPersistentDiskNestedImpl(); } - - public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( - V1PhotonPersistentDiskVolumeSource item) { + public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { return new V1VolumeFluentImpl.PhotonPersistentDiskNestedImpl(item); } - public V1VolumeFluent.PhotonPersistentDiskNested editPhotonPersistentDisk() { return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk()); } - public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike( - getPhotonPersistentDisk() != null - ? getPhotonPersistentDisk() - : new V1PhotonPersistentDiskVolumeSourceBuilder().build()); + return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk() != null ? getPhotonPersistentDisk(): new V1PhotonPersistentDiskVolumeSourceBuilder().build()); } - - public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike( - V1PhotonPersistentDiskVolumeSource item) { - return withNewPhotonPersistentDiskLike( - getPhotonPersistentDisk() != null ? getPhotonPersistentDisk() : item); + public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk() != null ? getPhotonPersistentDisk(): item); } - + /** * This method has been deprecated, please use method buildPortworxVolume instead. - * * @return The buildable object. */ @Deprecated public V1PortworxVolumeSource getPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; + return this.portworxVolume!=null ?this.portworxVolume.build():null; } - public V1PortworxVolumeSource buildPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; + return this.portworxVolume!=null ?this.portworxVolume.build():null; } - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { _visitables.get("portworxVolume").remove(this.portworxVolume); - if (portworxVolume != null) { - this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); - _visitables.get("portworxVolume").add(this.portworxVolume); - } else { - this.portworxVolume = null; - _visitables.get("portworxVolume").remove(this.portworxVolume); - } - return (A) this; + if (portworxVolume!=null){ this.portworxVolume= new V1PortworxVolumeSourceBuilder(portworxVolume); _visitables.get("portworxVolume").add(this.portworxVolume);} else { this.portworxVolume = null; _visitables.get("portworxVolume").remove(this.portworxVolume); } return (A) this; } - public Boolean hasPortworxVolume() { return this.portworxVolume != null; } - public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolume() { return new V1VolumeFluentImpl.PortworxVolumeNestedImpl(); } - - public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolumeLike( - V1PortworxVolumeSource item) { + public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { return new V1VolumeFluentImpl.PortworxVolumeNestedImpl(item); } - public V1VolumeFluent.PortworxVolumeNested editPortworxVolume() { return withNewPortworxVolumeLike(getPortworxVolume()); } - public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolume() { - return withNewPortworxVolumeLike( - getPortworxVolume() != null - ? getPortworxVolume() - : new V1PortworxVolumeSourceBuilder().build()); + return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume(): new V1PortworxVolumeSourceBuilder().build()); } - - public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( - V1PortworxVolumeSource item) { - return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume() : item); + public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume(): item); } - + /** * This method has been deprecated, please use method buildProjected instead. - * * @return The buildable object. */ @Deprecated public V1ProjectedVolumeSource getProjected() { - return this.projected != null ? this.projected.build() : null; + return this.projected!=null ?this.projected.build():null; } - public V1ProjectedVolumeSource buildProjected() { - return this.projected != null ? this.projected.build() : null; + return this.projected!=null ?this.projected.build():null; } - public A withProjected(V1ProjectedVolumeSource projected) { _visitables.get("projected").remove(this.projected); - if (projected != null) { - this.projected = new V1ProjectedVolumeSourceBuilder(projected); - _visitables.get("projected").add(this.projected); - } else { - this.projected = null; - _visitables.get("projected").remove(this.projected); - } - return (A) this; + if (projected!=null){ this.projected= new V1ProjectedVolumeSourceBuilder(projected); _visitables.get("projected").add(this.projected);} else { this.projected = null; _visitables.get("projected").remove(this.projected); } return (A) this; } - public Boolean hasProjected() { return this.projected != null; } - public V1VolumeFluent.ProjectedNested withNewProjected() { return new V1VolumeFluentImpl.ProjectedNestedImpl(); } - public V1VolumeFluent.ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { return new V1VolumeFluentImpl.ProjectedNestedImpl(item); } - public V1VolumeFluent.ProjectedNested editProjected() { return withNewProjectedLike(getProjected()); } - public V1VolumeFluent.ProjectedNested editOrNewProjected() { - return withNewProjectedLike( - getProjected() != null ? getProjected() : new V1ProjectedVolumeSourceBuilder().build()); + return withNewProjectedLike(getProjected() != null ? getProjected(): new V1ProjectedVolumeSourceBuilder().build()); } - public V1VolumeFluent.ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { - return withNewProjectedLike(getProjected() != null ? getProjected() : item); + return withNewProjectedLike(getProjected() != null ? getProjected(): item); } - + /** * This method has been deprecated, please use method buildQuobyte instead. - * * @return The buildable object. */ @Deprecated public V1QuobyteVolumeSource getQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; + return this.quobyte!=null ?this.quobyte.build():null; } - public V1QuobyteVolumeSource buildQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; + return this.quobyte!=null ?this.quobyte.build():null; } - public A withQuobyte(V1QuobyteVolumeSource quobyte) { _visitables.get("quobyte").remove(this.quobyte); - if (quobyte != null) { - this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); - _visitables.get("quobyte").add(this.quobyte); - } else { - this.quobyte = null; - _visitables.get("quobyte").remove(this.quobyte); - } - return (A) this; + if (quobyte!=null){ this.quobyte= new V1QuobyteVolumeSourceBuilder(quobyte); _visitables.get("quobyte").add(this.quobyte);} else { this.quobyte = null; _visitables.get("quobyte").remove(this.quobyte); } return (A) this; } - public Boolean hasQuobyte() { return this.quobyte != null; } - public V1VolumeFluent.QuobyteNested withNewQuobyte() { return new V1VolumeFluentImpl.QuobyteNestedImpl(); } - public V1VolumeFluent.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { return new V1VolumeFluentImpl.QuobyteNestedImpl(item); } - public V1VolumeFluent.QuobyteNested editQuobyte() { return withNewQuobyteLike(getQuobyte()); } - public V1VolumeFluent.QuobyteNested editOrNewQuobyte() { - return withNewQuobyteLike( - getQuobyte() != null ? getQuobyte() : new V1QuobyteVolumeSourceBuilder().build()); + return withNewQuobyteLike(getQuobyte() != null ? getQuobyte(): new V1QuobyteVolumeSourceBuilder().build()); } - public V1VolumeFluent.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return withNewQuobyteLike(getQuobyte() != null ? getQuobyte() : item); + return withNewQuobyteLike(getQuobyte() != null ? getQuobyte(): item); } - + /** * This method has been deprecated, please use method buildRbd instead. - * * @return The buildable object. */ @Deprecated public V1RBDVolumeSource getRbd() { - return this.rbd != null ? this.rbd.build() : null; + return this.rbd!=null ?this.rbd.build():null; } - public V1RBDVolumeSource buildRbd() { - return this.rbd != null ? this.rbd.build() : null; + return this.rbd!=null ?this.rbd.build():null; } - public A withRbd(V1RBDVolumeSource rbd) { _visitables.get("rbd").remove(this.rbd); - if (rbd != null) { - this.rbd = new V1RBDVolumeSourceBuilder(rbd); - _visitables.get("rbd").add(this.rbd); - } else { - this.rbd = null; - _visitables.get("rbd").remove(this.rbd); - } - return (A) this; + if (rbd!=null){ this.rbd= new V1RBDVolumeSourceBuilder(rbd); _visitables.get("rbd").add(this.rbd);} else { this.rbd = null; _visitables.get("rbd").remove(this.rbd); } return (A) this; } - public Boolean hasRbd() { return this.rbd != null; } - public V1VolumeFluent.RbdNested withNewRbd() { return new V1VolumeFluentImpl.RbdNestedImpl(); } - public V1VolumeFluent.RbdNested withNewRbdLike(V1RBDVolumeSource item) { return new V1VolumeFluentImpl.RbdNestedImpl(item); } - public V1VolumeFluent.RbdNested editRbd() { return withNewRbdLike(getRbd()); } - public V1VolumeFluent.RbdNested editOrNewRbd() { - return withNewRbdLike(getRbd() != null ? getRbd() : new V1RBDVolumeSourceBuilder().build()); + return withNewRbdLike(getRbd() != null ? getRbd(): new V1RBDVolumeSourceBuilder().build()); } - public V1VolumeFluent.RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { - return withNewRbdLike(getRbd() != null ? getRbd() : item); + return withNewRbdLike(getRbd() != null ? getRbd(): item); } - + /** * This method has been deprecated, please use method buildScaleIO instead. - * * @return The buildable object. */ @Deprecated public V1ScaleIOVolumeSource getScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; + return this.scaleIO!=null ?this.scaleIO.build():null; } - public V1ScaleIOVolumeSource buildScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; + return this.scaleIO!=null ?this.scaleIO.build():null; } - public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { _visitables.get("scaleIO").remove(this.scaleIO); - if (scaleIO != null) { - this.scaleIO = new V1ScaleIOVolumeSourceBuilder(scaleIO); - _visitables.get("scaleIO").add(this.scaleIO); - } else { - this.scaleIO = null; - _visitables.get("scaleIO").remove(this.scaleIO); - } - return (A) this; + if (scaleIO!=null){ this.scaleIO= new V1ScaleIOVolumeSourceBuilder(scaleIO); _visitables.get("scaleIO").add(this.scaleIO);} else { this.scaleIO = null; _visitables.get("scaleIO").remove(this.scaleIO); } return (A) this; } - public Boolean hasScaleIO() { return this.scaleIO != null; } - public V1VolumeFluent.ScaleIONested withNewScaleIO() { return new V1VolumeFluentImpl.ScaleIONestedImpl(); } - public V1VolumeFluent.ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { return new V1VolumeFluentImpl.ScaleIONestedImpl(item); } - public V1VolumeFluent.ScaleIONested editScaleIO() { return withNewScaleIOLike(getScaleIO()); } - public V1VolumeFluent.ScaleIONested editOrNewScaleIO() { - return withNewScaleIOLike( - getScaleIO() != null ? getScaleIO() : new V1ScaleIOVolumeSourceBuilder().build()); + return withNewScaleIOLike(getScaleIO() != null ? getScaleIO(): new V1ScaleIOVolumeSourceBuilder().build()); } - public V1VolumeFluent.ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { - return withNewScaleIOLike(getScaleIO() != null ? getScaleIO() : item); + return withNewScaleIOLike(getScaleIO() != null ? getScaleIO(): item); } - + /** * This method has been deprecated, please use method buildSecret instead. - * * @return The buildable object. */ @Deprecated public V1SecretVolumeSource getSecret() { - return this.secret != null ? this.secret.build() : null; + return this.secret!=null ?this.secret.build():null; } - public V1SecretVolumeSource buildSecret() { - return this.secret != null ? this.secret.build() : null; + return this.secret!=null ?this.secret.build():null; } - public A withSecret(V1SecretVolumeSource secret) { _visitables.get("secret").remove(this.secret); - if (secret != null) { - this.secret = new V1SecretVolumeSourceBuilder(secret); - _visitables.get("secret").add(this.secret); - } else { - this.secret = null; - _visitables.get("secret").remove(this.secret); - } - return (A) this; + if (secret!=null){ this.secret= new V1SecretVolumeSourceBuilder(secret); _visitables.get("secret").add(this.secret);} else { this.secret = null; _visitables.get("secret").remove(this.secret); } return (A) this; } - public Boolean hasSecret() { return this.secret != null; } - public V1VolumeFluent.SecretNested withNewSecret() { return new V1VolumeFluentImpl.SecretNestedImpl(); } - public V1VolumeFluent.SecretNested withNewSecretLike(V1SecretVolumeSource item) { return new V1VolumeFluentImpl.SecretNestedImpl(item); } - public V1VolumeFluent.SecretNested editSecret() { return withNewSecretLike(getSecret()); } - public V1VolumeFluent.SecretNested editOrNewSecret() { - return withNewSecretLike( - getSecret() != null ? getSecret() : new V1SecretVolumeSourceBuilder().build()); + return withNewSecretLike(getSecret() != null ? getSecret(): new V1SecretVolumeSourceBuilder().build()); } - public V1VolumeFluent.SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { - return withNewSecretLike(getSecret() != null ? getSecret() : item); + return withNewSecretLike(getSecret() != null ? getSecret(): item); } - + /** * This method has been deprecated, please use method buildStorageos instead. - * * @return The buildable object. */ @Deprecated public V1StorageOSVolumeSource getStorageos() { - return this.storageos != null ? this.storageos.build() : null; + return this.storageos!=null ?this.storageos.build():null; } - public V1StorageOSVolumeSource buildStorageos() { - return this.storageos != null ? this.storageos.build() : null; + return this.storageos!=null ?this.storageos.build():null; } - public A withStorageos(V1StorageOSVolumeSource storageos) { _visitables.get("storageos").remove(this.storageos); - if (storageos != null) { - this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); - _visitables.get("storageos").add(this.storageos); - } else { - this.storageos = null; - _visitables.get("storageos").remove(this.storageos); - } - return (A) this; + if (storageos!=null){ this.storageos= new V1StorageOSVolumeSourceBuilder(storageos); _visitables.get("storageos").add(this.storageos);} else { this.storageos = null; _visitables.get("storageos").remove(this.storageos); } return (A) this; } - public Boolean hasStorageos() { return this.storageos != null; } - public V1VolumeFluent.StorageosNested withNewStorageos() { return new V1VolumeFluentImpl.StorageosNestedImpl(); } - public V1VolumeFluent.StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { return new V1VolumeFluentImpl.StorageosNestedImpl(item); } - public V1VolumeFluent.StorageosNested editStorageos() { return withNewStorageosLike(getStorageos()); } - public V1VolumeFluent.StorageosNested editOrNewStorageos() { - return withNewStorageosLike( - getStorageos() != null ? getStorageos() : new V1StorageOSVolumeSourceBuilder().build()); + return withNewStorageosLike(getStorageos() != null ? getStorageos(): new V1StorageOSVolumeSourceBuilder().build()); } - public V1VolumeFluent.StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { - return withNewStorageosLike(getStorageos() != null ? getStorageos() : item); + return withNewStorageosLike(getStorageos() != null ? getStorageos(): item); } - + /** * This method has been deprecated, please use method buildVsphereVolume instead. - * * @return The buildable object. */ @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + return this.vsphereVolume!=null ?this.vsphereVolume.build():null; } - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + return this.vsphereVolume!=null ?this.vsphereVolume.build():null; } - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { _visitables.get("vsphereVolume").remove(this.vsphereVolume); - if (vsphereVolume != null) { - this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); - _visitables.get("vsphereVolume").add(this.vsphereVolume); - } else { - this.vsphereVolume = null; - _visitables.get("vsphereVolume").remove(this.vsphereVolume); - } - return (A) this; + if (vsphereVolume!=null){ this.vsphereVolume= new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); _visitables.get("vsphereVolume").add(this.vsphereVolume);} else { this.vsphereVolume = null; _visitables.get("vsphereVolume").remove(this.vsphereVolume); } return (A) this; } - public Boolean hasVsphereVolume() { return this.vsphereVolume != null; } - public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolume() { return new V1VolumeFluentImpl.VsphereVolumeNestedImpl(); } - - public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item) { + public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { return new V1VolumeFluentImpl.VsphereVolumeNestedImpl(item); } - public V1VolumeFluent.VsphereVolumeNested editVsphereVolume() { return withNewVsphereVolumeLike(getVsphereVolume()); } - public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolume() { - return withNewVsphereVolumeLike( - getVsphereVolume() != null - ? getVsphereVolume() - : new V1VsphereVirtualDiskVolumeSourceBuilder().build()); + return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume(): new V1VsphereVirtualDiskVolumeSourceBuilder().build()); } - - public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( - V1VsphereVirtualDiskVolumeSource item) { - return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume() : item); + public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeFluentImpl that = (V1VolumeFluentImpl) o; - if (awsElasticBlockStore != null - ? !awsElasticBlockStore.equals(that.awsElasticBlockStore) - : that.awsElasticBlockStore != null) return false; - if (azureDisk != null ? !azureDisk.equals(that.azureDisk) : that.azureDisk != null) - return false; - if (azureFile != null ? !azureFile.equals(that.azureFile) : that.azureFile != null) - return false; - if (cephfs != null ? !cephfs.equals(that.cephfs) : that.cephfs != null) return false; - if (cinder != null ? !cinder.equals(that.cinder) : that.cinder != null) return false; - if (configMap != null ? !configMap.equals(that.configMap) : that.configMap != null) - return false; - if (csi != null ? !csi.equals(that.csi) : that.csi != null) return false; - if (downwardAPI != null ? !downwardAPI.equals(that.downwardAPI) : that.downwardAPI != null) - return false; - if (emptyDir != null ? !emptyDir.equals(that.emptyDir) : that.emptyDir != null) return false; - if (ephemeral != null ? !ephemeral.equals(that.ephemeral) : that.ephemeral != null) - return false; - if (fc != null ? !fc.equals(that.fc) : that.fc != null) return false; - if (flexVolume != null ? !flexVolume.equals(that.flexVolume) : that.flexVolume != null) - return false; - if (flocker != null ? !flocker.equals(that.flocker) : that.flocker != null) return false; - if (gcePersistentDisk != null - ? !gcePersistentDisk.equals(that.gcePersistentDisk) - : that.gcePersistentDisk != null) return false; - if (gitRepo != null ? !gitRepo.equals(that.gitRepo) : that.gitRepo != null) return false; - if (glusterfs != null ? !glusterfs.equals(that.glusterfs) : that.glusterfs != null) - return false; - if (hostPath != null ? !hostPath.equals(that.hostPath) : that.hostPath != null) return false; - if (iscsi != null ? !iscsi.equals(that.iscsi) : that.iscsi != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (nfs != null ? !nfs.equals(that.nfs) : that.nfs != null) return false; - if (persistentVolumeClaim != null - ? !persistentVolumeClaim.equals(that.persistentVolumeClaim) - : that.persistentVolumeClaim != null) return false; - if (photonPersistentDisk != null - ? !photonPersistentDisk.equals(that.photonPersistentDisk) - : that.photonPersistentDisk != null) return false; - if (portworxVolume != null - ? !portworxVolume.equals(that.portworxVolume) - : that.portworxVolume != null) return false; - if (projected != null ? !projected.equals(that.projected) : that.projected != null) - return false; - if (quobyte != null ? !quobyte.equals(that.quobyte) : that.quobyte != null) return false; - if (rbd != null ? !rbd.equals(that.rbd) : that.rbd != null) return false; - if (scaleIO != null ? !scaleIO.equals(that.scaleIO) : that.scaleIO != null) return false; - if (secret != null ? !secret.equals(that.secret) : that.secret != null) return false; - if (storageos != null ? !storageos.equals(that.storageos) : that.storageos != null) - return false; - if (vsphereVolume != null - ? !vsphereVolume.equals(that.vsphereVolume) - : that.vsphereVolume != null) return false; + if (awsElasticBlockStore != null ? !awsElasticBlockStore.equals(that.awsElasticBlockStore) :that.awsElasticBlockStore != null) return false; + if (azureDisk != null ? !azureDisk.equals(that.azureDisk) :that.azureDisk != null) return false; + if (azureFile != null ? !azureFile.equals(that.azureFile) :that.azureFile != null) return false; + if (cephfs != null ? !cephfs.equals(that.cephfs) :that.cephfs != null) return false; + if (cinder != null ? !cinder.equals(that.cinder) :that.cinder != null) return false; + if (configMap != null ? !configMap.equals(that.configMap) :that.configMap != null) return false; + if (csi != null ? !csi.equals(that.csi) :that.csi != null) return false; + if (downwardAPI != null ? !downwardAPI.equals(that.downwardAPI) :that.downwardAPI != null) return false; + if (emptyDir != null ? !emptyDir.equals(that.emptyDir) :that.emptyDir != null) return false; + if (ephemeral != null ? !ephemeral.equals(that.ephemeral) :that.ephemeral != null) return false; + if (fc != null ? !fc.equals(that.fc) :that.fc != null) return false; + if (flexVolume != null ? !flexVolume.equals(that.flexVolume) :that.flexVolume != null) return false; + if (flocker != null ? !flocker.equals(that.flocker) :that.flocker != null) return false; + if (gcePersistentDisk != null ? !gcePersistentDisk.equals(that.gcePersistentDisk) :that.gcePersistentDisk != null) return false; + if (gitRepo != null ? !gitRepo.equals(that.gitRepo) :that.gitRepo != null) return false; + if (glusterfs != null ? !glusterfs.equals(that.glusterfs) :that.glusterfs != null) return false; + if (hostPath != null ? !hostPath.equals(that.hostPath) :that.hostPath != null) return false; + if (iscsi != null ? !iscsi.equals(that.iscsi) :that.iscsi != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (nfs != null ? !nfs.equals(that.nfs) :that.nfs != null) return false; + if (persistentVolumeClaim != null ? !persistentVolumeClaim.equals(that.persistentVolumeClaim) :that.persistentVolumeClaim != null) return false; + if (photonPersistentDisk != null ? !photonPersistentDisk.equals(that.photonPersistentDisk) :that.photonPersistentDisk != null) return false; + if (portworxVolume != null ? !portworxVolume.equals(that.portworxVolume) :that.portworxVolume != null) return false; + if (projected != null ? !projected.equals(that.projected) :that.projected != null) return false; + if (quobyte != null ? !quobyte.equals(that.quobyte) :that.quobyte != null) return false; + if (rbd != null ? !rbd.equals(that.rbd) :that.rbd != null) return false; + if (scaleIO != null ? !scaleIO.equals(that.scaleIO) :that.scaleIO != null) return false; + if (secret != null ? !secret.equals(that.secret) :that.secret != null) return false; + if (storageos != null ? !storageos.equals(that.storageos) :that.storageos != null) return false; + if (vsphereVolume != null ? !vsphereVolume.equals(that.vsphereVolume) :that.vsphereVolume != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - awsElasticBlockStore, - azureDisk, - azureFile, - cephfs, - cinder, - configMap, - csi, - downwardAPI, - emptyDir, - ephemeral, - fc, - flexVolume, - flocker, - gcePersistentDisk, - gitRepo, - glusterfs, - hostPath, - iscsi, - name, - nfs, - persistentVolumeClaim, - photonPersistentDisk, - portworxVolume, - projected, - quobyte, - rbd, - scaleIO, - secret, - storageos, - vsphereVolume, - super.hashCode()); + return java.util.Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (awsElasticBlockStore != null) { - sb.append("awsElasticBlockStore:"); - sb.append(awsElasticBlockStore + ","); - } - if (azureDisk != null) { - sb.append("azureDisk:"); - sb.append(azureDisk + ","); - } - if (azureFile != null) { - sb.append("azureFile:"); - sb.append(azureFile + ","); - } - if (cephfs != null) { - sb.append("cephfs:"); - sb.append(cephfs + ","); - } - if (cinder != null) { - sb.append("cinder:"); - sb.append(cinder + ","); - } - if (configMap != null) { - sb.append("configMap:"); - sb.append(configMap + ","); - } - if (csi != null) { - sb.append("csi:"); - sb.append(csi + ","); - } - if (downwardAPI != null) { - sb.append("downwardAPI:"); - sb.append(downwardAPI + ","); - } - if (emptyDir != null) { - sb.append("emptyDir:"); - sb.append(emptyDir + ","); - } - if (ephemeral != null) { - sb.append("ephemeral:"); - sb.append(ephemeral + ","); - } - if (fc != null) { - sb.append("fc:"); - sb.append(fc + ","); - } - if (flexVolume != null) { - sb.append("flexVolume:"); - sb.append(flexVolume + ","); - } - if (flocker != null) { - sb.append("flocker:"); - sb.append(flocker + ","); - } - if (gcePersistentDisk != null) { - sb.append("gcePersistentDisk:"); - sb.append(gcePersistentDisk + ","); - } - if (gitRepo != null) { - sb.append("gitRepo:"); - sb.append(gitRepo + ","); - } - if (glusterfs != null) { - sb.append("glusterfs:"); - sb.append(glusterfs + ","); - } - if (hostPath != null) { - sb.append("hostPath:"); - sb.append(hostPath + ","); - } - if (iscsi != null) { - sb.append("iscsi:"); - sb.append(iscsi + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (nfs != null) { - sb.append("nfs:"); - sb.append(nfs + ","); - } - if (persistentVolumeClaim != null) { - sb.append("persistentVolumeClaim:"); - sb.append(persistentVolumeClaim + ","); - } - if (photonPersistentDisk != null) { - sb.append("photonPersistentDisk:"); - sb.append(photonPersistentDisk + ","); - } - if (portworxVolume != null) { - sb.append("portworxVolume:"); - sb.append(portworxVolume + ","); - } - if (projected != null) { - sb.append("projected:"); - sb.append(projected + ","); - } - if (quobyte != null) { - sb.append("quobyte:"); - sb.append(quobyte + ","); - } - if (rbd != null) { - sb.append("rbd:"); - sb.append(rbd + ","); - } - if (scaleIO != null) { - sb.append("scaleIO:"); - sb.append(scaleIO + ","); - } - if (secret != null) { - sb.append("secret:"); - sb.append(secret + ","); - } - if (storageos != null) { - sb.append("storageos:"); - sb.append(storageos + ","); - } - if (vsphereVolume != null) { - sb.append("vsphereVolume:"); - sb.append(vsphereVolume); - } + if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); } + if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); } + if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); } + if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); } + if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); } + if (configMap != null) { sb.append("configMap:"); sb.append(configMap + ","); } + if (csi != null) { sb.append("csi:"); sb.append(csi + ","); } + if (downwardAPI != null) { sb.append("downwardAPI:"); sb.append(downwardAPI + ","); } + if (emptyDir != null) { sb.append("emptyDir:"); sb.append(emptyDir + ","); } + if (ephemeral != null) { sb.append("ephemeral:"); sb.append(ephemeral + ","); } + if (fc != null) { sb.append("fc:"); sb.append(fc + ","); } + if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); } + if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); } + if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); } + if (gitRepo != null) { sb.append("gitRepo:"); sb.append(gitRepo + ","); } + if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); } + if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); } + if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); } + if (persistentVolumeClaim != null) { sb.append("persistentVolumeClaim:"); sb.append(persistentVolumeClaim + ","); } + if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); } + if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); } + if (projected != null) { sb.append("projected:"); sb.append(projected + ","); } + if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); } + if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); } + if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); } + if (secret != null) { sb.append("secret:"); sb.append(secret + ","); } + if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); } + if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); } sb.append("}"); return sb.toString(); } - - class AwsElasticBlockStoreNestedImpl - extends V1AWSElasticBlockStoreVolumeSourceFluentImpl< - V1VolumeFluent.AwsElasticBlockStoreNested> - implements V1VolumeFluent.AwsElasticBlockStoreNested, Nested { + class AwsElasticBlockStoreNestedImpl extends V1AWSElasticBlockStoreVolumeSourceFluentImpl> implements V1VolumeFluent.AwsElasticBlockStoreNested,Nested{ AwsElasticBlockStoreNestedImpl(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } - AwsElasticBlockStoreNestedImpl() { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this); } - V1AWSElasticBlockStoreVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withAwsElasticBlockStore(builder.build()); } - public N endAwsElasticBlockStore() { return and(); } + } - - class AzureDiskNestedImpl - extends V1AzureDiskVolumeSourceFluentImpl> - implements V1VolumeFluent.AzureDiskNested, Nested { + class AzureDiskNestedImpl extends V1AzureDiskVolumeSourceFluentImpl> implements V1VolumeFluent.AzureDiskNested,Nested{ AzureDiskNestedImpl(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } - AzureDiskNestedImpl() { this.builder = new V1AzureDiskVolumeSourceBuilder(this); } - V1AzureDiskVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withAzureDisk(builder.build()); } - public N endAzureDisk() { return and(); } + } - - class AzureFileNestedImpl - extends V1AzureFileVolumeSourceFluentImpl> - implements V1VolumeFluent.AzureFileNested, Nested { + class AzureFileNestedImpl extends V1AzureFileVolumeSourceFluentImpl> implements V1VolumeFluent.AzureFileNested,Nested{ AzureFileNestedImpl(V1AzureFileVolumeSource item) { this.builder = new V1AzureFileVolumeSourceBuilder(this, item); } - AzureFileNestedImpl() { this.builder = new V1AzureFileVolumeSourceBuilder(this); } - V1AzureFileVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withAzureFile(builder.build()); } - public N endAzureFile() { return and(); } + } - - class CephfsNestedImpl extends V1CephFSVolumeSourceFluentImpl> - implements V1VolumeFluent.CephfsNested, Nested { + class CephfsNestedImpl extends V1CephFSVolumeSourceFluentImpl> implements V1VolumeFluent.CephfsNested,Nested{ CephfsNestedImpl(V1CephFSVolumeSource item) { this.builder = new V1CephFSVolumeSourceBuilder(this, item); } - CephfsNestedImpl() { this.builder = new V1CephFSVolumeSourceBuilder(this); } - V1CephFSVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withCephfs(builder.build()); } - public N endCephfs() { return and(); } + } - - class CinderNestedImpl extends V1CinderVolumeSourceFluentImpl> - implements V1VolumeFluent.CinderNested, Nested { + class CinderNestedImpl extends V1CinderVolumeSourceFluentImpl> implements V1VolumeFluent.CinderNested,Nested{ CinderNestedImpl(V1CinderVolumeSource item) { this.builder = new V1CinderVolumeSourceBuilder(this, item); } - CinderNestedImpl() { this.builder = new V1CinderVolumeSourceBuilder(this); } - V1CinderVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withCinder(builder.build()); } - public N endCinder() { return and(); } + } - - class ConfigMapNestedImpl - extends V1ConfigMapVolumeSourceFluentImpl> - implements V1VolumeFluent.ConfigMapNested, Nested { + class ConfigMapNestedImpl extends V1ConfigMapVolumeSourceFluentImpl> implements V1VolumeFluent.ConfigMapNested,Nested{ ConfigMapNestedImpl(V1ConfigMapVolumeSource item) { this.builder = new V1ConfigMapVolumeSourceBuilder(this, item); } - ConfigMapNestedImpl() { this.builder = new V1ConfigMapVolumeSourceBuilder(this); } - V1ConfigMapVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withConfigMap(builder.build()); } - public N endConfigMap() { return and(); } + } - - class CsiNestedImpl extends V1CSIVolumeSourceFluentImpl> - implements V1VolumeFluent.CsiNested, Nested { + class CsiNestedImpl extends V1CSIVolumeSourceFluentImpl> implements V1VolumeFluent.CsiNested,Nested{ CsiNestedImpl(V1CSIVolumeSource item) { this.builder = new V1CSIVolumeSourceBuilder(this, item); } - CsiNestedImpl() { this.builder = new V1CSIVolumeSourceBuilder(this); } - V1CSIVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withCsi(builder.build()); } - public N endCsi() { return and(); } + } - - class DownwardAPINestedImpl - extends V1DownwardAPIVolumeSourceFluentImpl> - implements V1VolumeFluent.DownwardAPINested, Nested { + class DownwardAPINestedImpl extends V1DownwardAPIVolumeSourceFluentImpl> implements V1VolumeFluent.DownwardAPINested,Nested{ DownwardAPINestedImpl(V1DownwardAPIVolumeSource item) { this.builder = new V1DownwardAPIVolumeSourceBuilder(this, item); } - DownwardAPINestedImpl() { this.builder = new V1DownwardAPIVolumeSourceBuilder(this); } - V1DownwardAPIVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withDownwardAPI(builder.build()); } - public N endDownwardAPI() { return and(); } + } - - class EmptyDirNestedImpl - extends V1EmptyDirVolumeSourceFluentImpl> - implements V1VolumeFluent.EmptyDirNested, Nested { + class EmptyDirNestedImpl extends V1EmptyDirVolumeSourceFluentImpl> implements V1VolumeFluent.EmptyDirNested,Nested{ EmptyDirNestedImpl(V1EmptyDirVolumeSource item) { this.builder = new V1EmptyDirVolumeSourceBuilder(this, item); } - EmptyDirNestedImpl() { this.builder = new V1EmptyDirVolumeSourceBuilder(this); } - V1EmptyDirVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withEmptyDir(builder.build()); } - public N endEmptyDir() { return and(); } + } - - class EphemeralNestedImpl - extends V1EphemeralVolumeSourceFluentImpl> - implements V1VolumeFluent.EphemeralNested, Nested { + class EphemeralNestedImpl extends V1EphemeralVolumeSourceFluentImpl> implements V1VolumeFluent.EphemeralNested,Nested{ EphemeralNestedImpl(V1EphemeralVolumeSource item) { this.builder = new V1EphemeralVolumeSourceBuilder(this, item); } - EphemeralNestedImpl() { this.builder = new V1EphemeralVolumeSourceBuilder(this); } - V1EphemeralVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withEphemeral(builder.build()); } - public N endEphemeral() { return and(); } + } - - class FcNestedImpl extends V1FCVolumeSourceFluentImpl> - implements V1VolumeFluent.FcNested, Nested { + class FcNestedImpl extends V1FCVolumeSourceFluentImpl> implements V1VolumeFluent.FcNested,Nested{ FcNestedImpl(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } - FcNestedImpl() { this.builder = new V1FCVolumeSourceBuilder(this); } - V1FCVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withFc(builder.build()); } - public N endFc() { return and(); } + } - - class FlexVolumeNestedImpl - extends V1FlexVolumeSourceFluentImpl> - implements V1VolumeFluent.FlexVolumeNested, Nested { + class FlexVolumeNestedImpl extends V1FlexVolumeSourceFluentImpl> implements V1VolumeFluent.FlexVolumeNested,Nested{ FlexVolumeNestedImpl(V1FlexVolumeSource item) { this.builder = new V1FlexVolumeSourceBuilder(this, item); } - FlexVolumeNestedImpl() { this.builder = new V1FlexVolumeSourceBuilder(this); } - V1FlexVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withFlexVolume(builder.build()); } - public N endFlexVolume() { return and(); } + } - - class FlockerNestedImpl - extends V1FlockerVolumeSourceFluentImpl> - implements V1VolumeFluent.FlockerNested, Nested { + class FlockerNestedImpl extends V1FlockerVolumeSourceFluentImpl> implements V1VolumeFluent.FlockerNested,Nested{ FlockerNestedImpl(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } - FlockerNestedImpl() { this.builder = new V1FlockerVolumeSourceBuilder(this); } - V1FlockerVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withFlocker(builder.build()); } - public N endFlocker() { return and(); } + } - - class GcePersistentDiskNestedImpl - extends V1GCEPersistentDiskVolumeSourceFluentImpl> - implements V1VolumeFluent.GcePersistentDiskNested, Nested { + class GcePersistentDiskNestedImpl extends V1GCEPersistentDiskVolumeSourceFluentImpl> implements V1VolumeFluent.GcePersistentDiskNested,Nested{ GcePersistentDiskNestedImpl(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } - GcePersistentDiskNestedImpl() { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this); } - V1GCEPersistentDiskVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withGcePersistentDisk(builder.build()); } - public N endGcePersistentDisk() { return and(); } + } - - class GitRepoNestedImpl - extends V1GitRepoVolumeSourceFluentImpl> - implements V1VolumeFluent.GitRepoNested, Nested { + class GitRepoNestedImpl extends V1GitRepoVolumeSourceFluentImpl> implements V1VolumeFluent.GitRepoNested,Nested{ GitRepoNestedImpl(V1GitRepoVolumeSource item) { this.builder = new V1GitRepoVolumeSourceBuilder(this, item); } - GitRepoNestedImpl() { this.builder = new V1GitRepoVolumeSourceBuilder(this); } - V1GitRepoVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withGitRepo(builder.build()); } - public N endGitRepo() { return and(); } + } - - class GlusterfsNestedImpl - extends V1GlusterfsVolumeSourceFluentImpl> - implements V1VolumeFluent.GlusterfsNested, Nested { + class GlusterfsNestedImpl extends V1GlusterfsVolumeSourceFluentImpl> implements V1VolumeFluent.GlusterfsNested,Nested{ GlusterfsNestedImpl(V1GlusterfsVolumeSource item) { this.builder = new V1GlusterfsVolumeSourceBuilder(this, item); } - GlusterfsNestedImpl() { this.builder = new V1GlusterfsVolumeSourceBuilder(this); } - V1GlusterfsVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withGlusterfs(builder.build()); } - public N endGlusterfs() { return and(); } + } - - class HostPathNestedImpl - extends V1HostPathVolumeSourceFluentImpl> - implements V1VolumeFluent.HostPathNested, Nested { + class HostPathNestedImpl extends V1HostPathVolumeSourceFluentImpl> implements V1VolumeFluent.HostPathNested,Nested{ HostPathNestedImpl(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } - HostPathNestedImpl() { this.builder = new V1HostPathVolumeSourceBuilder(this); } - V1HostPathVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withHostPath(builder.build()); } - public N endHostPath() { return and(); } + } - - class IscsiNestedImpl extends V1ISCSIVolumeSourceFluentImpl> - implements V1VolumeFluent.IscsiNested, Nested { + class IscsiNestedImpl extends V1ISCSIVolumeSourceFluentImpl> implements V1VolumeFluent.IscsiNested,Nested{ IscsiNestedImpl(V1ISCSIVolumeSource item) { this.builder = new V1ISCSIVolumeSourceBuilder(this, item); } - IscsiNestedImpl() { this.builder = new V1ISCSIVolumeSourceBuilder(this); } - V1ISCSIVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withIscsi(builder.build()); } - public N endIscsi() { return and(); } + } - - class NfsNestedImpl extends V1NFSVolumeSourceFluentImpl> - implements V1VolumeFluent.NfsNested, Nested { + class NfsNestedImpl extends V1NFSVolumeSourceFluentImpl> implements V1VolumeFluent.NfsNested,Nested{ NfsNestedImpl(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } - NfsNestedImpl() { this.builder = new V1NFSVolumeSourceBuilder(this); } - V1NFSVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withNfs(builder.build()); } - public N endNfs() { return and(); } + } - - class PersistentVolumeClaimNestedImpl - extends V1PersistentVolumeClaimVolumeSourceFluentImpl< - V1VolumeFluent.PersistentVolumeClaimNested> - implements V1VolumeFluent.PersistentVolumeClaimNested, Nested { + class PersistentVolumeClaimNestedImpl extends V1PersistentVolumeClaimVolumeSourceFluentImpl> implements V1VolumeFluent.PersistentVolumeClaimNested,Nested{ PersistentVolumeClaimNestedImpl(V1PersistentVolumeClaimVolumeSource item) { this.builder = new V1PersistentVolumeClaimVolumeSourceBuilder(this, item); } - PersistentVolumeClaimNestedImpl() { this.builder = new V1PersistentVolumeClaimVolumeSourceBuilder(this); } - V1PersistentVolumeClaimVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withPersistentVolumeClaim(builder.build()); } - public N endPersistentVolumeClaim() { return and(); } + } - - class PhotonPersistentDiskNestedImpl - extends V1PhotonPersistentDiskVolumeSourceFluentImpl< - V1VolumeFluent.PhotonPersistentDiskNested> - implements V1VolumeFluent.PhotonPersistentDiskNested, Nested { + class PhotonPersistentDiskNestedImpl extends V1PhotonPersistentDiskVolumeSourceFluentImpl> implements V1VolumeFluent.PhotonPersistentDiskNested,Nested{ PhotonPersistentDiskNestedImpl(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } - PhotonPersistentDiskNestedImpl() { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this); } - V1PhotonPersistentDiskVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withPhotonPersistentDisk(builder.build()); } - public N endPhotonPersistentDisk() { return and(); } + } - - class PortworxVolumeNestedImpl - extends V1PortworxVolumeSourceFluentImpl> - implements V1VolumeFluent.PortworxVolumeNested, Nested { + class PortworxVolumeNestedImpl extends V1PortworxVolumeSourceFluentImpl> implements V1VolumeFluent.PortworxVolumeNested,Nested{ PortworxVolumeNestedImpl(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } - PortworxVolumeNestedImpl() { this.builder = new V1PortworxVolumeSourceBuilder(this); } - V1PortworxVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withPortworxVolume(builder.build()); } - public N endPortworxVolume() { return and(); } + } - - class ProjectedNestedImpl - extends V1ProjectedVolumeSourceFluentImpl> - implements V1VolumeFluent.ProjectedNested, Nested { + class ProjectedNestedImpl extends V1ProjectedVolumeSourceFluentImpl> implements V1VolumeFluent.ProjectedNested,Nested{ ProjectedNestedImpl(V1ProjectedVolumeSource item) { this.builder = new V1ProjectedVolumeSourceBuilder(this, item); } - ProjectedNestedImpl() { this.builder = new V1ProjectedVolumeSourceBuilder(this); } - V1ProjectedVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withProjected(builder.build()); } - public N endProjected() { return and(); } + } - - class QuobyteNestedImpl - extends V1QuobyteVolumeSourceFluentImpl> - implements V1VolumeFluent.QuobyteNested, Nested { + class QuobyteNestedImpl extends V1QuobyteVolumeSourceFluentImpl> implements V1VolumeFluent.QuobyteNested,Nested{ QuobyteNestedImpl(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } - QuobyteNestedImpl() { this.builder = new V1QuobyteVolumeSourceBuilder(this); } - V1QuobyteVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withQuobyte(builder.build()); } - public N endQuobyte() { return and(); } + } - - class RbdNestedImpl extends V1RBDVolumeSourceFluentImpl> - implements V1VolumeFluent.RbdNested, Nested { + class RbdNestedImpl extends V1RBDVolumeSourceFluentImpl> implements V1VolumeFluent.RbdNested,Nested{ RbdNestedImpl(V1RBDVolumeSource item) { this.builder = new V1RBDVolumeSourceBuilder(this, item); } - RbdNestedImpl() { this.builder = new V1RBDVolumeSourceBuilder(this); } - V1RBDVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withRbd(builder.build()); } - public N endRbd() { return and(); } + } - - class ScaleIONestedImpl - extends V1ScaleIOVolumeSourceFluentImpl> - implements V1VolumeFluent.ScaleIONested, Nested { + class ScaleIONestedImpl extends V1ScaleIOVolumeSourceFluentImpl> implements V1VolumeFluent.ScaleIONested,Nested{ ScaleIONestedImpl(V1ScaleIOVolumeSource item) { this.builder = new V1ScaleIOVolumeSourceBuilder(this, item); } - ScaleIONestedImpl() { this.builder = new V1ScaleIOVolumeSourceBuilder(this); } - V1ScaleIOVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withScaleIO(builder.build()); } - public N endScaleIO() { return and(); } + } - - class SecretNestedImpl extends V1SecretVolumeSourceFluentImpl> - implements V1VolumeFluent.SecretNested, Nested { + class SecretNestedImpl extends V1SecretVolumeSourceFluentImpl> implements V1VolumeFluent.SecretNested,Nested{ SecretNestedImpl(V1SecretVolumeSource item) { this.builder = new V1SecretVolumeSourceBuilder(this, item); } - SecretNestedImpl() { this.builder = new V1SecretVolumeSourceBuilder(this); } - V1SecretVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withSecret(builder.build()); } - public N endSecret() { return and(); } + } - - class StorageosNestedImpl - extends V1StorageOSVolumeSourceFluentImpl> - implements V1VolumeFluent.StorageosNested, Nested { + class StorageosNestedImpl extends V1StorageOSVolumeSourceFluentImpl> implements V1VolumeFluent.StorageosNested,Nested{ StorageosNestedImpl(V1StorageOSVolumeSource item) { this.builder = new V1StorageOSVolumeSourceBuilder(this, item); } - StorageosNestedImpl() { this.builder = new V1StorageOSVolumeSourceBuilder(this); } - V1StorageOSVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withStorageos(builder.build()); } - public N endStorageos() { return and(); } + } - - class VsphereVolumeNestedImpl - extends V1VsphereVirtualDiskVolumeSourceFluentImpl> - implements V1VolumeFluent.VsphereVolumeNested, Nested { + class VsphereVolumeNestedImpl extends V1VsphereVirtualDiskVolumeSourceFluentImpl> implements V1VolumeFluent.VsphereVolumeNested,Nested{ VsphereVolumeNestedImpl(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } - VsphereVolumeNestedImpl() { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this); } - V1VsphereVirtualDiskVolumeSourceBuilder builder; - public N and() { return (N) V1VolumeFluentImpl.this.withVsphereVolume(builder.build()); } - public N endVsphereVolume() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java index 29c20bb246..9980f5c8a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VolumeMountBuilder extends V1VolumeMountFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeMountBuilder extends V1VolumeMountFluentImpl implements VisitableBuilder{ public V1VolumeMountBuilder() { this(false); } - public V1VolumeMountBuilder(Boolean validationEnabled) { this(new V1VolumeMount(), validationEnabled); } - public V1VolumeMountBuilder(V1VolumeMountFluent fluent) { this(fluent, false); } - - public V1VolumeMountBuilder(V1VolumeMountFluent fluent, Boolean validationEnabled) { + public V1VolumeMountBuilder(V1VolumeMountFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeMount(), validationEnabled); } - - public V1VolumeMountBuilder(V1VolumeMountFluent fluent, V1VolumeMount instance) { + public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance) { this(fluent, instance, false); } - - public V1VolumeMountBuilder( - V1VolumeMountFluent fluent, V1VolumeMount instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMountPath(instance.getMountPath()); fluent.withMountPropagation(instance.getMountPropagation()); @@ -51,15 +32,13 @@ public V1VolumeMountBuilder( fluent.withSubPathExpr(instance.getSubPathExpr()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeMountBuilder(V1VolumeMount instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeMountBuilder(V1VolumeMount instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeMountBuilder(V1VolumeMount instance,Boolean validationEnabled) { + this.fluent = this; this.withMountPath(instance.getMountPath()); this.withMountPropagation(instance.getMountPropagation()); @@ -72,12 +51,10 @@ public V1VolumeMountBuilder(V1VolumeMount instance, Boolean validationEnabled) { this.withSubPathExpr(instance.getSubPathExpr()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeMountFluent fluent; Boolean validationEnabled; - public V1VolumeMount build() { V1VolumeMount buildable = new V1VolumeMount(); buildable.setMountPath(fluent.getMountPath()); @@ -88,4 +65,5 @@ public V1VolumeMount build() { buildable.setSubPathExpr(fluent.getSubPathExpr()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java index 0721ae8af5..5d5882d7f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java @@ -1,56 +1,31 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeMountFluent> extends Fluent { + /** + * Generated + */ +public interface V1VolumeMountFluent> extends Fluent{ public String getMountPath(); - public A withMountPath(String mountPath); - public Boolean hasMountPath(); - public String getMountPropagation(); - public A withMountPropagation(String mountPropagation); - public Boolean hasMountPropagation(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - public Boolean getReadOnly(); - public A withReadOnly(Boolean readOnly); - public Boolean hasReadOnly(); - public String getSubPath(); - public A withSubPath(String subPath); - public Boolean hasSubPath(); - public String getSubPathExpr(); - public A withSubPathExpr(String subPathExpr); - public Boolean hasSubPathExpr(); - public A withReadOnly(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java index f6e12028ab..bf1b7ea709 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeMountFluentImpl> extends BaseFluent - implements V1VolumeMountFluent { - public V1VolumeMountFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeMountFluentImpl> extends BaseFluent implements V1VolumeMountFluent{ + public V1VolumeMountFluentImpl() { + } public V1VolumeMountFluentImpl(V1VolumeMount instance) { this.withMountPath(instance.getMountPath()); @@ -32,147 +25,97 @@ public V1VolumeMountFluentImpl(V1VolumeMount instance) { this.withSubPath(instance.getSubPath()); this.withSubPathExpr(instance.getSubPathExpr()); - } + } private String mountPath; private String mountPropagation; private String name; private Boolean readOnly; private String subPath; private String subPathExpr; - public String getMountPath() { return this.mountPath; } - public A withMountPath(String mountPath) { - this.mountPath = mountPath; - return (A) this; + this.mountPath=mountPath; return (A) this; } - public Boolean hasMountPath() { return this.mountPath != null; } - public String getMountPropagation() { return this.mountPropagation; } - public A withMountPropagation(String mountPropagation) { - this.mountPropagation = mountPropagation; - return (A) this; + this.mountPropagation=mountPropagation; return (A) this; } - public Boolean hasMountPropagation() { return this.mountPropagation != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + this.readOnly=readOnly; return (A) this; } - public Boolean hasReadOnly() { return this.readOnly != null; } - public String getSubPath() { return this.subPath; } - public A withSubPath(String subPath) { - this.subPath = subPath; - return (A) this; + this.subPath=subPath; return (A) this; } - public Boolean hasSubPath() { return this.subPath != null; } - public String getSubPathExpr() { return this.subPathExpr; } - public A withSubPathExpr(String subPathExpr) { - this.subPathExpr = subPathExpr; - return (A) this; + this.subPathExpr=subPathExpr; return (A) this; } - public Boolean hasSubPathExpr() { return this.subPathExpr != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeMountFluentImpl that = (V1VolumeMountFluentImpl) o; - if (mountPath != null ? !mountPath.equals(that.mountPath) : that.mountPath != null) - return false; - if (mountPropagation != null - ? !mountPropagation.equals(that.mountPropagation) - : that.mountPropagation != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - if (subPath != null ? !subPath.equals(that.subPath) : that.subPath != null) return false; - if (subPathExpr != null ? !subPathExpr.equals(that.subPathExpr) : that.subPathExpr != null) - return false; + if (mountPath != null ? !mountPath.equals(that.mountPath) :that.mountPath != null) return false; + if (mountPropagation != null ? !mountPropagation.equals(that.mountPropagation) :that.mountPropagation != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false; + if (subPath != null ? !subPath.equals(that.subPath) :that.subPath != null) return false; + if (subPathExpr != null ? !subPathExpr.equals(that.subPathExpr) :that.subPathExpr != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - mountPath, mountPropagation, name, readOnly, subPath, subPathExpr, super.hashCode()); + return java.util.Objects.hash(mountPath, mountPropagation, name, readOnly, subPath, subPathExpr, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (mountPath != null) { - sb.append("mountPath:"); - sb.append(mountPath + ","); - } - if (mountPropagation != null) { - sb.append("mountPropagation:"); - sb.append(mountPropagation + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly + ","); - } - if (subPath != null) { - sb.append("subPath:"); - sb.append(subPath + ","); - } - if (subPathExpr != null) { - sb.append("subPathExpr:"); - sb.append(subPathExpr); - } + if (mountPath != null) { sb.append("mountPath:"); sb.append(mountPath + ","); } + if (mountPropagation != null) { sb.append("mountPropagation:"); sb.append(mountPropagation + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (subPath != null) { sb.append("subPath:"); sb.append(subPath + ","); } + if (subPathExpr != null) { sb.append("subPathExpr:"); sb.append(subPathExpr); } sb.append("}"); return sb.toString(); } - public A withReadOnly() { return withReadOnly(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java index 25ade706d2..0de66889a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1VolumeNodeAffinityBuilder - extends V1VolumeNodeAffinityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeNodeAffinityBuilder extends V1VolumeNodeAffinityFluentImpl implements VisitableBuilder{ public V1VolumeNodeAffinityBuilder() { this(false); } - public V1VolumeNodeAffinityBuilder(Boolean validationEnabled) { this(new V1VolumeNodeAffinity(), validationEnabled); } - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent) { this(fluent, false); } - - public V1VolumeNodeAffinityBuilder( - V1VolumeNodeAffinityFluent fluent, Boolean validationEnabled) { + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeNodeAffinity(), validationEnabled); } - - public V1VolumeNodeAffinityBuilder( - V1VolumeNodeAffinityFluent fluent, V1VolumeNodeAffinity instance) { + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,V1VolumeNodeAffinity instance) { this(fluent, instance, false); } - - public V1VolumeNodeAffinityBuilder( - V1VolumeNodeAffinityFluent fluent, - V1VolumeNodeAffinity instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,V1VolumeNodeAffinity instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withRequired(instance.getRequired()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance,Boolean validationEnabled) { + this.fluent = this; this.withRequired(instance.getRequired()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeNodeAffinityFluent fluent; Boolean validationEnabled; - public V1VolumeNodeAffinity build() { V1VolumeNodeAffinity buildable = new V1VolumeNodeAffinity(); buildable.setRequired(fluent.getRequired()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java index 66639c6700..d42297cc9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java @@ -1,52 +1,33 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeNodeAffinityFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1VolumeNodeAffinityFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildRequired instead. - * * @return The buildable object. */ @Deprecated public V1NodeSelector getRequired(); - public V1NodeSelector buildRequired(); - public A withRequired(V1NodeSelector required); - public Boolean hasRequired(); - public V1VolumeNodeAffinityFluent.RequiredNested withNewRequired(); - public V1VolumeNodeAffinityFluent.RequiredNested withNewRequiredLike(V1NodeSelector item); - public V1VolumeNodeAffinityFluent.RequiredNested editRequired(); - public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequired(); - public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequiredLike(V1NodeSelector item); - - public interface RequiredNested - extends Nested, V1NodeSelectorFluent> { + public interface RequiredNested extends Nested,V1NodeSelectorFluent>{ public N and(); - public N endRequired(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java index b7ffa9c846..ce7e0dd4cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java @@ -1,125 +1,91 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeNodeAffinityFluentImpl> - extends BaseFluent implements V1VolumeNodeAffinityFluent { - public V1VolumeNodeAffinityFluentImpl() {} - +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeNodeAffinityFluentImpl> extends BaseFluent implements V1VolumeNodeAffinityFluent{ + public V1VolumeNodeAffinityFluentImpl() { + } public V1VolumeNodeAffinityFluentImpl(V1VolumeNodeAffinity instance) { this.withRequired(instance.getRequired()); - } + } private V1NodeSelectorBuilder required; - + /** * This method has been deprecated, please use method buildRequired instead. - * * @return The buildable object. */ @Deprecated public V1NodeSelector getRequired() { - return this.required != null ? this.required.build() : null; + return this.required!=null ?this.required.build():null; } - public V1NodeSelector buildRequired() { - return this.required != null ? this.required.build() : null; + return this.required!=null ?this.required.build():null; } - public A withRequired(V1NodeSelector required) { _visitables.get("required").remove(this.required); - if (required != null) { - this.required = new V1NodeSelectorBuilder(required); - _visitables.get("required").add(this.required); - } else { - this.required = null; - _visitables.get("required").remove(this.required); - } - return (A) this; + if (required!=null){ this.required= new V1NodeSelectorBuilder(required); _visitables.get("required").add(this.required);} else { this.required = null; _visitables.get("required").remove(this.required); } return (A) this; } - public Boolean hasRequired() { return this.required != null; } - public V1VolumeNodeAffinityFluent.RequiredNested withNewRequired() { return new V1VolumeNodeAffinityFluentImpl.RequiredNestedImpl(); } - public V1VolumeNodeAffinityFluent.RequiredNested withNewRequiredLike(V1NodeSelector item) { return new V1VolumeNodeAffinityFluentImpl.RequiredNestedImpl(item); } - public V1VolumeNodeAffinityFluent.RequiredNested editRequired() { return withNewRequiredLike(getRequired()); } - public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequired() { - return withNewRequiredLike( - getRequired() != null ? getRequired() : new V1NodeSelectorBuilder().build()); + return withNewRequiredLike(getRequired() != null ? getRequired(): new V1NodeSelectorBuilder().build()); } - public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequiredLike(V1NodeSelector item) { - return withNewRequiredLike(getRequired() != null ? getRequired() : item); + return withNewRequiredLike(getRequired() != null ? getRequired(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeNodeAffinityFluentImpl that = (V1VolumeNodeAffinityFluentImpl) o; - if (required != null ? !required.equals(that.required) : that.required != null) return false; + if (required != null ? !required.equals(that.required) :that.required != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(required, super.hashCode()); + return java.util.Objects.hash(required, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (required != null) { - sb.append("required:"); - sb.append(required); - } + if (required != null) { sb.append("required:"); sb.append(required); } sb.append("}"); return sb.toString(); } - - class RequiredNestedImpl - extends V1NodeSelectorFluentImpl> - implements V1VolumeNodeAffinityFluent.RequiredNested, Nested { + class RequiredNestedImpl extends V1NodeSelectorFluentImpl> implements V1VolumeNodeAffinityFluent.RequiredNested,Nested{ RequiredNestedImpl(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - RequiredNestedImpl() { this.builder = new V1NodeSelectorBuilder(this); } - V1NodeSelectorBuilder builder; - public N and() { return (N) V1VolumeNodeAffinityFluentImpl.this.withRequired(builder.build()); } - public N endRequired() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java index ec69eab473..b7603ec567 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1VolumeNodeResourcesBuilder - extends V1VolumeNodeResourcesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeNodeResourcesBuilder extends V1VolumeNodeResourcesFluentImpl implements VisitableBuilder{ public V1VolumeNodeResourcesBuilder() { this(false); } - public V1VolumeNodeResourcesBuilder(Boolean validationEnabled) { this(new V1VolumeNodeResources(), validationEnabled); } - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent) { this(fluent, false); } - - public V1VolumeNodeResourcesBuilder( - V1VolumeNodeResourcesFluent fluent, Boolean validationEnabled) { + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeNodeResources(), validationEnabled); } - - public V1VolumeNodeResourcesBuilder( - V1VolumeNodeResourcesFluent fluent, V1VolumeNodeResources instance) { + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,V1VolumeNodeResources instance) { this(fluent, instance, false); } - - public V1VolumeNodeResourcesBuilder( - V1VolumeNodeResourcesFluent fluent, - V1VolumeNodeResources instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,V1VolumeNodeResources instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCount(instance.getCount()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance,Boolean validationEnabled) { + this.fluent = this; this.withCount(instance.getCount()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeNodeResourcesFluent fluent; Boolean validationEnabled; - public V1VolumeNodeResources build() { V1VolumeNodeResources buildable = new V1VolumeNodeResources(); buildable.setCount(fluent.getCount()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java index cdd0d48524..7e85fc4fd6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java @@ -1,25 +1,15 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1VolumeNodeResourcesFluent> - extends Fluent { + /** + * Generated + */ +public interface V1VolumeNodeResourcesFluent> extends Fluent{ public Integer getCount(); - public A withCount(Integer count); - public Boolean hasCount(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java index 6941aa4f68..2f727be35f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java @@ -1,64 +1,49 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeNodeResourcesFluentImpl> - extends BaseFluent implements V1VolumeNodeResourcesFluent { - public V1VolumeNodeResourcesFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeNodeResourcesFluentImpl> extends BaseFluent implements V1VolumeNodeResourcesFluent{ + public V1VolumeNodeResourcesFluentImpl() { + } public V1VolumeNodeResourcesFluentImpl(V1VolumeNodeResources instance) { this.withCount(instance.getCount()); - } + } private Integer count; - public Integer getCount() { return this.count; } - public A withCount(Integer count) { - this.count = count; - return (A) this; + this.count=count; return (A) this; } - public Boolean hasCount() { return this.count != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeNodeResourcesFluentImpl that = (V1VolumeNodeResourcesFluentImpl) o; - if (count != null ? !count.equals(that.count) : that.count != null) return false; + if (count != null ? !count.equals(that.count) :that.count != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(count, super.hashCode()); + return java.util.Objects.hash(count, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { - sb.append("count:"); - sb.append(count); - } + if (count != null) { sb.append("count:"); sb.append(count); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java index 7e0901c2bd..51727a2b65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java @@ -1,46 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VolumeProjectionBuilder - extends V1VolumeProjectionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1VolumeProjectionBuilder extends V1VolumeProjectionFluentImpl implements VisitableBuilder{ public V1VolumeProjectionBuilder() { this(false); } - public V1VolumeProjectionBuilder(Boolean validationEnabled) { this(new V1VolumeProjection(), validationEnabled); } - public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent) { this(fluent, false); } - - public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent, Boolean validationEnabled) { + public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,Boolean validationEnabled) { this(fluent, new V1VolumeProjection(), validationEnabled); } - - public V1VolumeProjectionBuilder( - V1VolumeProjectionFluent fluent, V1VolumeProjection instance) { + public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,V1VolumeProjection instance) { this(fluent, instance, false); } - - public V1VolumeProjectionBuilder( - V1VolumeProjectionFluent fluent, V1VolumeProjection instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,V1VolumeProjection instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConfigMap(instance.getConfigMap()); fluent.withDownwardAPI(instance.getDownwardAPI()); @@ -49,15 +28,13 @@ public V1VolumeProjectionBuilder( fluent.withServiceAccountToken(instance.getServiceAccountToken()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VolumeProjectionBuilder(V1VolumeProjection instance) { - this(instance, false); + this(instance,false); } - - public V1VolumeProjectionBuilder(V1VolumeProjection instance, Boolean validationEnabled) { - this.fluent = this; + public V1VolumeProjectionBuilder(V1VolumeProjection instance,Boolean validationEnabled) { + this.fluent = this; this.withConfigMap(instance.getConfigMap()); this.withDownwardAPI(instance.getDownwardAPI()); @@ -66,12 +43,10 @@ public V1VolumeProjectionBuilder(V1VolumeProjection instance, Boolean validation this.withServiceAccountToken(instance.getServiceAccountToken()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VolumeProjectionFluent fluent; Boolean validationEnabled; - public V1VolumeProjection build() { V1VolumeProjection buildable = new V1VolumeProjection(); buildable.setConfigMap(fluent.getConfigMap()); @@ -80,4 +55,5 @@ public V1VolumeProjection build() { buildable.setServiceAccountToken(fluent.getServiceAccountToken()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java index d451a92f9a..232cbb2672 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java @@ -1,153 +1,93 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1VolumeProjectionFluent> extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1VolumeProjectionFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildConfigMap instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapProjection getConfigMap(); - public V1ConfigMapProjection buildConfigMap(); - public A withConfigMap(V1ConfigMapProjection configMap); - public Boolean hasConfigMap(); - public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMap(); - - public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMapLike( - V1ConfigMapProjection item); - + public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item); public V1VolumeProjectionFluent.ConfigMapNested editConfigMap(); - public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMap(); - - public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMapLike( - V1ConfigMapProjection item); - + public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapProjection item); + /** * This method has been deprecated, please use method buildDownwardAPI instead. - * * @return The buildable object. */ @Deprecated public V1DownwardAPIProjection getDownwardAPI(); - public V1DownwardAPIProjection buildDownwardAPI(); - public A withDownwardAPI(V1DownwardAPIProjection downwardAPI); - public Boolean hasDownwardAPI(); - public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPI(); - - public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPILike( - V1DownwardAPIProjection item); - + public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item); public V1VolumeProjectionFluent.DownwardAPINested editDownwardAPI(); - public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPI(); - - public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPILike( - V1DownwardAPIProjection item); - + public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIProjection item); + /** * This method has been deprecated, please use method buildSecret instead. - * * @return The buildable object. */ @Deprecated public V1SecretProjection getSecret(); - public V1SecretProjection buildSecret(); - public A withSecret(V1SecretProjection secret); - public Boolean hasSecret(); - public V1VolumeProjectionFluent.SecretNested withNewSecret(); - public V1VolumeProjectionFluent.SecretNested withNewSecretLike(V1SecretProjection item); - public V1VolumeProjectionFluent.SecretNested editSecret(); - public V1VolumeProjectionFluent.SecretNested editOrNewSecret(); - public V1VolumeProjectionFluent.SecretNested editOrNewSecretLike(V1SecretProjection item); - + /** * This method has been deprecated, please use method buildServiceAccountToken instead. - * * @return The buildable object. */ @Deprecated public V1ServiceAccountTokenProjection getServiceAccountToken(); - public V1ServiceAccountTokenProjection buildServiceAccountToken(); - public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken); - public Boolean hasServiceAccountToken(); - public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountToken(); - - public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountTokenLike( - V1ServiceAccountTokenProjection item); - + public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item); public V1VolumeProjectionFluent.ServiceAccountTokenNested editServiceAccountToken(); - public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountToken(); - - public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountTokenLike( - V1ServiceAccountTokenProjection item); - - public interface ConfigMapNested - extends Nested, V1ConfigMapProjectionFluent> { + public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item); + public interface ConfigMapNested extends Nested,V1ConfigMapProjectionFluent>{ public N and(); - public N endConfigMap(); + } - - public interface DownwardAPINested - extends Nested, - V1DownwardAPIProjectionFluent> { + public interface DownwardAPINested extends Nested,V1DownwardAPIProjectionFluent>{ public N and(); - public N endDownwardAPI(); + } - - public interface SecretNested - extends Nested, V1SecretProjectionFluent> { + public interface SecretNested extends Nested,V1SecretProjectionFluent>{ public N and(); - public N endSecret(); + } - - public interface ServiceAccountTokenNested - extends Nested, - V1ServiceAccountTokenProjectionFluent< - V1VolumeProjectionFluent.ServiceAccountTokenNested> { + public interface ServiceAccountTokenNested extends Nested,V1ServiceAccountTokenProjectionFluent>{ public N and(); - public N endServiceAccountToken(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java index b81b946002..d4aebe9af6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VolumeProjectionFluentImpl> - extends BaseFluent implements V1VolumeProjectionFluent { - public V1VolumeProjectionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VolumeProjectionFluentImpl> extends BaseFluent implements V1VolumeProjectionFluent{ + public V1VolumeProjectionFluentImpl() { + } public V1VolumeProjectionFluentImpl(V1VolumeProjection instance) { this.withConfigMap(instance.getConfigMap()); @@ -29,355 +23,234 @@ public V1VolumeProjectionFluentImpl(V1VolumeProjection instance) { this.withSecret(instance.getSecret()); this.withServiceAccountToken(instance.getServiceAccountToken()); - } + } private V1ConfigMapProjectionBuilder configMap; private V1DownwardAPIProjectionBuilder downwardAPI; private V1SecretProjectionBuilder secret; private V1ServiceAccountTokenProjectionBuilder serviceAccountToken; - + /** * This method has been deprecated, please use method buildConfigMap instead. - * * @return The buildable object. */ @Deprecated public V1ConfigMapProjection getConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + return this.configMap!=null ?this.configMap.build():null; } - public V1ConfigMapProjection buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + return this.configMap!=null ?this.configMap.build():null; } - public A withConfigMap(V1ConfigMapProjection configMap) { _visitables.get("configMap").remove(this.configMap); - if (configMap != null) { - this.configMap = new V1ConfigMapProjectionBuilder(configMap); - _visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - _visitables.get("configMap").remove(this.configMap); - } - return (A) this; + if (configMap!=null){ this.configMap= new V1ConfigMapProjectionBuilder(configMap); _visitables.get("configMap").add(this.configMap);} else { this.configMap = null; _visitables.get("configMap").remove(this.configMap); } return (A) this; } - public Boolean hasConfigMap() { return this.configMap != null; } - public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMap() { return new V1VolumeProjectionFluentImpl.ConfigMapNestedImpl(); } - - public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMapLike( - V1ConfigMapProjection item) { + public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { return new V1VolumeProjectionFluentImpl.ConfigMapNestedImpl(item); } - public V1VolumeProjectionFluent.ConfigMapNested editConfigMap() { return withNewConfigMapLike(getConfigMap()); } - public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike( - getConfigMap() != null ? getConfigMap() : new V1ConfigMapProjectionBuilder().build()); + return withNewConfigMapLike(getConfigMap() != null ? getConfigMap(): new V1ConfigMapProjectionBuilder().build()); } - - public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMapLike( - V1ConfigMapProjection item) { - return withNewConfigMapLike(getConfigMap() != null ? getConfigMap() : item); + public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapProjection item) { + return withNewConfigMapLike(getConfigMap() != null ? getConfigMap(): item); } - + /** * This method has been deprecated, please use method buildDownwardAPI instead. - * * @return The buildable object. */ @Deprecated public V1DownwardAPIProjection getDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + return this.downwardAPI!=null ?this.downwardAPI.build():null; } - public V1DownwardAPIProjection buildDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + return this.downwardAPI!=null ?this.downwardAPI.build():null; } - public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { _visitables.get("downwardAPI").remove(this.downwardAPI); - if (downwardAPI != null) { - this.downwardAPI = new V1DownwardAPIProjectionBuilder(downwardAPI); - _visitables.get("downwardAPI").add(this.downwardAPI); - } else { - this.downwardAPI = null; - _visitables.get("downwardAPI").remove(this.downwardAPI); - } - return (A) this; + if (downwardAPI!=null){ this.downwardAPI= new V1DownwardAPIProjectionBuilder(downwardAPI); _visitables.get("downwardAPI").add(this.downwardAPI);} else { this.downwardAPI = null; _visitables.get("downwardAPI").remove(this.downwardAPI); } return (A) this; } - public Boolean hasDownwardAPI() { return this.downwardAPI != null; } - public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPI() { return new V1VolumeProjectionFluentImpl.DownwardAPINestedImpl(); } - - public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPILike( - V1DownwardAPIProjection item) { + public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) { return new V1VolumeProjectionFluentImpl.DownwardAPINestedImpl(item); } - public V1VolumeProjectionFluent.DownwardAPINested editDownwardAPI() { return withNewDownwardAPILike(getDownwardAPI()); } - public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPI() { - return withNewDownwardAPILike( - getDownwardAPI() != null ? getDownwardAPI() : new V1DownwardAPIProjectionBuilder().build()); + return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI(): new V1DownwardAPIProjectionBuilder().build()); } - - public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPILike( - V1DownwardAPIProjection item) { - return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI() : item); + public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIProjection item) { + return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI(): item); } - + /** * This method has been deprecated, please use method buildSecret instead. - * * @return The buildable object. */ @Deprecated public V1SecretProjection getSecret() { - return this.secret != null ? this.secret.build() : null; + return this.secret!=null ?this.secret.build():null; } - public V1SecretProjection buildSecret() { - return this.secret != null ? this.secret.build() : null; + return this.secret!=null ?this.secret.build():null; } - public A withSecret(V1SecretProjection secret) { _visitables.get("secret").remove(this.secret); - if (secret != null) { - this.secret = new V1SecretProjectionBuilder(secret); - _visitables.get("secret").add(this.secret); - } else { - this.secret = null; - _visitables.get("secret").remove(this.secret); - } - return (A) this; + if (secret!=null){ this.secret= new V1SecretProjectionBuilder(secret); _visitables.get("secret").add(this.secret);} else { this.secret = null; _visitables.get("secret").remove(this.secret); } return (A) this; } - public Boolean hasSecret() { return this.secret != null; } - public V1VolumeProjectionFluent.SecretNested withNewSecret() { return new V1VolumeProjectionFluentImpl.SecretNestedImpl(); } - public V1VolumeProjectionFluent.SecretNested withNewSecretLike(V1SecretProjection item) { return new V1VolumeProjectionFluentImpl.SecretNestedImpl(item); } - public V1VolumeProjectionFluent.SecretNested editSecret() { return withNewSecretLike(getSecret()); } - public V1VolumeProjectionFluent.SecretNested editOrNewSecret() { - return withNewSecretLike( - getSecret() != null ? getSecret() : new V1SecretProjectionBuilder().build()); + return withNewSecretLike(getSecret() != null ? getSecret(): new V1SecretProjectionBuilder().build()); } - public V1VolumeProjectionFluent.SecretNested editOrNewSecretLike(V1SecretProjection item) { - return withNewSecretLike(getSecret() != null ? getSecret() : item); + return withNewSecretLike(getSecret() != null ? getSecret(): item); } - + /** * This method has been deprecated, please use method buildServiceAccountToken instead. - * * @return The buildable object. */ @Deprecated public V1ServiceAccountTokenProjection getServiceAccountToken() { - return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; + return this.serviceAccountToken!=null ?this.serviceAccountToken.build():null; } - public V1ServiceAccountTokenProjection buildServiceAccountToken() { - return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; + return this.serviceAccountToken!=null ?this.serviceAccountToken.build():null; } - public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { _visitables.get("serviceAccountToken").remove(this.serviceAccountToken); - if (serviceAccountToken != null) { - this.serviceAccountToken = new V1ServiceAccountTokenProjectionBuilder(serviceAccountToken); - _visitables.get("serviceAccountToken").add(this.serviceAccountToken); - } else { - this.serviceAccountToken = null; - _visitables.get("serviceAccountToken").remove(this.serviceAccountToken); - } - return (A) this; + if (serviceAccountToken!=null){ this.serviceAccountToken= new V1ServiceAccountTokenProjectionBuilder(serviceAccountToken); _visitables.get("serviceAccountToken").add(this.serviceAccountToken);} else { this.serviceAccountToken = null; _visitables.get("serviceAccountToken").remove(this.serviceAccountToken); } return (A) this; } - public Boolean hasServiceAccountToken() { return this.serviceAccountToken != null; } - public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountToken() { return new V1VolumeProjectionFluentImpl.ServiceAccountTokenNestedImpl(); } - - public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountTokenLike( - V1ServiceAccountTokenProjection item) { + public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { return new V1VolumeProjectionFluentImpl.ServiceAccountTokenNestedImpl(item); } - public V1VolumeProjectionFluent.ServiceAccountTokenNested editServiceAccountToken() { return withNewServiceAccountTokenLike(getServiceAccountToken()); } - public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountToken() { - return withNewServiceAccountTokenLike( - getServiceAccountToken() != null - ? getServiceAccountToken() - : new V1ServiceAccountTokenProjectionBuilder().build()); + return withNewServiceAccountTokenLike(getServiceAccountToken() != null ? getServiceAccountToken(): new V1ServiceAccountTokenProjectionBuilder().build()); } - - public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountTokenLike( - V1ServiceAccountTokenProjection item) { - return withNewServiceAccountTokenLike( - getServiceAccountToken() != null ? getServiceAccountToken() : item); + public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { + return withNewServiceAccountTokenLike(getServiceAccountToken() != null ? getServiceAccountToken(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1VolumeProjectionFluentImpl that = (V1VolumeProjectionFluentImpl) o; - if (configMap != null ? !configMap.equals(that.configMap) : that.configMap != null) - return false; - if (downwardAPI != null ? !downwardAPI.equals(that.downwardAPI) : that.downwardAPI != null) - return false; - if (secret != null ? !secret.equals(that.secret) : that.secret != null) return false; - if (serviceAccountToken != null - ? !serviceAccountToken.equals(that.serviceAccountToken) - : that.serviceAccountToken != null) return false; + if (configMap != null ? !configMap.equals(that.configMap) :that.configMap != null) return false; + if (downwardAPI != null ? !downwardAPI.equals(that.downwardAPI) :that.downwardAPI != null) return false; + if (secret != null ? !secret.equals(that.secret) :that.secret != null) return false; + if (serviceAccountToken != null ? !serviceAccountToken.equals(that.serviceAccountToken) :that.serviceAccountToken != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - configMap, downwardAPI, secret, serviceAccountToken, super.hashCode()); + return java.util.Objects.hash(configMap, downwardAPI, secret, serviceAccountToken, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMap != null) { - sb.append("configMap:"); - sb.append(configMap + ","); - } - if (downwardAPI != null) { - sb.append("downwardAPI:"); - sb.append(downwardAPI + ","); - } - if (secret != null) { - sb.append("secret:"); - sb.append(secret + ","); - } - if (serviceAccountToken != null) { - sb.append("serviceAccountToken:"); - sb.append(serviceAccountToken); - } + if (configMap != null) { sb.append("configMap:"); sb.append(configMap + ","); } + if (downwardAPI != null) { sb.append("downwardAPI:"); sb.append(downwardAPI + ","); } + if (secret != null) { sb.append("secret:"); sb.append(secret + ","); } + if (serviceAccountToken != null) { sb.append("serviceAccountToken:"); sb.append(serviceAccountToken); } sb.append("}"); return sb.toString(); } - - class ConfigMapNestedImpl - extends V1ConfigMapProjectionFluentImpl> - implements V1VolumeProjectionFluent.ConfigMapNested, Nested { + class ConfigMapNestedImpl extends V1ConfigMapProjectionFluentImpl> implements V1VolumeProjectionFluent.ConfigMapNested,Nested{ ConfigMapNestedImpl(V1ConfigMapProjection item) { this.builder = new V1ConfigMapProjectionBuilder(this, item); } - ConfigMapNestedImpl() { this.builder = new V1ConfigMapProjectionBuilder(this); } - V1ConfigMapProjectionBuilder builder; - public N and() { return (N) V1VolumeProjectionFluentImpl.this.withConfigMap(builder.build()); } - public N endConfigMap() { return and(); } + } - - class DownwardAPINestedImpl - extends V1DownwardAPIProjectionFluentImpl> - implements V1VolumeProjectionFluent.DownwardAPINested, Nested { + class DownwardAPINestedImpl extends V1DownwardAPIProjectionFluentImpl> implements V1VolumeProjectionFluent.DownwardAPINested,Nested{ DownwardAPINestedImpl(V1DownwardAPIProjection item) { this.builder = new V1DownwardAPIProjectionBuilder(this, item); } - DownwardAPINestedImpl() { this.builder = new V1DownwardAPIProjectionBuilder(this); } - V1DownwardAPIProjectionBuilder builder; - public N and() { return (N) V1VolumeProjectionFluentImpl.this.withDownwardAPI(builder.build()); } - public N endDownwardAPI() { return and(); } + } - - class SecretNestedImpl - extends V1SecretProjectionFluentImpl> - implements V1VolumeProjectionFluent.SecretNested, Nested { + class SecretNestedImpl extends V1SecretProjectionFluentImpl> implements V1VolumeProjectionFluent.SecretNested,Nested{ SecretNestedImpl(V1SecretProjection item) { this.builder = new V1SecretProjectionBuilder(this, item); } - SecretNestedImpl() { this.builder = new V1SecretProjectionBuilder(this); } - V1SecretProjectionBuilder builder; - public N and() { return (N) V1VolumeProjectionFluentImpl.this.withSecret(builder.build()); } - public N endSecret() { return and(); } + } - - class ServiceAccountTokenNestedImpl - extends V1ServiceAccountTokenProjectionFluentImpl< - V1VolumeProjectionFluent.ServiceAccountTokenNested> - implements V1VolumeProjectionFluent.ServiceAccountTokenNested, Nested { + class ServiceAccountTokenNestedImpl extends V1ServiceAccountTokenProjectionFluentImpl> implements V1VolumeProjectionFluent.ServiceAccountTokenNested,Nested{ ServiceAccountTokenNestedImpl(V1ServiceAccountTokenProjection item) { this.builder = new V1ServiceAccountTokenProjectionBuilder(this, item); } - ServiceAccountTokenNestedImpl() { this.builder = new V1ServiceAccountTokenProjectionBuilder(this); } - V1ServiceAccountTokenProjectionBuilder builder; - public N and() { return (N) V1VolumeProjectionFluentImpl.this.withServiceAccountToken(builder.build()); } - public N endServiceAccountToken() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java index 67090e2670..9f8a06bb7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1VsphereVirtualDiskVolumeSourceBuilder - extends V1VsphereVirtualDiskVolumeSourceFluentImpl - implements VisitableBuilder< - V1VsphereVirtualDiskVolumeSource, V1VsphereVirtualDiskVolumeSourceBuilder> { +import java.lang.Boolean; +public class V1VsphereVirtualDiskVolumeSourceBuilder extends V1VsphereVirtualDiskVolumeSourceFluentImpl implements VisitableBuilder{ public V1VsphereVirtualDiskVolumeSourceBuilder() { this(false); } - public V1VsphereVirtualDiskVolumeSourceBuilder(Boolean validationEnabled) { this(new V1VsphereVirtualDiskVolumeSource(), validationEnabled); } - public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent) { this(fluent, false); } - - public V1VsphereVirtualDiskVolumeSourceBuilder( - V1VsphereVirtualDiskVolumeSourceFluent fluent, Boolean validationEnabled) { + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V1VsphereVirtualDiskVolumeSource(), validationEnabled); } - - public V1VsphereVirtualDiskVolumeSourceBuilder( - V1VsphereVirtualDiskVolumeSourceFluent fluent, V1VsphereVirtualDiskVolumeSource instance) { + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,V1VsphereVirtualDiskVolumeSource instance) { this(fluent, instance, false); } - - public V1VsphereVirtualDiskVolumeSourceBuilder( - V1VsphereVirtualDiskVolumeSourceFluent fluent, - V1VsphereVirtualDiskVolumeSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,V1VsphereVirtualDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withFsType(instance.getFsType()); fluent.withStoragePolicyID(instance.getStoragePolicyID()); @@ -53,16 +28,13 @@ public V1VsphereVirtualDiskVolumeSourceBuilder( fluent.withVolumePath(instance.getVolumePath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSource instance) { - this(instance, false); + this(instance,false); } - - public V1VsphereVirtualDiskVolumeSourceBuilder( - V1VsphereVirtualDiskVolumeSource instance, Boolean validationEnabled) { - this.fluent = this; + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSource instance,Boolean validationEnabled) { + this.fluent = this; this.withFsType(instance.getFsType()); this.withStoragePolicyID(instance.getStoragePolicyID()); @@ -71,12 +43,10 @@ public V1VsphereVirtualDiskVolumeSourceBuilder( this.withVolumePath(instance.getVolumePath()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1VsphereVirtualDiskVolumeSourceFluent fluent; Boolean validationEnabled; - public V1VsphereVirtualDiskVolumeSource build() { V1VsphereVirtualDiskVolumeSource buildable = new V1VsphereVirtualDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -85,4 +55,5 @@ public V1VsphereVirtualDiskVolumeSource build() { buildable.setVolumePath(fluent.getVolumePath()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java index 35d173ce60..0260841b7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java @@ -1,44 +1,24 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1VsphereVirtualDiskVolumeSourceFluent< - A extends V1VsphereVirtualDiskVolumeSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1VsphereVirtualDiskVolumeSourceFluent> extends Fluent{ public String getFsType(); - public A withFsType(String fsType); - public Boolean hasFsType(); - public String getStoragePolicyID(); - public A withStoragePolicyID(String storagePolicyID); - public Boolean hasStoragePolicyID(); - public String getStoragePolicyName(); - public A withStoragePolicyName(String storagePolicyName); - public Boolean hasStoragePolicyName(); - public String getVolumePath(); - public A withVolumePath(String volumePath); - public Boolean hasVolumePath(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java index cf1d320754..e67e13b27e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java @@ -1,26 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1VsphereVirtualDiskVolumeSourceFluentImpl< - A extends V1VsphereVirtualDiskVolumeSourceFluent> - extends BaseFluent implements V1VsphereVirtualDiskVolumeSourceFluent { - public V1VsphereVirtualDiskVolumeSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1VsphereVirtualDiskVolumeSourceFluentImpl> extends BaseFluent implements V1VsphereVirtualDiskVolumeSourceFluent{ + public V1VsphereVirtualDiskVolumeSourceFluentImpl() { + } public V1VsphereVirtualDiskVolumeSourceFluentImpl(V1VsphereVirtualDiskVolumeSource instance) { this.withFsType(instance.getFsType()); @@ -29,107 +21,70 @@ public V1VsphereVirtualDiskVolumeSourceFluentImpl(V1VsphereVirtualDiskVolumeSour this.withStoragePolicyName(instance.getStoragePolicyName()); this.withVolumePath(instance.getVolumePath()); - } + } private String fsType; private String storagePolicyID; private String storagePolicyName; private String volumePath; - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + this.fsType=fsType; return (A) this; } - public Boolean hasFsType() { return this.fsType != null; } - public String getStoragePolicyID() { return this.storagePolicyID; } - public A withStoragePolicyID(String storagePolicyID) { - this.storagePolicyID = storagePolicyID; - return (A) this; + this.storagePolicyID=storagePolicyID; return (A) this; } - public Boolean hasStoragePolicyID() { return this.storagePolicyID != null; } - public String getStoragePolicyName() { return this.storagePolicyName; } - public A withStoragePolicyName(String storagePolicyName) { - this.storagePolicyName = storagePolicyName; - return (A) this; + this.storagePolicyName=storagePolicyName; return (A) this; } - public Boolean hasStoragePolicyName() { return this.storagePolicyName != null; } - public String getVolumePath() { return this.volumePath; } - public A withVolumePath(String volumePath) { - this.volumePath = volumePath; - return (A) this; + this.volumePath=volumePath; return (A) this; } - public Boolean hasVolumePath() { return this.volumePath != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1VsphereVirtualDiskVolumeSourceFluentImpl that = - (V1VsphereVirtualDiskVolumeSourceFluentImpl) o; - if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; - if (storagePolicyID != null - ? !storagePolicyID.equals(that.storagePolicyID) - : that.storagePolicyID != null) return false; - if (storagePolicyName != null - ? !storagePolicyName.equals(that.storagePolicyName) - : that.storagePolicyName != null) return false; - if (volumePath != null ? !volumePath.equals(that.volumePath) : that.volumePath != null) - return false; + V1VsphereVirtualDiskVolumeSourceFluentImpl that = (V1VsphereVirtualDiskVolumeSourceFluentImpl) o; + if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false; + if (storagePolicyID != null ? !storagePolicyID.equals(that.storagePolicyID) :that.storagePolicyID != null) return false; + if (storagePolicyName != null ? !storagePolicyName.equals(that.storagePolicyName) :that.storagePolicyName != null) return false; + if (volumePath != null ? !volumePath.equals(that.volumePath) :that.volumePath != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - fsType, storagePolicyID, storagePolicyName, volumePath, super.hashCode()); + return java.util.Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { - sb.append("fsType:"); - sb.append(fsType + ","); - } - if (storagePolicyID != null) { - sb.append("storagePolicyID:"); - sb.append(storagePolicyID + ","); - } - if (storagePolicyName != null) { - sb.append("storagePolicyName:"); - sb.append(storagePolicyName + ","); - } - if (volumePath != null) { - sb.append("volumePath:"); - sb.append(volumePath); - } + if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } + if (storagePolicyID != null) { sb.append("storagePolicyID:"); sb.append(storagePolicyID + ","); } + if (storagePolicyName != null) { sb.append("storagePolicyName:"); sb.append(storagePolicyName + ","); } + if (volumePath != null) { sb.append("volumePath:"); sb.append(volumePath); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java index 8add7d3639..2f092bce96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java @@ -1,71 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1WatchEventBuilder extends V1WatchEventFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1WatchEventBuilder extends V1WatchEventFluentImpl implements VisitableBuilder{ public V1WatchEventBuilder() { this(false); } - public V1WatchEventBuilder(Boolean validationEnabled) { this(new V1WatchEvent(), validationEnabled); } - public V1WatchEventBuilder(V1WatchEventFluent fluent) { this(fluent, false); } - - public V1WatchEventBuilder(V1WatchEventFluent fluent, Boolean validationEnabled) { + public V1WatchEventBuilder(V1WatchEventFluent fluent,Boolean validationEnabled) { this(fluent, new V1WatchEvent(), validationEnabled); } - - public V1WatchEventBuilder(V1WatchEventFluent fluent, V1WatchEvent instance) { + public V1WatchEventBuilder(V1WatchEventFluent fluent,V1WatchEvent instance) { this(fluent, instance, false); } - - public V1WatchEventBuilder( - V1WatchEventFluent fluent, V1WatchEvent instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1WatchEventBuilder(V1WatchEventFluent fluent,V1WatchEvent instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withObject(instance.getObject()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1WatchEventBuilder(V1WatchEvent instance) { - this(instance, false); + this(instance,false); } - - public V1WatchEventBuilder(V1WatchEvent instance, Boolean validationEnabled) { - this.fluent = this; + public V1WatchEventBuilder(V1WatchEvent instance,Boolean validationEnabled) { + this.fluent = this; this.withObject(instance.getObject()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1WatchEventFluent fluent; Boolean validationEnabled; - public V1WatchEvent build() { V1WatchEvent buildable = new V1WatchEvent(); buildable.setObject(fluent.getObject()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java index c1b69beca5..3602f1a20b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java @@ -1,30 +1,19 @@ -/* -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.Fluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1WatchEventFluent> extends Fluent { + /** + * Generated + */ +public interface V1WatchEventFluent> extends Fluent{ public Object getObject(); - public A withObject(Object _object); - public Boolean hasObject(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java index c3eaa13779..f4f61f38ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java @@ -1,85 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1WatchEventFluentImpl> extends BaseFluent - implements V1WatchEventFluent { - public V1WatchEventFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1WatchEventFluentImpl> extends BaseFluent implements V1WatchEventFluent{ + public V1WatchEventFluentImpl() { + } public V1WatchEventFluentImpl(V1WatchEvent instance) { this.withObject(instance.getObject()); this.withType(instance.getType()); - } + } private Object _object; private String type; - public Object getObject() { return this._object; } - public A withObject(Object _object) { - this._object = _object; - return (A) this; + this._object=_object; return (A) this; } - public Boolean hasObject() { return this._object != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1WatchEventFluentImpl that = (V1WatchEventFluentImpl) o; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (_object != null ? !_object.equals(that._object) :that._object != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(_object, type, super.hashCode()); + return java.util.Objects.hash(_object, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_object != null) { - sb.append("_object:"); - sb.append(_object + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java index 2721393515..934eb5b307 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1WebhookConversionBuilder - extends V1WebhookConversionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1WebhookConversionBuilder extends V1WebhookConversionFluentImpl implements VisitableBuilder{ public V1WebhookConversionBuilder() { this(false); } - public V1WebhookConversionBuilder(Boolean validationEnabled) { this(new V1WebhookConversion(), validationEnabled); } - public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent) { this(fluent, false); } - - public V1WebhookConversionBuilder( - V1WebhookConversionFluent fluent, Boolean validationEnabled) { + public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,Boolean validationEnabled) { this(fluent, new V1WebhookConversion(), validationEnabled); } - - public V1WebhookConversionBuilder( - V1WebhookConversionFluent fluent, V1WebhookConversion instance) { + public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,V1WebhookConversion instance) { this(fluent, instance, false); } - - public V1WebhookConversionBuilder( - V1WebhookConversionFluent fluent, - V1WebhookConversion instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,V1WebhookConversion instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withClientConfig(instance.getClientConfig()); fluent.withConversionReviewVersions(instance.getConversionReviewVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1WebhookConversionBuilder(V1WebhookConversion instance) { - this(instance, false); + this(instance,false); } - - public V1WebhookConversionBuilder(V1WebhookConversion instance, Boolean validationEnabled) { - this.fluent = this; + public V1WebhookConversionBuilder(V1WebhookConversion instance,Boolean validationEnabled) { + this.fluent = this; this.withClientConfig(instance.getClientConfig()); this.withConversionReviewVersions(instance.getConversionReviewVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1WebhookConversionFluent fluent; Boolean validationEnabled; - public V1WebhookConversion build() { V1WebhookConversion buildable = new V1WebhookConversion(); buildable.setClientConfig(fluent.getClientConfig()); buildable.setConversionReviewVersions(fluent.getConversionReviewVersions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java index 1cf436d1d2..04478080dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java @@ -1,89 +1,54 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1WebhookConversionFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1WebhookConversionFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildClientConfig instead. - * * @return The buildable object. */ @Deprecated public ApiextensionsV1WebhookClientConfig getClientConfig(); - public ApiextensionsV1WebhookClientConfig buildClientConfig(); - public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig); - public Boolean hasClientConfig(); - public V1WebhookConversionFluent.ClientConfigNested withNewClientConfig(); - - public V1WebhookConversionFluent.ClientConfigNested withNewClientConfigLike( - ApiextensionsV1WebhookClientConfig item); - + public V1WebhookConversionFluent.ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item); public V1WebhookConversionFluent.ClientConfigNested editClientConfig(); - public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfig(); - - public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfigLike( - ApiextensionsV1WebhookClientConfig item); - - public A addToConversionReviewVersions(Integer index, String item); - - public A setToConversionReviewVersions(Integer index, String item); - + public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfigLike(ApiextensionsV1WebhookClientConfig item); + public A addToConversionReviewVersions(Integer index,String item); + public A setToConversionReviewVersions(Integer index,String item); public A addToConversionReviewVersions(java.lang.String... items); - public A addAllToConversionReviewVersions(Collection items); - public A removeFromConversionReviewVersions(java.lang.String... items); - public A removeAllFromConversionReviewVersions(Collection items); - public List getConversionReviewVersions(); - public String getConversionReviewVersion(Integer index); - public String getFirstConversionReviewVersion(); - public String getLastConversionReviewVersion(); - public String getMatchingConversionReviewVersion(Predicate predicate); - public Boolean hasMatchingConversionReviewVersion(Predicate predicate); - public A withConversionReviewVersions(List conversionReviewVersions); - public A withConversionReviewVersions(java.lang.String... conversionReviewVersions); - public Boolean hasConversionReviewVersions(); - - public interface ClientConfigNested - extends Nested, - ApiextensionsV1WebhookClientConfigFluent< - V1WebhookConversionFluent.ClientConfigNested> { + public interface ClientConfigNested extends Nested,ApiextensionsV1WebhookClientConfigFluent>{ public N and(); - public N endClientConfig(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java index dc97a24dc6..5831d0db66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java @@ -1,261 +1,152 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1WebhookConversionFluentImpl> - extends BaseFluent implements V1WebhookConversionFluent { - public V1WebhookConversionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1WebhookConversionFluentImpl> extends BaseFluent implements V1WebhookConversionFluent{ + public V1WebhookConversionFluentImpl() { + } public V1WebhookConversionFluentImpl(V1WebhookConversion instance) { this.withClientConfig(instance.getClientConfig()); this.withConversionReviewVersions(instance.getConversionReviewVersions()); - } + } private ApiextensionsV1WebhookClientConfigBuilder clientConfig; private List conversionReviewVersions; - + /** * This method has been deprecated, please use method buildClientConfig instead. - * * @return The buildable object. */ @Deprecated public ApiextensionsV1WebhookClientConfig getClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + return this.clientConfig!=null ?this.clientConfig.build():null; } - public ApiextensionsV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + return this.clientConfig!=null ?this.clientConfig.build():null; } - public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { _visitables.get("clientConfig").remove(this.clientConfig); - if (clientConfig != null) { - this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); - _visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - _visitables.get("clientConfig").remove(this.clientConfig); - } - return (A) this; + if (clientConfig!=null){ this.clientConfig= new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); _visitables.get("clientConfig").add(this.clientConfig);} else { this.clientConfig = null; _visitables.get("clientConfig").remove(this.clientConfig); } return (A) this; } - public Boolean hasClientConfig() { return this.clientConfig != null; } - public V1WebhookConversionFluent.ClientConfigNested withNewClientConfig() { return new V1WebhookConversionFluentImpl.ClientConfigNestedImpl(); } - - public V1WebhookConversionFluent.ClientConfigNested withNewClientConfigLike( - ApiextensionsV1WebhookClientConfig item) { + public V1WebhookConversionFluent.ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { return new V1WebhookConversionFluentImpl.ClientConfigNestedImpl(item); } - public V1WebhookConversionFluent.ClientConfigNested editClientConfig() { return withNewClientConfigLike(getClientConfig()); } - public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike( - getClientConfig() != null - ? getClientConfig() - : new ApiextensionsV1WebhookClientConfigBuilder().build()); + return withNewClientConfigLike(getClientConfig() != null ? getClientConfig(): new ApiextensionsV1WebhookClientConfigBuilder().build()); } - - public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfigLike( - ApiextensionsV1WebhookClientConfig item) { - return withNewClientConfigLike(getClientConfig() != null ? getClientConfig() : item); + public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { + return withNewClientConfigLike(getClientConfig() != null ? getClientConfig(): item); } - - public A addToConversionReviewVersions(Integer index, String item) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } + public A addToConversionReviewVersions(Integer index,String item) { + if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} this.conversionReviewVersions.add(index, item); - return (A) this; + return (A)this; } - - public A setToConversionReviewVersions(Integer index, String item) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } - this.conversionReviewVersions.set(index, item); - return (A) this; + public A setToConversionReviewVersions(Integer index,String item) { + if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} + this.conversionReviewVersions.set(index, item); return (A)this; } - public A addToConversionReviewVersions(java.lang.String... items) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.conversionReviewVersions.add(item); - } - return (A) this; + if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} + for (String item : items) {this.conversionReviewVersions.add(item);} return (A)this; } - public A addAllToConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.conversionReviewVersions.add(item); - } - return (A) this; + if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} + for (String item : items) {this.conversionReviewVersions.add(item);} return (A)this; } - public A removeFromConversionReviewVersions(java.lang.String... items) { - for (String item : items) { - if (this.conversionReviewVersions != null) { - this.conversionReviewVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.conversionReviewVersions!= null){ this.conversionReviewVersions.remove(item);}} return (A)this; } - public A removeAllFromConversionReviewVersions(Collection items) { - for (String item : items) { - if (this.conversionReviewVersions != null) { - this.conversionReviewVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.conversionReviewVersions!= null){ this.conversionReviewVersions.remove(item);}} return (A)this; } - public List getConversionReviewVersions() { return this.conversionReviewVersions; } - public String getConversionReviewVersion(Integer index) { return this.conversionReviewVersions.get(index); } - public String getFirstConversionReviewVersion() { return this.conversionReviewVersions.get(0); } - public String getLastConversionReviewVersion() { return this.conversionReviewVersions.get(conversionReviewVersions.size() - 1); } - public String getMatchingConversionReviewVersion(Predicate predicate) { - for (String item : conversionReviewVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: conversionReviewVersions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingConversionReviewVersion(Predicate predicate) { - for (String item : conversionReviewVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: conversionReviewVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withConversionReviewVersions(List conversionReviewVersions) { - if (conversionReviewVersions != null) { - this.conversionReviewVersions = new ArrayList(); - for (String item : conversionReviewVersions) { - this.addToConversionReviewVersions(item); - } - } else { - this.conversionReviewVersions = null; - } - return (A) this; + if (conversionReviewVersions != null) {this.conversionReviewVersions = new ArrayList(); for (String item : conversionReviewVersions){this.addToConversionReviewVersions(item);}} else { this.conversionReviewVersions = null;} return (A) this; } - public A withConversionReviewVersions(java.lang.String... conversionReviewVersions) { - if (this.conversionReviewVersions != null) { - this.conversionReviewVersions.clear(); - } - if (conversionReviewVersions != null) { - for (String item : conversionReviewVersions) { - this.addToConversionReviewVersions(item); - } - } - return (A) this; + if (this.conversionReviewVersions != null) {this.conversionReviewVersions.clear();} + if (conversionReviewVersions != null) {for (String item :conversionReviewVersions){ this.addToConversionReviewVersions(item);}} return (A) this; } - public Boolean hasConversionReviewVersions() { return conversionReviewVersions != null && !conversionReviewVersions.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1WebhookConversionFluentImpl that = (V1WebhookConversionFluentImpl) o; - if (clientConfig != null ? !clientConfig.equals(that.clientConfig) : that.clientConfig != null) - return false; - if (conversionReviewVersions != null - ? !conversionReviewVersions.equals(that.conversionReviewVersions) - : that.conversionReviewVersions != null) return false; + if (clientConfig != null ? !clientConfig.equals(that.clientConfig) :that.clientConfig != null) return false; + if (conversionReviewVersions != null ? !conversionReviewVersions.equals(that.conversionReviewVersions) :that.conversionReviewVersions != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(clientConfig, conversionReviewVersions, super.hashCode()); + return java.util.Objects.hash(clientConfig, conversionReviewVersions, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientConfig != null) { - sb.append("clientConfig:"); - sb.append(clientConfig + ","); - } - if (conversionReviewVersions != null && !conversionReviewVersions.isEmpty()) { - sb.append("conversionReviewVersions:"); - sb.append(conversionReviewVersions); - } + if (clientConfig != null) { sb.append("clientConfig:"); sb.append(clientConfig + ","); } + if (conversionReviewVersions != null && !conversionReviewVersions.isEmpty()) { sb.append("conversionReviewVersions:"); sb.append(conversionReviewVersions); } sb.append("}"); return sb.toString(); } - - class ClientConfigNestedImpl - extends ApiextensionsV1WebhookClientConfigFluentImpl< - V1WebhookConversionFluent.ClientConfigNested> - implements V1WebhookConversionFluent.ClientConfigNested, Nested { + class ClientConfigNestedImpl extends ApiextensionsV1WebhookClientConfigFluentImpl> implements V1WebhookConversionFluent.ClientConfigNested,Nested{ ClientConfigNestedImpl(ApiextensionsV1WebhookClientConfig item) { this.builder = new ApiextensionsV1WebhookClientConfigBuilder(this, item); } - ClientConfigNestedImpl() { this.builder = new ApiextensionsV1WebhookClientConfigBuilder(this); } - ApiextensionsV1WebhookClientConfigBuilder builder; - public N and() { return (N) V1WebhookConversionFluentImpl.this.withClientConfig(builder.build()); } - public N endClientConfig() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java index a633550638..3880ff472e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1WeightedPodAffinityTermBuilder - extends V1WeightedPodAffinityTermFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1WeightedPodAffinityTermBuilder extends V1WeightedPodAffinityTermFluentImpl implements VisitableBuilder{ public V1WeightedPodAffinityTermBuilder() { this(false); } - public V1WeightedPodAffinityTermBuilder(Boolean validationEnabled) { this(new V1WeightedPodAffinityTerm(), validationEnabled); } - public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent) { this(fluent, false); } - - public V1WeightedPodAffinityTermBuilder( - V1WeightedPodAffinityTermFluent fluent, Boolean validationEnabled) { + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,Boolean validationEnabled) { this(fluent, new V1WeightedPodAffinityTerm(), validationEnabled); } - - public V1WeightedPodAffinityTermBuilder( - V1WeightedPodAffinityTermFluent fluent, V1WeightedPodAffinityTerm instance) { + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,V1WeightedPodAffinityTerm instance) { this(fluent, instance, false); } - - public V1WeightedPodAffinityTermBuilder( - V1WeightedPodAffinityTermFluent fluent, - V1WeightedPodAffinityTerm instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,V1WeightedPodAffinityTerm instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPodAffinityTerm(instance.getPodAffinityTerm()); fluent.withWeight(instance.getWeight()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTerm instance) { - this(instance, false); + this(instance,false); } - - public V1WeightedPodAffinityTermBuilder( - V1WeightedPodAffinityTerm instance, Boolean validationEnabled) { - this.fluent = this; + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTerm instance,Boolean validationEnabled) { + this.fluent = this; this.withPodAffinityTerm(instance.getPodAffinityTerm()); this.withWeight(instance.getWeight()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1WeightedPodAffinityTermFluent fluent; Boolean validationEnabled; - public V1WeightedPodAffinityTerm build() { V1WeightedPodAffinityTerm buildable = new V1WeightedPodAffinityTerm(); buildable.setPodAffinityTerm(fluent.getPodAffinityTerm()); buildable.setWeight(fluent.getWeight()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java index 467ca45a09..2bf2d0c393 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1WeightedPodAffinityTermFluent> - extends Fluent { - + /** + * Generated + */ +public interface V1WeightedPodAffinityTermFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildPodAffinityTerm instead. - * * @return The buildable object. */ @Deprecated public V1PodAffinityTerm getPodAffinityTerm(); - public V1PodAffinityTerm buildPodAffinityTerm(); - public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm); - public Boolean hasPodAffinityTerm(); - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTerm(); - - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTermLike( - V1PodAffinityTerm item); - + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item); public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editPodAffinityTerm(); - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTerm(); - - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTermLike( - V1PodAffinityTerm item); - + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTermLike(V1PodAffinityTerm item); public Integer getWeight(); - public A withWeight(Integer weight); - public Boolean hasWeight(); - - public interface PodAffinityTermNested - extends Nested, - V1PodAffinityTermFluent> { + public interface PodAffinityTermNested extends Nested,V1PodAffinityTermFluent>{ public N and(); - public N endPodAffinityTerm(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java index 470fc4b68b..298896013c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java @@ -1,152 +1,106 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1WeightedPodAffinityTermFluentImpl> - extends BaseFluent implements V1WeightedPodAffinityTermFluent { - public V1WeightedPodAffinityTermFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1WeightedPodAffinityTermFluentImpl> extends BaseFluent implements V1WeightedPodAffinityTermFluent{ + public V1WeightedPodAffinityTermFluentImpl() { + } public V1WeightedPodAffinityTermFluentImpl(V1WeightedPodAffinityTerm instance) { this.withPodAffinityTerm(instance.getPodAffinityTerm()); this.withWeight(instance.getWeight()); - } + } private V1PodAffinityTermBuilder podAffinityTerm; private Integer weight; - + /** * This method has been deprecated, please use method buildPodAffinityTerm instead. - * * @return The buildable object. */ @Deprecated public V1PodAffinityTerm getPodAffinityTerm() { - return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; + return this.podAffinityTerm!=null ?this.podAffinityTerm.build():null; } - public V1PodAffinityTerm buildPodAffinityTerm() { - return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; + return this.podAffinityTerm!=null ?this.podAffinityTerm.build():null; } - public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { _visitables.get("podAffinityTerm").remove(this.podAffinityTerm); - if (podAffinityTerm != null) { - this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); - _visitables.get("podAffinityTerm").add(this.podAffinityTerm); - } else { - this.podAffinityTerm = null; - _visitables.get("podAffinityTerm").remove(this.podAffinityTerm); - } - return (A) this; + if (podAffinityTerm!=null){ this.podAffinityTerm= new V1PodAffinityTermBuilder(podAffinityTerm); _visitables.get("podAffinityTerm").add(this.podAffinityTerm);} else { this.podAffinityTerm = null; _visitables.get("podAffinityTerm").remove(this.podAffinityTerm); } return (A) this; } - public Boolean hasPodAffinityTerm() { return this.podAffinityTerm != null; } - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTerm() { return new V1WeightedPodAffinityTermFluentImpl.PodAffinityTermNestedImpl(); } - - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTermLike( - V1PodAffinityTerm item) { + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item) { return new V1WeightedPodAffinityTermFluentImpl.PodAffinityTermNestedImpl(item); } - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editPodAffinityTerm() { return withNewPodAffinityTermLike(getPodAffinityTerm()); } - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTerm() { - return withNewPodAffinityTermLike( - getPodAffinityTerm() != null - ? getPodAffinityTerm() - : new V1PodAffinityTermBuilder().build()); + return withNewPodAffinityTermLike(getPodAffinityTerm() != null ? getPodAffinityTerm(): new V1PodAffinityTermBuilder().build()); } - - public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTermLike( - V1PodAffinityTerm item) { - return withNewPodAffinityTermLike(getPodAffinityTerm() != null ? getPodAffinityTerm() : item); + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTermLike(V1PodAffinityTerm item) { + return withNewPodAffinityTermLike(getPodAffinityTerm() != null ? getPodAffinityTerm(): item); } - public Integer getWeight() { return this.weight; } - public A withWeight(Integer weight) { - this.weight = weight; - return (A) this; + this.weight=weight; return (A) this; } - public Boolean hasWeight() { return this.weight != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1WeightedPodAffinityTermFluentImpl that = (V1WeightedPodAffinityTermFluentImpl) o; - if (podAffinityTerm != null - ? !podAffinityTerm.equals(that.podAffinityTerm) - : that.podAffinityTerm != null) return false; - if (weight != null ? !weight.equals(that.weight) : that.weight != null) return false; + if (podAffinityTerm != null ? !podAffinityTerm.equals(that.podAffinityTerm) :that.podAffinityTerm != null) return false; + if (weight != null ? !weight.equals(that.weight) :that.weight != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(podAffinityTerm, weight, super.hashCode()); + return java.util.Objects.hash(podAffinityTerm, weight, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (podAffinityTerm != null) { - sb.append("podAffinityTerm:"); - sb.append(podAffinityTerm + ","); - } - if (weight != null) { - sb.append("weight:"); - sb.append(weight); - } + if (podAffinityTerm != null) { sb.append("podAffinityTerm:"); sb.append(podAffinityTerm + ","); } + if (weight != null) { sb.append("weight:"); sb.append(weight); } sb.append("}"); return sb.toString(); } - - class PodAffinityTermNestedImpl - extends V1PodAffinityTermFluentImpl> - implements V1WeightedPodAffinityTermFluent.PodAffinityTermNested, Nested { + class PodAffinityTermNestedImpl extends V1PodAffinityTermFluentImpl> implements V1WeightedPodAffinityTermFluent.PodAffinityTermNested,Nested{ PodAffinityTermNestedImpl(V1PodAffinityTerm item) { this.builder = new V1PodAffinityTermBuilder(this, item); } - PodAffinityTermNestedImpl() { this.builder = new V1PodAffinityTermBuilder(this); } - V1PodAffinityTermBuilder builder; - public N and() { return (N) V1WeightedPodAffinityTermFluentImpl.this.withPodAffinityTerm(builder.build()); } - public N endPodAffinityTerm() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java index 74302fd165..a7a5712508 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1WindowsSecurityContextOptionsBuilder - extends V1WindowsSecurityContextOptionsFluentImpl - implements VisitableBuilder< - V1WindowsSecurityContextOptions, V1WindowsSecurityContextOptionsBuilder> { +import java.lang.Boolean; +public class V1WindowsSecurityContextOptionsBuilder extends V1WindowsSecurityContextOptionsFluentImpl implements VisitableBuilder{ public V1WindowsSecurityContextOptionsBuilder() { this(false); } - public V1WindowsSecurityContextOptionsBuilder(Boolean validationEnabled) { this(new V1WindowsSecurityContextOptions(), validationEnabled); } - public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent) { this(fluent, false); } - - public V1WindowsSecurityContextOptionsBuilder( - V1WindowsSecurityContextOptionsFluent fluent, Boolean validationEnabled) { + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,Boolean validationEnabled) { this(fluent, new V1WindowsSecurityContextOptions(), validationEnabled); } - - public V1WindowsSecurityContextOptionsBuilder( - V1WindowsSecurityContextOptionsFluent fluent, V1WindowsSecurityContextOptions instance) { + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,V1WindowsSecurityContextOptions instance) { this(fluent, instance, false); } - - public V1WindowsSecurityContextOptionsBuilder( - V1WindowsSecurityContextOptionsFluent fluent, - V1WindowsSecurityContextOptions instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,V1WindowsSecurityContextOptions instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); fluent.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); @@ -53,16 +28,13 @@ public V1WindowsSecurityContextOptionsBuilder( fluent.withRunAsUserName(instance.getRunAsUserName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptions instance) { - this(instance, false); + this(instance,false); } - - public V1WindowsSecurityContextOptionsBuilder( - V1WindowsSecurityContextOptions instance, Boolean validationEnabled) { - this.fluent = this; + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptions instance,Boolean validationEnabled) { + this.fluent = this; this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); this.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); @@ -71,12 +43,10 @@ public V1WindowsSecurityContextOptionsBuilder( this.withRunAsUserName(instance.getRunAsUserName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1WindowsSecurityContextOptionsFluent fluent; Boolean validationEnabled; - public V1WindowsSecurityContextOptions build() { V1WindowsSecurityContextOptions buildable = new V1WindowsSecurityContextOptions(); buildable.setGmsaCredentialSpec(fluent.getGmsaCredentialSpec()); @@ -85,4 +55,5 @@ public V1WindowsSecurityContextOptions build() { buildable.setRunAsUserName(fluent.getRunAsUserName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java index 43bcae5ce5..5a39f38dda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java @@ -1,46 +1,25 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1WindowsSecurityContextOptionsFluent< - A extends V1WindowsSecurityContextOptionsFluent> - extends Fluent { + /** + * Generated + */ +public interface V1WindowsSecurityContextOptionsFluent> extends Fluent{ public String getGmsaCredentialSpec(); - public A withGmsaCredentialSpec(String gmsaCredentialSpec); - public Boolean hasGmsaCredentialSpec(); - public String getGmsaCredentialSpecName(); - public A withGmsaCredentialSpecName(String gmsaCredentialSpecName); - public Boolean hasGmsaCredentialSpecName(); - public Boolean getHostProcess(); - public A withHostProcess(Boolean hostProcess); - public Boolean hasHostProcess(); - public String getRunAsUserName(); - public A withRunAsUserName(String runAsUserName); - public Boolean hasRunAsUserName(); - public A withHostProcess(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java index 5aa3d70e57..591fcd8306 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java @@ -1,26 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1WindowsSecurityContextOptionsFluentImpl< - A extends V1WindowsSecurityContextOptionsFluent> - extends BaseFluent implements V1WindowsSecurityContextOptionsFluent { - public V1WindowsSecurityContextOptionsFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1WindowsSecurityContextOptionsFluentImpl> extends BaseFluent implements V1WindowsSecurityContextOptionsFluent{ + public V1WindowsSecurityContextOptionsFluentImpl() { + } public V1WindowsSecurityContextOptionsFluentImpl(V1WindowsSecurityContextOptions instance) { this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); @@ -29,112 +21,73 @@ public V1WindowsSecurityContextOptionsFluentImpl(V1WindowsSecurityContextOptions this.withHostProcess(instance.getHostProcess()); this.withRunAsUserName(instance.getRunAsUserName()); - } + } private String gmsaCredentialSpec; private String gmsaCredentialSpecName; private Boolean hostProcess; private String runAsUserName; - public String getGmsaCredentialSpec() { return this.gmsaCredentialSpec; } - public A withGmsaCredentialSpec(String gmsaCredentialSpec) { - this.gmsaCredentialSpec = gmsaCredentialSpec; - return (A) this; + this.gmsaCredentialSpec=gmsaCredentialSpec; return (A) this; } - public Boolean hasGmsaCredentialSpec() { return this.gmsaCredentialSpec != null; } - public String getGmsaCredentialSpecName() { return this.gmsaCredentialSpecName; } - public A withGmsaCredentialSpecName(String gmsaCredentialSpecName) { - this.gmsaCredentialSpecName = gmsaCredentialSpecName; - return (A) this; + this.gmsaCredentialSpecName=gmsaCredentialSpecName; return (A) this; } - public Boolean hasGmsaCredentialSpecName() { return this.gmsaCredentialSpecName != null; } - public Boolean getHostProcess() { return this.hostProcess; } - public A withHostProcess(Boolean hostProcess) { - this.hostProcess = hostProcess; - return (A) this; + this.hostProcess=hostProcess; return (A) this; } - public Boolean hasHostProcess() { return this.hostProcess != null; } - public String getRunAsUserName() { return this.runAsUserName; } - public A withRunAsUserName(String runAsUserName) { - this.runAsUserName = runAsUserName; - return (A) this; + this.runAsUserName=runAsUserName; return (A) this; } - public Boolean hasRunAsUserName() { return this.runAsUserName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1WindowsSecurityContextOptionsFluentImpl that = (V1WindowsSecurityContextOptionsFluentImpl) o; - if (gmsaCredentialSpec != null - ? !gmsaCredentialSpec.equals(that.gmsaCredentialSpec) - : that.gmsaCredentialSpec != null) return false; - if (gmsaCredentialSpecName != null - ? !gmsaCredentialSpecName.equals(that.gmsaCredentialSpecName) - : that.gmsaCredentialSpecName != null) return false; - if (hostProcess != null ? !hostProcess.equals(that.hostProcess) : that.hostProcess != null) - return false; - if (runAsUserName != null - ? !runAsUserName.equals(that.runAsUserName) - : that.runAsUserName != null) return false; + if (gmsaCredentialSpec != null ? !gmsaCredentialSpec.equals(that.gmsaCredentialSpec) :that.gmsaCredentialSpec != null) return false; + if (gmsaCredentialSpecName != null ? !gmsaCredentialSpecName.equals(that.gmsaCredentialSpecName) :that.gmsaCredentialSpecName != null) return false; + if (hostProcess != null ? !hostProcess.equals(that.hostProcess) :that.hostProcess != null) return false; + if (runAsUserName != null ? !runAsUserName.equals(that.runAsUserName) :that.runAsUserName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName, super.hashCode()); + return java.util.Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (gmsaCredentialSpec != null) { - sb.append("gmsaCredentialSpec:"); - sb.append(gmsaCredentialSpec + ","); - } - if (gmsaCredentialSpecName != null) { - sb.append("gmsaCredentialSpecName:"); - sb.append(gmsaCredentialSpecName + ","); - } - if (hostProcess != null) { - sb.append("hostProcess:"); - sb.append(hostProcess + ","); - } - if (runAsUserName != null) { - sb.append("runAsUserName:"); - sb.append(runAsUserName); - } + if (gmsaCredentialSpec != null) { sb.append("gmsaCredentialSpec:"); sb.append(gmsaCredentialSpec + ","); } + if (gmsaCredentialSpecName != null) { sb.append("gmsaCredentialSpecName:"); sb.append(gmsaCredentialSpecName + ","); } + if (hostProcess != null) { sb.append("hostProcess:"); sb.append(hostProcess + ","); } + if (runAsUserName != null) { sb.append("runAsUserName:"); sb.append(runAsUserName); } sb.append("}"); return sb.toString(); } - public A withHostProcess() { return withHostProcess(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java index 52c5e896d8..6d8b12947f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1alpha1ClusterCIDRBuilder - extends V1alpha1ClusterCIDRFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1ClusterCIDRBuilder extends V1alpha1ClusterCIDRFluentImpl implements VisitableBuilder{ public V1alpha1ClusterCIDRBuilder() { this(false); } - public V1alpha1ClusterCIDRBuilder(Boolean validationEnabled) { this(new V1alpha1ClusterCIDR(), validationEnabled); } - public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent) { this(fluent, false); } - - public V1alpha1ClusterCIDRBuilder( - V1alpha1ClusterCIDRFluent fluent, Boolean validationEnabled) { + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1ClusterCIDR(), validationEnabled); } - - public V1alpha1ClusterCIDRBuilder( - V1alpha1ClusterCIDRFluent fluent, V1alpha1ClusterCIDR instance) { + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent,V1alpha1ClusterCIDR instance) { this(fluent, instance, false); } - - public V1alpha1ClusterCIDRBuilder( - V1alpha1ClusterCIDRFluent fluent, - V1alpha1ClusterCIDR instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent,V1alpha1ClusterCIDR instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -52,15 +28,13 @@ public V1alpha1ClusterCIDRBuilder( fluent.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -69,12 +43,10 @@ public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance, Boolean validati this.withSpec(instance.getSpec()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1ClusterCIDRFluent fluent; Boolean validationEnabled; - public V1alpha1ClusterCIDR build() { V1alpha1ClusterCIDR buildable = new V1alpha1ClusterCIDR(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1alpha1ClusterCIDR build() { buildable.setSpec(fluent.getSpec()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java index 8267780c70..b687dccd67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java @@ -1,94 +1,60 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1alpha1ClusterCIDRFluent> - extends Fluent { + /** + * Generated + */ +public interface V1alpha1ClusterCIDRFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadata(); - public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1alpha1ClusterCIDRFluent.MetadataNested editMetadata(); - public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadata(); - public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1alpha1ClusterCIDRSpec getSpec(); - public V1alpha1ClusterCIDRSpec buildSpec(); - public A withSpec(V1alpha1ClusterCIDRSpec spec); - public Boolean hasSpec(); - public V1alpha1ClusterCIDRFluent.SpecNested withNewSpec(); - public V1alpha1ClusterCIDRFluent.SpecNested withNewSpecLike(V1alpha1ClusterCIDRSpec item); - public V1alpha1ClusterCIDRFluent.SpecNested editSpec(); - public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpec(); - public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpecLike(V1alpha1ClusterCIDRSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1alpha1ClusterCIDRSpecFluent> { + public interface SpecNested extends Nested,V1alpha1ClusterCIDRSpecFluent>{ public N and(); - public N endSpec(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java index fadca907a6..5d088385ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1ClusterCIDRFluentImpl> - extends BaseFluent implements V1alpha1ClusterCIDRFluent { - public V1alpha1ClusterCIDRFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1ClusterCIDRFluentImpl> extends BaseFluent implements V1alpha1ClusterCIDRFluent{ + public V1alpha1ClusterCIDRFluentImpl() { + } public V1alpha1ClusterCIDRFluentImpl(V1alpha1ClusterCIDR instance) { this.withApiVersion(instance.getApiVersion()); @@ -29,221 +23,152 @@ public V1alpha1ClusterCIDRFluentImpl(V1alpha1ClusterCIDR instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1alpha1ClusterCIDRSpecBuilder spec; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadata() { return new V1alpha1ClusterCIDRFluentImpl.MetadataNestedImpl(); } - public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1alpha1ClusterCIDRFluentImpl.MetadataNestedImpl(item); } - public V1alpha1ClusterCIDRFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1alpha1ClusterCIDRSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1alpha1ClusterCIDRSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1alpha1ClusterCIDRSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1alpha1ClusterCIDRSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1alpha1ClusterCIDRSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1alpha1ClusterCIDRFluent.SpecNested withNewSpec() { return new V1alpha1ClusterCIDRFluentImpl.SpecNestedImpl(); } - public V1alpha1ClusterCIDRFluent.SpecNested withNewSpecLike(V1alpha1ClusterCIDRSpec item) { return new V1alpha1ClusterCIDRFluentImpl.SpecNestedImpl(item); } - public V1alpha1ClusterCIDRFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1alpha1ClusterCIDRSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1alpha1ClusterCIDRSpecBuilder().build()); } - public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpecLike(V1alpha1ClusterCIDRSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1ClusterCIDRFluentImpl that = (V1alpha1ClusterCIDRFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1alpha1ClusterCIDRFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1alpha1ClusterCIDRFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1alpha1ClusterCIDRFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1alpha1ClusterCIDRSpecFluentImpl> - implements V1alpha1ClusterCIDRFluent.SpecNested, Nested { + class SpecNestedImpl extends V1alpha1ClusterCIDRSpecFluentImpl> implements V1alpha1ClusterCIDRFluent.SpecNested,Nested{ SpecNestedImpl(V1alpha1ClusterCIDRSpec item) { this.builder = new V1alpha1ClusterCIDRSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1alpha1ClusterCIDRSpecBuilder(this); } - V1alpha1ClusterCIDRSpecBuilder builder; - public N and() { return (N) V1alpha1ClusterCIDRFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java index a5bd491abd..d061e66864 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1alpha1ClusterCIDRListBuilder - extends V1alpha1ClusterCIDRListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1ClusterCIDRListBuilder extends V1alpha1ClusterCIDRListFluentImpl implements VisitableBuilder{ public V1alpha1ClusterCIDRListBuilder() { this(false); } - public V1alpha1ClusterCIDRListBuilder(Boolean validationEnabled) { this(new V1alpha1ClusterCIDRList(), validationEnabled); } - public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent) { this(fluent, false); } - - public V1alpha1ClusterCIDRListBuilder( - V1alpha1ClusterCIDRListFluent fluent, Boolean validationEnabled) { + public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1ClusterCIDRList(), validationEnabled); } - - public V1alpha1ClusterCIDRListBuilder( - V1alpha1ClusterCIDRListFluent fluent, V1alpha1ClusterCIDRList instance) { + public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent,V1alpha1ClusterCIDRList instance) { this(fluent, instance, false); } - - public V1alpha1ClusterCIDRListBuilder( - V1alpha1ClusterCIDRListFluent fluent, - V1alpha1ClusterCIDRList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent,V1alpha1ClusterCIDRList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1alpha1ClusterCIDRListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRList instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1ClusterCIDRListBuilder( - V1alpha1ClusterCIDRList instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1alpha1ClusterCIDRListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1ClusterCIDRListFluent fluent; Boolean validationEnabled; - public V1alpha1ClusterCIDRList build() { V1alpha1ClusterCIDRList buildable = new V1alpha1ClusterCIDRList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1alpha1ClusterCIDRList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java index c83b98070b..6f610312eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1alpha1ClusterCIDRListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1alpha1ClusterCIDRListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1alpha1ClusterCIDR item); - - public A setToItems(Integer index, V1alpha1ClusterCIDR item); - + public A addToItems(Integer index,V1alpha1ClusterCIDR item); + public A setToItems(Integer index,V1alpha1ClusterCIDR item); public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1alpha1ClusterCIDR buildItem(Integer index); - public V1alpha1ClusterCIDR buildFirstItem(); - public V1alpha1ClusterCIDR buildLastItem(); - public V1alpha1ClusterCIDR buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items); - public Boolean hasItems(); - public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItem(); - public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItemLike(V1alpha1ClusterCIDR item); - - public V1alpha1ClusterCIDRListFluent.ItemsNested setNewItemLike( - Integer index, V1alpha1ClusterCIDR item); - + public V1alpha1ClusterCIDRListFluent.ItemsNested setNewItemLike(Integer index,V1alpha1ClusterCIDR item); public V1alpha1ClusterCIDRListFluent.ItemsNested editItem(Integer index); - public V1alpha1ClusterCIDRListFluent.ItemsNested editFirstItem(); - public V1alpha1ClusterCIDRListFluent.ItemsNested editLastItem(); - - public V1alpha1ClusterCIDRListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1alpha1ClusterCIDRListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadata(); - public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1alpha1ClusterCIDRListFluent.MetadataNested editMetadata(); - public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadata(); - public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1alpha1ClusterCIDRFluent> { + public interface ItemsNested extends Nested,V1alpha1ClusterCIDRFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java index 7cc32cac9c..a46109a617 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1ClusterCIDRListFluentImpl> - extends BaseFluent implements V1alpha1ClusterCIDRListFluent { - public V1alpha1ClusterCIDRListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1ClusterCIDRListFluentImpl> extends BaseFluent implements V1alpha1ClusterCIDRListFluent{ + public V1alpha1ClusterCIDRListFluentImpl() { + } public V1alpha1ClusterCIDRListFluentImpl(V1alpha1ClusterCIDRList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1alpha1ClusterCIDRListFluentImpl(V1alpha1ClusterCIDRList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1alpha1ClusterCIDR item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1alpha1ClusterCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1alpha1ClusterCIDR item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1alpha1ClusterCIDR item) { + if (this.items == null) {this.items = new ArrayList();} V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1alpha1ClusterCIDR item : items) { - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1alpha1ClusterCIDR item : items) { - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { - for (V1alpha1ClusterCIDR item : items) { - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1alpha1ClusterCIDR item : items) { - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1alpha1ClusterCIDR buildItem(Integer index) { return this.items.get(index).build(); } - public V1alpha1ClusterCIDR buildFirstItem() { return this.items.get(0).build(); } - public V1alpha1ClusterCIDR buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1alpha1ClusterCIDR buildMatchingItem(Predicate predicate) { - for (V1alpha1ClusterCIDRBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1alpha1ClusterCIDRBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1ClusterCIDRBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1alpha1ClusterCIDRBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1ClusterCIDR item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1alpha1ClusterCIDR item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1alpha1ClusterCIDR item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1alpha1ClusterCIDR item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItem() { return new V1alpha1ClusterCIDRListFluentImpl.ItemsNestedImpl(); } - public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItemLike(V1alpha1ClusterCIDR item) { return new V1alpha1ClusterCIDRListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1alpha1ClusterCIDRListFluent.ItemsNested setNewItemLike( - Integer index, V1alpha1ClusterCIDR item) { + public V1alpha1ClusterCIDRListFluent.ItemsNested setNewItemLike(Integer index,V1alpha1ClusterCIDR item) { return new V1alpha1ClusterCIDRListFluentImpl.ItemsNestedImpl(index, item); } - public V1alpha1ClusterCIDRListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1alpha1ClusterCIDRListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1alpha1ClusterCIDRListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1alpha1ClusterCIDRListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1alpha1ClusterCIDRListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1alpha1ClusterCIDRListFluentImpl.MetadataNestedImpl(); } - public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1alpha1ClusterCIDRListFluentImpl.MetadataNestedImpl(item); } - public V1alpha1ClusterCIDRListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1ClusterCIDRListFluentImpl that = (V1alpha1ClusterCIDRListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1alpha1ClusterCIDRFluentImpl> - implements V1alpha1ClusterCIDRListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1alpha1ClusterCIDR item) { + class ItemsNestedImpl extends V1alpha1ClusterCIDRFluentImpl> implements V1alpha1ClusterCIDRListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1alpha1ClusterCIDR item) { this.index = index; this.builder = new V1alpha1ClusterCIDRBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1alpha1ClusterCIDRBuilder(this); } - V1alpha1ClusterCIDRBuilder builder; Integer index; - public N and() { - return (N) V1alpha1ClusterCIDRListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1alpha1ClusterCIDRListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1alpha1ClusterCIDRListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1alpha1ClusterCIDRListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1alpha1ClusterCIDRListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java index 961c90c94b..7f614ea424 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1alpha1ClusterCIDRSpecBuilder - extends V1alpha1ClusterCIDRSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1ClusterCIDRSpecBuilder extends V1alpha1ClusterCIDRSpecFluentImpl implements VisitableBuilder{ public V1alpha1ClusterCIDRSpecBuilder() { this(false); } - public V1alpha1ClusterCIDRSpecBuilder(Boolean validationEnabled) { this(new V1alpha1ClusterCIDRSpec(), validationEnabled); } - public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent) { this(fluent, false); } - - public V1alpha1ClusterCIDRSpecBuilder( - V1alpha1ClusterCIDRSpecFluent fluent, Boolean validationEnabled) { + public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1ClusterCIDRSpec(), validationEnabled); } - - public V1alpha1ClusterCIDRSpecBuilder( - V1alpha1ClusterCIDRSpecFluent fluent, V1alpha1ClusterCIDRSpec instance) { + public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent,V1alpha1ClusterCIDRSpec instance) { this(fluent, instance, false); } - - public V1alpha1ClusterCIDRSpecBuilder( - V1alpha1ClusterCIDRSpecFluent fluent, - V1alpha1ClusterCIDRSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent,V1alpha1ClusterCIDRSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withIpv4(instance.getIpv4()); fluent.withIpv6(instance.getIpv6()); @@ -52,16 +28,13 @@ public V1alpha1ClusterCIDRSpecBuilder( fluent.withPerNodeHostBits(instance.getPerNodeHostBits()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpec instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1ClusterCIDRSpecBuilder( - V1alpha1ClusterCIDRSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withIpv4(instance.getIpv4()); this.withIpv6(instance.getIpv6()); @@ -70,12 +43,10 @@ public V1alpha1ClusterCIDRSpecBuilder( this.withPerNodeHostBits(instance.getPerNodeHostBits()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1ClusterCIDRSpecFluent fluent; Boolean validationEnabled; - public V1alpha1ClusterCIDRSpec build() { V1alpha1ClusterCIDRSpec buildable = new V1alpha1ClusterCIDRSpec(); buildable.setIpv4(fluent.getIpv4()); @@ -84,4 +55,5 @@ public V1alpha1ClusterCIDRSpec build() { buildable.setPerNodeHostBits(fluent.getPerNodeHostBits()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java index fe2a381b76..b27a80ed08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java @@ -1,71 +1,44 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1alpha1ClusterCIDRSpecFluent> - extends Fluent { + /** + * Generated + */ +public interface V1alpha1ClusterCIDRSpecFluent> extends Fluent{ public String getIpv4(); - public A withIpv4(String ipv4); - public Boolean hasIpv4(); - public String getIpv6(); - public A withIpv6(String ipv6); - public Boolean hasIpv6(); - + /** * This method has been deprecated, please use method buildNodeSelector instead. - * * @return The buildable object. */ @Deprecated public V1NodeSelector getNodeSelector(); - public V1NodeSelector buildNodeSelector(); - public A withNodeSelector(V1NodeSelector nodeSelector); - public Boolean hasNodeSelector(); - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelector(); - - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelectorLike( - V1NodeSelector item); - + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item); public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editNodeSelector(); - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelector(); - - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelectorLike( - V1NodeSelector item); - + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item); public Integer getPerNodeHostBits(); - public A withPerNodeHostBits(Integer perNodeHostBits); - public Boolean hasPerNodeHostBits(); - - public interface NodeSelectorNested - extends Nested, V1NodeSelectorFluent> { + public interface NodeSelectorNested extends Nested,V1NodeSelectorFluent>{ public N and(); - public N endNodeSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java index 22403cf772..7a0f0562c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java @@ -1,26 +1,21 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1ClusterCIDRSpecFluentImpl> - extends BaseFluent implements V1alpha1ClusterCIDRSpecFluent { - public V1alpha1ClusterCIDRSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1ClusterCIDRSpecFluentImpl> extends BaseFluent implements V1alpha1ClusterCIDRSpecFluent{ + public V1alpha1ClusterCIDRSpecFluentImpl() { + } public V1alpha1ClusterCIDRSpecFluentImpl(V1alpha1ClusterCIDRSpec instance) { this.withIpv4(instance.getIpv4()); @@ -29,165 +24,111 @@ public V1alpha1ClusterCIDRSpecFluentImpl(V1alpha1ClusterCIDRSpec instance) { this.withNodeSelector(instance.getNodeSelector()); this.withPerNodeHostBits(instance.getPerNodeHostBits()); - } + } private String ipv4; private String ipv6; private V1NodeSelectorBuilder nodeSelector; private Integer perNodeHostBits; - public String getIpv4() { return this.ipv4; } - public A withIpv4(String ipv4) { - this.ipv4 = ipv4; - return (A) this; + this.ipv4=ipv4; return (A) this; } - public Boolean hasIpv4() { return this.ipv4 != null; } - public String getIpv6() { return this.ipv6; } - public A withIpv6(String ipv6) { - this.ipv6 = ipv6; - return (A) this; + this.ipv6=ipv6; return (A) this; } - public Boolean hasIpv6() { return this.ipv6 != null; } - + /** * This method has been deprecated, please use method buildNodeSelector instead. - * * @return The buildable object. */ @Deprecated public V1NodeSelector getNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + return this.nodeSelector!=null ?this.nodeSelector.build():null; } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + return this.nodeSelector!=null ?this.nodeSelector.build():null; } - public A withNodeSelector(V1NodeSelector nodeSelector) { _visitables.get("nodeSelector").remove(this.nodeSelector); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - _visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - _visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; + if (nodeSelector!=null){ this.nodeSelector= new V1NodeSelectorBuilder(nodeSelector); _visitables.get("nodeSelector").add(this.nodeSelector);} else { this.nodeSelector = null; _visitables.get("nodeSelector").remove(this.nodeSelector); } return (A) this; } - public Boolean hasNodeSelector() { return this.nodeSelector != null; } - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelector() { return new V1alpha1ClusterCIDRSpecFluentImpl.NodeSelectorNestedImpl(); } - - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelectorLike( - V1NodeSelector item) { + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { return new V1alpha1ClusterCIDRSpecFluentImpl.NodeSelectorNestedImpl(item); } - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editNodeSelector() { return withNewNodeSelectorLike(getNodeSelector()); } - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike( - getNodeSelector() != null ? getNodeSelector() : new V1NodeSelectorBuilder().build()); + return withNewNodeSelectorLike(getNodeSelector() != null ? getNodeSelector(): new V1NodeSelectorBuilder().build()); } - - public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelectorLike( - V1NodeSelector item) { - return withNewNodeSelectorLike(getNodeSelector() != null ? getNodeSelector() : item); + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(getNodeSelector() != null ? getNodeSelector(): item); } - public Integer getPerNodeHostBits() { return this.perNodeHostBits; } - public A withPerNodeHostBits(Integer perNodeHostBits) { - this.perNodeHostBits = perNodeHostBits; - return (A) this; + this.perNodeHostBits=perNodeHostBits; return (A) this; } - public Boolean hasPerNodeHostBits() { return this.perNodeHostBits != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1ClusterCIDRSpecFluentImpl that = (V1alpha1ClusterCIDRSpecFluentImpl) o; - if (ipv4 != null ? !ipv4.equals(that.ipv4) : that.ipv4 != null) return false; - if (ipv6 != null ? !ipv6.equals(that.ipv6) : that.ipv6 != null) return false; - if (nodeSelector != null ? !nodeSelector.equals(that.nodeSelector) : that.nodeSelector != null) - return false; - if (perNodeHostBits != null - ? !perNodeHostBits.equals(that.perNodeHostBits) - : that.perNodeHostBits != null) return false; + if (ipv4 != null ? !ipv4.equals(that.ipv4) :that.ipv4 != null) return false; + if (ipv6 != null ? !ipv6.equals(that.ipv6) :that.ipv6 != null) return false; + if (nodeSelector != null ? !nodeSelector.equals(that.nodeSelector) :that.nodeSelector != null) return false; + if (perNodeHostBits != null ? !perNodeHostBits.equals(that.perNodeHostBits) :that.perNodeHostBits != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits, super.hashCode()); + return java.util.Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ipv4 != null) { - sb.append("ipv4:"); - sb.append(ipv4 + ","); - } - if (ipv6 != null) { - sb.append("ipv6:"); - sb.append(ipv6 + ","); - } - if (nodeSelector != null) { - sb.append("nodeSelector:"); - sb.append(nodeSelector + ","); - } - if (perNodeHostBits != null) { - sb.append("perNodeHostBits:"); - sb.append(perNodeHostBits); - } + if (ipv4 != null) { sb.append("ipv4:"); sb.append(ipv4 + ","); } + if (ipv6 != null) { sb.append("ipv6:"); sb.append(ipv6 + ","); } + if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector + ","); } + if (perNodeHostBits != null) { sb.append("perNodeHostBits:"); sb.append(perNodeHostBits); } sb.append("}"); return sb.toString(); } - - class NodeSelectorNestedImpl - extends V1NodeSelectorFluentImpl> - implements V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested, Nested { + class NodeSelectorNestedImpl extends V1NodeSelectorFluentImpl> implements V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested,Nested{ NodeSelectorNestedImpl(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - NodeSelectorNestedImpl() { this.builder = new V1NodeSelectorBuilder(this); } - V1NodeSelectorBuilder builder; - public N and() { return (N) V1alpha1ClusterCIDRSpecFluentImpl.this.withNodeSelector(builder.build()); } - public N endNodeSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java index 684226f5a1..222570a73b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1alpha1ServerStorageVersionBuilder - extends V1alpha1ServerStorageVersionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1ServerStorageVersionBuilder extends V1alpha1ServerStorageVersionFluentImpl implements VisitableBuilder{ public V1alpha1ServerStorageVersionBuilder() { this(false); } - public V1alpha1ServerStorageVersionBuilder(Boolean validationEnabled) { this(new V1alpha1ServerStorageVersion(), validationEnabled); } - public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent) { this(fluent, false); } - - public V1alpha1ServerStorageVersionBuilder( - V1alpha1ServerStorageVersionFluent fluent, Boolean validationEnabled) { + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1ServerStorageVersion(), validationEnabled); } - - public V1alpha1ServerStorageVersionBuilder( - V1alpha1ServerStorageVersionFluent fluent, V1alpha1ServerStorageVersion instance) { + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,V1alpha1ServerStorageVersion instance) { this(fluent, instance, false); } - - public V1alpha1ServerStorageVersionBuilder( - V1alpha1ServerStorageVersionFluent fluent, - V1alpha1ServerStorageVersion instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,V1alpha1ServerStorageVersion instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiServerID(instance.getApiServerID()); fluent.withDecodableVersions(instance.getDecodableVersions()); fluent.withEncodingVersion(instance.getEncodingVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersion instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1ServerStorageVersionBuilder( - V1alpha1ServerStorageVersion instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersion instance,Boolean validationEnabled) { + this.fluent = this; this.withApiServerID(instance.getApiServerID()); this.withDecodableVersions(instance.getDecodableVersions()); this.withEncodingVersion(instance.getEncodingVersion()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1ServerStorageVersionFluent fluent; Boolean validationEnabled; - public V1alpha1ServerStorageVersion build() { V1alpha1ServerStorageVersion buildable = new V1alpha1ServerStorageVersion(); buildable.setApiServerID(fluent.getApiServerID()); @@ -79,4 +50,5 @@ public V1alpha1ServerStorageVersion build() { buildable.setEncodingVersion(fluent.getEncodingVersion()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java index 770bf051c4..8891e9b7b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java @@ -1,64 +1,38 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1alpha1ServerStorageVersionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1alpha1ServerStorageVersionFluent> extends Fluent{ public String getApiServerID(); - public A withApiServerID(String apiServerID); - public Boolean hasApiServerID(); - - public A addToDecodableVersions(Integer index, String item); - - public A setToDecodableVersions(Integer index, String item); - + public A addToDecodableVersions(Integer index,String item); + public A setToDecodableVersions(Integer index,String item); public A addToDecodableVersions(java.lang.String... items); - public A addAllToDecodableVersions(Collection items); - public A removeFromDecodableVersions(java.lang.String... items); - public A removeAllFromDecodableVersions(Collection items); - public List getDecodableVersions(); - public String getDecodableVersion(Integer index); - public String getFirstDecodableVersion(); - public String getLastDecodableVersion(); - public String getMatchingDecodableVersion(Predicate predicate); - public Boolean hasMatchingDecodableVersion(Predicate predicate); - public A withDecodableVersions(List decodableVersions); - public A withDecodableVersions(java.lang.String... decodableVersions); - public Boolean hasDecodableVersions(); - public String getEncodingVersion(); - public A withEncodingVersion(String encodingVersion); - public Boolean hasEncodingVersion(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java index 18073e0d69..76064f90f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java @@ -1,219 +1,123 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1ServerStorageVersionFluentImpl> - extends BaseFluent implements V1alpha1ServerStorageVersionFluent { - public V1alpha1ServerStorageVersionFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1ServerStorageVersionFluentImpl> extends BaseFluent implements V1alpha1ServerStorageVersionFluent{ + public V1alpha1ServerStorageVersionFluentImpl() { + } public V1alpha1ServerStorageVersionFluentImpl(V1alpha1ServerStorageVersion instance) { this.withApiServerID(instance.getApiServerID()); this.withDecodableVersions(instance.getDecodableVersions()); this.withEncodingVersion(instance.getEncodingVersion()); - } + } private String apiServerID; private List decodableVersions; private String encodingVersion; - public String getApiServerID() { return this.apiServerID; } - public A withApiServerID(String apiServerID) { - this.apiServerID = apiServerID; - return (A) this; + this.apiServerID=apiServerID; return (A) this; } - public Boolean hasApiServerID() { return this.apiServerID != null; } - - public A addToDecodableVersions(Integer index, String item) { - if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); - } + public A addToDecodableVersions(Integer index,String item) { + if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} this.decodableVersions.add(index, item); - return (A) this; + return (A)this; } - - public A setToDecodableVersions(Integer index, String item) { - if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); - } - this.decodableVersions.set(index, item); - return (A) this; + public A setToDecodableVersions(Integer index,String item) { + if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} + this.decodableVersions.set(index, item); return (A)this; } - public A addToDecodableVersions(java.lang.String... items) { - if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); - } - for (String item : items) { - this.decodableVersions.add(item); - } - return (A) this; + if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} + for (String item : items) {this.decodableVersions.add(item);} return (A)this; } - public A addAllToDecodableVersions(Collection items) { - if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); - } - for (String item : items) { - this.decodableVersions.add(item); - } - return (A) this; + if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} + for (String item : items) {this.decodableVersions.add(item);} return (A)this; } - public A removeFromDecodableVersions(java.lang.String... items) { - for (String item : items) { - if (this.decodableVersions != null) { - this.decodableVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.decodableVersions!= null){ this.decodableVersions.remove(item);}} return (A)this; } - public A removeAllFromDecodableVersions(Collection items) { - for (String item : items) { - if (this.decodableVersions != null) { - this.decodableVersions.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.decodableVersions!= null){ this.decodableVersions.remove(item);}} return (A)this; } - public List getDecodableVersions() { return this.decodableVersions; } - public String getDecodableVersion(Integer index) { return this.decodableVersions.get(index); } - public String getFirstDecodableVersion() { return this.decodableVersions.get(0); } - public String getLastDecodableVersion() { return this.decodableVersions.get(decodableVersions.size() - 1); } - public String getMatchingDecodableVersion(Predicate predicate) { - for (String item : decodableVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: decodableVersions) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingDecodableVersion(Predicate predicate) { - for (String item : decodableVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: decodableVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withDecodableVersions(List decodableVersions) { - if (decodableVersions != null) { - this.decodableVersions = new ArrayList(); - for (String item : decodableVersions) { - this.addToDecodableVersions(item); - } - } else { - this.decodableVersions = null; - } - return (A) this; + if (decodableVersions != null) {this.decodableVersions = new ArrayList(); for (String item : decodableVersions){this.addToDecodableVersions(item);}} else { this.decodableVersions = null;} return (A) this; } - public A withDecodableVersions(java.lang.String... decodableVersions) { - if (this.decodableVersions != null) { - this.decodableVersions.clear(); - } - if (decodableVersions != null) { - for (String item : decodableVersions) { - this.addToDecodableVersions(item); - } - } - return (A) this; + if (this.decodableVersions != null) {this.decodableVersions.clear();} + if (decodableVersions != null) {for (String item :decodableVersions){ this.addToDecodableVersions(item);}} return (A) this; } - public Boolean hasDecodableVersions() { return decodableVersions != null && !decodableVersions.isEmpty(); } - public String getEncodingVersion() { return this.encodingVersion; } - public A withEncodingVersion(String encodingVersion) { - this.encodingVersion = encodingVersion; - return (A) this; + this.encodingVersion=encodingVersion; return (A) this; } - public Boolean hasEncodingVersion() { return this.encodingVersion != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1ServerStorageVersionFluentImpl that = (V1alpha1ServerStorageVersionFluentImpl) o; - if (apiServerID != null ? !apiServerID.equals(that.apiServerID) : that.apiServerID != null) - return false; - if (decodableVersions != null - ? !decodableVersions.equals(that.decodableVersions) - : that.decodableVersions != null) return false; - if (encodingVersion != null - ? !encodingVersion.equals(that.encodingVersion) - : that.encodingVersion != null) return false; + if (apiServerID != null ? !apiServerID.equals(that.apiServerID) :that.apiServerID != null) return false; + if (decodableVersions != null ? !decodableVersions.equals(that.decodableVersions) :that.decodableVersions != null) return false; + if (encodingVersion != null ? !encodingVersion.equals(that.encodingVersion) :that.encodingVersion != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiServerID, decodableVersions, encodingVersion, super.hashCode()); + return java.util.Objects.hash(apiServerID, decodableVersions, encodingVersion, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiServerID != null) { - sb.append("apiServerID:"); - sb.append(apiServerID + ","); - } - if (decodableVersions != null && !decodableVersions.isEmpty()) { - sb.append("decodableVersions:"); - sb.append(decodableVersions + ","); - } - if (encodingVersion != null) { - sb.append("encodingVersion:"); - sb.append(encodingVersion); - } + if (apiServerID != null) { sb.append("apiServerID:"); sb.append(apiServerID + ","); } + if (decodableVersions != null && !decodableVersions.isEmpty()) { sb.append("decodableVersions:"); sb.append(decodableVersions + ","); } + if (encodingVersion != null) { sb.append("encodingVersion:"); sb.append(encodingVersion); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java index cdf4a2e1e6..cca387458f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1alpha1StorageVersionBuilder - extends V1alpha1StorageVersionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1StorageVersionBuilder extends V1alpha1StorageVersionFluentImpl implements VisitableBuilder{ public V1alpha1StorageVersionBuilder() { this(false); } - public V1alpha1StorageVersionBuilder(Boolean validationEnabled) { this(new V1alpha1StorageVersion(), validationEnabled); } - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent) { this(fluent, false); } - - public V1alpha1StorageVersionBuilder( - V1alpha1StorageVersionFluent fluent, Boolean validationEnabled) { + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersion(), validationEnabled); } - - public V1alpha1StorageVersionBuilder( - V1alpha1StorageVersionFluent fluent, V1alpha1StorageVersion instance) { + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,V1alpha1StorageVersion instance) { this(fluent, instance, false); } - - public V1alpha1StorageVersionBuilder( - V1alpha1StorageVersionFluent fluent, - V1alpha1StorageVersion instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,V1alpha1StorageVersion instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,15 +30,13 @@ public V1alpha1StorageVersionBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -73,12 +47,10 @@ public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance, Boolean va this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1StorageVersionFluent fluent; Boolean validationEnabled; - public V1alpha1StorageVersion build() { V1alpha1StorageVersion buildable = new V1alpha1StorageVersion(); buildable.setApiVersion(fluent.getApiVersion()); @@ -88,4 +60,5 @@ public V1alpha1StorageVersion build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java index 5634886e72..c1bd9b7141 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1alpha1StorageVersionConditionBuilder - extends V1alpha1StorageVersionConditionFluentImpl - implements VisitableBuilder< - V1alpha1StorageVersionCondition, V1alpha1StorageVersionConditionBuilder> { +import java.lang.Boolean; +public class V1alpha1StorageVersionConditionBuilder extends V1alpha1StorageVersionConditionFluentImpl implements VisitableBuilder{ public V1alpha1StorageVersionConditionBuilder() { this(false); } - public V1alpha1StorageVersionConditionBuilder(Boolean validationEnabled) { this(new V1alpha1StorageVersionCondition(), validationEnabled); } - public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent) { this(fluent, false); } - - public V1alpha1StorageVersionConditionBuilder( - V1alpha1StorageVersionConditionFluent fluent, Boolean validationEnabled) { + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersionCondition(), validationEnabled); } - - public V1alpha1StorageVersionConditionBuilder( - V1alpha1StorageVersionConditionFluent fluent, V1alpha1StorageVersionCondition instance) { + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,V1alpha1StorageVersionCondition instance) { this(fluent, instance, false); } - - public V1alpha1StorageVersionConditionBuilder( - V1alpha1StorageVersionConditionFluent fluent, - V1alpha1StorageVersionCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,V1alpha1StorageVersionCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -57,16 +32,13 @@ public V1alpha1StorageVersionConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionCondition instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1StorageVersionConditionBuilder( - V1alpha1StorageVersionCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -79,12 +51,10 @@ public V1alpha1StorageVersionConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1StorageVersionConditionFluent fluent; Boolean validationEnabled; - public V1alpha1StorageVersionCondition build() { V1alpha1StorageVersionCondition buildable = new V1alpha1StorageVersionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -95,4 +65,5 @@ public V1alpha1StorageVersionCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java index 3d184aa718..06fd968863 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java @@ -1,57 +1,32 @@ -/* -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.Fluent; import java.time.OffsetDateTime; - -/** Generated */ -public interface V1alpha1StorageVersionConditionFluent< - A extends V1alpha1StorageVersionConditionFluent> - extends Fluent { +import io.kubernetes.client.fluent.Fluent; +import java.lang.Long; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1alpha1StorageVersionConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java index c062a56d7c..f7d11bbeef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1StorageVersionConditionFluentImpl< - A extends V1alpha1StorageVersionConditionFluent> - extends BaseFluent implements V1alpha1StorageVersionConditionFluent { - public V1alpha1StorageVersionConditionFluentImpl() {} - +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1StorageVersionConditionFluentImpl> extends BaseFluent implements V1alpha1StorageVersionConditionFluent{ + public V1alpha1StorageVersionConditionFluentImpl() { + } public V1alpha1StorageVersionConditionFluentImpl(V1alpha1StorageVersionCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -34,143 +27,94 @@ public V1alpha1StorageVersionConditionFluentImpl(V1alpha1StorageVersionCondition this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + this.observedGeneration=observedGeneration; return (A) this; } - public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1StorageVersionConditionFluentImpl that = (V1alpha1StorageVersionConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (observedGeneration != null - ? !observedGeneration.equals(that.observedGeneration) - : that.observedGeneration != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (observedGeneration != null ? !observedGeneration.equals(that.observedGeneration) :that.observedGeneration != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (observedGeneration != null) { - sb.append("observedGeneration:"); - sb.append(observedGeneration + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java index 5efec1e41c..345fbc5920 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java @@ -1,103 +1,64 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1alpha1StorageVersionFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Object; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1alpha1StorageVersionFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1alpha1StorageVersionFluent.MetadataNested withNewMetadata(); - public V1alpha1StorageVersionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1alpha1StorageVersionFluent.MetadataNested editMetadata(); - public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadata(); - public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public Object getSpec(); - public A withSpec(Object spec); - public Boolean hasSpec(); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1alpha1StorageVersionStatus getStatus(); - public V1alpha1StorageVersionStatus buildStatus(); - public A withStatus(V1alpha1StorageVersionStatus status); - public Boolean hasStatus(); - public V1alpha1StorageVersionFluent.StatusNested withNewStatus(); - - public V1alpha1StorageVersionFluent.StatusNested withNewStatusLike( - V1alpha1StorageVersionStatus item); - + public V1alpha1StorageVersionFluent.StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item); public V1alpha1StorageVersionFluent.StatusNested editStatus(); - public V1alpha1StorageVersionFluent.StatusNested editOrNewStatus(); - - public V1alpha1StorageVersionFluent.StatusNested editOrNewStatusLike( - V1alpha1StorageVersionStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V1alpha1StorageVersionFluent.StatusNested editOrNewStatusLike(V1alpha1StorageVersionStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface StatusNested - extends Nested, - V1alpha1StorageVersionStatusFluent> { + public interface StatusNested extends Nested,V1alpha1StorageVersionStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java index a36a14e007..3e1941938a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1StorageVersionFluentImpl> - extends BaseFluent implements V1alpha1StorageVersionFluent { - public V1alpha1StorageVersionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1StorageVersionFluentImpl> extends BaseFluent implements V1alpha1StorageVersionFluent{ + public V1alpha1StorageVersionFluentImpl() { + } public V1alpha1StorageVersionFluentImpl(V1alpha1StorageVersion instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,242 +25,164 @@ public V1alpha1StorageVersionFluentImpl(V1alpha1StorageVersion instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private Object spec; private V1alpha1StorageVersionStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1alpha1StorageVersionFluent.MetadataNested withNewMetadata() { return new V1alpha1StorageVersionFluentImpl.MetadataNestedImpl(); } - public V1alpha1StorageVersionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1alpha1StorageVersionFluentImpl.MetadataNestedImpl(item); } - public V1alpha1StorageVersionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public Object getSpec() { return this.spec; } - public A withSpec(Object spec) { - this.spec = spec; - return (A) this; + this.spec=spec; return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1alpha1StorageVersionStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1alpha1StorageVersionStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1alpha1StorageVersionStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1alpha1StorageVersionStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1alpha1StorageVersionStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1alpha1StorageVersionFluent.StatusNested withNewStatus() { return new V1alpha1StorageVersionFluentImpl.StatusNestedImpl(); } - - public V1alpha1StorageVersionFluent.StatusNested withNewStatusLike( - V1alpha1StorageVersionStatus item) { + public V1alpha1StorageVersionFluent.StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item) { return new V1alpha1StorageVersionFluentImpl.StatusNestedImpl(item); } - public V1alpha1StorageVersionFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1alpha1StorageVersionFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1alpha1StorageVersionStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1alpha1StorageVersionStatusBuilder().build()); } - - public V1alpha1StorageVersionFluent.StatusNested editOrNewStatusLike( - V1alpha1StorageVersionStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1alpha1StorageVersionFluent.StatusNested editOrNewStatusLike(V1alpha1StorageVersionStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1StorageVersionFluentImpl that = (V1alpha1StorageVersionFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1alpha1StorageVersionFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1alpha1StorageVersionFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1alpha1StorageVersionFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class StatusNestedImpl - extends V1alpha1StorageVersionStatusFluentImpl> - implements V1alpha1StorageVersionFluent.StatusNested, Nested { + class StatusNestedImpl extends V1alpha1StorageVersionStatusFluentImpl> implements V1alpha1StorageVersionFluent.StatusNested,Nested{ StatusNestedImpl(V1alpha1StorageVersionStatus item) { this.builder = new V1alpha1StorageVersionStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1alpha1StorageVersionStatusBuilder(this); } - V1alpha1StorageVersionStatusBuilder builder; - public N and() { return (N) V1alpha1StorageVersionFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java index acb9cd1b53..caf3b55b91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1alpha1StorageVersionListBuilder - extends V1alpha1StorageVersionListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1StorageVersionListBuilder extends V1alpha1StorageVersionListFluentImpl implements VisitableBuilder{ public V1alpha1StorageVersionListBuilder() { this(false); } - public V1alpha1StorageVersionListBuilder(Boolean validationEnabled) { this(new V1alpha1StorageVersionList(), validationEnabled); } - public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent) { this(fluent, false); } - - public V1alpha1StorageVersionListBuilder( - V1alpha1StorageVersionListFluent fluent, Boolean validationEnabled) { + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersionList(), validationEnabled); } - - public V1alpha1StorageVersionListBuilder( - V1alpha1StorageVersionListFluent fluent, V1alpha1StorageVersionList instance) { + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,V1alpha1StorageVersionList instance) { this(fluent, instance, false); } - - public V1alpha1StorageVersionListBuilder( - V1alpha1StorageVersionListFluent fluent, - V1alpha1StorageVersionList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,V1alpha1StorageVersionList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,16 +28,13 @@ public V1alpha1StorageVersionListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionList instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1StorageVersionListBuilder( - V1alpha1StorageVersionList instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -70,12 +43,10 @@ public V1alpha1StorageVersionListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1StorageVersionListFluent fluent; Boolean validationEnabled; - public V1alpha1StorageVersionList build() { V1alpha1StorageVersionList buildable = new V1alpha1StorageVersionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -84,4 +55,5 @@ public V1alpha1StorageVersionList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java index 9842c2c880..1327a66789 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java @@ -1,132 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1alpha1StorageVersionListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1alpha1StorageVersionListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1alpha1StorageVersion item); - - public A setToItems(Integer index, V1alpha1StorageVersion item); - + public A addToItems(Integer index,V1alpha1StorageVersion item); + public A setToItems(Integer index,V1alpha1StorageVersion item); public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1alpha1StorageVersion buildItem(Integer index); - public V1alpha1StorageVersion buildFirstItem(); - public V1alpha1StorageVersion buildLastItem(); - - public V1alpha1StorageVersion buildMatchingItem( - Predicate predicate); - + public V1alpha1StorageVersion buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items); - public Boolean hasItems(); - public V1alpha1StorageVersionListFluent.ItemsNested addNewItem(); - - public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike( - V1alpha1StorageVersion item); - - public V1alpha1StorageVersionListFluent.ItemsNested setNewItemLike( - Integer index, V1alpha1StorageVersion item); - + public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike(V1alpha1StorageVersion item); + public V1alpha1StorageVersionListFluent.ItemsNested setNewItemLike(Integer index,V1alpha1StorageVersion item); public V1alpha1StorageVersionListFluent.ItemsNested editItem(Integer index); - public V1alpha1StorageVersionListFluent.ItemsNested editFirstItem(); - public V1alpha1StorageVersionListFluent.ItemsNested editLastItem(); - - public V1alpha1StorageVersionListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1alpha1StorageVersionListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadata(); - public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1alpha1StorageVersionListFluent.MetadataNested editMetadata(); - public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadata(); - public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1alpha1StorageVersionFluent> { + public interface ItemsNested extends Nested,V1alpha1StorageVersionFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java index b28ed290a3..fbcef76b3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1StorageVersionListFluentImpl> - extends BaseFluent implements V1alpha1StorageVersionListFluent { - public V1alpha1StorageVersionListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1StorageVersionListFluentImpl> extends BaseFluent implements V1alpha1StorageVersionListFluent{ + public V1alpha1StorageVersionListFluentImpl() { + } public V1alpha1StorageVersionListFluentImpl(V1alpha1StorageVersionList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1alpha1StorageVersionListFluentImpl(V1alpha1StorageVersionList instance) this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1alpha1StorageVersion item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1alpha1StorageVersion item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1alpha1StorageVersion item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1alpha1StorageVersion item) { + if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,275 +81,176 @@ public A removeMatchingFromItems(Predicate predic each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1alpha1StorageVersion buildItem(Integer index) { return this.items.get(index).build(); } - public V1alpha1StorageVersion buildFirstItem() { return this.items.get(0).build(); } - public V1alpha1StorageVersion buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1alpha1StorageVersion buildMatchingItem( - Predicate predicate) { - for (V1alpha1StorageVersionBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1alpha1StorageVersion buildMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1StorageVersionBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1alpha1StorageVersionBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1StorageVersion item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1alpha1StorageVersion item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1alpha1StorageVersion item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1alpha1StorageVersion item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1alpha1StorageVersionListFluent.ItemsNested addNewItem() { return new V1alpha1StorageVersionListFluentImpl.ItemsNestedImpl(); } - - public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike( - V1alpha1StorageVersion item) { + public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike(V1alpha1StorageVersion item) { return new V1alpha1StorageVersionListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1alpha1StorageVersionListFluent.ItemsNested setNewItemLike( - Integer index, V1alpha1StorageVersion item) { + public V1alpha1StorageVersionListFluent.ItemsNested setNewItemLike(Integer index,V1alpha1StorageVersion item) { return new V1alpha1StorageVersionListFluentImpl.ItemsNestedImpl(index, item); } - public V1alpha1StorageVersionListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1alpha1StorageVersionListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1alpha1StorageVersionListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1alpha1StorageVersionListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1alpha1StorageVersionListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1alpha1StorageVersionListFluentImpl.MetadataNestedImpl(); } - public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1alpha1StorageVersionListFluentImpl.MetadataNestedImpl(item); } - public V1alpha1StorageVersionListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1StorageVersionListFluentImpl that = (V1alpha1StorageVersionListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1alpha1StorageVersionFluentImpl> - implements V1alpha1StorageVersionListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1alpha1StorageVersion item) { + class ItemsNestedImpl extends V1alpha1StorageVersionFluentImpl> implements V1alpha1StorageVersionListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1alpha1StorageVersion item) { this.index = index; this.builder = new V1alpha1StorageVersionBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1alpha1StorageVersionBuilder(this); } - V1alpha1StorageVersionBuilder builder; Integer index; - public N and() { - return (N) V1alpha1StorageVersionListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1alpha1StorageVersionListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1alpha1StorageVersionListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1alpha1StorageVersionListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1alpha1StorageVersionListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java index 10f348c1ce..a5bad750b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1alpha1StorageVersionStatusBuilder - extends V1alpha1StorageVersionStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1alpha1StorageVersionStatusBuilder extends V1alpha1StorageVersionStatusFluentImpl implements VisitableBuilder{ public V1alpha1StorageVersionStatusBuilder() { this(false); } - public V1alpha1StorageVersionStatusBuilder(Boolean validationEnabled) { this(new V1alpha1StorageVersionStatus(), validationEnabled); } - public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent) { this(fluent, false); } - - public V1alpha1StorageVersionStatusBuilder( - V1alpha1StorageVersionStatusFluent fluent, Boolean validationEnabled) { + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersionStatus(), validationEnabled); } - - public V1alpha1StorageVersionStatusBuilder( - V1alpha1StorageVersionStatusFluent fluent, V1alpha1StorageVersionStatus instance) { + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,V1alpha1StorageVersionStatus instance) { this(fluent, instance, false); } - - public V1alpha1StorageVersionStatusBuilder( - V1alpha1StorageVersionStatusFluent fluent, - V1alpha1StorageVersionStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,V1alpha1StorageVersionStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCommonEncodingVersion(instance.getCommonEncodingVersion()); fluent.withConditions(instance.getConditions()); fluent.withStorageVersions(instance.getStorageVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatus instance) { - this(instance, false); + this(instance,false); } - - public V1alpha1StorageVersionStatusBuilder( - V1alpha1StorageVersionStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); this.withConditions(instance.getConditions()); this.withStorageVersions(instance.getStorageVersions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1alpha1StorageVersionStatusFluent fluent; Boolean validationEnabled; - public V1alpha1StorageVersionStatus build() { V1alpha1StorageVersionStatus buildable = new V1alpha1StorageVersionStatus(); buildable.setCommonEncodingVersion(fluent.getCommonEncodingVersion()); @@ -79,4 +50,5 @@ public V1alpha1StorageVersionStatus build() { buildable.setStorageVersions(fluent.getStorageVersions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java index def8a75aef..f74a24fa3c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java @@ -1,173 +1,94 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1alpha1StorageVersionStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V1alpha1StorageVersionStatusFluent> extends Fluent{ public String getCommonEncodingVersion(); - public A withCommonEncodingVersion(String commonEncodingVersion); - public Boolean hasCommonEncodingVersion(); - - public A addToConditions(Integer index, V1alpha1StorageVersionCondition item); - - public A setToConditions(Integer index, V1alpha1StorageVersionCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items); - + public A addToConditions(Integer index,V1alpha1StorageVersionCondition item); + public A setToConditions(Integer index,V1alpha1StorageVersionCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1alpha1StorageVersionCondition buildCondition(Integer index); - public V1alpha1StorageVersionCondition buildFirstCondition(); - public V1alpha1StorageVersionCondition buildLastCondition(); - - public V1alpha1StorageVersionCondition buildMatchingCondition( - Predicate predicate); - + public V1alpha1StorageVersionCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions); public Boolean hasConditions(); - public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewCondition(); - - public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewConditionLike( - V1alpha1StorageVersionCondition item); - - public V1alpha1StorageVersionStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1alpha1StorageVersionCondition item); - + public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item); + public V1alpha1StorageVersionStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1alpha1StorageVersionCondition item); public V1alpha1StorageVersionStatusFluent.ConditionsNested editCondition(Integer index); - public V1alpha1StorageVersionStatusFluent.ConditionsNested editFirstCondition(); - public V1alpha1StorageVersionStatusFluent.ConditionsNested editLastCondition(); - - public V1alpha1StorageVersionStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public A addToStorageVersions(Integer index, V1alpha1ServerStorageVersion item); - - public A setToStorageVersions(Integer index, V1alpha1ServerStorageVersion item); - - public A addToStorageVersions( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items); - + public V1alpha1StorageVersionStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public A addToStorageVersions(Integer index,V1alpha1ServerStorageVersion item); + public A setToStorageVersions(Integer index,V1alpha1ServerStorageVersion item); + public A addToStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items); public A addAllToStorageVersions(Collection items); - - public A removeFromStorageVersions( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items); - + public A removeFromStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items); public A removeAllFromStorageVersions(Collection items); - - public A removeMatchingFromStorageVersions( - Predicate predicate); - + public A removeMatchingFromStorageVersions(Predicate predicate); + /** * This method has been deprecated, please use method buildStorageVersions instead. - * * @return The buildable object. */ @Deprecated public List getStorageVersions(); - public List buildStorageVersions(); - public V1alpha1ServerStorageVersion buildStorageVersion(Integer index); - public V1alpha1ServerStorageVersion buildFirstStorageVersion(); - public V1alpha1ServerStorageVersion buildLastStorageVersion(); - - public V1alpha1ServerStorageVersion buildMatchingStorageVersion( - Predicate predicate); - - public Boolean hasMatchingStorageVersion( - Predicate predicate); - + public V1alpha1ServerStorageVersion buildMatchingStorageVersion(Predicate predicate); + public Boolean hasMatchingStorageVersion(Predicate predicate); public A withStorageVersions(List storageVersions); - - public A withStorageVersions( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions); - + public A withStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions); public Boolean hasStorageVersions(); - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersion(); - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersionLike( - V1alpha1ServerStorageVersion item); - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested setNewStorageVersionLike( - Integer index, V1alpha1ServerStorageVersion item); - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editStorageVersion( - Integer index); - + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item); + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested setNewStorageVersionLike(Integer index,V1alpha1ServerStorageVersion item); + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editStorageVersion(Integer index); public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editFirstStorageVersion(); - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editLastStorageVersion(); - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editMatchingStorageVersion( - Predicate predicate); - - public interface ConditionsNested - extends Nested, - V1alpha1StorageVersionConditionFluent< - V1alpha1StorageVersionStatusFluent.ConditionsNested> { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editMatchingStorageVersion(Predicate predicate); + public interface ConditionsNested extends Nested,V1alpha1StorageVersionConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface StorageVersionsNested - extends Nested, - V1alpha1ServerStorageVersionFluent< - V1alpha1StorageVersionStatusFluent.StorageVersionsNested> { + public interface StorageVersionsNested extends Nested,V1alpha1ServerStorageVersionFluent>{ public N and(); - public N endStorageVersion(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java index 893230ea2d..5cd10863c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java @@ -1,142 +1,73 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1alpha1StorageVersionStatusFluentImpl> - extends BaseFluent implements V1alpha1StorageVersionStatusFluent { - public V1alpha1StorageVersionStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1alpha1StorageVersionStatusFluentImpl> extends BaseFluent implements V1alpha1StorageVersionStatusFluent{ + public V1alpha1StorageVersionStatusFluentImpl() { + } public V1alpha1StorageVersionStatusFluentImpl(V1alpha1StorageVersionStatus instance) { this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); this.withConditions(instance.getConditions()); this.withStorageVersions(instance.getStorageVersions()); - } + } private String commonEncodingVersion; private ArrayList conditions; private ArrayList storageVersions; - public String getCommonEncodingVersion() { return this.commonEncodingVersion; } - public A withCommonEncodingVersion(String commonEncodingVersion) { - this.commonEncodingVersion = commonEncodingVersion; - return (A) this; + this.commonEncodingVersion=commonEncodingVersion; return (A) this; } - public Boolean hasCommonEncodingVersion() { return this.commonEncodingVersion != null; } - - public A addToConditions(Integer index, V1alpha1StorageVersionCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1alpha1StorageVersionConditionBuilder builder = - new V1alpha1StorageVersionConditionBuilder(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 addToConditions(Integer index,V1alpha1StorageVersionCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(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(Integer index, V1alpha1StorageVersionCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1alpha1StorageVersionConditionBuilder builder = - new V1alpha1StorageVersionConditionBuilder(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 setToConditions(Integer index,V1alpha1StorageVersionCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(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.V1alpha1StorageVersionCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = - new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(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 ArrayList(); - } - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = - new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = - new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { + for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = - new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -147,211 +78,102 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1alpha1StorageVersionCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1alpha1StorageVersionCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1alpha1StorageVersionCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1alpha1StorageVersionCondition buildMatchingCondition( - Predicate predicate) { - for (V1alpha1StorageVersionConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1alpha1StorageVersionCondition buildMatchingCondition(Predicate predicate) { + for (V1alpha1StorageVersionConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1alpha1StorageVersionConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1alpha1StorageVersionConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1alpha1StorageVersionCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1alpha1StorageVersionCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1alpha1StorageVersionCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1alpha1StorageVersionCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewCondition() { return new V1alpha1StorageVersionStatusFluentImpl.ConditionsNestedImpl(); } - - public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewConditionLike( - V1alpha1StorageVersionCondition item) { + public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item) { return new V1alpha1StorageVersionStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1alpha1StorageVersionStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1alpha1StorageVersionCondition item) { + public V1alpha1StorageVersionStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1alpha1StorageVersionCondition item) { return new V1alpha1StorageVersionStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1alpha1StorageVersionStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1alpha1StorageVersionStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1alpha1StorageVersionStatusFluent.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 V1alpha1StorageVersionStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1alpha1StorageVersionStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables - .get("storageVersions") - .add(index >= 0 ? index : _visitables.get("storageVersions").size(), builder); - this.storageVersions.add(index >= 0 ? index : storageVersions.size(), builder); - return (A) this; + public A addToStorageVersions(Integer index,V1alpha1ServerStorageVersion item) { + if (this.storageVersions == null) {this.storageVersions = new ArrayList();} + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(index >= 0 ? index : _visitables.get("storageVersions").size(), builder);this.storageVersions.add(index >= 0 ? index : storageVersions.size(), builder); return (A)this; } - - public A setToStorageVersions(Integer index, V1alpha1ServerStorageVersion item) { - if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); - } + public A setToStorageVersions(Integer index,V1alpha1ServerStorageVersion item) { + if (this.storageVersions == null) {this.storageVersions = new ArrayList();} V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= _visitables.get("storageVersions").size()) { - _visitables.get("storageVersions").add(builder); - } else { - _visitables.get("storageVersions").set(index, builder); - } - if (index < 0 || index >= storageVersions.size()) { - storageVersions.add(builder); - } else { - storageVersions.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("storageVersions").size()) { _visitables.get("storageVersions").add(builder); } else { _visitables.get("storageVersions").set(index, builder);} + if (index < 0 || index >= storageVersions.size()) { storageVersions.add(builder); } else { storageVersions.set(index, builder);} + return (A)this; } - - public A addToStorageVersions( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); - } - for (V1alpha1ServerStorageVersion item : items) { - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").add(builder); - this.storageVersions.add(builder); - } - return (A) this; + public A addToStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { + if (this.storageVersions == null) {this.storageVersions = new ArrayList();} + for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(builder);this.storageVersions.add(builder);} return (A)this; } - public A addAllToStorageVersions(Collection items) { - if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); - } - for (V1alpha1ServerStorageVersion item : items) { - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").add(builder); - this.storageVersions.add(builder); - } - return (A) this; + if (this.storageVersions == null) {this.storageVersions = new ArrayList();} + for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(builder);this.storageVersions.add(builder);} return (A)this; } - - public A removeFromStorageVersions( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - for (V1alpha1ServerStorageVersion item : items) { - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").remove(builder); - if (this.storageVersions != null) { - this.storageVersions.remove(builder); - } - } - return (A) this; + public A removeFromStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { + for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").remove(builder);if (this.storageVersions != null) {this.storageVersions.remove(builder);}} return (A)this; } - public A removeAllFromStorageVersions(Collection items) { - for (V1alpha1ServerStorageVersion item : items) { - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").remove(builder); - if (this.storageVersions != null) { - this.storageVersions.remove(builder); - } - } - return (A) this; + for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").remove(builder);if (this.storageVersions != null) {this.storageVersions.remove(builder);}} return (A)this; } - - public A removeMatchingFromStorageVersions( - Predicate predicate) { + public A removeMatchingFromStorageVersions(Predicate predicate) { if (storageVersions == null) return (A) this; final Iterator each = storageVersions.iterator(); final List visitables = _visitables.get("storageVersions"); @@ -362,225 +184,134 @@ public A removeMatchingFromStorageVersions( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildStorageVersions instead. - * * @return The buildable object. */ @Deprecated public List getStorageVersions() { return storageVersions != null ? build(storageVersions) : null; } - public List buildStorageVersions() { return storageVersions != null ? build(storageVersions) : null; } - public V1alpha1ServerStorageVersion buildStorageVersion(Integer index) { return this.storageVersions.get(index).build(); } - public V1alpha1ServerStorageVersion buildFirstStorageVersion() { return this.storageVersions.get(0).build(); } - public V1alpha1ServerStorageVersion buildLastStorageVersion() { return this.storageVersions.get(storageVersions.size() - 1).build(); } - - public V1alpha1ServerStorageVersion buildMatchingStorageVersion( - Predicate predicate) { - for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1alpha1ServerStorageVersion buildMatchingStorageVersion(Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item: storageVersions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingStorageVersion( - Predicate predicate) { - for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingStorageVersion(Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item: storageVersions) { if(predicate.test(item)){ return true;} } return false; } - public A withStorageVersions(List storageVersions) { - if (this.storageVersions != null) { - _visitables.get("storageVersions").removeAll(this.storageVersions); - } - if (storageVersions != null) { - this.storageVersions = new ArrayList(); - for (V1alpha1ServerStorageVersion item : storageVersions) { - this.addToStorageVersions(item); - } - } else { - this.storageVersions = null; - } - return (A) this; + if (this.storageVersions != null) { _visitables.get("storageVersions").removeAll(this.storageVersions);} + if (storageVersions != null) {this.storageVersions = new ArrayList(); for (V1alpha1ServerStorageVersion item : storageVersions){this.addToStorageVersions(item);}} else { this.storageVersions = null;} return (A) this; } - - public A withStorageVersions( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions) { - if (this.storageVersions != null) { - this.storageVersions.clear(); - } - if (storageVersions != null) { - for (V1alpha1ServerStorageVersion item : storageVersions) { - this.addToStorageVersions(item); - } - } - return (A) this; + public A withStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions) { + if (this.storageVersions != null) {this.storageVersions.clear();} + if (storageVersions != null) {for (V1alpha1ServerStorageVersion item :storageVersions){ this.addToStorageVersions(item);}} return (A) this; } - public Boolean hasStorageVersions() { return storageVersions != null && !storageVersions.isEmpty(); } - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersion() { return new V1alpha1StorageVersionStatusFluentImpl.StorageVersionsNestedImpl(); } - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersionLike( - V1alpha1ServerStorageVersion item) { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item) { return new V1alpha1StorageVersionStatusFluentImpl.StorageVersionsNestedImpl(-1, item); } - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested setNewStorageVersionLike( - Integer index, V1alpha1ServerStorageVersion item) { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested setNewStorageVersionLike(Integer index,V1alpha1ServerStorageVersion item) { return new V1alpha1StorageVersionStatusFluentImpl.StorageVersionsNestedImpl(index, item); } - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editStorageVersion( - Integer index) { - if (storageVersions.size() <= index) - throw new RuntimeException("Can't edit storageVersions. Index exceeds size."); + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editStorageVersion(Integer index) { + if (storageVersions.size() <= index) throw new RuntimeException("Can't edit storageVersions. Index exceeds size."); return setNewStorageVersionLike(index, buildStorageVersion(index)); } - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editFirstStorageVersion() { - if (storageVersions.size() == 0) - throw new RuntimeException("Can't edit first storageVersions. The list is empty."); + if (storageVersions.size() == 0) throw new RuntimeException("Can't edit first storageVersions. The list is empty."); return setNewStorageVersionLike(0, buildStorageVersion(0)); } - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editLastStorageVersion() { int index = storageVersions.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last storageVersions. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last storageVersions. The list is empty."); return setNewStorageVersionLike(index, buildStorageVersion(index)); } - - public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editMatchingStorageVersion( - Predicate predicate) { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editMatchingStorageVersion(Predicate predicate) { int index = -1; - for (int i = 0; i < storageVersions.size(); i++) { - if (predicate.test(storageVersions.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching storageVersions. No match found."); + for (int i=0;i - extends V1alpha1StorageVersionConditionFluentImpl< - V1alpha1StorageVersionStatusFluent.ConditionsNested> - implements V1alpha1StorageVersionStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1alpha1StorageVersionCondition item) { + class ConditionsNestedImpl extends V1alpha1StorageVersionConditionFluentImpl> implements V1alpha1StorageVersionStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1alpha1StorageVersionCondition item) { this.index = index; this.builder = new V1alpha1StorageVersionConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1alpha1StorageVersionConditionBuilder(this); } - V1alpha1StorageVersionConditionBuilder builder; Integer index; - public N and() { - return (N) - V1alpha1StorageVersionStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1alpha1StorageVersionStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class StorageVersionsNestedImpl - extends V1alpha1ServerStorageVersionFluentImpl< - V1alpha1StorageVersionStatusFluent.StorageVersionsNested> - implements V1alpha1StorageVersionStatusFluent.StorageVersionsNested, Nested { - StorageVersionsNestedImpl(Integer index, V1alpha1ServerStorageVersion item) { + class StorageVersionsNestedImpl extends V1alpha1ServerStorageVersionFluentImpl> implements V1alpha1StorageVersionStatusFluent.StorageVersionsNested,Nested{ + StorageVersionsNestedImpl(Integer index,V1alpha1ServerStorageVersion item) { this.index = index; this.builder = new V1alpha1ServerStorageVersionBuilder(this, item); } - StorageVersionsNestedImpl() { this.index = -1; this.builder = new V1alpha1ServerStorageVersionBuilder(this); } - V1alpha1ServerStorageVersionBuilder builder; Integer index; - public N and() { - return (N) - V1alpha1StorageVersionStatusFluentImpl.this.setToStorageVersions(index, builder.build()); + return (N) V1alpha1StorageVersionStatusFluentImpl.this.setToStorageVersions(index,builder.build()); } - public N endStorageVersion() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java index b02b87bd47..bb6bbd21db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1CSIStorageCapacityBuilder - extends V1beta1CSIStorageCapacityFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1CSIStorageCapacityBuilder extends V1beta1CSIStorageCapacityFluentImpl implements VisitableBuilder{ public V1beta1CSIStorageCapacityBuilder() { this(false); } - public V1beta1CSIStorageCapacityBuilder(Boolean validationEnabled) { this(new V1beta1CSIStorageCapacity(), validationEnabled); } - public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacityFluent fluent) { this(fluent, false); } - - public V1beta1CSIStorageCapacityBuilder( - V1beta1CSIStorageCapacityFluent fluent, Boolean validationEnabled) { + public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacityFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1CSIStorageCapacity(), validationEnabled); } - - public V1beta1CSIStorageCapacityBuilder( - V1beta1CSIStorageCapacityFluent fluent, V1beta1CSIStorageCapacity instance) { + public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacityFluent fluent,V1beta1CSIStorageCapacity instance) { this(fluent, instance, false); } - - public V1beta1CSIStorageCapacityBuilder( - V1beta1CSIStorageCapacityFluent fluent, - V1beta1CSIStorageCapacity instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacityFluent fluent,V1beta1CSIStorageCapacity instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withCapacity(instance.getCapacity()); @@ -58,16 +34,13 @@ public V1beta1CSIStorageCapacityBuilder( fluent.withStorageClassName(instance.getStorageClassName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacity instance) { - this(instance, false); + this(instance,false); } - - public V1beta1CSIStorageCapacityBuilder( - V1beta1CSIStorageCapacity instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacity instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withCapacity(instance.getCapacity()); @@ -82,12 +55,10 @@ public V1beta1CSIStorageCapacityBuilder( this.withStorageClassName(instance.getStorageClassName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1CSIStorageCapacityFluent fluent; Boolean validationEnabled; - public V1beta1CSIStorageCapacity build() { V1beta1CSIStorageCapacity buildable = new V1beta1CSIStorageCapacity(); buildable.setApiVersion(fluent.getApiVersion()); @@ -99,4 +70,5 @@ public V1beta1CSIStorageCapacity build() { buildable.setStorageClassName(fluent.getStorageClassName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java index 2fce2d414a..4efa44aae1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java @@ -1,120 +1,72 @@ -/* -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.custom.Quantity; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1CSIStorageCapacityFluent> - extends Fluent { +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1CSIStorageCapacityFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public Quantity getCapacity(); - public A withCapacity(Quantity capacity); - public Boolean hasCapacity(); - public A withNewCapacity(String value); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public Quantity getMaximumVolumeSize(); - public A withMaximumVolumeSize(Quantity maximumVolumeSize); - public Boolean hasMaximumVolumeSize(); - public A withNewMaximumVolumeSize(String value); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadata(); - public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1beta1CSIStorageCapacityFluent.MetadataNested editMetadata(); - public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata(); - public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildNodeTopology instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNodeTopology(); - public V1LabelSelector buildNodeTopology(); - public A withNodeTopology(V1LabelSelector nodeTopology); - public Boolean hasNodeTopology(); - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology(); - - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( - V1LabelSelector item); - + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item); public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology(); - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology(); - - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( - V1LabelSelector item); - + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item); public String getStorageClassName(); - public A withStorageClassName(String storageClassName); - public Boolean hasStorageClassName(); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface NodeTopologyNested - extends Nested, - V1LabelSelectorFluent> { + public interface NodeTopologyNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endNodeTopology(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java index 65dd0e483d..f3efce98f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java @@ -1,27 +1,21 @@ -/* -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 java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Deprecated; import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1CSIStorageCapacityFluentImpl> - extends BaseFluent implements V1beta1CSIStorageCapacityFluent { - public V1beta1CSIStorageCapacityFluentImpl() {} +import java.lang.Object; +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1CSIStorageCapacityFluentImpl> extends BaseFluent implements V1beta1CSIStorageCapacityFluent{ + public V1beta1CSIStorageCapacityFluentImpl() { + } public V1beta1CSIStorageCapacityFluentImpl(V1beta1CSIStorageCapacity instance) { this.withApiVersion(instance.getApiVersion()); @@ -36,8 +30,8 @@ public V1beta1CSIStorageCapacityFluentImpl(V1beta1CSIStorageCapacity instance) { this.withNodeTopology(instance.getNodeTopology()); this.withStorageClassName(instance.getStorageClassName()); - } + } private String apiVersion; private Quantity capacity; private String kind; @@ -45,293 +39,185 @@ public V1beta1CSIStorageCapacityFluentImpl(V1beta1CSIStorageCapacity instance) { private V1ObjectMetaBuilder metadata; private V1LabelSelectorBuilder nodeTopology; private String storageClassName; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public Quantity getCapacity() { return this.capacity; } - public A withCapacity(Quantity capacity) { - this.capacity = capacity; - return (A) this; + this.capacity=capacity; return (A) this; } - public Boolean hasCapacity() { return this.capacity != null; } - public A withNewCapacity(String value) { - return (A) withCapacity(new Quantity(value)); + return (A)withCapacity(new Quantity(value)); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public Quantity getMaximumVolumeSize() { return this.maximumVolumeSize; } - public A withMaximumVolumeSize(Quantity maximumVolumeSize) { - this.maximumVolumeSize = maximumVolumeSize; - return (A) this; + this.maximumVolumeSize=maximumVolumeSize; return (A) this; } - public Boolean hasMaximumVolumeSize() { return this.maximumVolumeSize != null; } - public A withNewMaximumVolumeSize(String value) { - return (A) withMaximumVolumeSize(new Quantity(value)); + return (A)withMaximumVolumeSize(new Quantity(value)); } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadata() { return new V1beta1CSIStorageCapacityFluentImpl.MetadataNestedImpl(); } - public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta1CSIStorageCapacityFluentImpl.MetadataNestedImpl(item); } - public V1beta1CSIStorageCapacityFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildNodeTopology instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getNodeTopology() { - return this.nodeTopology != null ? this.nodeTopology.build() : null; + return this.nodeTopology!=null ?this.nodeTopology.build():null; } - public V1LabelSelector buildNodeTopology() { - return this.nodeTopology != null ? this.nodeTopology.build() : null; + return this.nodeTopology!=null ?this.nodeTopology.build():null; } - public A withNodeTopology(V1LabelSelector nodeTopology) { _visitables.get("nodeTopology").remove(this.nodeTopology); - if (nodeTopology != null) { - this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); - _visitables.get("nodeTopology").add(this.nodeTopology); - } else { - this.nodeTopology = null; - _visitables.get("nodeTopology").remove(this.nodeTopology); - } - return (A) this; + if (nodeTopology!=null){ this.nodeTopology= new V1LabelSelectorBuilder(nodeTopology); _visitables.get("nodeTopology").add(this.nodeTopology);} else { this.nodeTopology = null; _visitables.get("nodeTopology").remove(this.nodeTopology); } return (A) this; } - public Boolean hasNodeTopology() { return this.nodeTopology != null; } - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology() { return new V1beta1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(); } - - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( - V1LabelSelector item) { + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { return new V1beta1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(item); } - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology() { return withNewNodeTopologyLike(getNodeTopology()); } - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology() { - return withNewNodeTopologyLike( - getNodeTopology() != null ? getNodeTopology() : new V1LabelSelectorBuilder().build()); + return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology(): new V1LabelSelectorBuilder().build()); } - - public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( - V1LabelSelector item) { - return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology() : item); + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item) { + return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology(): item); } - public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; + this.storageClassName=storageClassName; return (A) this; } - public Boolean hasStorageClassName() { return this.storageClassName != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1CSIStorageCapacityFluentImpl that = (V1beta1CSIStorageCapacityFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (capacity != null ? !capacity.equals(that.capacity) : that.capacity != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (maximumVolumeSize != null - ? !maximumVolumeSize.equals(that.maximumVolumeSize) - : that.maximumVolumeSize != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (nodeTopology != null ? !nodeTopology.equals(that.nodeTopology) : that.nodeTopology != null) - return false; - if (storageClassName != null - ? !storageClassName.equals(that.storageClassName) - : that.storageClassName != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (capacity != null ? !capacity.equals(that.capacity) :that.capacity != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (maximumVolumeSize != null ? !maximumVolumeSize.equals(that.maximumVolumeSize) :that.maximumVolumeSize != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (nodeTopology != null ? !nodeTopology.equals(that.nodeTopology) :that.nodeTopology != null) return false; + if (storageClassName != null ? !storageClassName.equals(that.storageClassName) :that.storageClassName != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiVersion, - capacity, - kind, - maximumVolumeSize, - metadata, - nodeTopology, - storageClassName, - super.hashCode()); + return java.util.Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (capacity != null) { - sb.append("capacity:"); - sb.append(capacity + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (maximumVolumeSize != null) { - sb.append("maximumVolumeSize:"); - sb.append(maximumVolumeSize + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (nodeTopology != null) { - sb.append("nodeTopology:"); - sb.append(nodeTopology + ","); - } - if (storageClassName != null) { - sb.append("storageClassName:"); - sb.append(storageClassName); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (capacity != null) { sb.append("capacity:"); sb.append(capacity + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (maximumVolumeSize != null) { sb.append("maximumVolumeSize:"); sb.append(maximumVolumeSize + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (nodeTopology != null) { sb.append("nodeTopology:"); sb.append(nodeTopology + ","); } + if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1beta1CSIStorageCapacityFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1beta1CSIStorageCapacityFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1beta1CSIStorageCapacityFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class NodeTopologyNestedImpl - extends V1LabelSelectorFluentImpl> - implements V1beta1CSIStorageCapacityFluent.NodeTopologyNested, Nested { + class NodeTopologyNestedImpl extends V1LabelSelectorFluentImpl> implements V1beta1CSIStorageCapacityFluent.NodeTopologyNested,Nested{ NodeTopologyNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - NodeTopologyNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V1beta1CSIStorageCapacityFluentImpl.this.withNodeTopology(builder.build()); } - public N endNodeTopology() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java index 890fd119ed..99f019a6db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1CSIStorageCapacityListBuilder - extends V1beta1CSIStorageCapacityListFluentImpl - implements VisitableBuilder< - V1beta1CSIStorageCapacityList, V1beta1CSIStorageCapacityListBuilder> { +import java.lang.Boolean; +public class V1beta1CSIStorageCapacityListBuilder extends V1beta1CSIStorageCapacityListFluentImpl implements VisitableBuilder{ public V1beta1CSIStorageCapacityListBuilder() { this(false); } - public V1beta1CSIStorageCapacityListBuilder(Boolean validationEnabled) { this(new V1beta1CSIStorageCapacityList(), validationEnabled); } - public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityListFluent fluent) { this(fluent, false); } - - public V1beta1CSIStorageCapacityListBuilder( - V1beta1CSIStorageCapacityListFluent fluent, Boolean validationEnabled) { + public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityListFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1CSIStorageCapacityList(), validationEnabled); } - - public V1beta1CSIStorageCapacityListBuilder( - V1beta1CSIStorageCapacityListFluent fluent, V1beta1CSIStorageCapacityList instance) { + public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityListFluent fluent,V1beta1CSIStorageCapacityList instance) { this(fluent, instance, false); } - - public V1beta1CSIStorageCapacityListBuilder( - V1beta1CSIStorageCapacityListFluent fluent, - V1beta1CSIStorageCapacityList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityListFluent fluent,V1beta1CSIStorageCapacityList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -53,16 +28,13 @@ public V1beta1CSIStorageCapacityListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityList instance) { - this(instance, false); + this(instance,false); } - - public V1beta1CSIStorageCapacityListBuilder( - V1beta1CSIStorageCapacityList instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -71,12 +43,10 @@ public V1beta1CSIStorageCapacityListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1CSIStorageCapacityListFluent fluent; Boolean validationEnabled; - public V1beta1CSIStorageCapacityList build() { V1beta1CSIStorageCapacityList buildable = new V1beta1CSIStorageCapacityList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V1beta1CSIStorageCapacityList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java index 0862289474..0249ed326f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java @@ -1,134 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1CSIStorageCapacityListFluent< - A extends V1beta1CSIStorageCapacityListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1CSIStorageCapacityListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1CSIStorageCapacity item); - - public A setToItems(Integer index, V1beta1CSIStorageCapacity item); - + public A addToItems(Integer index,V1beta1CSIStorageCapacity item); + public A setToItems(Integer index,V1beta1CSIStorageCapacity item); public A addToItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1beta1CSIStorageCapacity buildItem(Integer index); - public V1beta1CSIStorageCapacity buildFirstItem(); - public V1beta1CSIStorageCapacity buildLastItem(); - - public V1beta1CSIStorageCapacity buildMatchingItem( - Predicate predicate); - + public V1beta1CSIStorageCapacity buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items); - public Boolean hasItems(); - public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItem(); - - public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItemLike( - V1beta1CSIStorageCapacity item); - - public V1beta1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( - Integer index, V1beta1CSIStorageCapacity item); - + public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItemLike(V1beta1CSIStorageCapacity item); + public V1beta1CSIStorageCapacityListFluent.ItemsNested setNewItemLike(Integer index,V1beta1CSIStorageCapacity item); public V1beta1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index); - public V1beta1CSIStorageCapacityListFluent.ItemsNested editFirstItem(); - public V1beta1CSIStorageCapacityListFluent.ItemsNested editLastItem(); - - public V1beta1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1beta1CSIStorageCapacityListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadata(); - public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1beta1CSIStorageCapacityListFluent.MetadataNested editMetadata(); - public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata(); - - public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1beta1CSIStorageCapacityFluent> { + public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1beta1CSIStorageCapacityFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java index efc882af47..2a94d85482 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1CSIStorageCapacityListFluentImpl< - A extends V1beta1CSIStorageCapacityListFluent> - extends BaseFluent implements V1beta1CSIStorageCapacityListFluent { - public V1beta1CSIStorageCapacityListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1CSIStorageCapacityListFluentImpl> extends BaseFluent implements V1beta1CSIStorageCapacityListFluent{ + public V1beta1CSIStorageCapacityListFluentImpl() { + } public V1beta1CSIStorageCapacityListFluentImpl(V1beta1CSIStorageCapacityList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,100 +30,46 @@ public V1beta1CSIStorageCapacityListFluentImpl(V1beta1CSIStorageCapacityList ins this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1beta1CSIStorageCapacity item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1beta1CSIStorageCapacity item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1beta1CSIStorageCapacity item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1beta1CSIStorageCapacity item) { + if (this.items == null) {this.items = new ArrayList();} V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1CSIStorageCapacity item : items) { - V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1CSIStorageCapacity item : items) {V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1CSIStorageCapacity item : items) { - V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1CSIStorageCapacity item : items) {V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items) { - for (V1beta1CSIStorageCapacity item : items) { - V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta1CSIStorageCapacity item : items) {V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1beta1CSIStorageCapacity item : items) { - V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta1CSIStorageCapacity item : items) {V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -140,278 +81,176 @@ public A removeMatchingFromItems(Predicate pre each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1beta1CSIStorageCapacity buildItem(Integer index) { return this.items.get(index).build(); } - public V1beta1CSIStorageCapacity buildFirstItem() { return this.items.get(0).build(); } - public V1beta1CSIStorageCapacity buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1beta1CSIStorageCapacity buildMatchingItem( - Predicate predicate) { - for (V1beta1CSIStorageCapacityBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1CSIStorageCapacity buildMatchingItem(Predicate predicate) { + for (V1beta1CSIStorageCapacityBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1beta1CSIStorageCapacityBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1CSIStorageCapacityBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1CSIStorageCapacity item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1beta1CSIStorageCapacity item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1beta1CSIStorageCapacity item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1beta1CSIStorageCapacity item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItem() { return new V1beta1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(); } - - public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItemLike( - V1beta1CSIStorageCapacity item) { + public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItemLike(V1beta1CSIStorageCapacity item) { return new V1beta1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1beta1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( - Integer index, V1beta1CSIStorageCapacity item) { + public V1beta1CSIStorageCapacityListFluent.ItemsNested setNewItemLike(Integer index,V1beta1CSIStorageCapacity item) { return new V1beta1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(index, item); } - public V1beta1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1beta1CSIStorageCapacityListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1beta1CSIStorageCapacityListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1beta1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1beta1CSIStorageCapacityListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1beta1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(); } - - public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1beta1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(item); } - public V1beta1CSIStorageCapacityListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1CSIStorageCapacityListFluentImpl that = (V1beta1CSIStorageCapacityListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1beta1CSIStorageCapacityFluentImpl< - V1beta1CSIStorageCapacityListFluent.ItemsNested> - implements V1beta1CSIStorageCapacityListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1beta1CSIStorageCapacity item) { + class ItemsNestedImpl extends V1beta1CSIStorageCapacityFluentImpl> implements V1beta1CSIStorageCapacityListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1beta1CSIStorageCapacity item) { this.index = index; this.builder = new V1beta1CSIStorageCapacityBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1beta1CSIStorageCapacityBuilder(this); } - V1beta1CSIStorageCapacityBuilder builder; Integer index; - public N and() { - return (N) V1beta1CSIStorageCapacityListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1beta1CSIStorageCapacityListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1beta1CSIStorageCapacityListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1beta1CSIStorageCapacityListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1beta1CSIStorageCapacityListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java index 896b6b6104..7ce1429e9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java @@ -1,73 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta1FlowDistinguisherMethodBuilder - extends V1beta1FlowDistinguisherMethodFluentImpl - implements VisitableBuilder< - V1beta1FlowDistinguisherMethod, V1beta1FlowDistinguisherMethodBuilder> { +import java.lang.Boolean; +public class V1beta1FlowDistinguisherMethodBuilder extends V1beta1FlowDistinguisherMethodFluentImpl implements VisitableBuilder{ public V1beta1FlowDistinguisherMethodBuilder() { this(false); } - public V1beta1FlowDistinguisherMethodBuilder(Boolean validationEnabled) { this(new V1beta1FlowDistinguisherMethod(), validationEnabled); } - public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethodFluent fluent) { this(fluent, false); } - - public V1beta1FlowDistinguisherMethodBuilder( - V1beta1FlowDistinguisherMethodFluent fluent, Boolean validationEnabled) { + public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethodFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1FlowDistinguisherMethod(), validationEnabled); } - - public V1beta1FlowDistinguisherMethodBuilder( - V1beta1FlowDistinguisherMethodFluent fluent, V1beta1FlowDistinguisherMethod instance) { + public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethodFluent fluent,V1beta1FlowDistinguisherMethod instance) { this(fluent, instance, false); } - - public V1beta1FlowDistinguisherMethodBuilder( - V1beta1FlowDistinguisherMethodFluent fluent, - V1beta1FlowDistinguisherMethod instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethodFluent fluent,V1beta1FlowDistinguisherMethod instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethod instance) { - this(instance, false); + this(instance,false); } - - public V1beta1FlowDistinguisherMethodBuilder( - V1beta1FlowDistinguisherMethod instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethod instance,Boolean validationEnabled) { + this.fluent = this; this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1FlowDistinguisherMethodFluent fluent; Boolean validationEnabled; - public V1beta1FlowDistinguisherMethod build() { V1beta1FlowDistinguisherMethod buildable = new V1beta1FlowDistinguisherMethod(); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java index 126677e7c4..dde9137e5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java @@ -1,26 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1FlowDistinguisherMethodFluent< - A extends V1beta1FlowDistinguisherMethodFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1FlowDistinguisherMethodFluent> extends Fluent{ public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java index 4c918563b8..fca7f8dd68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java @@ -1,65 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FlowDistinguisherMethodFluentImpl< - A extends V1beta1FlowDistinguisherMethodFluent> - extends BaseFluent implements V1beta1FlowDistinguisherMethodFluent { - public V1beta1FlowDistinguisherMethodFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1FlowDistinguisherMethodFluentImpl> extends BaseFluent implements V1beta1FlowDistinguisherMethodFluent{ + public V1beta1FlowDistinguisherMethodFluentImpl() { + } public V1beta1FlowDistinguisherMethodFluentImpl(V1beta1FlowDistinguisherMethod instance) { this.withType(instance.getType()); - } + } private String type; - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1FlowDistinguisherMethodFluentImpl that = (V1beta1FlowDistinguisherMethodFluentImpl) o; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(type, super.hashCode()); + return java.util.Objects.hash(type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java index 129e2f9184..538207022d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1FlowSchemaBuilder extends V1beta1FlowSchemaFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1FlowSchemaBuilder extends V1beta1FlowSchemaFluentImpl implements VisitableBuilder{ public V1beta1FlowSchemaBuilder() { this(false); } - public V1beta1FlowSchemaBuilder(Boolean validationEnabled) { this(new V1beta1FlowSchema(), validationEnabled); } - public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent) { this(fluent, false); } - - public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent, Boolean validationEnabled) { + public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1FlowSchema(), validationEnabled); } - - public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent, V1beta1FlowSchema instance) { + public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent,V1beta1FlowSchema instance) { this(fluent, instance, false); } - - public V1beta1FlowSchemaBuilder( - V1beta1FlowSchemaFluent fluent, V1beta1FlowSchema instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent,V1beta1FlowSchema instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1beta1FlowSchemaBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaBuilder(V1beta1FlowSchema instance) { - this(instance, false); + this(instance,false); } - - public V1beta1FlowSchemaBuilder(V1beta1FlowSchema instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1FlowSchemaBuilder(V1beta1FlowSchema instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1beta1FlowSchemaBuilder(V1beta1FlowSchema instance, Boolean validationEn this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1FlowSchemaFluent fluent; Boolean validationEnabled; - public V1beta1FlowSchema build() { V1beta1FlowSchema buildable = new V1beta1FlowSchema(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1beta1FlowSchema build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java index 42b1e6ed0e..056433fe2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1FlowSchemaConditionBuilder - extends V1beta1FlowSchemaConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1FlowSchemaConditionBuilder extends V1beta1FlowSchemaConditionFluentImpl implements VisitableBuilder{ public V1beta1FlowSchemaConditionBuilder() { this(false); } - public V1beta1FlowSchemaConditionBuilder(Boolean validationEnabled) { this(new V1beta1FlowSchemaCondition(), validationEnabled); } - public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaConditionFluent fluent) { this(fluent, false); } - - public V1beta1FlowSchemaConditionBuilder( - V1beta1FlowSchemaConditionFluent fluent, Boolean validationEnabled) { + public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaCondition(), validationEnabled); } - - public V1beta1FlowSchemaConditionBuilder( - V1beta1FlowSchemaConditionFluent fluent, V1beta1FlowSchemaCondition instance) { + public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaConditionFluent fluent,V1beta1FlowSchemaCondition instance) { this(fluent, instance, false); } - - public V1beta1FlowSchemaConditionBuilder( - V1beta1FlowSchemaConditionFluent fluent, - V1beta1FlowSchemaCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaConditionFluent fluent,V1beta1FlowSchemaCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,16 +30,13 @@ public V1beta1FlowSchemaConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaCondition instance) { - this(instance, false); + this(instance,false); } - - public V1beta1FlowSchemaConditionBuilder( - V1beta1FlowSchemaCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -74,12 +47,10 @@ public V1beta1FlowSchemaConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1FlowSchemaConditionFluent fluent; Boolean validationEnabled; - public V1beta1FlowSchemaCondition build() { V1beta1FlowSchemaCondition buildable = new V1beta1FlowSchemaCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -89,4 +60,5 @@ public V1beta1FlowSchemaCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java index 7b9af4bf5e..5e91f9a5b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1FlowSchemaConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1FlowSchemaConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java index 3ec56e2707..95b396da01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FlowSchemaConditionFluentImpl> - extends BaseFluent implements V1beta1FlowSchemaConditionFluent { - public V1beta1FlowSchemaConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1FlowSchemaConditionFluentImpl> extends BaseFluent implements V1beta1FlowSchemaConditionFluent{ + public V1beta1FlowSchemaConditionFluentImpl() { + } public V1beta1FlowSchemaConditionFluentImpl(V1beta1FlowSchemaCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1beta1FlowSchemaConditionFluentImpl(V1beta1FlowSchemaCondition instance) this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1FlowSchemaConditionFluentImpl that = (V1beta1FlowSchemaConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java index 5900d92769..4356cc0d27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1FlowSchemaFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1FlowSchemaFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1beta1FlowSchemaFluent.MetadataNested withNewMetadata(); - public V1beta1FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1beta1FlowSchemaFluent.MetadataNested editMetadata(); - public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadata(); - public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta1FlowSchemaSpec getSpec(); - public V1beta1FlowSchemaSpec buildSpec(); - public A withSpec(V1beta1FlowSchemaSpec spec); - public Boolean hasSpec(); - public V1beta1FlowSchemaFluent.SpecNested withNewSpec(); - public V1beta1FlowSchemaFluent.SpecNested withNewSpecLike(V1beta1FlowSchemaSpec item); - public V1beta1FlowSchemaFluent.SpecNested editSpec(); - public V1beta1FlowSchemaFluent.SpecNested editOrNewSpec(); - public V1beta1FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta1FlowSchemaSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta1FlowSchemaStatus getStatus(); - public V1beta1FlowSchemaStatus buildStatus(); - public A withStatus(V1beta1FlowSchemaStatus status); - public Boolean hasStatus(); - public V1beta1FlowSchemaFluent.StatusNested withNewStatus(); - public V1beta1FlowSchemaFluent.StatusNested withNewStatusLike(V1beta1FlowSchemaStatus item); - public V1beta1FlowSchemaFluent.StatusNested editStatus(); - public V1beta1FlowSchemaFluent.StatusNested editOrNewStatus(); - public V1beta1FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta1FlowSchemaStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1beta1FlowSchemaSpecFluent> { + public interface SpecNested extends Nested,V1beta1FlowSchemaSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1beta1FlowSchemaStatusFluent> { + public interface StatusNested extends Nested,V1beta1FlowSchemaStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java index fb3f9194f2..92599fea38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FlowSchemaFluentImpl> extends BaseFluent - implements V1beta1FlowSchemaFluent { - public V1beta1FlowSchemaFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1FlowSchemaFluentImpl> extends BaseFluent implements V1beta1FlowSchemaFluent{ + public V1beta1FlowSchemaFluentImpl() { + } public V1beta1FlowSchemaFluentImpl(V1beta1FlowSchema instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,300 +25,205 @@ public V1beta1FlowSchemaFluentImpl(V1beta1FlowSchema instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta1FlowSchemaSpecBuilder spec; private V1beta1FlowSchemaStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1beta1FlowSchemaFluent.MetadataNested withNewMetadata() { return new V1beta1FlowSchemaFluentImpl.MetadataNestedImpl(); } - public V1beta1FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta1FlowSchemaFluentImpl.MetadataNestedImpl(item); } - public V1beta1FlowSchemaFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta1FlowSchemaSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1beta1FlowSchemaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1beta1FlowSchemaSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1beta1FlowSchemaSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1beta1FlowSchemaSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1beta1FlowSchemaFluent.SpecNested withNewSpec() { return new V1beta1FlowSchemaFluentImpl.SpecNestedImpl(); } - public V1beta1FlowSchemaFluent.SpecNested withNewSpecLike(V1beta1FlowSchemaSpec item) { return new V1beta1FlowSchemaFluentImpl.SpecNestedImpl(item); } - public V1beta1FlowSchemaFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1beta1FlowSchemaFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1beta1FlowSchemaSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1beta1FlowSchemaSpecBuilder().build()); } - public V1beta1FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta1FlowSchemaSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta1FlowSchemaStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1beta1FlowSchemaStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1beta1FlowSchemaStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1beta1FlowSchemaStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1beta1FlowSchemaStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1beta1FlowSchemaFluent.StatusNested withNewStatus() { return new V1beta1FlowSchemaFluentImpl.StatusNestedImpl(); } - public V1beta1FlowSchemaFluent.StatusNested withNewStatusLike(V1beta1FlowSchemaStatus item) { return new V1beta1FlowSchemaFluentImpl.StatusNestedImpl(item); } - public V1beta1FlowSchemaFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1beta1FlowSchemaFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1beta1FlowSchemaStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1beta1FlowSchemaStatusBuilder().build()); } - public V1beta1FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta1FlowSchemaStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1FlowSchemaFluentImpl that = (V1beta1FlowSchemaFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1beta1FlowSchemaFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1beta1FlowSchemaFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1beta1FlowSchemaFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1beta1FlowSchemaSpecFluentImpl> - implements V1beta1FlowSchemaFluent.SpecNested, Nested { + class SpecNestedImpl extends V1beta1FlowSchemaSpecFluentImpl> implements V1beta1FlowSchemaFluent.SpecNested,Nested{ SpecNestedImpl(V1beta1FlowSchemaSpec item) { this.builder = new V1beta1FlowSchemaSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1beta1FlowSchemaSpecBuilder(this); } - V1beta1FlowSchemaSpecBuilder builder; - public N and() { return (N) V1beta1FlowSchemaFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1beta1FlowSchemaStatusFluentImpl> - implements V1beta1FlowSchemaFluent.StatusNested, Nested { + class StatusNestedImpl extends V1beta1FlowSchemaStatusFluentImpl> implements V1beta1FlowSchemaFluent.StatusNested,Nested{ StatusNestedImpl(V1beta1FlowSchemaStatus item) { this.builder = new V1beta1FlowSchemaStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1beta1FlowSchemaStatusBuilder(this); } - V1beta1FlowSchemaStatusBuilder builder; - public N and() { return (N) V1beta1FlowSchemaFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java index 5513fd59e6..e30951de8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1FlowSchemaListBuilder - extends V1beta1FlowSchemaListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1FlowSchemaListBuilder extends V1beta1FlowSchemaListFluentImpl implements VisitableBuilder{ public V1beta1FlowSchemaListBuilder() { this(false); } - public V1beta1FlowSchemaListBuilder(Boolean validationEnabled) { this(new V1beta1FlowSchemaList(), validationEnabled); } - public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaListFluent fluent) { this(fluent, false); } - - public V1beta1FlowSchemaListBuilder( - V1beta1FlowSchemaListFluent fluent, Boolean validationEnabled) { + public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaListFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaList(), validationEnabled); } - - public V1beta1FlowSchemaListBuilder( - V1beta1FlowSchemaListFluent fluent, V1beta1FlowSchemaList instance) { + public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaListFluent fluent,V1beta1FlowSchemaList instance) { this(fluent, instance, false); } - - public V1beta1FlowSchemaListBuilder( - V1beta1FlowSchemaListFluent fluent, - V1beta1FlowSchemaList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaListFluent fluent,V1beta1FlowSchemaList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1beta1FlowSchemaListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaList instance) { - this(instance, false); + this(instance,false); } - - public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaList instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaList instance, Boolean vali this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1FlowSchemaListFluent fluent; Boolean validationEnabled; - public V1beta1FlowSchemaList build() { V1beta1FlowSchemaList buildable = new V1beta1FlowSchemaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1beta1FlowSchemaList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java index 47c45d5d55..21a2c0f7c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1FlowSchemaListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1FlowSchemaListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1FlowSchema item); - - public A setToItems(Integer index, V1beta1FlowSchema item); - + public A addToItems(Integer index,V1beta1FlowSchema item); + public A setToItems(Integer index,V1beta1FlowSchema item); public A addToItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1beta1FlowSchema buildItem(Integer index); - public V1beta1FlowSchema buildFirstItem(); - public V1beta1FlowSchema buildLastItem(); - public V1beta1FlowSchema buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items); - public Boolean hasItems(); - public V1beta1FlowSchemaListFluent.ItemsNested addNewItem(); - public V1beta1FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta1FlowSchema item); - - public V1beta1FlowSchemaListFluent.ItemsNested setNewItemLike( - Integer index, V1beta1FlowSchema item); - + public V1beta1FlowSchemaListFluent.ItemsNested setNewItemLike(Integer index,V1beta1FlowSchema item); public V1beta1FlowSchemaListFluent.ItemsNested editItem(Integer index); - public V1beta1FlowSchemaListFluent.ItemsNested editFirstItem(); - public V1beta1FlowSchemaListFluent.ItemsNested editLastItem(); - - public V1beta1FlowSchemaListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1beta1FlowSchemaListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadata(); - public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1beta1FlowSchemaListFluent.MetadataNested editMetadata(); - public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadata(); - public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1beta1FlowSchemaFluent> { + public interface ItemsNested extends Nested,V1beta1FlowSchemaFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java index 57ba161a40..c8031f9712 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FlowSchemaListFluentImpl> - extends BaseFluent implements V1beta1FlowSchemaListFluent { - public V1beta1FlowSchemaListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1FlowSchemaListFluentImpl> extends BaseFluent implements V1beta1FlowSchemaListFluent{ + public V1beta1FlowSchemaListFluentImpl() { + } public V1beta1FlowSchemaListFluentImpl(V1beta1FlowSchemaList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1beta1FlowSchemaListFluentImpl(V1beta1FlowSchemaList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1beta1FlowSchema item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1beta1FlowSchema item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1beta1FlowSchema item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1beta1FlowSchema item) { + if (this.items == null) {this.items = new ArrayList();} V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1FlowSchema item : items) { - V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1FlowSchema item : items) {V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1FlowSchema item : items) { - V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1FlowSchema item : items) {V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items) { - for (V1beta1FlowSchema item : items) { - V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta1FlowSchema item : items) {V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1beta1FlowSchema item : items) { - V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta1FlowSchema item : items) {V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1beta1FlowSchema buildItem(Integer index) { return this.items.get(index).build(); } - public V1beta1FlowSchema buildFirstItem() { return this.items.get(0).build(); } - public V1beta1FlowSchema buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1beta1FlowSchema buildMatchingItem(Predicate predicate) { - for (V1beta1FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1beta1FlowSchemaBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1beta1FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1FlowSchemaBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1FlowSchema item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1beta1FlowSchema item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1beta1FlowSchema item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1beta1FlowSchema item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1beta1FlowSchemaListFluent.ItemsNested addNewItem() { return new V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl(); } - public V1beta1FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta1FlowSchema item) { return new V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1beta1FlowSchemaListFluent.ItemsNested setNewItemLike( - Integer index, V1beta1FlowSchema item) { + public V1beta1FlowSchemaListFluent.ItemsNested setNewItemLike(Integer index,V1beta1FlowSchema item) { return new V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl(index, item); } - public V1beta1FlowSchemaListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1beta1FlowSchemaListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1beta1FlowSchemaListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1beta1FlowSchemaListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1beta1FlowSchemaListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1beta1FlowSchemaListFluentImpl.MetadataNestedImpl(); } - public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1beta1FlowSchemaListFluentImpl.MetadataNestedImpl(item); } - public V1beta1FlowSchemaListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1FlowSchemaListFluentImpl that = (V1beta1FlowSchemaListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1beta1FlowSchemaFluentImpl> - implements V1beta1FlowSchemaListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1beta1FlowSchema item) { + class ItemsNestedImpl extends V1beta1FlowSchemaFluentImpl> implements V1beta1FlowSchemaListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1beta1FlowSchema item) { this.index = index; this.builder = new V1beta1FlowSchemaBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1beta1FlowSchemaBuilder(this); } - V1beta1FlowSchemaBuilder builder; Integer index; - public N and() { - return (N) V1beta1FlowSchemaListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1beta1FlowSchemaListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1beta1FlowSchemaListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1beta1FlowSchemaListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1beta1FlowSchemaListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java index e3a23f4872..b1fdcc7f8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1FlowSchemaSpecBuilder - extends V1beta1FlowSchemaSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1FlowSchemaSpecBuilder extends V1beta1FlowSchemaSpecFluentImpl implements VisitableBuilder{ public V1beta1FlowSchemaSpecBuilder() { this(false); } - public V1beta1FlowSchemaSpecBuilder(Boolean validationEnabled) { this(new V1beta1FlowSchemaSpec(), validationEnabled); } - public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpecFluent fluent) { this(fluent, false); } - - public V1beta1FlowSchemaSpecBuilder( - V1beta1FlowSchemaSpecFluent fluent, Boolean validationEnabled) { + public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaSpec(), validationEnabled); } - - public V1beta1FlowSchemaSpecBuilder( - V1beta1FlowSchemaSpecFluent fluent, V1beta1FlowSchemaSpec instance) { + public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpecFluent fluent,V1beta1FlowSchemaSpec instance) { this(fluent, instance, false); } - - public V1beta1FlowSchemaSpecBuilder( - V1beta1FlowSchemaSpecFluent fluent, - V1beta1FlowSchemaSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpecFluent fluent,V1beta1FlowSchemaSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDistinguisherMethod(instance.getDistinguisherMethod()); fluent.withMatchingPrecedence(instance.getMatchingPrecedence()); @@ -52,15 +28,13 @@ public V1beta1FlowSchemaSpecBuilder( fluent.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpec instance) { - this(instance, false); + this(instance,false); } - - public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withDistinguisherMethod(instance.getDistinguisherMethod()); this.withMatchingPrecedence(instance.getMatchingPrecedence()); @@ -69,12 +43,10 @@ public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpec instance, Boolean vali this.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1FlowSchemaSpecFluent fluent; Boolean validationEnabled; - public V1beta1FlowSchemaSpec build() { V1beta1FlowSchemaSpec buildable = new V1beta1FlowSchemaSpec(); buildable.setDistinguisherMethod(fluent.getDistinguisherMethod()); @@ -83,4 +55,5 @@ public V1beta1FlowSchemaSpec build() { buildable.setRules(fluent.getRules()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java index 3a2f73d92d..bd6dbb6a93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java @@ -1,171 +1,98 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1FlowSchemaSpecFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1beta1FlowSchemaSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildDistinguisherMethod instead. - * * @return The buildable object. */ @Deprecated public V1beta1FlowDistinguisherMethod getDistinguisherMethod(); - public V1beta1FlowDistinguisherMethod buildDistinguisherMethod(); - public A withDistinguisherMethod(V1beta1FlowDistinguisherMethod distinguisherMethod); - public Boolean hasDistinguisherMethod(); - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethod(); - - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( - V1beta1FlowDistinguisherMethod item); - + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike(V1beta1FlowDistinguisherMethod item); public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod(); - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod(); - - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( - V1beta1FlowDistinguisherMethod item); - + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1beta1FlowDistinguisherMethod item); public Integer getMatchingPrecedence(); - public A withMatchingPrecedence(Integer matchingPrecedence); - public Boolean hasMatchingPrecedence(); - + /** * This method has been deprecated, please use method buildPriorityLevelConfiguration instead. - * * @return The buildable object. */ @Deprecated public V1beta1PriorityLevelConfigurationReference getPriorityLevelConfiguration(); - public V1beta1PriorityLevelConfigurationReference buildPriorityLevelConfiguration(); - - public A withPriorityLevelConfiguration( - V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration); - + public A withPriorityLevelConfiguration(V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration); public Boolean hasPriorityLevelConfiguration(); - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfiguration(); - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item); - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editPriorityLevelConfiguration(); - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfiguration(); - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item); - - public A addToRules(Integer index, V1beta1PolicyRulesWithSubjects item); - - public A setToRules(Integer index, V1beta1PolicyRulesWithSubjects item); - + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfiguration(); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration(); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration(); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item); + public A addToRules(Integer index,V1beta1PolicyRulesWithSubjects item); + public A setToRules(Integer index,V1beta1PolicyRulesWithSubjects item); public A addToRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items); - public A addAllToRules(Collection items); - - public A removeFromRules( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items); - + public A removeFromRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items); public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1beta1PolicyRulesWithSubjects buildRule(Integer index); - public V1beta1PolicyRulesWithSubjects buildFirstRule(); - public V1beta1PolicyRulesWithSubjects buildLastRule(); - - public V1beta1PolicyRulesWithSubjects buildMatchingRule( - Predicate predicate); - + public V1beta1PolicyRulesWithSubjects buildMatchingRule(Predicate predicate); public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... rules); - public Boolean hasRules(); - public V1beta1FlowSchemaSpecFluent.RulesNested addNewRule(); - - public V1beta1FlowSchemaSpecFluent.RulesNested addNewRuleLike( - V1beta1PolicyRulesWithSubjects item); - - public V1beta1FlowSchemaSpecFluent.RulesNested setNewRuleLike( - Integer index, V1beta1PolicyRulesWithSubjects item); - + public V1beta1FlowSchemaSpecFluent.RulesNested addNewRuleLike(V1beta1PolicyRulesWithSubjects item); + public V1beta1FlowSchemaSpecFluent.RulesNested setNewRuleLike(Integer index,V1beta1PolicyRulesWithSubjects item); public V1beta1FlowSchemaSpecFluent.RulesNested editRule(Integer index); - public V1beta1FlowSchemaSpecFluent.RulesNested editFirstRule(); - public V1beta1FlowSchemaSpecFluent.RulesNested editLastRule(); - - public V1beta1FlowSchemaSpecFluent.RulesNested editMatchingRule( - Predicate predicate); - - public interface DistinguisherMethodNested - extends Nested, - V1beta1FlowDistinguisherMethodFluent< - V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested> { + public V1beta1FlowSchemaSpecFluent.RulesNested editMatchingRule(Predicate predicate); + public interface DistinguisherMethodNested extends Nested,V1beta1FlowDistinguisherMethodFluent>{ public N and(); - public N endDistinguisherMethod(); + } - - public interface PriorityLevelConfigurationNested - extends Nested, - V1beta1PriorityLevelConfigurationReferenceFluent< - V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested> { + public interface PriorityLevelConfigurationNested extends Nested,V1beta1PriorityLevelConfigurationReferenceFluent>{ public N and(); - public N endPriorityLevelConfiguration(); + } - - public interface RulesNested - extends Nested, - V1beta1PolicyRulesWithSubjectsFluent> { + public interface RulesNested extends Nested,V1beta1PolicyRulesWithSubjectsFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java index dd7557b5d2..285554293f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FlowSchemaSpecFluentImpl> - extends BaseFluent implements V1beta1FlowSchemaSpecFluent { - public V1beta1FlowSchemaSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1FlowSchemaSpecFluentImpl> extends BaseFluent implements V1beta1FlowSchemaSpecFluent{ + public V1beta1FlowSchemaSpecFluentImpl() { + } public V1beta1FlowSchemaSpecFluentImpl(V1beta1FlowSchemaSpec instance) { this.withDistinguisherMethod(instance.getDistinguisherMethod()); @@ -34,222 +30,114 @@ public V1beta1FlowSchemaSpecFluentImpl(V1beta1FlowSchemaSpec instance) { this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); this.withRules(instance.getRules()); - } + } private V1beta1FlowDistinguisherMethodBuilder distinguisherMethod; private Integer matchingPrecedence; private V1beta1PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; private ArrayList rules; - + /** * This method has been deprecated, please use method buildDistinguisherMethod instead. - * * @return The buildable object. */ @Deprecated public V1beta1FlowDistinguisherMethod getDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; + return this.distinguisherMethod!=null ?this.distinguisherMethod.build():null; } - public V1beta1FlowDistinguisherMethod buildDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; + return this.distinguisherMethod!=null ?this.distinguisherMethod.build():null; } - public A withDistinguisherMethod(V1beta1FlowDistinguisherMethod distinguisherMethod) { _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - if (distinguisherMethod != null) { - this.distinguisherMethod = new V1beta1FlowDistinguisherMethodBuilder(distinguisherMethod); - _visitables.get("distinguisherMethod").add(this.distinguisherMethod); - } else { - this.distinguisherMethod = null; - _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - } - return (A) this; + if (distinguisherMethod!=null){ this.distinguisherMethod= new V1beta1FlowDistinguisherMethodBuilder(distinguisherMethod); _visitables.get("distinguisherMethod").add(this.distinguisherMethod);} else { this.distinguisherMethod = null; _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); } return (A) this; } - public Boolean hasDistinguisherMethod() { return this.distinguisherMethod != null; } - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethod() { return new V1beta1FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(); } - - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( - V1beta1FlowDistinguisherMethod item) { + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike(V1beta1FlowDistinguisherMethod item) { return new V1beta1FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(item); } - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod() { return withNewDistinguisherMethodLike(getDistinguisherMethod()); } - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod() { - return withNewDistinguisherMethodLike( - getDistinguisherMethod() != null - ? getDistinguisherMethod() - : new V1beta1FlowDistinguisherMethodBuilder().build()); + return withNewDistinguisherMethodLike(getDistinguisherMethod() != null ? getDistinguisherMethod(): new V1beta1FlowDistinguisherMethodBuilder().build()); } - - public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( - V1beta1FlowDistinguisherMethod item) { - return withNewDistinguisherMethodLike( - getDistinguisherMethod() != null ? getDistinguisherMethod() : item); + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1beta1FlowDistinguisherMethod item) { + return withNewDistinguisherMethodLike(getDistinguisherMethod() != null ? getDistinguisherMethod(): item); } - public Integer getMatchingPrecedence() { return this.matchingPrecedence; } - public A withMatchingPrecedence(Integer matchingPrecedence) { - this.matchingPrecedence = matchingPrecedence; - return (A) this; + this.matchingPrecedence=matchingPrecedence; return (A) this; } - public Boolean hasMatchingPrecedence() { return this.matchingPrecedence != null; } - + /** * This method has been deprecated, please use method buildPriorityLevelConfiguration instead. - * * @return The buildable object. */ @Deprecated public V1beta1PriorityLevelConfigurationReference getPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; + return this.priorityLevelConfiguration!=null ?this.priorityLevelConfiguration.build():null; } - public V1beta1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; + return this.priorityLevelConfiguration!=null ?this.priorityLevelConfiguration.build():null; } - - public A withPriorityLevelConfiguration( - V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration) { + public A withPriorityLevelConfiguration(V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration) { _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - if (priorityLevelConfiguration != null) { - this.priorityLevelConfiguration = - new V1beta1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); - _visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); - } else { - this.priorityLevelConfiguration = null; - _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - } - return (A) this; + if (priorityLevelConfiguration!=null){ this.priorityLevelConfiguration= new V1beta1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); _visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration);} else { this.priorityLevelConfiguration = null; _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); } return (A) this; } - public Boolean hasPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null; } - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfiguration() { + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { return new V1beta1FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(); } - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item) { + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item) { return new V1beta1FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(item); } - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editPriorityLevelConfiguration() { + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration() { return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration()); } - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike( - getPriorityLevelConfiguration() != null - ? getPriorityLevelConfiguration() - : new V1beta1PriorityLevelConfigurationReferenceBuilder().build()); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { + return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration(): new V1beta1PriorityLevelConfigurationReferenceBuilder().build()); } - - public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item) { - return withNewPriorityLevelConfigurationLike( - getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration() : item); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item) { + return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration(): item); } - - public A addToRules(Integer index, V1beta1PolicyRulesWithSubjects item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1beta1PolicyRulesWithSubjects item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1beta1PolicyRulesWithSubjects item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1beta1PolicyRulesWithSubjects item) { + if (this.rules == null) {this.rules = new ArrayList();} V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1beta1PolicyRulesWithSubjects item : items) { - V1beta1PolicyRulesWithSubjectsBuilder builder = - new V1beta1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1beta1PolicyRulesWithSubjects item : items) {V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1beta1PolicyRulesWithSubjects item : items) { - V1beta1PolicyRulesWithSubjectsBuilder builder = - new V1beta1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1beta1PolicyRulesWithSubjects item : items) {V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - - public A removeFromRules( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items) { - for (V1beta1PolicyRulesWithSubjects item : items) { - V1beta1PolicyRulesWithSubjectsBuilder builder = - new V1beta1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + public A removeFromRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items) { + for (V1beta1PolicyRulesWithSubjects item : items) {V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1beta1PolicyRulesWithSubjects item : items) { - V1beta1PolicyRulesWithSubjectsBuilder builder = - new V1beta1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1beta1PolicyRulesWithSubjects item : items) {V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -261,246 +149,149 @@ public A removeMatchingFromRules(Predicate getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1beta1PolicyRulesWithSubjects buildRule(Integer index) { return this.rules.get(index).build(); } - public V1beta1PolicyRulesWithSubjects buildFirstRule() { return this.rules.get(0).build(); } - public V1beta1PolicyRulesWithSubjects buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - - public V1beta1PolicyRulesWithSubjects buildMatchingRule( - Predicate predicate) { - for (V1beta1PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { + for (V1beta1PolicyRulesWithSubjectsBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1beta1PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1PolicyRulesWithSubjectsBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1beta1PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1beta1PolicyRulesWithSubjects item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1beta1PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1beta1PolicyRulesWithSubjects item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1beta1FlowSchemaSpecFluent.RulesNested addNewRule() { return new V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl(); } - - public V1beta1FlowSchemaSpecFluent.RulesNested addNewRuleLike( - V1beta1PolicyRulesWithSubjects item) { + public V1beta1FlowSchemaSpecFluent.RulesNested addNewRuleLike(V1beta1PolicyRulesWithSubjects item) { return new V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl(-1, item); } - - public V1beta1FlowSchemaSpecFluent.RulesNested setNewRuleLike( - Integer index, V1beta1PolicyRulesWithSubjects item) { + public V1beta1FlowSchemaSpecFluent.RulesNested setNewRuleLike(Integer index,V1beta1PolicyRulesWithSubjects item) { return new V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl(index, item); } - public V1beta1FlowSchemaSpecFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1beta1FlowSchemaSpecFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1beta1FlowSchemaSpecFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1beta1FlowSchemaSpecFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1beta1FlowSchemaSpecFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta1FlowDistinguisherMethodFluentImpl< - V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested> - implements V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested, Nested { + class DistinguisherMethodNestedImpl extends V1beta1FlowDistinguisherMethodFluentImpl> implements V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested,Nested{ DistinguisherMethodNestedImpl(V1beta1FlowDistinguisherMethod item) { this.builder = new V1beta1FlowDistinguisherMethodBuilder(this, item); } - DistinguisherMethodNestedImpl() { this.builder = new V1beta1FlowDistinguisherMethodBuilder(this); } - V1beta1FlowDistinguisherMethodBuilder builder; - public N and() { return (N) V1beta1FlowSchemaSpecFluentImpl.this.withDistinguisherMethod(builder.build()); } - public N endDistinguisherMethod() { return and(); } + } - - class PriorityLevelConfigurationNestedImpl - extends V1beta1PriorityLevelConfigurationReferenceFluentImpl< - V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested> - implements V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested, Nested { + class PriorityLevelConfigurationNestedImpl extends V1beta1PriorityLevelConfigurationReferenceFluentImpl> implements V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested,Nested{ PriorityLevelConfigurationNestedImpl(V1beta1PriorityLevelConfigurationReference item) { this.builder = new V1beta1PriorityLevelConfigurationReferenceBuilder(this, item); } - PriorityLevelConfigurationNestedImpl() { this.builder = new V1beta1PriorityLevelConfigurationReferenceBuilder(this); } - V1beta1PriorityLevelConfigurationReferenceBuilder builder; - public N and() { - return (N) - V1beta1FlowSchemaSpecFluentImpl.this.withPriorityLevelConfiguration(builder.build()); + return (N) V1beta1FlowSchemaSpecFluentImpl.this.withPriorityLevelConfiguration(builder.build()); } - public N endPriorityLevelConfiguration() { return and(); } + } - - class RulesNestedImpl - extends V1beta1PolicyRulesWithSubjectsFluentImpl> - implements V1beta1FlowSchemaSpecFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1beta1PolicyRulesWithSubjects item) { + class RulesNestedImpl extends V1beta1PolicyRulesWithSubjectsFluentImpl> implements V1beta1FlowSchemaSpecFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1beta1PolicyRulesWithSubjects item) { this.index = index; this.builder = new V1beta1PolicyRulesWithSubjectsBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1beta1PolicyRulesWithSubjectsBuilder(this); } - V1beta1PolicyRulesWithSubjectsBuilder builder; Integer index; - public N and() { - return (N) V1beta1FlowSchemaSpecFluentImpl.this.setToRules(index, builder.build()); + return (N) V1beta1FlowSchemaSpecFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java index d04bd8f9e7..77df075a8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta1FlowSchemaStatusBuilder - extends V1beta1FlowSchemaStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1FlowSchemaStatusBuilder extends V1beta1FlowSchemaStatusFluentImpl implements VisitableBuilder{ public V1beta1FlowSchemaStatusBuilder() { this(false); } - public V1beta1FlowSchemaStatusBuilder(Boolean validationEnabled) { this(new V1beta1FlowSchemaStatus(), validationEnabled); } - public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatusFluent fluent) { this(fluent, false); } - - public V1beta1FlowSchemaStatusBuilder( - V1beta1FlowSchemaStatusFluent fluent, Boolean validationEnabled) { + public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaStatus(), validationEnabled); } - - public V1beta1FlowSchemaStatusBuilder( - V1beta1FlowSchemaStatusFluent fluent, V1beta1FlowSchemaStatus instance) { + public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatusFluent fluent,V1beta1FlowSchemaStatus instance) { this(fluent, instance, false); } - - public V1beta1FlowSchemaStatusBuilder( - V1beta1FlowSchemaStatusFluent fluent, - V1beta1FlowSchemaStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatusFluent fluent,V1beta1FlowSchemaStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatus instance) { - this(instance, false); + this(instance,false); } - - public V1beta1FlowSchemaStatusBuilder( - V1beta1FlowSchemaStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1FlowSchemaStatusFluent fluent; Boolean validationEnabled; - public V1beta1FlowSchemaStatus build() { V1beta1FlowSchemaStatus buildable = new V1beta1FlowSchemaStatus(); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java index af002ae8a4..327fed5112 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java @@ -1,91 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1FlowSchemaStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1beta1FlowSchemaCondition item); - - public A setToConditions(Integer index, V1beta1FlowSchemaCondition item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1FlowSchemaStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1beta1FlowSchemaCondition item); + public A setToConditions(Integer index,V1beta1FlowSchemaCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items); - public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items); public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1beta1FlowSchemaCondition buildCondition(Integer index); - public V1beta1FlowSchemaCondition buildFirstCondition(); - public V1beta1FlowSchemaCondition buildLastCondition(); - - public V1beta1FlowSchemaCondition buildMatchingCondition( - Predicate predicate); - + public V1beta1FlowSchemaCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... conditions); public Boolean hasConditions(); - public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewCondition(); - - public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( - V1beta1FlowSchemaCondition item); - - public V1beta1FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta1FlowSchemaCondition item); - + public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewConditionLike(V1beta1FlowSchemaCondition item); + public V1beta1FlowSchemaStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta1FlowSchemaCondition item); public V1beta1FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index); - public V1beta1FlowSchemaStatusFluent.ConditionsNested editFirstCondition(); - public V1beta1FlowSchemaStatusFluent.ConditionsNested editLastCondition(); - - public V1beta1FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, - V1beta1FlowSchemaConditionFluent> { + public V1beta1FlowSchemaStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1beta1FlowSchemaConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java index 92d01302d5..31eb5034bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java @@ -1,115 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FlowSchemaStatusFluentImpl> - extends BaseFluent implements V1beta1FlowSchemaStatusFluent { - public V1beta1FlowSchemaStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1FlowSchemaStatusFluentImpl> extends BaseFluent implements V1beta1FlowSchemaStatusFluent{ + public V1beta1FlowSchemaStatusFluentImpl() { + } public V1beta1FlowSchemaStatusFluentImpl(V1beta1FlowSchemaStatus instance) { this.withConditions(instance.getConditions()); - } + } private ArrayList conditions; - - public A addToConditions(Integer index, V1beta1FlowSchemaCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(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 addToConditions(Integer index,V1beta1FlowSchemaCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(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(Integer index, V1beta1FlowSchemaCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1beta1FlowSchemaCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(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; + 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.V1beta1FlowSchemaCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1beta1FlowSchemaCondition item : items) { - V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta1FlowSchemaCondition item : items) {V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(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 ArrayList(); - } - for (V1beta1FlowSchemaCondition item : items) { - V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta1FlowSchemaCondition item : items) {V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items) { - for (V1beta1FlowSchemaCondition item : items) { - V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items) { + for (V1beta1FlowSchemaCondition item : items) {V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1beta1FlowSchemaCondition item : items) { - V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1beta1FlowSchemaCondition item : items) {V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(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(); @@ -121,178 +63,111 @@ public A removeMatchingFromConditions(Predicate getConditions() { return conditions != null ? build(conditions) : null; } - public List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1beta1FlowSchemaCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1beta1FlowSchemaCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1beta1FlowSchemaCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1beta1FlowSchemaCondition buildMatchingCondition( - Predicate predicate) { - for (V1beta1FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1FlowSchemaCondition buildMatchingCondition(Predicate predicate) { + for (V1beta1FlowSchemaConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1beta1FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1FlowSchemaConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta1FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1beta1FlowSchemaCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1beta1FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1beta1FlowSchemaCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewCondition() { return new V1beta1FlowSchemaStatusFluentImpl.ConditionsNestedImpl(); } - - public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( - V1beta1FlowSchemaCondition item) { + public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewConditionLike(V1beta1FlowSchemaCondition item) { return new V1beta1FlowSchemaStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1beta1FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta1FlowSchemaCondition item) { + public V1beta1FlowSchemaStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta1FlowSchemaCondition item) { return new V1beta1FlowSchemaStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1beta1FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1beta1FlowSchemaStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1beta1FlowSchemaStatusFluent.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 V1beta1FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1beta1FlowSchemaStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta1FlowSchemaConditionFluentImpl< - V1beta1FlowSchemaStatusFluent.ConditionsNested> - implements V1beta1FlowSchemaStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1beta1FlowSchemaCondition item) { + class ConditionsNestedImpl extends V1beta1FlowSchemaConditionFluentImpl> implements V1beta1FlowSchemaStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1beta1FlowSchemaCondition item) { this.index = index; this.builder = new V1beta1FlowSchemaConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1beta1FlowSchemaConditionBuilder(this); } - V1beta1FlowSchemaConditionBuilder builder; Integer index; - public N and() { - return (N) V1beta1FlowSchemaStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1beta1FlowSchemaStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java index 845901bd92..bda98ae463 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta1GroupSubjectBuilder - extends V1beta1GroupSubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1GroupSubjectBuilder extends V1beta1GroupSubjectFluentImpl implements VisitableBuilder{ public V1beta1GroupSubjectBuilder() { this(false); } - public V1beta1GroupSubjectBuilder(Boolean validationEnabled) { this(new V1beta1GroupSubject(), validationEnabled); } - public V1beta1GroupSubjectBuilder(V1beta1GroupSubjectFluent fluent) { this(fluent, false); } - - public V1beta1GroupSubjectBuilder( - V1beta1GroupSubjectFluent fluent, Boolean validationEnabled) { + public V1beta1GroupSubjectBuilder(V1beta1GroupSubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1GroupSubject(), validationEnabled); } - - public V1beta1GroupSubjectBuilder( - V1beta1GroupSubjectFluent fluent, V1beta1GroupSubject instance) { + public V1beta1GroupSubjectBuilder(V1beta1GroupSubjectFluent fluent,V1beta1GroupSubject instance) { this(fluent, instance, false); } - - public V1beta1GroupSubjectBuilder( - V1beta1GroupSubjectFluent fluent, - V1beta1GroupSubject instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1GroupSubjectBuilder(V1beta1GroupSubjectFluent fluent,V1beta1GroupSubject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1GroupSubjectBuilder(V1beta1GroupSubject instance) { - this(instance, false); + this(instance,false); } - - public V1beta1GroupSubjectBuilder(V1beta1GroupSubject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1GroupSubjectBuilder(V1beta1GroupSubject instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1GroupSubjectFluent fluent; Boolean validationEnabled; - public V1beta1GroupSubject build() { V1beta1GroupSubject buildable = new V1beta1GroupSubject(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java index 1e48bb5a59..9968625427 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java @@ -1,25 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1GroupSubjectFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1GroupSubjectFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java index cb7cd30a5c..7ab0b279ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1GroupSubjectFluentImpl> - extends BaseFluent implements V1beta1GroupSubjectFluent { - public V1beta1GroupSubjectFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1GroupSubjectFluentImpl> extends BaseFluent implements V1beta1GroupSubjectFluent{ + public V1beta1GroupSubjectFluentImpl() { + } public V1beta1GroupSubjectFluentImpl(V1beta1GroupSubject instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1GroupSubjectFluentImpl that = (V1beta1GroupSubjectFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java index 2ca48b9c4b..ec7a4d6854 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta1LimitResponseBuilder - extends V1beta1LimitResponseFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1LimitResponseBuilder extends V1beta1LimitResponseFluentImpl implements VisitableBuilder{ public V1beta1LimitResponseBuilder() { this(false); } - public V1beta1LimitResponseBuilder(Boolean validationEnabled) { this(new V1beta1LimitResponse(), validationEnabled); } - public V1beta1LimitResponseBuilder(V1beta1LimitResponseFluent fluent) { this(fluent, false); } - - public V1beta1LimitResponseBuilder( - V1beta1LimitResponseFluent fluent, Boolean validationEnabled) { + public V1beta1LimitResponseBuilder(V1beta1LimitResponseFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1LimitResponse(), validationEnabled); } - - public V1beta1LimitResponseBuilder( - V1beta1LimitResponseFluent fluent, V1beta1LimitResponse instance) { + public V1beta1LimitResponseBuilder(V1beta1LimitResponseFluent fluent,V1beta1LimitResponse instance) { this(fluent, instance, false); } - - public V1beta1LimitResponseBuilder( - V1beta1LimitResponseFluent fluent, - V1beta1LimitResponse instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1LimitResponseBuilder(V1beta1LimitResponseFluent fluent,V1beta1LimitResponse instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withQueuing(instance.getQueuing()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1LimitResponseBuilder(V1beta1LimitResponse instance) { - this(instance, false); + this(instance,false); } - - public V1beta1LimitResponseBuilder(V1beta1LimitResponse instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1LimitResponseBuilder(V1beta1LimitResponse instance,Boolean validationEnabled) { + this.fluent = this; this.withQueuing(instance.getQueuing()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1LimitResponseFluent fluent; Boolean validationEnabled; - public V1beta1LimitResponse build() { V1beta1LimitResponse buildable = new V1beta1LimitResponse(); buildable.setQueuing(fluent.getQueuing()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java index e220443c0f..aee8eacdf3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1LimitResponseFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1LimitResponseFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildQueuing instead. - * * @return The buildable object. */ @Deprecated public V1beta1QueuingConfiguration getQueuing(); - public V1beta1QueuingConfiguration buildQueuing(); - public A withQueuing(V1beta1QueuingConfiguration queuing); - public Boolean hasQueuing(); - public V1beta1LimitResponseFluent.QueuingNested withNewQueuing(); - - public V1beta1LimitResponseFluent.QueuingNested withNewQueuingLike( - V1beta1QueuingConfiguration item); - + public V1beta1LimitResponseFluent.QueuingNested withNewQueuingLike(V1beta1QueuingConfiguration item); public V1beta1LimitResponseFluent.QueuingNested editQueuing(); - public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuing(); - - public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuingLike( - V1beta1QueuingConfiguration item); - + public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuingLike(V1beta1QueuingConfiguration item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface QueuingNested - extends Nested, - V1beta1QueuingConfigurationFluent> { + public interface QueuingNested extends Nested,V1beta1QueuingConfigurationFluent>{ public N and(); - public N endQueuing(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java index e2fe524957..67e21514b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java @@ -1,148 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1LimitResponseFluentImpl> - extends BaseFluent implements V1beta1LimitResponseFluent { - public V1beta1LimitResponseFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1LimitResponseFluentImpl> extends BaseFluent implements V1beta1LimitResponseFluent{ + public V1beta1LimitResponseFluentImpl() { + } public V1beta1LimitResponseFluentImpl(V1beta1LimitResponse instance) { this.withQueuing(instance.getQueuing()); this.withType(instance.getType()); - } + } private V1beta1QueuingConfigurationBuilder queuing; private String type; - + /** * This method has been deprecated, please use method buildQueuing instead. - * * @return The buildable object. */ @Deprecated public V1beta1QueuingConfiguration getQueuing() { - return this.queuing != null ? this.queuing.build() : null; + return this.queuing!=null ?this.queuing.build():null; } - public V1beta1QueuingConfiguration buildQueuing() { - return this.queuing != null ? this.queuing.build() : null; + return this.queuing!=null ?this.queuing.build():null; } - public A withQueuing(V1beta1QueuingConfiguration queuing) { _visitables.get("queuing").remove(this.queuing); - if (queuing != null) { - this.queuing = new V1beta1QueuingConfigurationBuilder(queuing); - _visitables.get("queuing").add(this.queuing); - } else { - this.queuing = null; - _visitables.get("queuing").remove(this.queuing); - } - return (A) this; + if (queuing!=null){ this.queuing= new V1beta1QueuingConfigurationBuilder(queuing); _visitables.get("queuing").add(this.queuing);} else { this.queuing = null; _visitables.get("queuing").remove(this.queuing); } return (A) this; } - public Boolean hasQueuing() { return this.queuing != null; } - public V1beta1LimitResponseFluent.QueuingNested withNewQueuing() { return new V1beta1LimitResponseFluentImpl.QueuingNestedImpl(); } - - public V1beta1LimitResponseFluent.QueuingNested withNewQueuingLike( - V1beta1QueuingConfiguration item) { + public V1beta1LimitResponseFluent.QueuingNested withNewQueuingLike(V1beta1QueuingConfiguration item) { return new V1beta1LimitResponseFluentImpl.QueuingNestedImpl(item); } - public V1beta1LimitResponseFluent.QueuingNested editQueuing() { return withNewQueuingLike(getQueuing()); } - public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuing() { - return withNewQueuingLike( - getQueuing() != null ? getQueuing() : new V1beta1QueuingConfigurationBuilder().build()); + return withNewQueuingLike(getQueuing() != null ? getQueuing(): new V1beta1QueuingConfigurationBuilder().build()); } - - public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuingLike( - V1beta1QueuingConfiguration item) { - return withNewQueuingLike(getQueuing() != null ? getQueuing() : item); + public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuingLike(V1beta1QueuingConfiguration item) { + return withNewQueuingLike(getQueuing() != null ? getQueuing(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1LimitResponseFluentImpl that = (V1beta1LimitResponseFluentImpl) o; - if (queuing != null ? !queuing.equals(that.queuing) : that.queuing != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (queuing != null ? !queuing.equals(that.queuing) :that.queuing != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(queuing, type, super.hashCode()); + return java.util.Objects.hash(queuing, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (queuing != null) { - sb.append("queuing:"); - sb.append(queuing + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class QueuingNestedImpl - extends V1beta1QueuingConfigurationFluentImpl> - implements V1beta1LimitResponseFluent.QueuingNested, Nested { + class QueuingNestedImpl extends V1beta1QueuingConfigurationFluentImpl> implements V1beta1LimitResponseFluent.QueuingNested,Nested{ QueuingNestedImpl(V1beta1QueuingConfiguration item) { this.builder = new V1beta1QueuingConfigurationBuilder(this, item); } - QueuingNestedImpl() { this.builder = new V1beta1QueuingConfigurationBuilder(this); } - V1beta1QueuingConfigurationBuilder builder; - public N and() { return (N) V1beta1LimitResponseFluentImpl.this.withQueuing(builder.build()); } - public N endQueuing() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java index cc3ce00cf3..2cc4cda3ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java @@ -1,83 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta1LimitedPriorityLevelConfigurationBuilder - extends V1beta1LimitedPriorityLevelConfigurationFluentImpl< - V1beta1LimitedPriorityLevelConfigurationBuilder> - implements VisitableBuilder< - V1beta1LimitedPriorityLevelConfiguration, V1beta1LimitedPriorityLevelConfigurationBuilder> { +import java.lang.Boolean; +public class V1beta1LimitedPriorityLevelConfigurationBuilder extends V1beta1LimitedPriorityLevelConfigurationFluentImpl implements VisitableBuilder{ public V1beta1LimitedPriorityLevelConfigurationBuilder() { this(false); } - public V1beta1LimitedPriorityLevelConfigurationBuilder(Boolean validationEnabled) { this(new V1beta1LimitedPriorityLevelConfiguration(), validationEnabled); } - - public V1beta1LimitedPriorityLevelConfigurationBuilder( - V1beta1LimitedPriorityLevelConfigurationFluent fluent) { + public V1beta1LimitedPriorityLevelConfigurationBuilder(V1beta1LimitedPriorityLevelConfigurationFluent fluent) { this(fluent, false); } - - public V1beta1LimitedPriorityLevelConfigurationBuilder( - V1beta1LimitedPriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { + public V1beta1LimitedPriorityLevelConfigurationBuilder(V1beta1LimitedPriorityLevelConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1LimitedPriorityLevelConfiguration(), validationEnabled); } - - public V1beta1LimitedPriorityLevelConfigurationBuilder( - V1beta1LimitedPriorityLevelConfigurationFluent fluent, - V1beta1LimitedPriorityLevelConfiguration instance) { + public V1beta1LimitedPriorityLevelConfigurationBuilder(V1beta1LimitedPriorityLevelConfigurationFluent fluent,V1beta1LimitedPriorityLevelConfiguration instance) { this(fluent, instance, false); } - - public V1beta1LimitedPriorityLevelConfigurationBuilder( - V1beta1LimitedPriorityLevelConfigurationFluent fluent, - V1beta1LimitedPriorityLevelConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1LimitedPriorityLevelConfigurationBuilder(V1beta1LimitedPriorityLevelConfigurationFluent fluent,V1beta1LimitedPriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); fluent.withLimitResponse(instance.getLimitResponse()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta1LimitedPriorityLevelConfigurationBuilder( - V1beta1LimitedPriorityLevelConfiguration instance) { - this(instance, false); + public V1beta1LimitedPriorityLevelConfigurationBuilder(V1beta1LimitedPriorityLevelConfiguration instance) { + this(instance,false); } - - public V1beta1LimitedPriorityLevelConfigurationBuilder( - V1beta1LimitedPriorityLevelConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1LimitedPriorityLevelConfigurationBuilder(V1beta1LimitedPriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); this.withLimitResponse(instance.getLimitResponse()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1LimitedPriorityLevelConfigurationFluent fluent; Boolean validationEnabled; - public V1beta1LimitedPriorityLevelConfiguration build() { - V1beta1LimitedPriorityLevelConfiguration buildable = - new V1beta1LimitedPriorityLevelConfiguration(); + V1beta1LimitedPriorityLevelConfiguration buildable = new V1beta1LimitedPriorityLevelConfiguration(); buildable.setAssuredConcurrencyShares(fluent.getAssuredConcurrencyShares()); buildable.setLimitResponse(fluent.getLimitResponse()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java index f765e42962..35eaed3c2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java @@ -1,64 +1,37 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1LimitedPriorityLevelConfigurationFluent< - A extends V1beta1LimitedPriorityLevelConfigurationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1LimitedPriorityLevelConfigurationFluent> extends Fluent{ public Integer getAssuredConcurrencyShares(); - public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares); - public Boolean hasAssuredConcurrencyShares(); - + /** * This method has been deprecated, please use method buildLimitResponse instead. - * * @return The buildable object. */ @Deprecated public V1beta1LimitResponse getLimitResponse(); - public V1beta1LimitResponse buildLimitResponse(); - public A withLimitResponse(V1beta1LimitResponse limitResponse); - public Boolean hasLimitResponse(); - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponse(); - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponseLike(V1beta1LimitResponse item); - + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponse(); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponseLike(V1beta1LimitResponse item); public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse(); - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponse(); - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponseLike(V1beta1LimitResponse item); - - public interface LimitResponseNested - extends Nested, - V1beta1LimitResponseFluent< - V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested> { + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse(); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponseLike(V1beta1LimitResponse item); + public interface LimitResponseNested extends Nested,V1beta1LimitResponseFluent>{ public N and(); - public N endLimitResponse(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java index 97ee9a4751..9594e90f85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java @@ -1,162 +1,106 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1LimitedPriorityLevelConfigurationFluentImpl< - A extends V1beta1LimitedPriorityLevelConfigurationFluent> - extends BaseFluent implements V1beta1LimitedPriorityLevelConfigurationFluent { - public V1beta1LimitedPriorityLevelConfigurationFluentImpl() {} - - public V1beta1LimitedPriorityLevelConfigurationFluentImpl( - V1beta1LimitedPriorityLevelConfiguration instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1LimitedPriorityLevelConfigurationFluentImpl> extends BaseFluent implements V1beta1LimitedPriorityLevelConfigurationFluent{ + public V1beta1LimitedPriorityLevelConfigurationFluentImpl() { + } + public V1beta1LimitedPriorityLevelConfigurationFluentImpl(V1beta1LimitedPriorityLevelConfiguration instance) { this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); this.withLimitResponse(instance.getLimitResponse()); - } + } private Integer assuredConcurrencyShares; private V1beta1LimitResponseBuilder limitResponse; - public Integer getAssuredConcurrencyShares() { return this.assuredConcurrencyShares; } - public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares) { - this.assuredConcurrencyShares = assuredConcurrencyShares; - return (A) this; + this.assuredConcurrencyShares=assuredConcurrencyShares; return (A) this; } - public Boolean hasAssuredConcurrencyShares() { return this.assuredConcurrencyShares != null; } - + /** * This method has been deprecated, please use method buildLimitResponse instead. - * * @return The buildable object. */ @Deprecated public V1beta1LimitResponse getLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; + return this.limitResponse!=null ?this.limitResponse.build():null; } - public V1beta1LimitResponse buildLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; + return this.limitResponse!=null ?this.limitResponse.build():null; } - public A withLimitResponse(V1beta1LimitResponse limitResponse) { _visitables.get("limitResponse").remove(this.limitResponse); - if (limitResponse != null) { - this.limitResponse = new V1beta1LimitResponseBuilder(limitResponse); - _visitables.get("limitResponse").add(this.limitResponse); - } else { - this.limitResponse = null; - _visitables.get("limitResponse").remove(this.limitResponse); - } - return (A) this; + if (limitResponse!=null){ this.limitResponse= new V1beta1LimitResponseBuilder(limitResponse); _visitables.get("limitResponse").add(this.limitResponse);} else { this.limitResponse = null; _visitables.get("limitResponse").remove(this.limitResponse); } return (A) this; } - public Boolean hasLimitResponse() { return this.limitResponse != null; } - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponse() { + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponse() { return new V1beta1LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(); } - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponseLike(V1beta1LimitResponse item) { + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponseLike(V1beta1LimitResponse item) { return new V1beta1LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(item); } - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse() { return withNewLimitResponseLike(getLimitResponse()); } - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponse() { - return withNewLimitResponseLike( - getLimitResponse() != null - ? getLimitResponse() - : new V1beta1LimitResponseBuilder().build()); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse() { + return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse(): new V1beta1LimitResponseBuilder().build()); } - - public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponseLike(V1beta1LimitResponse item) { - return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse() : item); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponseLike(V1beta1LimitResponse item) { + return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta1LimitedPriorityLevelConfigurationFluentImpl that = - (V1beta1LimitedPriorityLevelConfigurationFluentImpl) o; - if (assuredConcurrencyShares != null - ? !assuredConcurrencyShares.equals(that.assuredConcurrencyShares) - : that.assuredConcurrencyShares != null) return false; - if (limitResponse != null - ? !limitResponse.equals(that.limitResponse) - : that.limitResponse != null) return false; + V1beta1LimitedPriorityLevelConfigurationFluentImpl that = (V1beta1LimitedPriorityLevelConfigurationFluentImpl) o; + if (assuredConcurrencyShares != null ? !assuredConcurrencyShares.equals(that.assuredConcurrencyShares) :that.assuredConcurrencyShares != null) return false; + if (limitResponse != null ? !limitResponse.equals(that.limitResponse) :that.limitResponse != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(assuredConcurrencyShares, limitResponse, super.hashCode()); + return java.util.Objects.hash(assuredConcurrencyShares, limitResponse, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (assuredConcurrencyShares != null) { - sb.append("assuredConcurrencyShares:"); - sb.append(assuredConcurrencyShares + ","); - } - if (limitResponse != null) { - sb.append("limitResponse:"); - sb.append(limitResponse); - } + if (assuredConcurrencyShares != null) { sb.append("assuredConcurrencyShares:"); sb.append(assuredConcurrencyShares + ","); } + if (limitResponse != null) { sb.append("limitResponse:"); sb.append(limitResponse); } sb.append("}"); return sb.toString(); } - - class LimitResponseNestedImpl - extends V1beta1LimitResponseFluentImpl< - V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested> - implements V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested, Nested { + class LimitResponseNestedImpl extends V1beta1LimitResponseFluentImpl> implements V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested,Nested{ LimitResponseNestedImpl(V1beta1LimitResponse item) { this.builder = new V1beta1LimitResponseBuilder(this, item); } - LimitResponseNestedImpl() { this.builder = new V1beta1LimitResponseBuilder(this); } - V1beta1LimitResponseBuilder builder; - public N and() { - return (N) - V1beta1LimitedPriorityLevelConfigurationFluentImpl.this.withLimitResponse( - builder.build()); + return (N) V1beta1LimitedPriorityLevelConfigurationFluentImpl.this.withLimitResponse(builder.build()); } - public N endLimitResponse() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java index dd898d2cbe..f3b057fdc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta1NonResourcePolicyRuleBuilder - extends V1beta1NonResourcePolicyRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1NonResourcePolicyRuleBuilder extends V1beta1NonResourcePolicyRuleFluentImpl implements VisitableBuilder{ public V1beta1NonResourcePolicyRuleBuilder() { this(false); } - public V1beta1NonResourcePolicyRuleBuilder(Boolean validationEnabled) { this(new V1beta1NonResourcePolicyRule(), validationEnabled); } - public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRuleFluent fluent) { this(fluent, false); } - - public V1beta1NonResourcePolicyRuleBuilder( - V1beta1NonResourcePolicyRuleFluent fluent, Boolean validationEnabled) { + public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1NonResourcePolicyRule(), validationEnabled); } - - public V1beta1NonResourcePolicyRuleBuilder( - V1beta1NonResourcePolicyRuleFluent fluent, V1beta1NonResourcePolicyRule instance) { + public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRuleFluent fluent,V1beta1NonResourcePolicyRule instance) { this(fluent, instance, false); } - - public V1beta1NonResourcePolicyRuleBuilder( - V1beta1NonResourcePolicyRuleFluent fluent, - V1beta1NonResourcePolicyRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRuleFluent fluent,V1beta1NonResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNonResourceURLs(instance.getNonResourceURLs()); fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRule instance) { - this(instance, false); + this(instance,false); } - - public V1beta1NonResourcePolicyRuleBuilder( - V1beta1NonResourcePolicyRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = this; this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1NonResourcePolicyRuleFluent fluent; Boolean validationEnabled; - public V1beta1NonResourcePolicyRule build() { V1beta1NonResourcePolicyRule buildable = new V1beta1NonResourcePolicyRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java index 8d0066ddd9..981a11b831 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java @@ -1,82 +1,47 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1beta1NonResourcePolicyRuleFluent> - extends Fluent { - public A addToNonResourceURLs(Integer index, String item); - - public A setToNonResourceURLs(Integer index, String item); - + /** + * Generated + */ +public interface V1beta1NonResourcePolicyRuleFluent> extends Fluent{ + public A addToNonResourceURLs(Integer index,String item); + public A setToNonResourceURLs(Integer index,String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); - public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); - public String getNonResourceURL(Integer index); - public String getFirstNonResourceURL(); - public String getLastNonResourceURL(); - public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(List nonResourceURLs); - public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public Boolean hasNonResourceURLs(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java index 50454c3cd3..7b96bf89d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java @@ -1,297 +1,151 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1NonResourcePolicyRuleFluentImpl> - extends BaseFluent implements V1beta1NonResourcePolicyRuleFluent { - public V1beta1NonResourcePolicyRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1NonResourcePolicyRuleFluentImpl> extends BaseFluent implements V1beta1NonResourcePolicyRuleFluent{ + public V1beta1NonResourcePolicyRuleFluentImpl() { + } public V1beta1NonResourcePolicyRuleFluentImpl(V1beta1NonResourcePolicyRule instance) { this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); - } + } private List nonResourceURLs; private List verbs; - - public A addToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } + public A addToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} this.nonResourceURLs.add(index, item); - return (A) this; + return (A)this; } - - public A setToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - this.nonResourceURLs.set(index, item); - return (A) this; + public A setToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + this.nonResourceURLs.set(index, item); return (A)this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public A removeAllFromNonResourceURLs(Collection items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public List getNonResourceURLs() { return this.nonResourceURLs; } - public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } else { - this.nonResourceURLs = null; - } - return (A) this; + if (nonResourceURLs != null) {this.nonResourceURLs = new ArrayList(); for (String item : nonResourceURLs){this.addToNonResourceURLs(item);}} else { this.nonResourceURLs = null;} return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } - return (A) this; + if (this.nonResourceURLs != null) {this.nonResourceURLs.clear();} + if (nonResourceURLs != null) {for (String item :nonResourceURLs){ this.addToNonResourceURLs(item);}} return (A) this; } - public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1NonResourcePolicyRuleFluentImpl that = (V1beta1NonResourcePolicyRuleFluentImpl) o; - if (nonResourceURLs != null - ? !nonResourceURLs.equals(that.nonResourceURLs) - : that.nonResourceURLs != null) return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (nonResourceURLs != null ? !nonResourceURLs.equals(that.nonResourceURLs) :that.nonResourceURLs != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); + return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java index a80b7daf0b..de83643799 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1beta1PolicyRulesWithSubjectsBuilder - extends V1beta1PolicyRulesWithSubjectsFluentImpl - implements VisitableBuilder< - V1beta1PolicyRulesWithSubjects, V1beta1PolicyRulesWithSubjectsBuilder> { +import java.lang.Boolean; +public class V1beta1PolicyRulesWithSubjectsBuilder extends V1beta1PolicyRulesWithSubjectsFluentImpl implements VisitableBuilder{ public V1beta1PolicyRulesWithSubjectsBuilder() { this(false); } - public V1beta1PolicyRulesWithSubjectsBuilder(Boolean validationEnabled) { this(new V1beta1PolicyRulesWithSubjects(), validationEnabled); } - public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjectsFluent fluent) { this(fluent, false); } - - public V1beta1PolicyRulesWithSubjectsBuilder( - V1beta1PolicyRulesWithSubjectsFluent fluent, Boolean validationEnabled) { + public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjectsFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PolicyRulesWithSubjects(), validationEnabled); } - - public V1beta1PolicyRulesWithSubjectsBuilder( - V1beta1PolicyRulesWithSubjectsFluent fluent, V1beta1PolicyRulesWithSubjects instance) { + public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjectsFluent fluent,V1beta1PolicyRulesWithSubjects instance) { this(fluent, instance, false); } - - public V1beta1PolicyRulesWithSubjectsBuilder( - V1beta1PolicyRulesWithSubjectsFluent fluent, - V1beta1PolicyRulesWithSubjects instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjectsFluent fluent,V1beta1PolicyRulesWithSubjects instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNonResourceRules(instance.getNonResourceRules()); fluent.withResourceRules(instance.getResourceRules()); fluent.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjects instance) { - this(instance, false); + this(instance,false); } - - public V1beta1PolicyRulesWithSubjectsBuilder( - V1beta1PolicyRulesWithSubjects instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjects instance,Boolean validationEnabled) { + this.fluent = this; this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); this.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PolicyRulesWithSubjectsFluent fluent; Boolean validationEnabled; - public V1beta1PolicyRulesWithSubjects build() { V1beta1PolicyRulesWithSubjects buildable = new V1beta1PolicyRulesWithSubjects(); buildable.setNonResourceRules(fluent.getNonResourceRules()); @@ -80,4 +50,5 @@ public V1beta1PolicyRulesWithSubjects build() { buildable.setSubjects(fluent.getSubjects()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java index 4e3a8977ec..041beb3deb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java @@ -1,233 +1,125 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1PolicyRulesWithSubjectsFluent< - A extends V1beta1PolicyRulesWithSubjectsFluent> - extends Fluent { - public A addToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item); - - public A setToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item); - - public A addToNonResourceRules( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1PolicyRulesWithSubjectsFluent> extends Fluent{ + public A addToNonResourceRules(Integer index,V1beta1NonResourcePolicyRule item); + public A setToNonResourceRules(Integer index,V1beta1NonResourcePolicyRule item); + public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items); public A addAllToNonResourceRules(Collection items); - - public A removeFromNonResourceRules( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items); - + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items); public A removeAllFromNonResourceRules(Collection items); - - public A removeMatchingFromNonResourceRules( - Predicate predicate); - + public A removeMatchingFromNonResourceRules(Predicate predicate); + /** * This method has been deprecated, please use method buildNonResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getNonResourceRules(); - public List buildNonResourceRules(); - public V1beta1NonResourcePolicyRule buildNonResourceRule(Integer index); - public V1beta1NonResourcePolicyRule buildFirstNonResourceRule(); - public V1beta1NonResourcePolicyRule buildLastNonResourceRule(); - - public V1beta1NonResourcePolicyRule buildMatchingNonResourceRule( - Predicate predicate); - - public Boolean hasMatchingNonResourceRule( - Predicate predicate); - + public V1beta1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate); + public Boolean hasMatchingNonResourceRule(Predicate predicate); public A withNonResourceRules(List nonResourceRules); - - public A withNonResourceRules( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... nonResourceRules); - + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... nonResourceRules); public Boolean hasNonResourceRules(); - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRule(); - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( - V1beta1NonResourcePolicyRule item); - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( - Integer index, V1beta1NonResourcePolicyRule item); - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( - Integer index); - + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike(V1beta1NonResourcePolicyRule item); + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike(Integer index,V1beta1NonResourcePolicyRule item); + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule(Integer index); public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule(); - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editLastNonResourceRule(); - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( - Predicate predicate); - - public A addToResourceRules(Integer index, V1beta1ResourcePolicyRule item); - - public A setToResourceRules(Integer index, V1beta1ResourcePolicyRule item); - - public A addToResourceRules( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items); - + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate); + public A addToResourceRules(Integer index,V1beta1ResourcePolicyRule item); + public A setToResourceRules(Integer index,V1beta1ResourcePolicyRule item); + public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items); public A addAllToResourceRules(Collection items); - - public A removeFromResourceRules( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items); - + public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items); public A removeAllFromResourceRules(Collection items); - public A removeMatchingFromResourceRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getResourceRules(); - public List buildResourceRules(); - public V1beta1ResourcePolicyRule buildResourceRule(Integer index); - public V1beta1ResourcePolicyRule buildFirstResourceRule(); - public V1beta1ResourcePolicyRule buildLastResourceRule(); - - public V1beta1ResourcePolicyRule buildMatchingResourceRule( - Predicate predicate); - + public V1beta1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate); public Boolean hasMatchingResourceRule(Predicate predicate); - public A withResourceRules(List resourceRules); - - public A withResourceRules( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... resourceRules); - + public A withResourceRules(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... resourceRules); public Boolean hasResourceRules(); - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRule(); - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( - V1beta1ResourcePolicyRule item); - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( - Integer index, V1beta1ResourcePolicyRule item); - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( - Integer index); - + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike(V1beta1ResourcePolicyRule item); + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike(Integer index,V1beta1ResourcePolicyRule item); + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule(Integer index); public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule(); - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editLastResourceRule(); - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( - Predicate predicate); - - public A addToSubjects(Integer index, V1beta1Subject item); - - public A setToSubjects(Integer index, V1beta1Subject item); - + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule(Predicate predicate); + public A addToSubjects(Integer index,V1beta1Subject item); + public A setToSubjects(Integer index,V1beta1Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items); - public A addAllToSubjects(Collection items); - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items); - public A removeAllFromSubjects(Collection items); - public A removeMatchingFromSubjects(Predicate predicate); - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects(); - public List buildSubjects(); - public V1beta1Subject buildSubject(Integer index); - public V1beta1Subject buildFirstSubject(); - public V1beta1Subject buildLastSubject(); - public V1beta1Subject buildMatchingSubject(Predicate predicate); - public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects(List subjects); - public A withSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... subjects); - public Boolean hasSubjects(); - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject(); - - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( - V1beta1Subject item); - - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( - Integer index, V1beta1Subject item); - + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike(V1beta1Subject item); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike(Integer index,V1beta1Subject item); public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index); - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject(); - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editLastSubject(); - - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( - Predicate predicate); - - public interface NonResourceRulesNested - extends Nested, - V1beta1NonResourcePolicyRuleFluent< - V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested> { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject(Predicate predicate); + public interface NonResourceRulesNested extends Nested,V1beta1NonResourcePolicyRuleFluent>{ public N and(); - public N endNonResourceRule(); + } - - public interface ResourceRulesNested - extends Nested, - V1beta1ResourcePolicyRuleFluent< - V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested> { + public interface ResourceRulesNested extends Nested,V1beta1ResourcePolicyRuleFluent>{ public N and(); - public N endResourceRule(); + } - - public interface SubjectsNested - extends Nested, - V1beta1SubjectFluent> { + public interface SubjectsNested extends Nested,V1beta1SubjectFluent>{ public N and(); - public N endSubject(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java index bffdc721d2..1a8f448abf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java @@ -1,124 +1,64 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PolicyRulesWithSubjectsFluentImpl< - A extends V1beta1PolicyRulesWithSubjectsFluent> - extends BaseFluent implements V1beta1PolicyRulesWithSubjectsFluent { - public V1beta1PolicyRulesWithSubjectsFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PolicyRulesWithSubjectsFluentImpl> extends BaseFluent implements V1beta1PolicyRulesWithSubjectsFluent{ + public V1beta1PolicyRulesWithSubjectsFluentImpl() { + } public V1beta1PolicyRulesWithSubjectsFluentImpl(V1beta1PolicyRulesWithSubjects instance) { this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); this.withSubjects(instance.getSubjects()); - } + } private ArrayList nonResourceRules; private ArrayList resourceRules; private ArrayList subjects; - - public A addToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); - _visitables - .get("nonResourceRules") - .add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder); - this.nonResourceRules.add(index >= 0 ? index : nonResourceRules.size(), builder); - return (A) this; + public A addToNonResourceRules(Integer index,V1beta1NonResourcePolicyRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder);this.nonResourceRules.add(index >= 0 ? index : nonResourceRules.size(), builder); return (A)this; } - - public A setToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } + public A setToNonResourceRules(Integer index,V1beta1NonResourcePolicyRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { - _visitables.get("nonResourceRules").add(builder); - } else { - _visitables.get("nonResourceRules").set(index, builder); - } - if (index < 0 || index >= nonResourceRules.size()) { - nonResourceRules.add(builder); - } else { - nonResourceRules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { _visitables.get("nonResourceRules").add(builder); } else { _visitables.get("nonResourceRules").set(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { nonResourceRules.add(builder); } else { nonResourceRules.set(index, builder);} + return (A)this; } - - public A addToNonResourceRules( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1beta1NonResourcePolicyRule item : items) { - V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; + public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1beta1NonResourcePolicyRule item : items) {V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; } - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1beta1NonResourcePolicyRule item : items) { - V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1beta1NonResourcePolicyRule item : items) {V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; } - - public A removeFromNonResourceRules( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items) { - for (V1beta1NonResourcePolicyRule item : items) { - V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - if (this.nonResourceRules != null) { - this.nonResourceRules.remove(builder); - } - } - return (A) this; + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items) { + for (V1beta1NonResourcePolicyRule item : items) {V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder);if (this.nonResourceRules != null) {this.nonResourceRules.remove(builder);}} return (A)this; } - public A removeAllFromNonResourceRules(Collection items) { - for (V1beta1NonResourcePolicyRule item : items) { - V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - if (this.nonResourceRules != null) { - this.nonResourceRules.remove(builder); - } - } - return (A) this; + for (V1beta1NonResourcePolicyRule item : items) {V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder);if (this.nonResourceRules != null) {this.nonResourceRules.remove(builder);}} return (A)this; } - - public A removeMatchingFromNonResourceRules( - Predicate predicate) { + public A removeMatchingFromNonResourceRules(Predicate predicate) { if (nonResourceRules == null) return (A) this; final Iterator each = nonResourceRules.iterator(); final List visitables = _visitables.get("nonResourceRules"); @@ -129,213 +69,101 @@ public A removeMatchingFromNonResourceRules( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildNonResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public List buildNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public V1beta1NonResourcePolicyRule buildNonResourceRule(Integer index) { return this.nonResourceRules.get(index).build(); } - public V1beta1NonResourcePolicyRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } - public V1beta1NonResourcePolicyRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } - - public V1beta1NonResourcePolicyRule buildMatchingNonResourceRule( - Predicate predicate) { - for (V1beta1NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { + for (V1beta1NonResourcePolicyRuleBuilder item: nonResourceRules) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingNonResourceRule( - Predicate predicate) { - for (V1beta1NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1beta1NonResourcePolicyRuleBuilder item: nonResourceRules) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - _visitables.get("nonResourceRules").removeAll(this.nonResourceRules); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1beta1NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } else { - this.nonResourceRules = null; - } - return (A) this; + if (this.nonResourceRules != null) { _visitables.get("nonResourceRules").removeAll(this.nonResourceRules);} + if (nonResourceRules != null) {this.nonResourceRules = new ArrayList(); for (V1beta1NonResourcePolicyRule item : nonResourceRules){this.addToNonResourceRules(item);}} else { this.nonResourceRules = null;} return (A) this; } - - public A withNonResourceRules( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - } - if (nonResourceRules != null) { - for (V1beta1NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... nonResourceRules) { + if (this.nonResourceRules != null) {this.nonResourceRules.clear();} + if (nonResourceRules != null) {for (V1beta1NonResourcePolicyRule item :nonResourceRules){ this.addToNonResourceRules(item);}} return (A) this; } - public Boolean hasNonResourceRules() { return nonResourceRules != null && !nonResourceRules.isEmpty(); } - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRule() { return new V1beta1PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(); } - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( - V1beta1NonResourcePolicyRule item) { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike(V1beta1NonResourcePolicyRule item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(-1, item); } - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( - Integer index, V1beta1NonResourcePolicyRule item) { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike(Integer index,V1beta1NonResourcePolicyRule item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(index, item); } - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( - Integer index) { - if (nonResourceRules.size() <= index) - throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule(Integer index) { + if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) - throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); + if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); } - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - - public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( - Predicate predicate) { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; - for (int i = 0; i < nonResourceRules.size(); i++) { - if (predicate.test(nonResourceRules.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching nonResourceRules. No match found."); + for (int i=0;i(); - } - V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); - _visitables - .get("resourceRules") - .add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder); - this.resourceRules.add(index >= 0 ? index : resourceRules.size(), builder); - return (A) this; + public A addToResourceRules(Integer index,V1beta1ResourcePolicyRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder);this.resourceRules.add(index >= 0 ? index : resourceRules.size(), builder); return (A)this; } - - public A setToResourceRules(Integer index, V1beta1ResourcePolicyRule item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } + public A setToResourceRules(Integer index,V1beta1ResourcePolicyRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("resourceRules").size()) { - _visitables.get("resourceRules").add(builder); - } else { - _visitables.get("resourceRules").set(index, builder); - } - if (index < 0 || index >= resourceRules.size()) { - resourceRules.add(builder); - } else { - resourceRules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("resourceRules").size()) { _visitables.get("resourceRules").add(builder); } else { _visitables.get("resourceRules").set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { resourceRules.add(builder); } else { resourceRules.set(index, builder);} + return (A)this; } - - public A addToResourceRules( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1beta1ResourcePolicyRule item : items) { - V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); - } - return (A) this; + public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1beta1ResourcePolicyRule item : items) {V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1beta1ResourcePolicyRule item : items) { - V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); - } - return (A) this; + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1beta1ResourcePolicyRule item : items) {V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; } - - public A removeFromResourceRules( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items) { - for (V1beta1ResourcePolicyRule item : items) { - V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - if (this.resourceRules != null) { - this.resourceRules.remove(builder); - } - } - return (A) this; + public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items) { + for (V1beta1ResourcePolicyRule item : items) {V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder);if (this.resourceRules != null) {this.resourceRules.remove(builder);}} return (A)this; } - public A removeAllFromResourceRules(Collection items) { - for (V1beta1ResourcePolicyRule item : items) { - V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - if (this.resourceRules != null) { - this.resourceRules.remove(builder); - } - } - return (A) this; + for (V1beta1ResourcePolicyRule item : items) {V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder);if (this.resourceRules != null) {this.resourceRules.remove(builder);}} return (A)this; } - public A removeMatchingFromResourceRules(Predicate predicate) { if (resourceRules == null) return (A) this; final Iterator each = resourceRules.iterator(); @@ -347,208 +175,101 @@ public A removeMatchingFromResourceRules(Predicate getResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public List buildResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public V1beta1ResourcePolicyRule buildResourceRule(Integer index) { return this.resourceRules.get(index).build(); } - public V1beta1ResourcePolicyRule buildFirstResourceRule() { return this.resourceRules.get(0).build(); } - public V1beta1ResourcePolicyRule buildLastResourceRule() { return this.resourceRules.get(resourceRules.size() - 1).build(); } - - public V1beta1ResourcePolicyRule buildMatchingResourceRule( - Predicate predicate) { - for (V1beta1ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { + for (V1beta1ResourcePolicyRuleBuilder item: resourceRules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingResourceRule(Predicate predicate) { - for (V1beta1ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1ResourcePolicyRuleBuilder item: resourceRules) { if(predicate.test(item)){ return true;} } return false; } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - _visitables.get("resourceRules").removeAll(this.resourceRules); - } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1beta1ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; - } - return (A) this; + if (this.resourceRules != null) { _visitables.get("resourceRules").removeAll(this.resourceRules);} + if (resourceRules != null) {this.resourceRules = new ArrayList(); for (V1beta1ResourcePolicyRule item : resourceRules){this.addToResourceRules(item);}} else { this.resourceRules = null;} return (A) this; } - - public A withResourceRules( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - } - if (resourceRules != null) { - for (V1beta1ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } - return (A) this; + public A withResourceRules(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... resourceRules) { + if (this.resourceRules != null) {this.resourceRules.clear();} + if (resourceRules != null) {for (V1beta1ResourcePolicyRule item :resourceRules){ this.addToResourceRules(item);}} return (A) this; } - public Boolean hasResourceRules() { return resourceRules != null && !resourceRules.isEmpty(); } - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRule() { return new V1beta1PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(); } - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( - V1beta1ResourcePolicyRule item) { + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike(V1beta1ResourcePolicyRule item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(-1, item); } - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( - Integer index, V1beta1ResourcePolicyRule item) { + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike(Integer index,V1beta1ResourcePolicyRule item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(index, item); } - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( - Integer index) { - if (resourceRules.size() <= index) - throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule(Integer index) { + if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) - throw new RuntimeException("Can't edit first resourceRules. The list is empty."); + if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); return setNewResourceRuleLike(0, buildResourceRule(0)); } - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - - public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( - Predicate predicate) { + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i = 0; i < resourceRules.size(); i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); - _visitables - .get("subjects") - .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); - this.subjects.add(index >= 0 ? index : subjects.size(), builder); - return (A) this; + public A addToSubjects(Integer index,V1beta1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item);_visitables.get("subjects").add(index >= 0 ? index : _visitables.get("subjects").size(), builder);this.subjects.add(index >= 0 ? index : subjects.size(), builder); return (A)this; } - - public A setToSubjects(Integer index, V1beta1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } + public A setToSubjects(Integer index,V1beta1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); - if (index < 0 || index >= _visitables.get("subjects").size()) { - _visitables.get("subjects").add(builder); - } else { - _visitables.get("subjects").set(index, builder); - } - if (index < 0 || index >= subjects.size()) { - subjects.add(builder); - } else { - subjects.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { _visitables.get("subjects").set(index, builder);} + if (index < 0 || index >= subjects.size()) { subjects.add(builder); } else { subjects.set(index, builder);} + return (A)this; } - public A addToSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1beta1Subject item : items) { - V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1beta1Subject item : items) {V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A addAllToSubjects(Collection items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1beta1Subject item : items) { - V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1beta1Subject item : items) {V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items) { - for (V1beta1Subject item : items) { - V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1beta1Subject item : items) {V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeAllFromSubjects(Collection items) { - for (V1beta1Subject item : items) { - V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1beta1Subject item : items) {V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; final Iterator each = subjects.iterator(); @@ -560,244 +281,153 @@ public A removeMatchingFromSubjects(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects() { return subjects != null ? build(subjects) : null; } - public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public V1beta1Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public V1beta1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public V1beta1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public V1beta1Subject buildMatchingSubject(Predicate predicate) { - for (V1beta1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1beta1SubjectBuilder item: subjects) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSubject(Predicate predicate) { - for (V1beta1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1SubjectBuilder item: subjects) { if(predicate.test(item)){ return true;} } return false; } - public A withSubjects(List subjects) { - if (this.subjects != null) { - _visitables.get("subjects").removeAll(this.subjects); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (V1beta1Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; + if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects);} + if (subjects != null) {this.subjects = new ArrayList(); for (V1beta1Subject item : subjects){this.addToSubjects(item);}} else { this.subjects = null;} return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - } - if (subjects != null) { - for (V1beta1Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; + if (this.subjects != null) {this.subjects.clear();} + if (subjects != null) {for (V1beta1Subject item :subjects){ this.addToSubjects(item);}} return (A) this; } - public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject() { return new V1beta1PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(); } - - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( - V1beta1Subject item) { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike(V1beta1Subject item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(-1, item); } - - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( - Integer index, V1beta1Subject item) { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike(Integer index,V1beta1Subject item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(index, item); } - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index) { - if (subjects.size() <= index) - throw new RuntimeException("Can't edit subjects. Index exceeds size."); + if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject() { - if (subjects.size() == 0) - throw new RuntimeException("Can't edit first subjects. The list is empty."); + if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editLastSubject() { int index = subjects.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); return setNewSubjectLike(index, buildSubject(index)); } - - public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( - Predicate predicate) { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i = 0; i < subjects.size(); i++) { - if (predicate.test(subjects.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta1NonResourcePolicyRuleFluentImpl< - V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested> - implements V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested, Nested { - NonResourceRulesNestedImpl(Integer index, V1beta1NonResourcePolicyRule item) { + class NonResourceRulesNestedImpl extends V1beta1NonResourcePolicyRuleFluentImpl> implements V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested,Nested{ + NonResourceRulesNestedImpl(Integer index,V1beta1NonResourcePolicyRule item) { this.index = index; this.builder = new V1beta1NonResourcePolicyRuleBuilder(this, item); } - NonResourceRulesNestedImpl() { this.index = -1; this.builder = new V1beta1NonResourcePolicyRuleBuilder(this); } - V1beta1NonResourcePolicyRuleBuilder builder; Integer index; - public N and() { - return (N) - V1beta1PolicyRulesWithSubjectsFluentImpl.this.setToNonResourceRules( - index, builder.build()); + return (N) V1beta1PolicyRulesWithSubjectsFluentImpl.this.setToNonResourceRules(index,builder.build()); } - public N endNonResourceRule() { return and(); } + } - - class ResourceRulesNestedImpl - extends V1beta1ResourcePolicyRuleFluentImpl< - V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested> - implements V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested, Nested { - ResourceRulesNestedImpl(Integer index, V1beta1ResourcePolicyRule item) { + class ResourceRulesNestedImpl extends V1beta1ResourcePolicyRuleFluentImpl> implements V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested,Nested{ + ResourceRulesNestedImpl(Integer index,V1beta1ResourcePolicyRule item) { this.index = index; this.builder = new V1beta1ResourcePolicyRuleBuilder(this, item); } - ResourceRulesNestedImpl() { this.index = -1; this.builder = new V1beta1ResourcePolicyRuleBuilder(this); } - V1beta1ResourcePolicyRuleBuilder builder; Integer index; - public N and() { - return (N) - V1beta1PolicyRulesWithSubjectsFluentImpl.this.setToResourceRules(index, builder.build()); + return (N) V1beta1PolicyRulesWithSubjectsFluentImpl.this.setToResourceRules(index,builder.build()); } - public N endResourceRule() { return and(); } + } - - class SubjectsNestedImpl - extends V1beta1SubjectFluentImpl> - implements V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested, Nested { - SubjectsNestedImpl(Integer index, V1beta1Subject item) { + class SubjectsNestedImpl extends V1beta1SubjectFluentImpl> implements V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested,Nested{ + SubjectsNestedImpl(Integer index,V1beta1Subject item) { this.index = index; this.builder = new V1beta1SubjectBuilder(this, item); } - SubjectsNestedImpl() { this.index = -1; this.builder = new V1beta1SubjectBuilder(this); } - V1beta1SubjectBuilder builder; Integer index; - public N and() { - return (N) - V1beta1PolicyRulesWithSubjectsFluentImpl.this.setToSubjects(index, builder.build()); + return (N) V1beta1PolicyRulesWithSubjectsFluentImpl.this.setToSubjects(index,builder.build()); } - public N endSubject() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java index 31937b81d8..9aa322d26a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1PriorityLevelConfigurationBuilder - extends V1beta1PriorityLevelConfigurationFluentImpl - implements VisitableBuilder< - V1beta1PriorityLevelConfiguration, V1beta1PriorityLevelConfigurationBuilder> { +import java.lang.Boolean; +public class V1beta1PriorityLevelConfigurationBuilder extends V1beta1PriorityLevelConfigurationFluentImpl implements VisitableBuilder{ public V1beta1PriorityLevelConfigurationBuilder() { this(false); } - public V1beta1PriorityLevelConfigurationBuilder(Boolean validationEnabled) { this(new V1beta1PriorityLevelConfiguration(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationBuilder( - V1beta1PriorityLevelConfigurationFluent fluent) { + public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfigurationFluent fluent) { this(fluent, false); } - - public V1beta1PriorityLevelConfigurationBuilder( - V1beta1PriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { + public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfiguration(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationBuilder( - V1beta1PriorityLevelConfigurationFluent fluent, - V1beta1PriorityLevelConfiguration instance) { + public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfigurationFluent fluent,V1beta1PriorityLevelConfiguration instance) { this(fluent, instance, false); } - - public V1beta1PriorityLevelConfigurationBuilder( - V1beta1PriorityLevelConfigurationFluent fluent, - V1beta1PriorityLevelConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfigurationFluent fluent,V1beta1PriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -57,16 +30,13 @@ public V1beta1PriorityLevelConfigurationBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfiguration instance) { - this(instance, false); + this(instance,false); } - - public V1beta1PriorityLevelConfigurationBuilder( - V1beta1PriorityLevelConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -77,12 +47,10 @@ public V1beta1PriorityLevelConfigurationBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PriorityLevelConfigurationFluent fluent; Boolean validationEnabled; - public V1beta1PriorityLevelConfiguration build() { V1beta1PriorityLevelConfiguration buildable = new V1beta1PriorityLevelConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -92,4 +60,5 @@ public V1beta1PriorityLevelConfiguration build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java index aeb70600b0..3c37b21d12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java @@ -1,54 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1PriorityLevelConfigurationConditionBuilder - extends V1beta1PriorityLevelConfigurationConditionFluentImpl< - V1beta1PriorityLevelConfigurationConditionBuilder> - implements VisitableBuilder< - V1beta1PriorityLevelConfigurationCondition, - V1beta1PriorityLevelConfigurationConditionBuilder> { +import java.lang.Boolean; +public class V1beta1PriorityLevelConfigurationConditionBuilder extends V1beta1PriorityLevelConfigurationConditionFluentImpl implements VisitableBuilder{ public V1beta1PriorityLevelConfigurationConditionBuilder() { this(false); } - public V1beta1PriorityLevelConfigurationConditionBuilder(Boolean validationEnabled) { this(new V1beta1PriorityLevelConfigurationCondition(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationConditionBuilder( - V1beta1PriorityLevelConfigurationConditionFluent fluent) { + public V1beta1PriorityLevelConfigurationConditionBuilder(V1beta1PriorityLevelConfigurationConditionFluent fluent) { this(fluent, false); } - - public V1beta1PriorityLevelConfigurationConditionBuilder( - V1beta1PriorityLevelConfigurationConditionFluent fluent, Boolean validationEnabled) { + public V1beta1PriorityLevelConfigurationConditionBuilder(V1beta1PriorityLevelConfigurationConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationCondition(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationConditionBuilder( - V1beta1PriorityLevelConfigurationConditionFluent fluent, - V1beta1PriorityLevelConfigurationCondition instance) { + public V1beta1PriorityLevelConfigurationConditionBuilder(V1beta1PriorityLevelConfigurationConditionFluent fluent,V1beta1PriorityLevelConfigurationCondition instance) { this(fluent, instance, false); } - - public V1beta1PriorityLevelConfigurationConditionBuilder( - V1beta1PriorityLevelConfigurationConditionFluent fluent, - V1beta1PriorityLevelConfigurationCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PriorityLevelConfigurationConditionBuilder(V1beta1PriorityLevelConfigurationConditionFluent fluent,V1beta1PriorityLevelConfigurationCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -59,17 +30,13 @@ public V1beta1PriorityLevelConfigurationConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta1PriorityLevelConfigurationConditionBuilder( - V1beta1PriorityLevelConfigurationCondition instance) { - this(instance, false); + public V1beta1PriorityLevelConfigurationConditionBuilder(V1beta1PriorityLevelConfigurationCondition instance) { + this(instance,false); } - - public V1beta1PriorityLevelConfigurationConditionBuilder( - V1beta1PriorityLevelConfigurationCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PriorityLevelConfigurationConditionBuilder(V1beta1PriorityLevelConfigurationCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -80,15 +47,12 @@ public V1beta1PriorityLevelConfigurationConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PriorityLevelConfigurationConditionFluent fluent; Boolean validationEnabled; - public V1beta1PriorityLevelConfigurationCondition build() { - V1beta1PriorityLevelConfigurationCondition buildable = - new V1beta1PriorityLevelConfigurationCondition(); + V1beta1PriorityLevelConfigurationCondition buildable = new V1beta1PriorityLevelConfigurationCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); buildable.setReason(fluent.getReason()); @@ -96,4 +60,5 @@ public V1beta1PriorityLevelConfigurationCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java index 72236b5411..8fae5d147e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java @@ -1,51 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1PriorityLevelConfigurationConditionFluent< - A extends V1beta1PriorityLevelConfigurationConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1PriorityLevelConfigurationConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java index b4bfce9646..2f0705c5f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java @@ -1,29 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PriorityLevelConfigurationConditionFluentImpl< - A extends V1beta1PriorityLevelConfigurationConditionFluent> - extends BaseFluent implements V1beta1PriorityLevelConfigurationConditionFluent { - public V1beta1PriorityLevelConfigurationConditionFluentImpl() {} - - public V1beta1PriorityLevelConfigurationConditionFluentImpl( - V1beta1PriorityLevelConfigurationCondition instance) { +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PriorityLevelConfigurationConditionFluentImpl> extends BaseFluent implements V1beta1PriorityLevelConfigurationConditionFluent{ + public V1beta1PriorityLevelConfigurationConditionFluentImpl() { + } + public V1beta1PriorityLevelConfigurationConditionFluentImpl(V1beta1PriorityLevelConfigurationCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -33,123 +24,82 @@ public V1beta1PriorityLevelConfigurationConditionFluentImpl( this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta1PriorityLevelConfigurationConditionFluentImpl that = - (V1beta1PriorityLevelConfigurationConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1beta1PriorityLevelConfigurationConditionFluentImpl that = (V1beta1PriorityLevelConfigurationConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java index 7b461c9c90..d2b6b090c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java @@ -1,137 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1PriorityLevelConfigurationFluent< - A extends V1beta1PriorityLevelConfigurationFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1PriorityLevelConfigurationFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadata(); - - public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public V1beta1PriorityLevelConfigurationFluent.MetadataNested editMetadata(); - public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata(); - - public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta1PriorityLevelConfigurationSpec getSpec(); - public V1beta1PriorityLevelConfigurationSpec buildSpec(); - public A withSpec(V1beta1PriorityLevelConfigurationSpec spec); - public Boolean hasSpec(); - public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpec(); - - public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( - V1beta1PriorityLevelConfigurationSpec item); - + public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpecLike(V1beta1PriorityLevelConfigurationSpec item); public V1beta1PriorityLevelConfigurationFluent.SpecNested editSpec(); - public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpec(); - - public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( - V1beta1PriorityLevelConfigurationSpec item); - + public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike(V1beta1PriorityLevelConfigurationSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta1PriorityLevelConfigurationStatus getStatus(); - public V1beta1PriorityLevelConfigurationStatus buildStatus(); - public A withStatus(V1beta1PriorityLevelConfigurationStatus status); - public Boolean hasStatus(); - public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatus(); - - public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( - V1beta1PriorityLevelConfigurationStatus item); - + public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatusLike(V1beta1PriorityLevelConfigurationStatus item); public V1beta1PriorityLevelConfigurationFluent.StatusNested editStatus(); - public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatus(); - - public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( - V1beta1PriorityLevelConfigurationStatus item); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { + public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike(V1beta1PriorityLevelConfigurationStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1beta1PriorityLevelConfigurationSpecFluent< - V1beta1PriorityLevelConfigurationFluent.SpecNested> { + public interface SpecNested extends Nested,V1beta1PriorityLevelConfigurationSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1beta1PriorityLevelConfigurationStatusFluent< - V1beta1PriorityLevelConfigurationFluent.StatusNested> { + public interface StatusNested extends Nested,V1beta1PriorityLevelConfigurationStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java index 7740db8c7b..67fb8eaf9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PriorityLevelConfigurationFluentImpl< - A extends V1beta1PriorityLevelConfigurationFluent> - extends BaseFluent implements V1beta1PriorityLevelConfigurationFluent { - public V1beta1PriorityLevelConfigurationFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PriorityLevelConfigurationFluentImpl> extends BaseFluent implements V1beta1PriorityLevelConfigurationFluent{ + public V1beta1PriorityLevelConfigurationFluentImpl() { + } public V1beta1PriorityLevelConfigurationFluentImpl(V1beta1PriorityLevelConfiguration instance) { this.withApiVersion(instance.getApiVersion()); @@ -32,311 +25,205 @@ public V1beta1PriorityLevelConfigurationFluentImpl(V1beta1PriorityLevelConfigura this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta1PriorityLevelConfigurationSpecBuilder spec; private V1beta1PriorityLevelConfigurationStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadata() { return new V1beta1PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(); } - - public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta1PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(item); } - public V1beta1PriorityLevelConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta1PriorityLevelConfigurationSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1beta1PriorityLevelConfigurationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1beta1PriorityLevelConfigurationSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1beta1PriorityLevelConfigurationSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1beta1PriorityLevelConfigurationSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpec() { return new V1beta1PriorityLevelConfigurationFluentImpl.SpecNestedImpl(); } - - public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( - V1beta1PriorityLevelConfigurationSpec item) { + public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpecLike(V1beta1PriorityLevelConfigurationSpec item) { return new V1beta1PriorityLevelConfigurationFluentImpl.SpecNestedImpl(item); } - public V1beta1PriorityLevelConfigurationFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1beta1PriorityLevelConfigurationSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1beta1PriorityLevelConfigurationSpecBuilder().build()); } - - public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( - V1beta1PriorityLevelConfigurationSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike(V1beta1PriorityLevelConfigurationSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta1PriorityLevelConfigurationStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1beta1PriorityLevelConfigurationStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1beta1PriorityLevelConfigurationStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1beta1PriorityLevelConfigurationStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1beta1PriorityLevelConfigurationStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatus() { return new V1beta1PriorityLevelConfigurationFluentImpl.StatusNestedImpl(); } - - public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( - V1beta1PriorityLevelConfigurationStatus item) { + public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatusLike(V1beta1PriorityLevelConfigurationStatus item) { return new V1beta1PriorityLevelConfigurationFluentImpl.StatusNestedImpl(item); } - public V1beta1PriorityLevelConfigurationFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new V1beta1PriorityLevelConfigurationStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1beta1PriorityLevelConfigurationStatusBuilder().build()); } - - public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( - V1beta1PriorityLevelConfigurationStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike(V1beta1PriorityLevelConfigurationStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta1PriorityLevelConfigurationFluentImpl that = - (V1beta1PriorityLevelConfigurationFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + V1beta1PriorityLevelConfigurationFluentImpl that = (V1beta1PriorityLevelConfigurationFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1beta1PriorityLevelConfigurationFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1beta1PriorityLevelConfigurationFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1beta1PriorityLevelConfigurationFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1beta1PriorityLevelConfigurationSpecFluentImpl< - V1beta1PriorityLevelConfigurationFluent.SpecNested> - implements V1beta1PriorityLevelConfigurationFluent.SpecNested, Nested { + class SpecNestedImpl extends V1beta1PriorityLevelConfigurationSpecFluentImpl> implements V1beta1PriorityLevelConfigurationFluent.SpecNested,Nested{ SpecNestedImpl(V1beta1PriorityLevelConfigurationSpec item) { this.builder = new V1beta1PriorityLevelConfigurationSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1beta1PriorityLevelConfigurationSpecBuilder(this); } - V1beta1PriorityLevelConfigurationSpecBuilder builder; - public N and() { return (N) V1beta1PriorityLevelConfigurationFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1beta1PriorityLevelConfigurationStatusFluentImpl< - V1beta1PriorityLevelConfigurationFluent.StatusNested> - implements V1beta1PriorityLevelConfigurationFluent.StatusNested, Nested { + class StatusNestedImpl extends V1beta1PriorityLevelConfigurationStatusFluentImpl> implements V1beta1PriorityLevelConfigurationFluent.StatusNested,Nested{ StatusNestedImpl(V1beta1PriorityLevelConfigurationStatus item) { this.builder = new V1beta1PriorityLevelConfigurationStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1beta1PriorityLevelConfigurationStatusBuilder(this); } - V1beta1PriorityLevelConfigurationStatusBuilder builder; - public N and() { return (N) V1beta1PriorityLevelConfigurationFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java index d0e55cb8a3..d63dc9ec43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1PriorityLevelConfigurationListBuilder - extends V1beta1PriorityLevelConfigurationListFluentImpl< - V1beta1PriorityLevelConfigurationListBuilder> - implements VisitableBuilder< - V1beta1PriorityLevelConfigurationList, V1beta1PriorityLevelConfigurationListBuilder> { +import java.lang.Boolean; +public class V1beta1PriorityLevelConfigurationListBuilder extends V1beta1PriorityLevelConfigurationListFluentImpl implements VisitableBuilder{ public V1beta1PriorityLevelConfigurationListBuilder() { this(false); } - public V1beta1PriorityLevelConfigurationListBuilder(Boolean validationEnabled) { this(new V1beta1PriorityLevelConfigurationList(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationListBuilder( - V1beta1PriorityLevelConfigurationListFluent fluent) { + public V1beta1PriorityLevelConfigurationListBuilder(V1beta1PriorityLevelConfigurationListFluent fluent) { this(fluent, false); } - - public V1beta1PriorityLevelConfigurationListBuilder( - V1beta1PriorityLevelConfigurationListFluent fluent, Boolean validationEnabled) { + public V1beta1PriorityLevelConfigurationListBuilder(V1beta1PriorityLevelConfigurationListFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationList(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationListBuilder( - V1beta1PriorityLevelConfigurationListFluent fluent, - V1beta1PriorityLevelConfigurationList instance) { + public V1beta1PriorityLevelConfigurationListBuilder(V1beta1PriorityLevelConfigurationListFluent fluent,V1beta1PriorityLevelConfigurationList instance) { this(fluent, instance, false); } - - public V1beta1PriorityLevelConfigurationListBuilder( - V1beta1PriorityLevelConfigurationListFluent fluent, - V1beta1PriorityLevelConfigurationList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PriorityLevelConfigurationListBuilder(V1beta1PriorityLevelConfigurationListFluent fluent,V1beta1PriorityLevelConfigurationList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -56,17 +28,13 @@ public V1beta1PriorityLevelConfigurationListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta1PriorityLevelConfigurationListBuilder( - V1beta1PriorityLevelConfigurationList instance) { - this(instance, false); + public V1beta1PriorityLevelConfigurationListBuilder(V1beta1PriorityLevelConfigurationList instance) { + this(instance,false); } - - public V1beta1PriorityLevelConfigurationListBuilder( - V1beta1PriorityLevelConfigurationList instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PriorityLevelConfigurationListBuilder(V1beta1PriorityLevelConfigurationList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -75,12 +43,10 @@ public V1beta1PriorityLevelConfigurationListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PriorityLevelConfigurationListFluent fluent; Boolean validationEnabled; - public V1beta1PriorityLevelConfigurationList build() { V1beta1PriorityLevelConfigurationList buildable = new V1beta1PriorityLevelConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +55,5 @@ public V1beta1PriorityLevelConfigurationList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java index 465bcecb9c..3bce5f5570 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java @@ -1,140 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1PriorityLevelConfigurationListFluent< - A extends V1beta1PriorityLevelConfigurationListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1PriorityLevelConfigurationListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1PriorityLevelConfiguration item); - - public A setToItems(Integer index, V1beta1PriorityLevelConfiguration item); - - public A addToItems( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); - + public A addToItems(Integer index,V1beta1PriorityLevelConfiguration item); + public A setToItems(Integer index,V1beta1PriorityLevelConfiguration item); + public A addToItems(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); public A addAllToItems(Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); - + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1beta1PriorityLevelConfiguration buildItem(Integer index); - public V1beta1PriorityLevelConfiguration buildFirstItem(); - public V1beta1PriorityLevelConfiguration buildLastItem(); - - public V1beta1PriorityLevelConfiguration buildMatchingItem( - Predicate predicate); - + public V1beta1PriorityLevelConfiguration buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - - public A withItems( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); - + public A withItems(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); public Boolean hasItems(); - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItem(); - - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( - V1beta1PriorityLevelConfiguration item); - - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1beta1PriorityLevelConfiguration item); - + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike(V1beta1PriorityLevelConfiguration item); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1beta1PriorityLevelConfiguration item); public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index); - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editFirstItem(); - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editLastItem(); - - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadata(); - - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editMetadata(); - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata(); - - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1beta1PriorityLevelConfigurationFluent< - V1beta1PriorityLevelConfigurationListFluent.ItemsNested> { + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1beta1PriorityLevelConfigurationFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, - V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java index aad58e4c55..4fc09c6fd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java @@ -1,34 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PriorityLevelConfigurationListFluentImpl< - A extends V1beta1PriorityLevelConfigurationListFluent> - extends BaseFluent implements V1beta1PriorityLevelConfigurationListFluent { - public V1beta1PriorityLevelConfigurationListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; - public V1beta1PriorityLevelConfigurationListFluentImpl( - V1beta1PriorityLevelConfigurationList instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PriorityLevelConfigurationListFluentImpl> extends BaseFluent implements V1beta1PriorityLevelConfigurationListFluent{ + public V1beta1PriorityLevelConfigurationListFluentImpl() { + } + public V1beta1PriorityLevelConfigurationListFluentImpl(V1beta1PriorityLevelConfigurationList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -36,108 +30,46 @@ public V1beta1PriorityLevelConfigurationListFluentImpl( this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1beta1PriorityLevelConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1PriorityLevelConfigurationBuilder builder = - new V1beta1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1beta1PriorityLevelConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1PriorityLevelConfigurationBuilder builder = new V1beta1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1beta1PriorityLevelConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1PriorityLevelConfigurationBuilder builder = - new V1beta1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + public A setToItems(Integer index,V1beta1PriorityLevelConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1PriorityLevelConfigurationBuilder builder = new V1beta1PriorityLevelConfigurationBuilder(item); + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - - public A addToItems( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1PriorityLevelConfiguration item : items) { - V1beta1PriorityLevelConfigurationBuilder builder = - new V1beta1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + public A addToItems(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1PriorityLevelConfiguration item : items) {V1beta1PriorityLevelConfigurationBuilder builder = new V1beta1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1PriorityLevelConfiguration item : items) { - V1beta1PriorityLevelConfigurationBuilder builder = - new V1beta1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1PriorityLevelConfiguration item : items) {V1beta1PriorityLevelConfigurationBuilder builder = new V1beta1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { - for (V1beta1PriorityLevelConfiguration item : items) { - V1beta1PriorityLevelConfigurationBuilder builder = - new V1beta1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { + for (V1beta1PriorityLevelConfiguration item : items) {V1beta1PriorityLevelConfigurationBuilder builder = new V1beta1PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1beta1PriorityLevelConfiguration item : items) { - V1beta1PriorityLevelConfigurationBuilder builder = - new V1beta1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta1PriorityLevelConfiguration item : items) {V1beta1PriorityLevelConfigurationBuilder builder = new V1beta1PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -149,281 +81,176 @@ public A removeMatchingFromItems(Predicate getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1beta1PriorityLevelConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public V1beta1PriorityLevelConfiguration buildFirstItem() { return this.items.get(0).build(); } - public V1beta1PriorityLevelConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1beta1PriorityLevelConfiguration buildMatchingItem( - Predicate predicate) { - for (V1beta1PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { + for (V1beta1PriorityLevelConfigurationBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1beta1PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta1PriorityLevelConfigurationBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1beta1PriorityLevelConfiguration item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - - public A withItems( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1beta1PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } - return (A) this; + public A withItems(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1beta1PriorityLevelConfiguration item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItem() { return new V1beta1PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(); } - - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( - V1beta1PriorityLevelConfiguration item) { + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike(V1beta1PriorityLevelConfiguration item) { return new V1beta1PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1beta1PriorityLevelConfiguration item) { + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1beta1PriorityLevelConfiguration item) { return new V1beta1PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1beta1PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(); } - - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1beta1PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(item); } - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta1PriorityLevelConfigurationListFluentImpl that = - (V1beta1PriorityLevelConfigurationListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + V1beta1PriorityLevelConfigurationListFluentImpl that = (V1beta1PriorityLevelConfigurationListFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1beta1PriorityLevelConfigurationFluentImpl< - V1beta1PriorityLevelConfigurationListFluent.ItemsNested> - implements V1beta1PriorityLevelConfigurationListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1beta1PriorityLevelConfiguration item) { + class ItemsNestedImpl extends V1beta1PriorityLevelConfigurationFluentImpl> implements V1beta1PriorityLevelConfigurationListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1beta1PriorityLevelConfiguration item) { this.index = index; this.builder = new V1beta1PriorityLevelConfigurationBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1beta1PriorityLevelConfigurationBuilder(this); } - V1beta1PriorityLevelConfigurationBuilder builder; Integer index; - public N and() { - return (N) - V1beta1PriorityLevelConfigurationListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1beta1PriorityLevelConfigurationListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1beta1PriorityLevelConfigurationListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1beta1PriorityLevelConfigurationListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1beta1PriorityLevelConfigurationListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java index ca09e7b646..fd73560308 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java @@ -1,79 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta1PriorityLevelConfigurationReferenceBuilder - extends V1beta1PriorityLevelConfigurationReferenceFluentImpl< - V1beta1PriorityLevelConfigurationReferenceBuilder> - implements VisitableBuilder< - V1beta1PriorityLevelConfigurationReference, - V1beta1PriorityLevelConfigurationReferenceBuilder> { +import java.lang.Boolean; +public class V1beta1PriorityLevelConfigurationReferenceBuilder extends V1beta1PriorityLevelConfigurationReferenceFluentImpl implements VisitableBuilder{ public V1beta1PriorityLevelConfigurationReferenceBuilder() { this(false); } - public V1beta1PriorityLevelConfigurationReferenceBuilder(Boolean validationEnabled) { this(new V1beta1PriorityLevelConfigurationReference(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationReferenceBuilder( - V1beta1PriorityLevelConfigurationReferenceFluent fluent) { + public V1beta1PriorityLevelConfigurationReferenceBuilder(V1beta1PriorityLevelConfigurationReferenceFluent fluent) { this(fluent, false); } - - public V1beta1PriorityLevelConfigurationReferenceBuilder( - V1beta1PriorityLevelConfigurationReferenceFluent fluent, Boolean validationEnabled) { + public V1beta1PriorityLevelConfigurationReferenceBuilder(V1beta1PriorityLevelConfigurationReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationReference(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationReferenceBuilder( - V1beta1PriorityLevelConfigurationReferenceFluent fluent, - V1beta1PriorityLevelConfigurationReference instance) { + public V1beta1PriorityLevelConfigurationReferenceBuilder(V1beta1PriorityLevelConfigurationReferenceFluent fluent,V1beta1PriorityLevelConfigurationReference instance) { this(fluent, instance, false); } - - public V1beta1PriorityLevelConfigurationReferenceBuilder( - V1beta1PriorityLevelConfigurationReferenceFluent fluent, - V1beta1PriorityLevelConfigurationReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PriorityLevelConfigurationReferenceBuilder(V1beta1PriorityLevelConfigurationReferenceFluent fluent,V1beta1PriorityLevelConfigurationReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta1PriorityLevelConfigurationReferenceBuilder( - V1beta1PriorityLevelConfigurationReference instance) { - this(instance, false); + public V1beta1PriorityLevelConfigurationReferenceBuilder(V1beta1PriorityLevelConfigurationReference instance) { + this(instance,false); } - - public V1beta1PriorityLevelConfigurationReferenceBuilder( - V1beta1PriorityLevelConfigurationReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PriorityLevelConfigurationReferenceBuilder(V1beta1PriorityLevelConfigurationReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PriorityLevelConfigurationReferenceFluent fluent; Boolean validationEnabled; - public V1beta1PriorityLevelConfigurationReference build() { - V1beta1PriorityLevelConfigurationReference buildable = - new V1beta1PriorityLevelConfigurationReference(); + V1beta1PriorityLevelConfigurationReference buildable = new V1beta1PriorityLevelConfigurationReference(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java index 3e131d26e3..61a0a72c52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java @@ -1,26 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1PriorityLevelConfigurationReferenceFluent< - A extends V1beta1PriorityLevelConfigurationReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1PriorityLevelConfigurationReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java index 3c6ee258cc..f09eaf0574 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java @@ -1,67 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PriorityLevelConfigurationReferenceFluentImpl< - A extends V1beta1PriorityLevelConfigurationReferenceFluent> - extends BaseFluent implements V1beta1PriorityLevelConfigurationReferenceFluent { - public V1beta1PriorityLevelConfigurationReferenceFluentImpl() {} - - public V1beta1PriorityLevelConfigurationReferenceFluentImpl( - V1beta1PriorityLevelConfigurationReference instance) { - this.withName(instance.getName()); +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PriorityLevelConfigurationReferenceFluentImpl> extends BaseFluent implements V1beta1PriorityLevelConfigurationReferenceFluent{ + public V1beta1PriorityLevelConfigurationReferenceFluentImpl() { } + public V1beta1PriorityLevelConfigurationReferenceFluentImpl(V1beta1PriorityLevelConfigurationReference instance) { + this.withName(instance.getName()); + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta1PriorityLevelConfigurationReferenceFluentImpl that = - (V1beta1PriorityLevelConfigurationReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + V1beta1PriorityLevelConfigurationReferenceFluentImpl that = (V1beta1PriorityLevelConfigurationReferenceFluentImpl) o; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java index 03a678d129..89b8e9351a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java @@ -1,82 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta1PriorityLevelConfigurationSpecBuilder - extends V1beta1PriorityLevelConfigurationSpecFluentImpl< - V1beta1PriorityLevelConfigurationSpecBuilder> - implements VisitableBuilder< - V1beta1PriorityLevelConfigurationSpec, V1beta1PriorityLevelConfigurationSpecBuilder> { +import java.lang.Boolean; +public class V1beta1PriorityLevelConfigurationSpecBuilder extends V1beta1PriorityLevelConfigurationSpecFluentImpl implements VisitableBuilder{ public V1beta1PriorityLevelConfigurationSpecBuilder() { this(false); } - public V1beta1PriorityLevelConfigurationSpecBuilder(Boolean validationEnabled) { this(new V1beta1PriorityLevelConfigurationSpec(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationSpecBuilder( - V1beta1PriorityLevelConfigurationSpecFluent fluent) { + public V1beta1PriorityLevelConfigurationSpecBuilder(V1beta1PriorityLevelConfigurationSpecFluent fluent) { this(fluent, false); } - - public V1beta1PriorityLevelConfigurationSpecBuilder( - V1beta1PriorityLevelConfigurationSpecFluent fluent, Boolean validationEnabled) { + public V1beta1PriorityLevelConfigurationSpecBuilder(V1beta1PriorityLevelConfigurationSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationSpec(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationSpecBuilder( - V1beta1PriorityLevelConfigurationSpecFluent fluent, - V1beta1PriorityLevelConfigurationSpec instance) { + public V1beta1PriorityLevelConfigurationSpecBuilder(V1beta1PriorityLevelConfigurationSpecFluent fluent,V1beta1PriorityLevelConfigurationSpec instance) { this(fluent, instance, false); } - - public V1beta1PriorityLevelConfigurationSpecBuilder( - V1beta1PriorityLevelConfigurationSpecFluent fluent, - V1beta1PriorityLevelConfigurationSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PriorityLevelConfigurationSpecBuilder(V1beta1PriorityLevelConfigurationSpecFluent fluent,V1beta1PriorityLevelConfigurationSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLimited(instance.getLimited()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta1PriorityLevelConfigurationSpecBuilder( - V1beta1PriorityLevelConfigurationSpec instance) { - this(instance, false); + public V1beta1PriorityLevelConfigurationSpecBuilder(V1beta1PriorityLevelConfigurationSpec instance) { + this(instance,false); } - - public V1beta1PriorityLevelConfigurationSpecBuilder( - V1beta1PriorityLevelConfigurationSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PriorityLevelConfigurationSpecBuilder(V1beta1PriorityLevelConfigurationSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withLimited(instance.getLimited()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PriorityLevelConfigurationSpecFluent fluent; Boolean validationEnabled; - public V1beta1PriorityLevelConfigurationSpec build() { V1beta1PriorityLevelConfigurationSpec buildable = new V1beta1PriorityLevelConfigurationSpec(); buildable.setLimited(fluent.getLimited()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java index ecb25223c8..95b4862e18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java @@ -1,63 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1PriorityLevelConfigurationSpecFluent< - A extends V1beta1PriorityLevelConfigurationSpecFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1PriorityLevelConfigurationSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildLimited instead. - * * @return The buildable object. */ @Deprecated public V1beta1LimitedPriorityLevelConfiguration getLimited(); - public V1beta1LimitedPriorityLevelConfiguration buildLimited(); - public A withLimited(V1beta1LimitedPriorityLevelConfiguration limited); - public Boolean hasLimited(); - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimited(); - - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( - V1beta1LimitedPriorityLevelConfiguration item); - + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike(V1beta1LimitedPriorityLevelConfiguration item); public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editLimited(); - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited(); - - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( - V1beta1LimitedPriorityLevelConfiguration item); - + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike(V1beta1LimitedPriorityLevelConfiguration item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface LimitedNested - extends Nested, - V1beta1LimitedPriorityLevelConfigurationFluent< - V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested> { + public interface LimitedNested extends Nested,V1beta1LimitedPriorityLevelConfigurationFluent>{ public N and(); - public N endLimited(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java index ba3859f699..89d09438fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java @@ -1,154 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PriorityLevelConfigurationSpecFluentImpl< - A extends V1beta1PriorityLevelConfigurationSpecFluent> - extends BaseFluent implements V1beta1PriorityLevelConfigurationSpecFluent { - public V1beta1PriorityLevelConfigurationSpecFluentImpl() {} - - public V1beta1PriorityLevelConfigurationSpecFluentImpl( - V1beta1PriorityLevelConfigurationSpec instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PriorityLevelConfigurationSpecFluentImpl> extends BaseFluent implements V1beta1PriorityLevelConfigurationSpecFluent{ + public V1beta1PriorityLevelConfigurationSpecFluentImpl() { + } + public V1beta1PriorityLevelConfigurationSpecFluentImpl(V1beta1PriorityLevelConfigurationSpec instance) { this.withLimited(instance.getLimited()); this.withType(instance.getType()); - } + } private V1beta1LimitedPriorityLevelConfigurationBuilder limited; private String type; - + /** * This method has been deprecated, please use method buildLimited instead. - * * @return The buildable object. */ @Deprecated public V1beta1LimitedPriorityLevelConfiguration getLimited() { - return this.limited != null ? this.limited.build() : null; + return this.limited!=null ?this.limited.build():null; } - public V1beta1LimitedPriorityLevelConfiguration buildLimited() { - return this.limited != null ? this.limited.build() : null; + return this.limited!=null ?this.limited.build():null; } - public A withLimited(V1beta1LimitedPriorityLevelConfiguration limited) { _visitables.get("limited").remove(this.limited); - if (limited != null) { - this.limited = new V1beta1LimitedPriorityLevelConfigurationBuilder(limited); - _visitables.get("limited").add(this.limited); - } else { - this.limited = null; - _visitables.get("limited").remove(this.limited); - } - return (A) this; + if (limited!=null){ this.limited= new V1beta1LimitedPriorityLevelConfigurationBuilder(limited); _visitables.get("limited").add(this.limited);} else { this.limited = null; _visitables.get("limited").remove(this.limited); } return (A) this; } - public Boolean hasLimited() { return this.limited != null; } - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimited() { return new V1beta1PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(); } - - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( - V1beta1LimitedPriorityLevelConfiguration item) { + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike(V1beta1LimitedPriorityLevelConfiguration item) { return new V1beta1PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(item); } - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editLimited() { return withNewLimitedLike(getLimited()); } - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited() { - return withNewLimitedLike( - getLimited() != null - ? getLimited() - : new V1beta1LimitedPriorityLevelConfigurationBuilder().build()); + return withNewLimitedLike(getLimited() != null ? getLimited(): new V1beta1LimitedPriorityLevelConfigurationBuilder().build()); } - - public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( - V1beta1LimitedPriorityLevelConfiguration item) { - return withNewLimitedLike(getLimited() != null ? getLimited() : item); + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike(V1beta1LimitedPriorityLevelConfiguration item) { + return withNewLimitedLike(getLimited() != null ? getLimited(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta1PriorityLevelConfigurationSpecFluentImpl that = - (V1beta1PriorityLevelConfigurationSpecFluentImpl) o; - if (limited != null ? !limited.equals(that.limited) : that.limited != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1beta1PriorityLevelConfigurationSpecFluentImpl that = (V1beta1PriorityLevelConfigurationSpecFluentImpl) o; + if (limited != null ? !limited.equals(that.limited) :that.limited != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(limited, type, super.hashCode()); + return java.util.Objects.hash(limited, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (limited != null) { - sb.append("limited:"); - sb.append(limited + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (limited != null) { sb.append("limited:"); sb.append(limited + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class LimitedNestedImpl - extends V1beta1LimitedPriorityLevelConfigurationFluentImpl< - V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested> - implements V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested, Nested { + class LimitedNestedImpl extends V1beta1LimitedPriorityLevelConfigurationFluentImpl> implements V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested,Nested{ LimitedNestedImpl(V1beta1LimitedPriorityLevelConfiguration item) { this.builder = new V1beta1LimitedPriorityLevelConfigurationBuilder(this, item); } - LimitedNestedImpl() { this.builder = new V1beta1LimitedPriorityLevelConfigurationBuilder(this); } - V1beta1LimitedPriorityLevelConfigurationBuilder builder; - public N and() { return (N) V1beta1PriorityLevelConfigurationSpecFluentImpl.this.withLimited(builder.build()); } - public N endLimited() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java index c63fbb22fe..a357fcec71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java @@ -1,78 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta1PriorityLevelConfigurationStatusBuilder - extends V1beta1PriorityLevelConfigurationStatusFluentImpl< - V1beta1PriorityLevelConfigurationStatusBuilder> - implements VisitableBuilder< - V1beta1PriorityLevelConfigurationStatus, V1beta1PriorityLevelConfigurationStatusBuilder> { +import java.lang.Boolean; +public class V1beta1PriorityLevelConfigurationStatusBuilder extends V1beta1PriorityLevelConfigurationStatusFluentImpl implements VisitableBuilder{ public V1beta1PriorityLevelConfigurationStatusBuilder() { this(false); } - public V1beta1PriorityLevelConfigurationStatusBuilder(Boolean validationEnabled) { this(new V1beta1PriorityLevelConfigurationStatus(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationStatusBuilder( - V1beta1PriorityLevelConfigurationStatusFluent fluent) { + public V1beta1PriorityLevelConfigurationStatusBuilder(V1beta1PriorityLevelConfigurationStatusFluent fluent) { this(fluent, false); } - - public V1beta1PriorityLevelConfigurationStatusBuilder( - V1beta1PriorityLevelConfigurationStatusFluent fluent, Boolean validationEnabled) { + public V1beta1PriorityLevelConfigurationStatusBuilder(V1beta1PriorityLevelConfigurationStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationStatus(), validationEnabled); } - - public V1beta1PriorityLevelConfigurationStatusBuilder( - V1beta1PriorityLevelConfigurationStatusFluent fluent, - V1beta1PriorityLevelConfigurationStatus instance) { + public V1beta1PriorityLevelConfigurationStatusBuilder(V1beta1PriorityLevelConfigurationStatusFluent fluent,V1beta1PriorityLevelConfigurationStatus instance) { this(fluent, instance, false); } - - public V1beta1PriorityLevelConfigurationStatusBuilder( - V1beta1PriorityLevelConfigurationStatusFluent fluent, - V1beta1PriorityLevelConfigurationStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1PriorityLevelConfigurationStatusBuilder(V1beta1PriorityLevelConfigurationStatusFluent fluent,V1beta1PriorityLevelConfigurationStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta1PriorityLevelConfigurationStatusBuilder( - V1beta1PriorityLevelConfigurationStatus instance) { - this(instance, false); + public V1beta1PriorityLevelConfigurationStatusBuilder(V1beta1PriorityLevelConfigurationStatus instance) { + this(instance,false); } - - public V1beta1PriorityLevelConfigurationStatusBuilder( - V1beta1PriorityLevelConfigurationStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1PriorityLevelConfigurationStatusBuilder(V1beta1PriorityLevelConfigurationStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1PriorityLevelConfigurationStatusFluent fluent; Boolean validationEnabled; - public V1beta1PriorityLevelConfigurationStatus build() { - V1beta1PriorityLevelConfigurationStatus buildable = - new V1beta1PriorityLevelConfigurationStatus(); + V1beta1PriorityLevelConfigurationStatus buildable = new V1beta1PriorityLevelConfigurationStatus(); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java index 8401d818f4..06a4e0a281 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java @@ -1,97 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1PriorityLevelConfigurationStatusFluent< - A extends V1beta1PriorityLevelConfigurationStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item); - - public A setToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1PriorityLevelConfigurationStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1beta1PriorityLevelConfigurationCondition item); + public A setToConditions(Integer index,V1beta1PriorityLevelConfigurationCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1beta1PriorityLevelConfigurationCondition buildCondition(Integer index); - public V1beta1PriorityLevelConfigurationCondition buildFirstCondition(); - public V1beta1PriorityLevelConfigurationCondition buildLastCondition(); - - public V1beta1PriorityLevelConfigurationCondition buildMatchingCondition( - Predicate predicate); - - public Boolean hasMatchingCondition( - Predicate predicate); - + public V1beta1PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate); + public Boolean hasMatchingCondition(Predicate predicate); public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... conditions); public Boolean hasConditions(); - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewCondition(); - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( - V1beta1PriorityLevelConfigurationCondition item); - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta1PriorityLevelConfigurationCondition item); - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( - Integer index); - + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike(V1beta1PriorityLevelConfigurationCondition item); + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta1PriorityLevelConfigurationCondition item); + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition(Integer index); public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition(); - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editLastCondition(); - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, - V1beta1PriorityLevelConfigurationConditionFluent< - V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested> { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1beta1PriorityLevelConfigurationConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java index 4f276d5220..1f74bb06c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java @@ -1,125 +1,58 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PriorityLevelConfigurationStatusFluentImpl< - A extends V1beta1PriorityLevelConfigurationStatusFluent> - extends BaseFluent implements V1beta1PriorityLevelConfigurationStatusFluent { - public V1beta1PriorityLevelConfigurationStatusFluentImpl() {} +import java.lang.Boolean; - public V1beta1PriorityLevelConfigurationStatusFluentImpl( - V1beta1PriorityLevelConfigurationStatus instance) { - this.withConditions(instance.getConditions()); + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1PriorityLevelConfigurationStatusFluentImpl> extends BaseFluent implements V1beta1PriorityLevelConfigurationStatusFluent{ + public V1beta1PriorityLevelConfigurationStatusFluentImpl() { } + public V1beta1PriorityLevelConfigurationStatusFluentImpl(V1beta1PriorityLevelConfigurationStatus instance) { + this.withConditions(instance.getConditions()); + } private ArrayList conditions; - - public A addToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1beta1PriorityLevelConfigurationConditionBuilder builder = - new V1beta1PriorityLevelConfigurationConditionBuilder(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 addToConditions(Integer index,V1beta1PriorityLevelConfigurationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1beta1PriorityLevelConfigurationConditionBuilder builder = new V1beta1PriorityLevelConfigurationConditionBuilder(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(Integer index, V1beta1PriorityLevelConfigurationCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1beta1PriorityLevelConfigurationConditionBuilder builder = - new V1beta1PriorityLevelConfigurationConditionBuilder(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 setToConditions(Integer index,V1beta1PriorityLevelConfigurationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1beta1PriorityLevelConfigurationConditionBuilder builder = new V1beta1PriorityLevelConfigurationConditionBuilder(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.V1beta1PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1beta1PriorityLevelConfigurationCondition item : items) { - V1beta1PriorityLevelConfigurationConditionBuilder builder = - new V1beta1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta1PriorityLevelConfigurationCondition item : items) {V1beta1PriorityLevelConfigurationConditionBuilder builder = new V1beta1PriorityLevelConfigurationConditionBuilder(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 ArrayList(); - } - for (V1beta1PriorityLevelConfigurationCondition item : items) { - V1beta1PriorityLevelConfigurationConditionBuilder builder = - new V1beta1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta1PriorityLevelConfigurationCondition item : items) {V1beta1PriorityLevelConfigurationConditionBuilder builder = new V1beta1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items) { - for (V1beta1PriorityLevelConfigurationCondition item : items) { - V1beta1PriorityLevelConfigurationConditionBuilder builder = - new V1beta1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items) { + for (V1beta1PriorityLevelConfigurationCondition item : items) {V1beta1PriorityLevelConfigurationConditionBuilder builder = new V1beta1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1beta1PriorityLevelConfigurationCondition item : items) { - V1beta1PriorityLevelConfigurationConditionBuilder builder = - new V1beta1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1beta1PriorityLevelConfigurationCondition item : items) {V1beta1PriorityLevelConfigurationConditionBuilder builder = new V1beta1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -130,184 +63,111 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1beta1PriorityLevelConfigurationCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1beta1PriorityLevelConfigurationCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1beta1PriorityLevelConfigurationCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1beta1PriorityLevelConfigurationCondition buildMatchingCondition( - Predicate predicate) { - for (V1beta1PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta1PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate) { + for (V1beta1PriorityLevelConfigurationConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V1beta1PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1beta1PriorityLevelConfigurationConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta1PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1beta1PriorityLevelConfigurationCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... - conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1beta1PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1beta1PriorityLevelConfigurationCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewCondition() { return new V1beta1PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(); } - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( - V1beta1PriorityLevelConfigurationCondition item) { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike(V1beta1PriorityLevelConfigurationCondition item) { return new V1beta1PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta1PriorityLevelConfigurationCondition item) { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta1PriorityLevelConfigurationCondition item) { return new V1beta1PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(index, item); } - - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( - Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition(Integer index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1beta1PriorityLevelConfigurationStatusFluent.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 V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta1PriorityLevelConfigurationConditionFluentImpl< - V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested> - implements V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1beta1PriorityLevelConfigurationCondition item) { + class ConditionsNestedImpl extends V1beta1PriorityLevelConfigurationConditionFluentImpl> implements V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1beta1PriorityLevelConfigurationCondition item) { this.index = index; this.builder = new V1beta1PriorityLevelConfigurationConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1beta1PriorityLevelConfigurationConditionBuilder(this); } - V1beta1PriorityLevelConfigurationConditionBuilder builder; Integer index; - public N and() { - return (N) - V1beta1PriorityLevelConfigurationStatusFluentImpl.this.setToConditions( - index, builder.build()); + return (N) V1beta1PriorityLevelConfigurationStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java index 9f79a3ab2f..c6336d09f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1beta1QueuingConfigurationBuilder - extends V1beta1QueuingConfigurationFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1QueuingConfigurationBuilder extends V1beta1QueuingConfigurationFluentImpl implements VisitableBuilder{ public V1beta1QueuingConfigurationBuilder() { this(false); } - public V1beta1QueuingConfigurationBuilder(Boolean validationEnabled) { this(new V1beta1QueuingConfiguration(), validationEnabled); } - public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfigurationFluent fluent) { this(fluent, false); } - - public V1beta1QueuingConfigurationBuilder( - V1beta1QueuingConfigurationFluent fluent, Boolean validationEnabled) { + public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1QueuingConfiguration(), validationEnabled); } - - public V1beta1QueuingConfigurationBuilder( - V1beta1QueuingConfigurationFluent fluent, V1beta1QueuingConfiguration instance) { + public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfigurationFluent fluent,V1beta1QueuingConfiguration instance) { this(fluent, instance, false); } - - public V1beta1QueuingConfigurationBuilder( - V1beta1QueuingConfigurationFluent fluent, - V1beta1QueuingConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfigurationFluent fluent,V1beta1QueuingConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHandSize(instance.getHandSize()); fluent.withQueueLengthLimit(instance.getQueueLengthLimit()); fluent.withQueues(instance.getQueues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfiguration instance) { - this(instance, false); + this(instance,false); } - - public V1beta1QueuingConfigurationBuilder( - V1beta1QueuingConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withHandSize(instance.getHandSize()); this.withQueueLengthLimit(instance.getQueueLengthLimit()); this.withQueues(instance.getQueues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1QueuingConfigurationFluent fluent; Boolean validationEnabled; - public V1beta1QueuingConfiguration build() { V1beta1QueuingConfiguration buildable = new V1beta1QueuingConfiguration(); buildable.setHandSize(fluent.getHandSize()); @@ -79,4 +50,5 @@ public V1beta1QueuingConfiguration build() { buildable.setQueues(fluent.getQueues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java index c98cbcdbfe..fd043ee6b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java @@ -1,37 +1,21 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1QueuingConfigurationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1QueuingConfigurationFluent> extends Fluent{ public Integer getHandSize(); - public A withHandSize(Integer handSize); - public Boolean hasHandSize(); - public Integer getQueueLengthLimit(); - public A withQueueLengthLimit(Integer queueLengthLimit); - public Boolean hasQueueLengthLimit(); - public Integer getQueues(); - public A withQueues(Integer queues); - public Boolean hasQueues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java index 09a66ccd47..0c044201b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java @@ -1,108 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1QueuingConfigurationFluentImpl> - extends BaseFluent implements V1beta1QueuingConfigurationFluent { - public V1beta1QueuingConfigurationFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1QueuingConfigurationFluentImpl> extends BaseFluent implements V1beta1QueuingConfigurationFluent{ + public V1beta1QueuingConfigurationFluentImpl() { + } public V1beta1QueuingConfigurationFluentImpl(V1beta1QueuingConfiguration instance) { this.withHandSize(instance.getHandSize()); this.withQueueLengthLimit(instance.getQueueLengthLimit()); this.withQueues(instance.getQueues()); - } + } private Integer handSize; private Integer queueLengthLimit; private Integer queues; - public Integer getHandSize() { return this.handSize; } - public A withHandSize(Integer handSize) { - this.handSize = handSize; - return (A) this; + this.handSize=handSize; return (A) this; } - public Boolean hasHandSize() { return this.handSize != null; } - public Integer getQueueLengthLimit() { return this.queueLengthLimit; } - public A withQueueLengthLimit(Integer queueLengthLimit) { - this.queueLengthLimit = queueLengthLimit; - return (A) this; + this.queueLengthLimit=queueLengthLimit; return (A) this; } - public Boolean hasQueueLengthLimit() { return this.queueLengthLimit != null; } - public Integer getQueues() { return this.queues; } - public A withQueues(Integer queues) { - this.queues = queues; - return (A) this; + this.queues=queues; return (A) this; } - public Boolean hasQueues() { return this.queues != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1QueuingConfigurationFluentImpl that = (V1beta1QueuingConfigurationFluentImpl) o; - if (handSize != null ? !handSize.equals(that.handSize) : that.handSize != null) return false; - if (queueLengthLimit != null - ? !queueLengthLimit.equals(that.queueLengthLimit) - : that.queueLengthLimit != null) return false; - if (queues != null ? !queues.equals(that.queues) : that.queues != null) return false; + if (handSize != null ? !handSize.equals(that.handSize) :that.handSize != null) return false; + if (queueLengthLimit != null ? !queueLengthLimit.equals(that.queueLengthLimit) :that.queueLengthLimit != null) return false; + if (queues != null ? !queues.equals(that.queues) :that.queues != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); + return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (handSize != null) { - sb.append("handSize:"); - sb.append(handSize + ","); - } - if (queueLengthLimit != null) { - sb.append("queueLengthLimit:"); - sb.append(queueLengthLimit + ","); - } - if (queues != null) { - sb.append("queues:"); - sb.append(queues); - } + if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); } + if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); } + if (queues != null) { sb.append("queues:"); sb.append(queues); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java index 1720abf527..b87e62835a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1ResourcePolicyRuleBuilder - extends V1beta1ResourcePolicyRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1ResourcePolicyRuleBuilder extends V1beta1ResourcePolicyRuleFluentImpl implements VisitableBuilder{ public V1beta1ResourcePolicyRuleBuilder() { this(false); } - public V1beta1ResourcePolicyRuleBuilder(Boolean validationEnabled) { this(new V1beta1ResourcePolicyRule(), validationEnabled); } - public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRuleFluent fluent) { this(fluent, false); } - - public V1beta1ResourcePolicyRuleBuilder( - V1beta1ResourcePolicyRuleFluent fluent, Boolean validationEnabled) { + public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1ResourcePolicyRule(), validationEnabled); } - - public V1beta1ResourcePolicyRuleBuilder( - V1beta1ResourcePolicyRuleFluent fluent, V1beta1ResourcePolicyRule instance) { + public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRuleFluent fluent,V1beta1ResourcePolicyRule instance) { this(fluent, instance, false); } - - public V1beta1ResourcePolicyRuleBuilder( - V1beta1ResourcePolicyRuleFluent fluent, - V1beta1ResourcePolicyRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRuleFluent fluent,V1beta1ResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); fluent.withClusterScope(instance.getClusterScope()); @@ -54,16 +30,13 @@ public V1beta1ResourcePolicyRuleBuilder( fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRule instance) { - this(instance, false); + this(instance,false); } - - public V1beta1ResourcePolicyRuleBuilder( - V1beta1ResourcePolicyRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroups(instance.getApiGroups()); this.withClusterScope(instance.getClusterScope()); @@ -74,12 +47,10 @@ public V1beta1ResourcePolicyRuleBuilder( this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1ResourcePolicyRuleFluent fluent; Boolean validationEnabled; - public V1beta1ResourcePolicyRule build() { V1beta1ResourcePolicyRule buildable = new V1beta1ResourcePolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -89,4 +60,5 @@ public V1beta1ResourcePolicyRule build() { buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java index 495275cfbd..bc6a553256 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java @@ -1,150 +1,81 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1beta1ResourcePolicyRuleFluent> - extends Fluent { - public A addToApiGroups(Integer index, String item); - - public A setToApiGroups(Integer index, String item); - + /** + * Generated + */ +public interface V1beta1ResourcePolicyRuleFluent> extends Fluent{ + public A addToApiGroups(Integer index,String item); + public A setToApiGroups(Integer index,String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); - public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); - public String getApiGroup(Integer index); - public String getFirstApiGroup(); - public String getLastApiGroup(); - public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(List apiGroups); - public A withApiGroups(java.lang.String... apiGroups); - public Boolean hasApiGroups(); - public Boolean getClusterScope(); - public A withClusterScope(Boolean clusterScope); - public Boolean hasClusterScope(); - - public A addToNamespaces(Integer index, String item); - - public A setToNamespaces(Integer index, String item); - + public A addToNamespaces(Integer index,String item); + public A setToNamespaces(Integer index,String item); public A addToNamespaces(java.lang.String... items); - public A addAllToNamespaces(Collection items); - public A removeFromNamespaces(java.lang.String... items); - public A removeAllFromNamespaces(Collection items); - public List getNamespaces(); - public String getNamespace(Integer index); - public String getFirstNamespace(); - public String getLastNamespace(); - public String getMatchingNamespace(Predicate predicate); - public Boolean hasMatchingNamespace(Predicate predicate); - public A withNamespaces(List namespaces); - public A withNamespaces(java.lang.String... namespaces); - public Boolean hasNamespaces(); - - public A addToResources(Integer index, String item); - - public A setToResources(Integer index, String item); - + public A addToResources(Integer index,String item); + public A setToResources(Integer index,String item); public A addToResources(java.lang.String... items); - public A addAllToResources(Collection items); - public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(Collection items); - public List getResources(); - public String getResource(Integer index); - public String getFirstResource(); - public String getLastResource(); - public String getMatchingResource(Predicate predicate); - public Boolean hasMatchingResource(Predicate predicate); - public A withResources(List resources); - public A withResources(java.lang.String... resources); - public Boolean hasResources(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); - public A withClusterScope(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java index 2c7ee2c8ba..0a04806f28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1ResourcePolicyRuleFluentImpl> - extends BaseFluent implements V1beta1ResourcePolicyRuleFluent { - public V1beta1ResourcePolicyRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1ResourcePolicyRuleFluentImpl> extends BaseFluent implements V1beta1ResourcePolicyRuleFluent{ + public V1beta1ResourcePolicyRuleFluentImpl() { + } public V1beta1ResourcePolicyRuleFluentImpl(V1beta1ResourcePolicyRule instance) { this.withApiGroups(instance.getApiGroups()); @@ -34,540 +28,253 @@ public V1beta1ResourcePolicyRuleFluentImpl(V1beta1ResourcePolicyRule instance) { this.withResources(instance.getResources()); this.withVerbs(instance.getVerbs()); - } + } private List apiGroups; private Boolean clusterScope; private List namespaces; private List resources; private List verbs; - - public A addToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } + public A addToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} this.apiGroups.add(index, item); - return (A) this; + return (A)this; } - - public A setToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.set(index, item); - return (A) this; + public A setToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A removeFromApiGroups(java.lang.String... items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public A removeAllFromApiGroups(Collection items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public List getApiGroups() { return this.apiGroups; } - public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public String getFirstApiGroup() { return this.apiGroups.get(0); } - public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: apiGroups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: apiGroups) { if(predicate.test(item)){ return true;} } return false; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; + if (apiGroups != null) {this.apiGroups = new ArrayList(); for (String item : apiGroups){this.addToApiGroups(item);}} else { this.apiGroups = null;} return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; + if (this.apiGroups != null) {this.apiGroups.clear();} + if (apiGroups != null) {for (String item :apiGroups){ this.addToApiGroups(item);}} return (A) this; } - public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public Boolean getClusterScope() { return this.clusterScope; } - public A withClusterScope(Boolean clusterScope) { - this.clusterScope = clusterScope; - return (A) this; + this.clusterScope=clusterScope; return (A) this; } - public Boolean hasClusterScope() { return this.clusterScope != null; } - - public A addToNamespaces(Integer index, String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } + public A addToNamespaces(Integer index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} this.namespaces.add(index, item); - return (A) this; + return (A)this; } - - public A setToNamespaces(Integer index, String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.set(index, item); - return (A) this; + public A setToNamespaces(Integer index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + this.namespaces.set(index, item); return (A)this; } - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; } - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; } - public A removeFromNamespaces(java.lang.String... items) { - for (String item : items) { - if (this.namespaces != null) { - this.namespaces.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.namespaces!= null){ this.namespaces.remove(item);}} return (A)this; } - public A removeAllFromNamespaces(Collection items) { - for (String item : items) { - if (this.namespaces != null) { - this.namespaces.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.namespaces!= null){ this.namespaces.remove(item);}} return (A)this; } - public List getNamespaces() { return this.namespaces; } - public String getNamespace(Integer index) { return this.namespaces.get(index); } - public String getFirstNamespace() { return this.namespaces.get(0); } - public String getLastNamespace() { return this.namespaces.get(namespaces.size() - 1); } - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: namespaces) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: namespaces) { if(predicate.test(item)){ return true;} } return false; } - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); - } - } else { - this.namespaces = null; - } - return (A) this; + if (namespaces != null) {this.namespaces = new ArrayList(); for (String item : namespaces){this.addToNamespaces(item);}} else { this.namespaces = null;} return (A) this; } - public A withNamespaces(java.lang.String... namespaces) { - if (this.namespaces != null) { - this.namespaces.clear(); - } - if (namespaces != null) { - for (String item : namespaces) { - this.addToNamespaces(item); - } - } - return (A) this; + if (this.namespaces != null) {this.namespaces.clear();} + if (namespaces != null) {for (String item :namespaces){ this.addToNamespaces(item);}} return (A) this; } - public Boolean hasNamespaces() { return namespaces != null && !namespaces.isEmpty(); } - - public A addToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } + public A addToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} this.resources.add(index, item); - return (A) this; + return (A)this; } - - public A setToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public A setToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A removeFromResources(java.lang.String... items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public A removeAllFromResources(Collection items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public List getResources() { return this.resources; } - public String getResource(Integer index) { return this.resources.get(index); } - public String getFirstResource() { return this.resources.get(0); } - public String getLastResource() { return this.resources.get(resources.size() - 1); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resources) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resources) { if(predicate.test(item)){ return true;} } return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; + if (resources != null) {this.resources = new ArrayList(); for (String item : resources){this.addToResources(item);}} else { this.resources = null;} return (A) this; } - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; + if (this.resources != null) {this.resources.clear();} + if (resources != null) {for (String item :resources){ this.addToResources(item);}} return (A) this; } - public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1ResourcePolicyRuleFluentImpl that = (V1beta1ResourcePolicyRuleFluentImpl) o; - if (apiGroups != null ? !apiGroups.equals(that.apiGroups) : that.apiGroups != null) - return false; - if (clusterScope != null ? !clusterScope.equals(that.clusterScope) : that.clusterScope != null) - return false; - if (namespaces != null ? !namespaces.equals(that.namespaces) : that.namespaces != null) - return false; - if (resources != null ? !resources.equals(that.resources) : that.resources != null) - return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (apiGroups != null ? !apiGroups.equals(that.apiGroups) :that.apiGroups != null) return false; + if (clusterScope != null ? !clusterScope.equals(that.clusterScope) :that.clusterScope != null) return false; + if (namespaces != null ? !namespaces.equals(that.namespaces) :that.namespaces != null) return false; + if (resources != null ? !resources.equals(that.resources) :that.resources != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); + return java.util.Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { - sb.append("apiGroups:"); - sb.append(apiGroups + ","); - } - if (clusterScope != null) { - sb.append("clusterScope:"); - sb.append(clusterScope + ","); - } - if (namespaces != null && !namespaces.isEmpty()) { - sb.append("namespaces:"); - sb.append(namespaces + ","); - } - if (resources != null && !resources.isEmpty()) { - sb.append("resources:"); - sb.append(resources + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (clusterScope != null) { sb.append("clusterScope:"); sb.append(clusterScope + ","); } + if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } - public A withClusterScope() { return withClusterScope(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java index ad5f287a3d..281a933e7f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta1ServiceAccountSubjectBuilder - extends V1beta1ServiceAccountSubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1ServiceAccountSubjectBuilder extends V1beta1ServiceAccountSubjectFluentImpl implements VisitableBuilder{ public V1beta1ServiceAccountSubjectBuilder() { this(false); } - public V1beta1ServiceAccountSubjectBuilder(Boolean validationEnabled) { this(new V1beta1ServiceAccountSubject(), validationEnabled); } - public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubjectFluent fluent) { this(fluent, false); } - - public V1beta1ServiceAccountSubjectBuilder( - V1beta1ServiceAccountSubjectFluent fluent, Boolean validationEnabled) { + public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1ServiceAccountSubject(), validationEnabled); } - - public V1beta1ServiceAccountSubjectBuilder( - V1beta1ServiceAccountSubjectFluent fluent, V1beta1ServiceAccountSubject instance) { + public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubjectFluent fluent,V1beta1ServiceAccountSubject instance) { this(fluent, instance, false); } - - public V1beta1ServiceAccountSubjectBuilder( - V1beta1ServiceAccountSubjectFluent fluent, - V1beta1ServiceAccountSubject instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubjectFluent fluent,V1beta1ServiceAccountSubject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubject instance) { - this(instance, false); + this(instance,false); } - - public V1beta1ServiceAccountSubjectBuilder( - V1beta1ServiceAccountSubject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubject instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1ServiceAccountSubjectFluent fluent; Boolean validationEnabled; - public V1beta1ServiceAccountSubject build() { V1beta1ServiceAccountSubject buildable = new V1beta1ServiceAccountSubject(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java index 7f99691759..d27d4fa2c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1ServiceAccountSubjectFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta1ServiceAccountSubjectFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java index c356cc1391..36df0660ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1ServiceAccountSubjectFluentImpl> - extends BaseFluent implements V1beta1ServiceAccountSubjectFluent { - public V1beta1ServiceAccountSubjectFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1ServiceAccountSubjectFluentImpl> extends BaseFluent implements V1beta1ServiceAccountSubjectFluent{ + public V1beta1ServiceAccountSubjectFluentImpl() { + } public V1beta1ServiceAccountSubjectFluentImpl(V1beta1ServiceAccountSubject instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - } + } private String name; private String namespace; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1ServiceAccountSubjectFluentImpl that = (V1beta1ServiceAccountSubjectFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); + return java.util.Objects.hash(name, namespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java index fb2e041979..831fb0e48f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta1SubjectBuilder extends V1beta1SubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1SubjectBuilder extends V1beta1SubjectFluentImpl implements VisitableBuilder{ public V1beta1SubjectBuilder() { this(false); } - public V1beta1SubjectBuilder(Boolean validationEnabled) { this(new V1beta1Subject(), validationEnabled); } - public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent) { this(fluent, false); } - - public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent, Boolean validationEnabled) { + public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1Subject(), validationEnabled); } - - public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent, V1beta1Subject instance) { + public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent,V1beta1Subject instance) { this(fluent, instance, false); } - - public V1beta1SubjectBuilder( - V1beta1SubjectFluent fluent, V1beta1Subject instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent,V1beta1Subject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withGroup(instance.getGroup()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1beta1SubjectBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1SubjectBuilder(V1beta1Subject instance) { - this(instance, false); + this(instance,false); } - - public V1beta1SubjectBuilder(V1beta1Subject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1SubjectBuilder(V1beta1Subject instance,Boolean validationEnabled) { + this.fluent = this; this.withGroup(instance.getGroup()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1beta1SubjectBuilder(V1beta1Subject instance, Boolean validationEnabled) this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1SubjectFluent fluent; Boolean validationEnabled; - public V1beta1Subject build() { V1beta1Subject buildable = new V1beta1Subject(); buildable.setGroup(fluent.getGroup()); @@ -78,4 +55,5 @@ public V1beta1Subject build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java index 8cc86b965a..2d9ac2a223 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java @@ -1,122 +1,77 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1SubjectFluent> extends Fluent { - +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta1SubjectFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildGroup instead. - * * @return The buildable object. */ @Deprecated public V1beta1GroupSubject getGroup(); - public V1beta1GroupSubject buildGroup(); - public A withGroup(V1beta1GroupSubject group); - public Boolean hasGroup(); - public V1beta1SubjectFluent.GroupNested withNewGroup(); - public V1beta1SubjectFluent.GroupNested withNewGroupLike(V1beta1GroupSubject item); - public V1beta1SubjectFluent.GroupNested editGroup(); - public V1beta1SubjectFluent.GroupNested editOrNewGroup(); - public V1beta1SubjectFluent.GroupNested editOrNewGroupLike(V1beta1GroupSubject item); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildServiceAccount instead. - * * @return The buildable object. */ @Deprecated public V1beta1ServiceAccountSubject getServiceAccount(); - public V1beta1ServiceAccountSubject buildServiceAccount(); - public A withServiceAccount(V1beta1ServiceAccountSubject serviceAccount); - public Boolean hasServiceAccount(); - public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccount(); - - public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccountLike( - V1beta1ServiceAccountSubject item); - + public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccountLike(V1beta1ServiceAccountSubject item); public V1beta1SubjectFluent.ServiceAccountNested editServiceAccount(); - public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccount(); - - public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( - V1beta1ServiceAccountSubject item); - + public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike(V1beta1ServiceAccountSubject item); + /** * This method has been deprecated, please use method buildUser instead. - * * @return The buildable object. */ @Deprecated public V1beta1UserSubject getUser(); - public V1beta1UserSubject buildUser(); - public A withUser(V1beta1UserSubject user); - public Boolean hasUser(); - public V1beta1SubjectFluent.UserNested withNewUser(); - public V1beta1SubjectFluent.UserNested withNewUserLike(V1beta1UserSubject item); - public V1beta1SubjectFluent.UserNested editUser(); - public V1beta1SubjectFluent.UserNested editOrNewUser(); - public V1beta1SubjectFluent.UserNested editOrNewUserLike(V1beta1UserSubject item); - - public interface GroupNested - extends Nested, V1beta1GroupSubjectFluent> { + public interface GroupNested extends Nested,V1beta1GroupSubjectFluent>{ public N and(); - public N endGroup(); + } - - public interface ServiceAccountNested - extends Nested, - V1beta1ServiceAccountSubjectFluent> { + public interface ServiceAccountNested extends Nested,V1beta1ServiceAccountSubjectFluent>{ public N and(); - public N endServiceAccount(); + } - - public interface UserNested - extends Nested, V1beta1UserSubjectFluent> { + public interface UserNested extends Nested,V1beta1UserSubjectFluent>{ public N and(); - public N endUser(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java index 4faa4631c7..ad463ff42a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1SubjectFluentImpl> extends BaseFluent - implements V1beta1SubjectFluent { - public V1beta1SubjectFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1SubjectFluentImpl> extends BaseFluent implements V1beta1SubjectFluent{ + public V1beta1SubjectFluentImpl() { + } public V1beta1SubjectFluentImpl(V1beta1Subject instance) { this.withGroup(instance.getGroup()); @@ -29,284 +23,193 @@ public V1beta1SubjectFluentImpl(V1beta1Subject instance) { this.withServiceAccount(instance.getServiceAccount()); this.withUser(instance.getUser()); - } + } private V1beta1GroupSubjectBuilder group; private String kind; private V1beta1ServiceAccountSubjectBuilder serviceAccount; private V1beta1UserSubjectBuilder user; - + /** * This method has been deprecated, please use method buildGroup instead. - * * @return The buildable object. */ @Deprecated public V1beta1GroupSubject getGroup() { - return this.group != null ? this.group.build() : null; + return this.group!=null ?this.group.build():null; } - public V1beta1GroupSubject buildGroup() { - return this.group != null ? this.group.build() : null; + return this.group!=null ?this.group.build():null; } - public A withGroup(V1beta1GroupSubject group) { _visitables.get("group").remove(this.group); - if (group != null) { - this.group = new V1beta1GroupSubjectBuilder(group); - _visitables.get("group").add(this.group); - } else { - this.group = null; - _visitables.get("group").remove(this.group); - } - return (A) this; + if (group!=null){ this.group= new V1beta1GroupSubjectBuilder(group); _visitables.get("group").add(this.group);} else { this.group = null; _visitables.get("group").remove(this.group); } return (A) this; } - public Boolean hasGroup() { return this.group != null; } - public V1beta1SubjectFluent.GroupNested withNewGroup() { return new V1beta1SubjectFluentImpl.GroupNestedImpl(); } - public V1beta1SubjectFluent.GroupNested withNewGroupLike(V1beta1GroupSubject item) { return new V1beta1SubjectFluentImpl.GroupNestedImpl(item); } - public V1beta1SubjectFluent.GroupNested editGroup() { return withNewGroupLike(getGroup()); } - public V1beta1SubjectFluent.GroupNested editOrNewGroup() { - return withNewGroupLike( - getGroup() != null ? getGroup() : new V1beta1GroupSubjectBuilder().build()); + return withNewGroupLike(getGroup() != null ? getGroup(): new V1beta1GroupSubjectBuilder().build()); } - public V1beta1SubjectFluent.GroupNested editOrNewGroupLike(V1beta1GroupSubject item) { - return withNewGroupLike(getGroup() != null ? getGroup() : item); + return withNewGroupLike(getGroup() != null ? getGroup(): item); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildServiceAccount instead. - * * @return The buildable object. */ @Deprecated public V1beta1ServiceAccountSubject getServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; + return this.serviceAccount!=null ?this.serviceAccount.build():null; } - public V1beta1ServiceAccountSubject buildServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; + return this.serviceAccount!=null ?this.serviceAccount.build():null; } - public A withServiceAccount(V1beta1ServiceAccountSubject serviceAccount) { _visitables.get("serviceAccount").remove(this.serviceAccount); - if (serviceAccount != null) { - this.serviceAccount = new V1beta1ServiceAccountSubjectBuilder(serviceAccount); - _visitables.get("serviceAccount").add(this.serviceAccount); - } else { - this.serviceAccount = null; - _visitables.get("serviceAccount").remove(this.serviceAccount); - } - return (A) this; + if (serviceAccount!=null){ this.serviceAccount= new V1beta1ServiceAccountSubjectBuilder(serviceAccount); _visitables.get("serviceAccount").add(this.serviceAccount);} else { this.serviceAccount = null; _visitables.get("serviceAccount").remove(this.serviceAccount); } return (A) this; } - public Boolean hasServiceAccount() { return this.serviceAccount != null; } - public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccount() { return new V1beta1SubjectFluentImpl.ServiceAccountNestedImpl(); } - - public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccountLike( - V1beta1ServiceAccountSubject item) { + public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccountLike(V1beta1ServiceAccountSubject item) { return new V1beta1SubjectFluentImpl.ServiceAccountNestedImpl(item); } - public V1beta1SubjectFluent.ServiceAccountNested editServiceAccount() { return withNewServiceAccountLike(getServiceAccount()); } - public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccount() { - return withNewServiceAccountLike( - getServiceAccount() != null - ? getServiceAccount() - : new V1beta1ServiceAccountSubjectBuilder().build()); + return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount(): new V1beta1ServiceAccountSubjectBuilder().build()); } - - public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( - V1beta1ServiceAccountSubject item) { - return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount() : item); + public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike(V1beta1ServiceAccountSubject item) { + return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount(): item); } - + /** * This method has been deprecated, please use method buildUser instead. - * * @return The buildable object. */ @Deprecated public V1beta1UserSubject getUser() { - return this.user != null ? this.user.build() : null; + return this.user!=null ?this.user.build():null; } - public V1beta1UserSubject buildUser() { - return this.user != null ? this.user.build() : null; + return this.user!=null ?this.user.build():null; } - public A withUser(V1beta1UserSubject user) { _visitables.get("user").remove(this.user); - if (user != null) { - this.user = new V1beta1UserSubjectBuilder(user); - _visitables.get("user").add(this.user); - } else { - this.user = null; - _visitables.get("user").remove(this.user); - } - return (A) this; + if (user!=null){ this.user= new V1beta1UserSubjectBuilder(user); _visitables.get("user").add(this.user);} else { this.user = null; _visitables.get("user").remove(this.user); } return (A) this; } - public Boolean hasUser() { return this.user != null; } - public V1beta1SubjectFluent.UserNested withNewUser() { return new V1beta1SubjectFluentImpl.UserNestedImpl(); } - public V1beta1SubjectFluent.UserNested withNewUserLike(V1beta1UserSubject item) { return new V1beta1SubjectFluentImpl.UserNestedImpl(item); } - public V1beta1SubjectFluent.UserNested editUser() { return withNewUserLike(getUser()); } - public V1beta1SubjectFluent.UserNested editOrNewUser() { - return withNewUserLike(getUser() != null ? getUser() : new V1beta1UserSubjectBuilder().build()); + return withNewUserLike(getUser() != null ? getUser(): new V1beta1UserSubjectBuilder().build()); } - public V1beta1SubjectFluent.UserNested editOrNewUserLike(V1beta1UserSubject item) { - return withNewUserLike(getUser() != null ? getUser() : item); + return withNewUserLike(getUser() != null ? getUser(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1SubjectFluentImpl that = (V1beta1SubjectFluentImpl) o; - if (group != null ? !group.equals(that.group) : that.group != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (serviceAccount != null - ? !serviceAccount.equals(that.serviceAccount) - : that.serviceAccount != null) return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (group != null ? !group.equals(that.group) :that.group != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (serviceAccount != null ? !serviceAccount.equals(that.serviceAccount) :that.serviceAccount != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); + return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { - sb.append("group:"); - sb.append(group + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (serviceAccount != null) { - sb.append("serviceAccount:"); - sb.append(serviceAccount + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (serviceAccount != null) { sb.append("serviceAccount:"); sb.append(serviceAccount + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - - class GroupNestedImpl - extends V1beta1GroupSubjectFluentImpl> - implements V1beta1SubjectFluent.GroupNested, Nested { + class GroupNestedImpl extends V1beta1GroupSubjectFluentImpl> implements V1beta1SubjectFluent.GroupNested,Nested{ GroupNestedImpl(V1beta1GroupSubject item) { this.builder = new V1beta1GroupSubjectBuilder(this, item); } - GroupNestedImpl() { this.builder = new V1beta1GroupSubjectBuilder(this); } - V1beta1GroupSubjectBuilder builder; - public N and() { return (N) V1beta1SubjectFluentImpl.this.withGroup(builder.build()); } - public N endGroup() { return and(); } + } - - class ServiceAccountNestedImpl - extends V1beta1ServiceAccountSubjectFluentImpl> - implements V1beta1SubjectFluent.ServiceAccountNested, Nested { + class ServiceAccountNestedImpl extends V1beta1ServiceAccountSubjectFluentImpl> implements V1beta1SubjectFluent.ServiceAccountNested,Nested{ ServiceAccountNestedImpl(V1beta1ServiceAccountSubject item) { this.builder = new V1beta1ServiceAccountSubjectBuilder(this, item); } - ServiceAccountNestedImpl() { this.builder = new V1beta1ServiceAccountSubjectBuilder(this); } - V1beta1ServiceAccountSubjectBuilder builder; - public N and() { return (N) V1beta1SubjectFluentImpl.this.withServiceAccount(builder.build()); } - public N endServiceAccount() { return and(); } + } - - class UserNestedImpl extends V1beta1UserSubjectFluentImpl> - implements V1beta1SubjectFluent.UserNested, Nested { + class UserNestedImpl extends V1beta1UserSubjectFluentImpl> implements V1beta1SubjectFluent.UserNested,Nested{ UserNestedImpl(V1beta1UserSubject item) { this.builder = new V1beta1UserSubjectBuilder(this, item); } - UserNestedImpl() { this.builder = new V1beta1UserSubjectBuilder(this); } - V1beta1UserSubjectBuilder builder; - public N and() { return (N) V1beta1SubjectFluentImpl.this.withUser(builder.build()); } - public N endUser() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java index 6594ceb55d..6b93ac7610 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java @@ -1,68 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta1UserSubjectBuilder - extends V1beta1UserSubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta1UserSubjectBuilder extends V1beta1UserSubjectFluentImpl implements VisitableBuilder{ public V1beta1UserSubjectBuilder() { this(false); } - public V1beta1UserSubjectBuilder(Boolean validationEnabled) { this(new V1beta1UserSubject(), validationEnabled); } - public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent) { this(fluent, false); } - - public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent, Boolean validationEnabled) { + public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta1UserSubject(), validationEnabled); } - - public V1beta1UserSubjectBuilder( - V1beta1UserSubjectFluent fluent, V1beta1UserSubject instance) { + public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent,V1beta1UserSubject instance) { this(fluent, instance, false); } - - public V1beta1UserSubjectBuilder( - V1beta1UserSubjectFluent fluent, V1beta1UserSubject instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent,V1beta1UserSubject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta1UserSubjectBuilder(V1beta1UserSubject instance) { - this(instance, false); + this(instance,false); } - - public V1beta1UserSubjectBuilder(V1beta1UserSubject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta1UserSubjectBuilder(V1beta1UserSubject instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta1UserSubjectFluent fluent; Boolean validationEnabled; - public V1beta1UserSubject build() { V1beta1UserSubject buildable = new V1beta1UserSubject(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java index b826d33022..4bd9264c7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java @@ -1,24 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta1UserSubjectFluent> extends Fluent { + /** + * Generated + */ +public interface V1beta1UserSubjectFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java index 9c20b7aa23..970452bd2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1UserSubjectFluentImpl> - extends BaseFluent implements V1beta1UserSubjectFluent { - public V1beta1UserSubjectFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta1UserSubjectFluentImpl> extends BaseFluent implements V1beta1UserSubjectFluent{ + public V1beta1UserSubjectFluentImpl() { + } public V1beta1UserSubjectFluentImpl(V1beta1UserSubject instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta1UserSubjectFluentImpl that = (V1beta1UserSubjectFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java index c6f7ceb446..4b6df076cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java @@ -1,73 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta2FlowDistinguisherMethodBuilder - extends V1beta2FlowDistinguisherMethodFluentImpl - implements VisitableBuilder< - V1beta2FlowDistinguisherMethod, V1beta2FlowDistinguisherMethodBuilder> { +import java.lang.Boolean; +public class V1beta2FlowDistinguisherMethodBuilder extends V1beta2FlowDistinguisherMethodFluentImpl implements VisitableBuilder{ public V1beta2FlowDistinguisherMethodBuilder() { this(false); } - public V1beta2FlowDistinguisherMethodBuilder(Boolean validationEnabled) { this(new V1beta2FlowDistinguisherMethod(), validationEnabled); } - public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluent fluent) { this(fluent, false); } - - public V1beta2FlowDistinguisherMethodBuilder( - V1beta2FlowDistinguisherMethodFluent fluent, Boolean validationEnabled) { + public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2FlowDistinguisherMethod(), validationEnabled); } - - public V1beta2FlowDistinguisherMethodBuilder( - V1beta2FlowDistinguisherMethodFluent fluent, V1beta2FlowDistinguisherMethod instance) { + public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluent fluent,V1beta2FlowDistinguisherMethod instance) { this(fluent, instance, false); } - - public V1beta2FlowDistinguisherMethodBuilder( - V1beta2FlowDistinguisherMethodFluent fluent, - V1beta2FlowDistinguisherMethod instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluent fluent,V1beta2FlowDistinguisherMethod instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethod instance) { - this(instance, false); + this(instance,false); } - - public V1beta2FlowDistinguisherMethodBuilder( - V1beta2FlowDistinguisherMethod instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethod instance,Boolean validationEnabled) { + this.fluent = this; this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2FlowDistinguisherMethodFluent fluent; Boolean validationEnabled; - public V1beta2FlowDistinguisherMethod build() { V1beta2FlowDistinguisherMethod buildable = new V1beta2FlowDistinguisherMethod(); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java index 36d4eb3470..ff99545fe9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java @@ -1,26 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2FlowDistinguisherMethodFluent< - A extends V1beta2FlowDistinguisherMethodFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2FlowDistinguisherMethodFluent> extends Fluent{ public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java index c793cde710..46c7b500f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java @@ -1,65 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2FlowDistinguisherMethodFluentImpl< - A extends V1beta2FlowDistinguisherMethodFluent> - extends BaseFluent implements V1beta2FlowDistinguisherMethodFluent { - public V1beta2FlowDistinguisherMethodFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2FlowDistinguisherMethodFluentImpl> extends BaseFluent implements V1beta2FlowDistinguisherMethodFluent{ + public V1beta2FlowDistinguisherMethodFluentImpl() { + } public V1beta2FlowDistinguisherMethodFluentImpl(V1beta2FlowDistinguisherMethod instance) { this.withType(instance.getType()); - } + } private String type; - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2FlowDistinguisherMethodFluentImpl that = (V1beta2FlowDistinguisherMethodFluentImpl) o; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(type, super.hashCode()); + return java.util.Objects.hash(type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java index 37d484e50b..666fa2eac2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2FlowSchemaBuilder extends V1beta2FlowSchemaFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2FlowSchemaBuilder extends V1beta2FlowSchemaFluentImpl implements VisitableBuilder{ public V1beta2FlowSchemaBuilder() { this(false); } - public V1beta2FlowSchemaBuilder(Boolean validationEnabled) { this(new V1beta2FlowSchema(), validationEnabled); } - public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent) { this(fluent, false); } - - public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent, Boolean validationEnabled) { + public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2FlowSchema(), validationEnabled); } - - public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent, V1beta2FlowSchema instance) { + public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent,V1beta2FlowSchema instance) { this(fluent, instance, false); } - - public V1beta2FlowSchemaBuilder( - V1beta2FlowSchemaFluent fluent, V1beta2FlowSchema instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent,V1beta2FlowSchema instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -49,15 +30,13 @@ public V1beta2FlowSchemaBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance) { - this(instance, false); + this(instance,false); } - - public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -68,12 +47,10 @@ public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance, Boolean validationEn this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2FlowSchemaFluent fluent; Boolean validationEnabled; - public V1beta2FlowSchema build() { V1beta2FlowSchema buildable = new V1beta2FlowSchema(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +60,5 @@ public V1beta2FlowSchema build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java index 8ee9286597..baef143da3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2FlowSchemaConditionBuilder - extends V1beta2FlowSchemaConditionFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2FlowSchemaConditionBuilder extends V1beta2FlowSchemaConditionFluentImpl implements VisitableBuilder{ public V1beta2FlowSchemaConditionBuilder() { this(false); } - public V1beta2FlowSchemaConditionBuilder(Boolean validationEnabled) { this(new V1beta2FlowSchemaCondition(), validationEnabled); } - public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent fluent) { this(fluent, false); } - - public V1beta2FlowSchemaConditionBuilder( - V1beta2FlowSchemaConditionFluent fluent, Boolean validationEnabled) { + public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaCondition(), validationEnabled); } - - public V1beta2FlowSchemaConditionBuilder( - V1beta2FlowSchemaConditionFluent fluent, V1beta2FlowSchemaCondition instance) { + public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent fluent,V1beta2FlowSchemaCondition instance) { this(fluent, instance, false); } - - public V1beta2FlowSchemaConditionBuilder( - V1beta2FlowSchemaConditionFluent fluent, - V1beta2FlowSchemaCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent fluent,V1beta2FlowSchemaCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -54,16 +30,13 @@ public V1beta2FlowSchemaConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaCondition instance) { - this(instance, false); + this(instance,false); } - - public V1beta2FlowSchemaConditionBuilder( - V1beta2FlowSchemaCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -74,12 +47,10 @@ public V1beta2FlowSchemaConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2FlowSchemaConditionFluent fluent; Boolean validationEnabled; - public V1beta2FlowSchemaCondition build() { V1beta2FlowSchemaCondition buildable = new V1beta2FlowSchemaCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -89,4 +60,5 @@ public V1beta2FlowSchemaCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java index 5cd6137483..77883f7459 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java @@ -1,50 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2FlowSchemaConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2FlowSchemaConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java index 4c7345221e..e5081f5be9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java @@ -1,26 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2FlowSchemaConditionFluentImpl> - extends BaseFluent implements V1beta2FlowSchemaConditionFluent { - public V1beta2FlowSchemaConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2FlowSchemaConditionFluentImpl> extends BaseFluent implements V1beta2FlowSchemaConditionFluent{ + public V1beta2FlowSchemaConditionFluentImpl() { + } public V1beta2FlowSchemaConditionFluentImpl(V1beta2FlowSchemaCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -31,122 +24,82 @@ public V1beta2FlowSchemaConditionFluentImpl(V1beta2FlowSchemaCondition instance) this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2FlowSchemaConditionFluentImpl that = (V1beta2FlowSchemaConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java index 3250959b5d..a6db872dd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java @@ -1,124 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta2FlowSchemaFluent> extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2FlowSchemaFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1beta2FlowSchemaFluent.MetadataNested withNewMetadata(); - public V1beta2FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V1beta2FlowSchemaFluent.MetadataNested editMetadata(); - public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadata(); - public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta2FlowSchemaSpec getSpec(); - public V1beta2FlowSchemaSpec buildSpec(); - public A withSpec(V1beta2FlowSchemaSpec spec); - public Boolean hasSpec(); - public V1beta2FlowSchemaFluent.SpecNested withNewSpec(); - public V1beta2FlowSchemaFluent.SpecNested withNewSpecLike(V1beta2FlowSchemaSpec item); - public V1beta2FlowSchemaFluent.SpecNested editSpec(); - public V1beta2FlowSchemaFluent.SpecNested editOrNewSpec(); - public V1beta2FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta2FlowSchemaSpec item); - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta2FlowSchemaStatus getStatus(); - public V1beta2FlowSchemaStatus buildStatus(); - public A withStatus(V1beta2FlowSchemaStatus status); - public Boolean hasStatus(); - public V1beta2FlowSchemaFluent.StatusNested withNewStatus(); - public V1beta2FlowSchemaFluent.StatusNested withNewStatusLike(V1beta2FlowSchemaStatus item); - public V1beta2FlowSchemaFluent.StatusNested editStatus(); - public V1beta2FlowSchemaFluent.StatusNested editOrNewStatus(); - public V1beta2FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta2FlowSchemaStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, V1beta2FlowSchemaSpecFluent> { + public interface SpecNested extends Nested,V1beta2FlowSchemaSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, V1beta2FlowSchemaStatusFluent> { + public interface StatusNested extends Nested,V1beta2FlowSchemaStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java index f3843f11bf..eee09e8c1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2FlowSchemaFluentImpl> extends BaseFluent - implements V1beta2FlowSchemaFluent { - public V1beta2FlowSchemaFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2FlowSchemaFluentImpl> extends BaseFluent implements V1beta2FlowSchemaFluent{ + public V1beta2FlowSchemaFluentImpl() { + } public V1beta2FlowSchemaFluentImpl(V1beta2FlowSchema instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,300 +25,205 @@ public V1beta2FlowSchemaFluentImpl(V1beta2FlowSchema instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta2FlowSchemaSpecBuilder spec; private V1beta2FlowSchemaStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1beta2FlowSchemaFluent.MetadataNested withNewMetadata() { return new V1beta2FlowSchemaFluentImpl.MetadataNestedImpl(); } - public V1beta2FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta2FlowSchemaFluentImpl.MetadataNestedImpl(item); } - public V1beta2FlowSchemaFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta2FlowSchemaSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1beta2FlowSchemaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1beta2FlowSchemaSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1beta2FlowSchemaSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1beta2FlowSchemaSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1beta2FlowSchemaFluent.SpecNested withNewSpec() { return new V1beta2FlowSchemaFluentImpl.SpecNestedImpl(); } - public V1beta2FlowSchemaFluent.SpecNested withNewSpecLike(V1beta2FlowSchemaSpec item) { return new V1beta2FlowSchemaFluentImpl.SpecNestedImpl(item); } - public V1beta2FlowSchemaFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1beta2FlowSchemaFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1beta2FlowSchemaSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1beta2FlowSchemaSpecBuilder().build()); } - public V1beta2FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta2FlowSchemaSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta2FlowSchemaStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1beta2FlowSchemaStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1beta2FlowSchemaStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1beta2FlowSchemaStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1beta2FlowSchemaStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1beta2FlowSchemaFluent.StatusNested withNewStatus() { return new V1beta2FlowSchemaFluentImpl.StatusNestedImpl(); } - public V1beta2FlowSchemaFluent.StatusNested withNewStatusLike(V1beta2FlowSchemaStatus item) { return new V1beta2FlowSchemaFluentImpl.StatusNestedImpl(item); } - public V1beta2FlowSchemaFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1beta2FlowSchemaFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V1beta2FlowSchemaStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1beta2FlowSchemaStatusBuilder().build()); } - public V1beta2FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta2FlowSchemaStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2FlowSchemaFluentImpl that = (V1beta2FlowSchemaFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1beta2FlowSchemaFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1beta2FlowSchemaFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1beta2FlowSchemaFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1beta2FlowSchemaSpecFluentImpl> - implements V1beta2FlowSchemaFluent.SpecNested, Nested { + class SpecNestedImpl extends V1beta2FlowSchemaSpecFluentImpl> implements V1beta2FlowSchemaFluent.SpecNested,Nested{ SpecNestedImpl(V1beta2FlowSchemaSpec item) { this.builder = new V1beta2FlowSchemaSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1beta2FlowSchemaSpecBuilder(this); } - V1beta2FlowSchemaSpecBuilder builder; - public N and() { return (N) V1beta2FlowSchemaFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1beta2FlowSchemaStatusFluentImpl> - implements V1beta2FlowSchemaFluent.StatusNested, Nested { + class StatusNestedImpl extends V1beta2FlowSchemaStatusFluentImpl> implements V1beta2FlowSchemaFluent.StatusNested,Nested{ StatusNestedImpl(V1beta2FlowSchemaStatus item) { this.builder = new V1beta2FlowSchemaStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1beta2FlowSchemaStatusBuilder(this); } - V1beta2FlowSchemaStatusBuilder builder; - public N and() { return (N) V1beta2FlowSchemaFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java index ff0a90f99b..15cb11c58e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2FlowSchemaListBuilder - extends V1beta2FlowSchemaListFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2FlowSchemaListBuilder extends V1beta2FlowSchemaListFluentImpl implements VisitableBuilder{ public V1beta2FlowSchemaListBuilder() { this(false); } - public V1beta2FlowSchemaListBuilder(Boolean validationEnabled) { this(new V1beta2FlowSchemaList(), validationEnabled); } - public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent) { this(fluent, false); } - - public V1beta2FlowSchemaListBuilder( - V1beta2FlowSchemaListFluent fluent, Boolean validationEnabled) { + public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaList(), validationEnabled); } - - public V1beta2FlowSchemaListBuilder( - V1beta2FlowSchemaListFluent fluent, V1beta2FlowSchemaList instance) { + public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent,V1beta2FlowSchemaList instance) { this(fluent, instance, false); } - - public V1beta2FlowSchemaListBuilder( - V1beta2FlowSchemaListFluent fluent, - V1beta2FlowSchemaList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent,V1beta2FlowSchemaList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -52,15 +28,13 @@ public V1beta2FlowSchemaListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance) { - this(instance, false); + this(instance,false); } - - public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -69,12 +43,10 @@ public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance, Boolean vali this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2FlowSchemaListFluent fluent; Boolean validationEnabled; - public V1beta2FlowSchemaList build() { V1beta2FlowSchemaList buildable = new V1beta2FlowSchemaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -83,4 +55,5 @@ public V1beta2FlowSchemaList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java index a5752a66e1..b421e7ccc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java @@ -1,129 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2FlowSchemaListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2FlowSchemaListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta2FlowSchema item); - - public A setToItems(Integer index, V1beta2FlowSchema item); - + public A addToItems(Integer index,V1beta2FlowSchema item); + public A setToItems(Integer index,V1beta2FlowSchema item); public A addToItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1beta2FlowSchema buildItem(Integer index); - public V1beta2FlowSchema buildFirstItem(); - public V1beta2FlowSchema buildLastItem(); - public V1beta2FlowSchema buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items); - public Boolean hasItems(); - public V1beta2FlowSchemaListFluent.ItemsNested addNewItem(); - public V1beta2FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta2FlowSchema item); - - public V1beta2FlowSchemaListFluent.ItemsNested setNewItemLike( - Integer index, V1beta2FlowSchema item); - + public V1beta2FlowSchemaListFluent.ItemsNested setNewItemLike(Integer index,V1beta2FlowSchema item); public V1beta2FlowSchemaListFluent.ItemsNested editItem(Integer index); - public V1beta2FlowSchemaListFluent.ItemsNested editFirstItem(); - public V1beta2FlowSchemaListFluent.ItemsNested editLastItem(); - - public V1beta2FlowSchemaListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1beta2FlowSchemaListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadata(); - public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V1beta2FlowSchemaListFluent.MetadataNested editMetadata(); - public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadata(); - public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - - public interface ItemsNested - extends Nested, V1beta2FlowSchemaFluent> { + public interface ItemsNested extends Nested,V1beta2FlowSchemaFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java index 22ee69206c..0fb5aded5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2FlowSchemaListFluentImpl> - extends BaseFluent implements V1beta2FlowSchemaListFluent { - public V1beta2FlowSchemaListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2FlowSchemaListFluentImpl> extends BaseFluent implements V1beta2FlowSchemaListFluent{ + public V1beta2FlowSchemaListFluentImpl() { + } public V1beta2FlowSchemaListFluentImpl(V1beta2FlowSchemaList instance) { this.withApiVersion(instance.getApiVersion()); @@ -34,100 +30,46 @@ public V1beta2FlowSchemaListFluentImpl(V1beta2FlowSchemaList instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1beta2FlowSchema item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1beta2FlowSchema item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1beta2FlowSchema item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V1beta2FlowSchema item) { + if (this.items == null) {this.items = new ArrayList();} V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta2FlowSchema item : items) { - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta2FlowSchema item : items) { - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { - for (V1beta2FlowSchema item : items) { - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1beta2FlowSchema item : items) { - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -139,273 +81,176 @@ public A removeMatchingFromItems(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1beta2FlowSchema buildItem(Integer index) { return this.items.get(index).build(); } - public V1beta2FlowSchema buildFirstItem() { return this.items.get(0).build(); } - public V1beta2FlowSchema buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1beta2FlowSchema buildMatchingItem(Predicate predicate) { - for (V1beta2FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1beta2FlowSchemaBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1beta2FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta2FlowSchemaBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2FlowSchema item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1beta2FlowSchema item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1beta2FlowSchema item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1beta2FlowSchema item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1beta2FlowSchemaListFluent.ItemsNested addNewItem() { return new V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl(); } - public V1beta2FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta2FlowSchema item) { return new V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1beta2FlowSchemaListFluent.ItemsNested setNewItemLike( - Integer index, V1beta2FlowSchema item) { + public V1beta2FlowSchemaListFluent.ItemsNested setNewItemLike(Integer index,V1beta2FlowSchema item) { return new V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl(index, item); } - public V1beta2FlowSchemaListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1beta2FlowSchemaListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1beta2FlowSchemaListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1beta2FlowSchemaListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1beta2FlowSchemaListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1beta2FlowSchemaListFluentImpl.MetadataNestedImpl(); } - public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1beta2FlowSchemaListFluentImpl.MetadataNestedImpl(item); } - public V1beta2FlowSchemaListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2FlowSchemaListFluentImpl that = (V1beta2FlowSchemaListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1beta2FlowSchemaFluentImpl> - implements V1beta2FlowSchemaListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1beta2FlowSchema item) { + class ItemsNestedImpl extends V1beta2FlowSchemaFluentImpl> implements V1beta2FlowSchemaListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1beta2FlowSchema item) { this.index = index; this.builder = new V1beta2FlowSchemaBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1beta2FlowSchemaBuilder(this); } - V1beta2FlowSchemaBuilder builder; Integer index; - public N and() { - return (N) V1beta2FlowSchemaListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1beta2FlowSchemaListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1beta2FlowSchemaListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1beta2FlowSchemaListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1beta2FlowSchemaListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java index 3c8a6f2e80..521c261cf0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2FlowSchemaSpecBuilder - extends V1beta2FlowSchemaSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2FlowSchemaSpecBuilder extends V1beta2FlowSchemaSpecFluentImpl implements VisitableBuilder{ public V1beta2FlowSchemaSpecBuilder() { this(false); } - public V1beta2FlowSchemaSpecBuilder(Boolean validationEnabled) { this(new V1beta2FlowSchemaSpec(), validationEnabled); } - public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent) { this(fluent, false); } - - public V1beta2FlowSchemaSpecBuilder( - V1beta2FlowSchemaSpecFluent fluent, Boolean validationEnabled) { + public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaSpec(), validationEnabled); } - - public V1beta2FlowSchemaSpecBuilder( - V1beta2FlowSchemaSpecFluent fluent, V1beta2FlowSchemaSpec instance) { + public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent,V1beta2FlowSchemaSpec instance) { this(fluent, instance, false); } - - public V1beta2FlowSchemaSpecBuilder( - V1beta2FlowSchemaSpecFluent fluent, - V1beta2FlowSchemaSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent,V1beta2FlowSchemaSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDistinguisherMethod(instance.getDistinguisherMethod()); fluent.withMatchingPrecedence(instance.getMatchingPrecedence()); @@ -52,15 +28,13 @@ public V1beta2FlowSchemaSpecBuilder( fluent.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance) { - this(instance, false); + this(instance,false); } - - public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withDistinguisherMethod(instance.getDistinguisherMethod()); this.withMatchingPrecedence(instance.getMatchingPrecedence()); @@ -69,12 +43,10 @@ public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance, Boolean vali this.withRules(instance.getRules()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2FlowSchemaSpecFluent fluent; Boolean validationEnabled; - public V1beta2FlowSchemaSpec build() { V1beta2FlowSchemaSpec buildable = new V1beta2FlowSchemaSpec(); buildable.setDistinguisherMethod(fluent.getDistinguisherMethod()); @@ -83,4 +55,5 @@ public V1beta2FlowSchemaSpec build() { buildable.setRules(fluent.getRules()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java index 21e1aa2c3c..b8129d31dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java @@ -1,171 +1,98 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta2FlowSchemaSpecFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V1beta2FlowSchemaSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildDistinguisherMethod instead. - * * @return The buildable object. */ @Deprecated public V1beta2FlowDistinguisherMethod getDistinguisherMethod(); - public V1beta2FlowDistinguisherMethod buildDistinguisherMethod(); - public A withDistinguisherMethod(V1beta2FlowDistinguisherMethod distinguisherMethod); - public Boolean hasDistinguisherMethod(); - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethod(); - - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( - V1beta2FlowDistinguisherMethod item); - + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike(V1beta2FlowDistinguisherMethod item); public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod(); - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod(); - - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( - V1beta2FlowDistinguisherMethod item); - + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1beta2FlowDistinguisherMethod item); public Integer getMatchingPrecedence(); - public A withMatchingPrecedence(Integer matchingPrecedence); - public Boolean hasMatchingPrecedence(); - + /** * This method has been deprecated, please use method buildPriorityLevelConfiguration instead. - * * @return The buildable object. */ @Deprecated public V1beta2PriorityLevelConfigurationReference getPriorityLevelConfiguration(); - public V1beta2PriorityLevelConfigurationReference buildPriorityLevelConfiguration(); - - public A withPriorityLevelConfiguration( - V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration); - + public A withPriorityLevelConfiguration(V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration); public Boolean hasPriorityLevelConfiguration(); - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfiguration(); - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item); - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editPriorityLevelConfiguration(); - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfiguration(); - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item); - - public A addToRules(Integer index, V1beta2PolicyRulesWithSubjects item); - - public A setToRules(Integer index, V1beta2PolicyRulesWithSubjects item); - + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfiguration(); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration(); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration(); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item); + public A addToRules(Integer index,V1beta2PolicyRulesWithSubjects item); + public A setToRules(Integer index,V1beta2PolicyRulesWithSubjects item); public A addToRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items); - public A addAllToRules(Collection items); - - public A removeFromRules( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items); - + public A removeFromRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items); public A removeAllFromRules(Collection items); - public A removeMatchingFromRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildRules instead. - * * @return The buildable object. */ @Deprecated public List getRules(); - public List buildRules(); - public V1beta2PolicyRulesWithSubjects buildRule(Integer index); - public V1beta2PolicyRulesWithSubjects buildFirstRule(); - public V1beta2PolicyRulesWithSubjects buildLastRule(); - - public V1beta2PolicyRulesWithSubjects buildMatchingRule( - Predicate predicate); - + public V1beta2PolicyRulesWithSubjects buildMatchingRule(Predicate predicate); public Boolean hasMatchingRule(Predicate predicate); - public A withRules(List rules); - public A withRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... rules); - public Boolean hasRules(); - public V1beta2FlowSchemaSpecFluent.RulesNested addNewRule(); - - public V1beta2FlowSchemaSpecFluent.RulesNested addNewRuleLike( - V1beta2PolicyRulesWithSubjects item); - - public V1beta2FlowSchemaSpecFluent.RulesNested setNewRuleLike( - Integer index, V1beta2PolicyRulesWithSubjects item); - + public V1beta2FlowSchemaSpecFluent.RulesNested addNewRuleLike(V1beta2PolicyRulesWithSubjects item); + public V1beta2FlowSchemaSpecFluent.RulesNested setNewRuleLike(Integer index,V1beta2PolicyRulesWithSubjects item); public V1beta2FlowSchemaSpecFluent.RulesNested editRule(Integer index); - public V1beta2FlowSchemaSpecFluent.RulesNested editFirstRule(); - public V1beta2FlowSchemaSpecFluent.RulesNested editLastRule(); - - public V1beta2FlowSchemaSpecFluent.RulesNested editMatchingRule( - Predicate predicate); - - public interface DistinguisherMethodNested - extends Nested, - V1beta2FlowDistinguisherMethodFluent< - V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested> { + public V1beta2FlowSchemaSpecFluent.RulesNested editMatchingRule(Predicate predicate); + public interface DistinguisherMethodNested extends Nested,V1beta2FlowDistinguisherMethodFluent>{ public N and(); - public N endDistinguisherMethod(); + } - - public interface PriorityLevelConfigurationNested - extends Nested, - V1beta2PriorityLevelConfigurationReferenceFluent< - V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested> { + public interface PriorityLevelConfigurationNested extends Nested,V1beta2PriorityLevelConfigurationReferenceFluent>{ public N and(); - public N endPriorityLevelConfiguration(); + } - - public interface RulesNested - extends Nested, - V1beta2PolicyRulesWithSubjectsFluent> { + public interface RulesNested extends Nested,V1beta2PolicyRulesWithSubjectsFluent>{ public N and(); - public N endRule(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java index 54a87aec07..bd1c17a621 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java @@ -1,31 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2FlowSchemaSpecFluentImpl> - extends BaseFluent implements V1beta2FlowSchemaSpecFluent { - public V1beta2FlowSchemaSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2FlowSchemaSpecFluentImpl> extends BaseFluent implements V1beta2FlowSchemaSpecFluent{ + public V1beta2FlowSchemaSpecFluentImpl() { + } public V1beta2FlowSchemaSpecFluentImpl(V1beta2FlowSchemaSpec instance) { this.withDistinguisherMethod(instance.getDistinguisherMethod()); @@ -34,222 +30,114 @@ public V1beta2FlowSchemaSpecFluentImpl(V1beta2FlowSchemaSpec instance) { this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); this.withRules(instance.getRules()); - } + } private V1beta2FlowDistinguisherMethodBuilder distinguisherMethod; private Integer matchingPrecedence; private V1beta2PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; private ArrayList rules; - + /** * This method has been deprecated, please use method buildDistinguisherMethod instead. - * * @return The buildable object. */ @Deprecated public V1beta2FlowDistinguisherMethod getDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; + return this.distinguisherMethod!=null ?this.distinguisherMethod.build():null; } - public V1beta2FlowDistinguisherMethod buildDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; + return this.distinguisherMethod!=null ?this.distinguisherMethod.build():null; } - public A withDistinguisherMethod(V1beta2FlowDistinguisherMethod distinguisherMethod) { _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - if (distinguisherMethod != null) { - this.distinguisherMethod = new V1beta2FlowDistinguisherMethodBuilder(distinguisherMethod); - _visitables.get("distinguisherMethod").add(this.distinguisherMethod); - } else { - this.distinguisherMethod = null; - _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - } - return (A) this; + if (distinguisherMethod!=null){ this.distinguisherMethod= new V1beta2FlowDistinguisherMethodBuilder(distinguisherMethod); _visitables.get("distinguisherMethod").add(this.distinguisherMethod);} else { this.distinguisherMethod = null; _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); } return (A) this; } - public Boolean hasDistinguisherMethod() { return this.distinguisherMethod != null; } - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethod() { return new V1beta2FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(); } - - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( - V1beta2FlowDistinguisherMethod item) { + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike(V1beta2FlowDistinguisherMethod item) { return new V1beta2FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(item); } - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod() { return withNewDistinguisherMethodLike(getDistinguisherMethod()); } - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod() { - return withNewDistinguisherMethodLike( - getDistinguisherMethod() != null - ? getDistinguisherMethod() - : new V1beta2FlowDistinguisherMethodBuilder().build()); + return withNewDistinguisherMethodLike(getDistinguisherMethod() != null ? getDistinguisherMethod(): new V1beta2FlowDistinguisherMethodBuilder().build()); } - - public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( - V1beta2FlowDistinguisherMethod item) { - return withNewDistinguisherMethodLike( - getDistinguisherMethod() != null ? getDistinguisherMethod() : item); + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1beta2FlowDistinguisherMethod item) { + return withNewDistinguisherMethodLike(getDistinguisherMethod() != null ? getDistinguisherMethod(): item); } - public Integer getMatchingPrecedence() { return this.matchingPrecedence; } - public A withMatchingPrecedence(Integer matchingPrecedence) { - this.matchingPrecedence = matchingPrecedence; - return (A) this; + this.matchingPrecedence=matchingPrecedence; return (A) this; } - public Boolean hasMatchingPrecedence() { return this.matchingPrecedence != null; } - + /** * This method has been deprecated, please use method buildPriorityLevelConfiguration instead. - * * @return The buildable object. */ @Deprecated public V1beta2PriorityLevelConfigurationReference getPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; + return this.priorityLevelConfiguration!=null ?this.priorityLevelConfiguration.build():null; } - public V1beta2PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; + return this.priorityLevelConfiguration!=null ?this.priorityLevelConfiguration.build():null; } - - public A withPriorityLevelConfiguration( - V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration) { + public A withPriorityLevelConfiguration(V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration) { _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - if (priorityLevelConfiguration != null) { - this.priorityLevelConfiguration = - new V1beta2PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); - _visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); - } else { - this.priorityLevelConfiguration = null; - _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - } - return (A) this; + if (priorityLevelConfiguration!=null){ this.priorityLevelConfiguration= new V1beta2PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); _visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration);} else { this.priorityLevelConfiguration = null; _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); } return (A) this; } - public Boolean hasPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null; } - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfiguration() { + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { return new V1beta2FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(); } - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { return new V1beta2FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(item); } - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editPriorityLevelConfiguration() { + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration() { return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration()); } - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike( - getPriorityLevelConfiguration() != null - ? getPriorityLevelConfiguration() - : new V1beta2PriorityLevelConfigurationReferenceBuilder().build()); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { + return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration(): new V1beta2PriorityLevelConfigurationReferenceBuilder().build()); } - - public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested - editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { - return withNewPriorityLevelConfigurationLike( - getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration() : item); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { + return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration(): item); } - - public A addToRules(Integer index, V1beta2PolicyRulesWithSubjects item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); - this.rules.add(index >= 0 ? index : rules.size(), builder); - return (A) this; + public A addToRules(Integer index,V1beta2PolicyRulesWithSubjects item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder);this.rules.add(index >= 0 ? index : rules.size(), builder); return (A)this; } - - public A setToRules(Integer index, V1beta2PolicyRulesWithSubjects item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } + public A setToRules(Integer index,V1beta2PolicyRulesWithSubjects item) { + if (this.rules == null) {this.rules = new ArrayList();} V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= _visitables.get("rules").size()) { - _visitables.get("rules").add(builder); - } else { - _visitables.get("rules").set(index, builder); - } - if (index < 0 || index >= rules.size()) { - rules.add(builder); - } else { - rules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { _visitables.get("rules").set(index, builder);} + if (index < 0 || index >= rules.size()) { rules.add(builder); } else { rules.set(index, builder);} + return (A)this; } - public A addToRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1beta2PolicyRulesWithSubjects item : items) { - V1beta2PolicyRulesWithSubjectsBuilder builder = - new V1beta2PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1beta2PolicyRulesWithSubjects item : items) { - V1beta2PolicyRulesWithSubjectsBuilder builder = - new V1beta2PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + if (this.rules == null) {this.rules = new ArrayList();} + for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; } - - public A removeFromRules( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { - for (V1beta2PolicyRulesWithSubjects item : items) { - V1beta2PolicyRulesWithSubjectsBuilder builder = - new V1beta2PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + public A removeFromRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { + for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeAllFromRules(Collection items) { - for (V1beta2PolicyRulesWithSubjects item : items) { - V1beta2PolicyRulesWithSubjectsBuilder builder = - new V1beta2PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").remove(builder); - if (this.rules != null) { - this.rules.remove(builder); - } - } - return (A) this; + for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder);if (this.rules != null) {this.rules.remove(builder);}} return (A)this; } - public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; final Iterator each = rules.iterator(); @@ -261,246 +149,149 @@ public A removeMatchingFromRules(Predicate getRules() { return rules != null ? build(rules) : null; } - public List buildRules() { return rules != null ? build(rules) : null; } - public V1beta2PolicyRulesWithSubjects buildRule(Integer index) { return this.rules.get(index).build(); } - public V1beta2PolicyRulesWithSubjects buildFirstRule() { return this.rules.get(0).build(); } - public V1beta2PolicyRulesWithSubjects buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - - public V1beta2PolicyRulesWithSubjects buildMatchingRule( - Predicate predicate) { - for (V1beta2PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta2PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { + for (V1beta2PolicyRulesWithSubjectsBuilder item: rules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingRule(Predicate predicate) { - for (V1beta2PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta2PolicyRulesWithSubjectsBuilder item: rules) { if(predicate.test(item)){ return true;} } return false; } - public A withRules(List rules) { - if (this.rules != null) { - _visitables.get("rules").removeAll(this.rules); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1beta2PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + if (this.rules != null) { _visitables.get("rules").removeAll(this.rules);} + if (rules != null) {this.rules = new ArrayList(); for (V1beta2PolicyRulesWithSubjects item : rules){this.addToRules(item);}} else { this.rules = null;} return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... rules) { - if (this.rules != null) { - this.rules.clear(); - } - if (rules != null) { - for (V1beta2PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } - return (A) this; + if (this.rules != null) {this.rules.clear();} + if (rules != null) {for (V1beta2PolicyRulesWithSubjects item :rules){ this.addToRules(item);}} return (A) this; } - public Boolean hasRules() { return rules != null && !rules.isEmpty(); } - public V1beta2FlowSchemaSpecFluent.RulesNested addNewRule() { return new V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl(); } - - public V1beta2FlowSchemaSpecFluent.RulesNested addNewRuleLike( - V1beta2PolicyRulesWithSubjects item) { + public V1beta2FlowSchemaSpecFluent.RulesNested addNewRuleLike(V1beta2PolicyRulesWithSubjects item) { return new V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl(-1, item); } - - public V1beta2FlowSchemaSpecFluent.RulesNested setNewRuleLike( - Integer index, V1beta2PolicyRulesWithSubjects item) { + public V1beta2FlowSchemaSpecFluent.RulesNested setNewRuleLike(Integer index,V1beta2PolicyRulesWithSubjects item) { return new V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl(index, item); } - public V1beta2FlowSchemaSpecFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public V1beta2FlowSchemaSpecFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public V1beta2FlowSchemaSpecFluent.RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); return setNewRuleLike(index, buildRule(index)); } - - public V1beta2FlowSchemaSpecFluent.RulesNested editMatchingRule( - Predicate predicate) { + public V1beta2FlowSchemaSpecFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i = 0; i < rules.size(); i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta2FlowDistinguisherMethodFluentImpl< - V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested> - implements V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested, Nested { + class DistinguisherMethodNestedImpl extends V1beta2FlowDistinguisherMethodFluentImpl> implements V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested,Nested{ DistinguisherMethodNestedImpl(V1beta2FlowDistinguisherMethod item) { this.builder = new V1beta2FlowDistinguisherMethodBuilder(this, item); } - DistinguisherMethodNestedImpl() { this.builder = new V1beta2FlowDistinguisherMethodBuilder(this); } - V1beta2FlowDistinguisherMethodBuilder builder; - public N and() { return (N) V1beta2FlowSchemaSpecFluentImpl.this.withDistinguisherMethod(builder.build()); } - public N endDistinguisherMethod() { return and(); } + } - - class PriorityLevelConfigurationNestedImpl - extends V1beta2PriorityLevelConfigurationReferenceFluentImpl< - V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested> - implements V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested, Nested { + class PriorityLevelConfigurationNestedImpl extends V1beta2PriorityLevelConfigurationReferenceFluentImpl> implements V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested,Nested{ PriorityLevelConfigurationNestedImpl(V1beta2PriorityLevelConfigurationReference item) { this.builder = new V1beta2PriorityLevelConfigurationReferenceBuilder(this, item); } - PriorityLevelConfigurationNestedImpl() { this.builder = new V1beta2PriorityLevelConfigurationReferenceBuilder(this); } - V1beta2PriorityLevelConfigurationReferenceBuilder builder; - public N and() { - return (N) - V1beta2FlowSchemaSpecFluentImpl.this.withPriorityLevelConfiguration(builder.build()); + return (N) V1beta2FlowSchemaSpecFluentImpl.this.withPriorityLevelConfiguration(builder.build()); } - public N endPriorityLevelConfiguration() { return and(); } + } - - class RulesNestedImpl - extends V1beta2PolicyRulesWithSubjectsFluentImpl> - implements V1beta2FlowSchemaSpecFluent.RulesNested, Nested { - RulesNestedImpl(Integer index, V1beta2PolicyRulesWithSubjects item) { + class RulesNestedImpl extends V1beta2PolicyRulesWithSubjectsFluentImpl> implements V1beta2FlowSchemaSpecFluent.RulesNested,Nested{ + RulesNestedImpl(Integer index,V1beta2PolicyRulesWithSubjects item) { this.index = index; this.builder = new V1beta2PolicyRulesWithSubjectsBuilder(this, item); } - RulesNestedImpl() { this.index = -1; this.builder = new V1beta2PolicyRulesWithSubjectsBuilder(this); } - V1beta2PolicyRulesWithSubjectsBuilder builder; Integer index; - public N and() { - return (N) V1beta2FlowSchemaSpecFluentImpl.this.setToRules(index, builder.build()); + return (N) V1beta2FlowSchemaSpecFluentImpl.this.setToRules(index,builder.build()); } - public N endRule() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java index 303d70dee0..d7169e7211 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java @@ -1,72 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta2FlowSchemaStatusBuilder - extends V1beta2FlowSchemaStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2FlowSchemaStatusBuilder extends V1beta2FlowSchemaStatusFluentImpl implements VisitableBuilder{ public V1beta2FlowSchemaStatusBuilder() { this(false); } - public V1beta2FlowSchemaStatusBuilder(Boolean validationEnabled) { this(new V1beta2FlowSchemaStatus(), validationEnabled); } - public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent) { this(fluent, false); } - - public V1beta2FlowSchemaStatusBuilder( - V1beta2FlowSchemaStatusFluent fluent, Boolean validationEnabled) { + public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaStatus(), validationEnabled); } - - public V1beta2FlowSchemaStatusBuilder( - V1beta2FlowSchemaStatusFluent fluent, V1beta2FlowSchemaStatus instance) { + public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent,V1beta2FlowSchemaStatus instance) { this(fluent, instance, false); } - - public V1beta2FlowSchemaStatusBuilder( - V1beta2FlowSchemaStatusFluent fluent, - V1beta2FlowSchemaStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent,V1beta2FlowSchemaStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatus instance) { - this(instance, false); + this(instance,false); } - - public V1beta2FlowSchemaStatusBuilder( - V1beta2FlowSchemaStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2FlowSchemaStatusFluent fluent; Boolean validationEnabled; - public V1beta2FlowSchemaStatus build() { V1beta2FlowSchemaStatus buildable = new V1beta2FlowSchemaStatus(); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java index af76f5c93e..5c358b053b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java @@ -1,91 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta2FlowSchemaStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1beta2FlowSchemaCondition item); - - public A setToConditions(Integer index, V1beta2FlowSchemaCondition item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2FlowSchemaStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1beta2FlowSchemaCondition item); + public A setToConditions(Integer index,V1beta2FlowSchemaCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items); - public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items); public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions(Predicate predicate); - + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1beta2FlowSchemaCondition buildCondition(Integer index); - public V1beta2FlowSchemaCondition buildFirstCondition(); - public V1beta2FlowSchemaCondition buildLastCondition(); - - public V1beta2FlowSchemaCondition buildMatchingCondition( - Predicate predicate); - + public V1beta2FlowSchemaCondition buildMatchingCondition(Predicate predicate); public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... conditions); public Boolean hasConditions(); - public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewCondition(); - - public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( - V1beta2FlowSchemaCondition item); - - public V1beta2FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta2FlowSchemaCondition item); - + public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewConditionLike(V1beta2FlowSchemaCondition item); + public V1beta2FlowSchemaStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta2FlowSchemaCondition item); public V1beta2FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index); - public V1beta2FlowSchemaStatusFluent.ConditionsNested editFirstCondition(); - public V1beta2FlowSchemaStatusFluent.ConditionsNested editLastCondition(); - - public V1beta2FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, - V1beta2FlowSchemaConditionFluent> { + public V1beta2FlowSchemaStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1beta2FlowSchemaConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java index 388342e5d5..7e0e4cba55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java @@ -1,115 +1,57 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2FlowSchemaStatusFluentImpl> - extends BaseFluent implements V1beta2FlowSchemaStatusFluent { - public V1beta2FlowSchemaStatusFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2FlowSchemaStatusFluentImpl> extends BaseFluent implements V1beta2FlowSchemaStatusFluent{ + public V1beta2FlowSchemaStatusFluentImpl() { + } public V1beta2FlowSchemaStatusFluentImpl(V1beta2FlowSchemaStatus instance) { this.withConditions(instance.getConditions()); - } + } private ArrayList conditions; - - public A addToConditions(Integer index, V1beta2FlowSchemaCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(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 addToConditions(Integer index,V1beta2FlowSchemaCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(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(Integer index, V1beta2FlowSchemaCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } + public A setToConditions(Integer index,V1beta2FlowSchemaCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(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; + 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.V1beta2FlowSchemaCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1beta2FlowSchemaCondition item : items) { - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(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 ArrayList(); - } - for (V1beta2FlowSchemaCondition item : items) { - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { - for (V1beta2FlowSchemaCondition item : items) { - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { + for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1beta2FlowSchemaCondition item : items) { - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(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(); @@ -121,178 +63,111 @@ public A removeMatchingFromConditions(Predicate getConditions() { return conditions != null ? build(conditions) : null; } - public List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1beta2FlowSchemaCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1beta2FlowSchemaCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1beta2FlowSchemaCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1beta2FlowSchemaCondition buildMatchingCondition( - Predicate predicate) { - for (V1beta2FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta2FlowSchemaCondition buildMatchingCondition(Predicate predicate) { + for (V1beta2FlowSchemaConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCondition(Predicate predicate) { - for (V1beta2FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta2FlowSchemaConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta2FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1beta2FlowSchemaCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1beta2FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1beta2FlowSchemaCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewCondition() { return new V1beta2FlowSchemaStatusFluentImpl.ConditionsNestedImpl(); } - - public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( - V1beta2FlowSchemaCondition item) { + public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewConditionLike(V1beta2FlowSchemaCondition item) { return new V1beta2FlowSchemaStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1beta2FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta2FlowSchemaCondition item) { + public V1beta2FlowSchemaStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta2FlowSchemaCondition item) { return new V1beta2FlowSchemaStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V1beta2FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1beta2FlowSchemaStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1beta2FlowSchemaStatusFluent.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 V1beta2FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1beta2FlowSchemaStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta2FlowSchemaConditionFluentImpl< - V1beta2FlowSchemaStatusFluent.ConditionsNested> - implements V1beta2FlowSchemaStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1beta2FlowSchemaCondition item) { + class ConditionsNestedImpl extends V1beta2FlowSchemaConditionFluentImpl> implements V1beta2FlowSchemaStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1beta2FlowSchemaCondition item) { this.index = index; this.builder = new V1beta2FlowSchemaConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1beta2FlowSchemaConditionBuilder(this); } - V1beta2FlowSchemaConditionBuilder builder; Integer index; - public N and() { - return (N) V1beta2FlowSchemaStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V1beta2FlowSchemaStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java index b0bf139a54..bf2fc10a44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java @@ -1,71 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta2GroupSubjectBuilder - extends V1beta2GroupSubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2GroupSubjectBuilder extends V1beta2GroupSubjectFluentImpl implements VisitableBuilder{ public V1beta2GroupSubjectBuilder() { this(false); } - public V1beta2GroupSubjectBuilder(Boolean validationEnabled) { this(new V1beta2GroupSubject(), validationEnabled); } - public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent) { this(fluent, false); } - - public V1beta2GroupSubjectBuilder( - V1beta2GroupSubjectFluent fluent, Boolean validationEnabled) { + public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2GroupSubject(), validationEnabled); } - - public V1beta2GroupSubjectBuilder( - V1beta2GroupSubjectFluent fluent, V1beta2GroupSubject instance) { + public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent,V1beta2GroupSubject instance) { this(fluent, instance, false); } - - public V1beta2GroupSubjectBuilder( - V1beta2GroupSubjectFluent fluent, - V1beta2GroupSubject instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent,V1beta2GroupSubject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2GroupSubjectBuilder(V1beta2GroupSubject instance) { - this(instance, false); + this(instance,false); } - - public V1beta2GroupSubjectBuilder(V1beta2GroupSubject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2GroupSubjectBuilder(V1beta2GroupSubject instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2GroupSubjectFluent fluent; Boolean validationEnabled; - public V1beta2GroupSubject build() { V1beta2GroupSubject buildable = new V1beta2GroupSubject(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java index d8cc6dcae7..60de174a60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java @@ -1,25 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2GroupSubjectFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2GroupSubjectFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java index 22ff6af076..7c79ab7372 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2GroupSubjectFluentImpl> - extends BaseFluent implements V1beta2GroupSubjectFluent { - public V1beta2GroupSubjectFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2GroupSubjectFluentImpl> extends BaseFluent implements V1beta2GroupSubjectFluent{ + public V1beta2GroupSubjectFluentImpl() { + } public V1beta2GroupSubjectFluentImpl(V1beta2GroupSubject instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2GroupSubjectFluentImpl that = (V1beta2GroupSubjectFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java index 534b396875..0bd6a453a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta2LimitResponseBuilder - extends V1beta2LimitResponseFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2LimitResponseBuilder extends V1beta2LimitResponseFluentImpl implements VisitableBuilder{ public V1beta2LimitResponseBuilder() { this(false); } - public V1beta2LimitResponseBuilder(Boolean validationEnabled) { this(new V1beta2LimitResponse(), validationEnabled); } - public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent) { this(fluent, false); } - - public V1beta2LimitResponseBuilder( - V1beta2LimitResponseFluent fluent, Boolean validationEnabled) { + public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2LimitResponse(), validationEnabled); } - - public V1beta2LimitResponseBuilder( - V1beta2LimitResponseFluent fluent, V1beta2LimitResponse instance) { + public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent,V1beta2LimitResponse instance) { this(fluent, instance, false); } - - public V1beta2LimitResponseBuilder( - V1beta2LimitResponseFluent fluent, - V1beta2LimitResponse instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent,V1beta2LimitResponse instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withQueuing(instance.getQueuing()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2LimitResponseBuilder(V1beta2LimitResponse instance) { - this(instance, false); + this(instance,false); } - - public V1beta2LimitResponseBuilder(V1beta2LimitResponse instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2LimitResponseBuilder(V1beta2LimitResponse instance,Boolean validationEnabled) { + this.fluent = this; this.withQueuing(instance.getQueuing()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2LimitResponseFluent fluent; Boolean validationEnabled; - public V1beta2LimitResponse build() { V1beta2LimitResponse buildable = new V1beta2LimitResponse(); buildable.setQueuing(fluent.getQueuing()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java index 3eab0bb295..7159ff459d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta2LimitResponseFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2LimitResponseFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildQueuing instead. - * * @return The buildable object. */ @Deprecated public V1beta2QueuingConfiguration getQueuing(); - public V1beta2QueuingConfiguration buildQueuing(); - public A withQueuing(V1beta2QueuingConfiguration queuing); - public Boolean hasQueuing(); - public V1beta2LimitResponseFluent.QueuingNested withNewQueuing(); - - public V1beta2LimitResponseFluent.QueuingNested withNewQueuingLike( - V1beta2QueuingConfiguration item); - + public V1beta2LimitResponseFluent.QueuingNested withNewQueuingLike(V1beta2QueuingConfiguration item); public V1beta2LimitResponseFluent.QueuingNested editQueuing(); - public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuing(); - - public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuingLike( - V1beta2QueuingConfiguration item); - + public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuingLike(V1beta2QueuingConfiguration item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface QueuingNested - extends Nested, - V1beta2QueuingConfigurationFluent> { + public interface QueuingNested extends Nested,V1beta2QueuingConfigurationFluent>{ public N and(); - public N endQueuing(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java index 9057b5f9f5..3470a88242 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java @@ -1,148 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2LimitResponseFluentImpl> - extends BaseFluent implements V1beta2LimitResponseFluent { - public V1beta2LimitResponseFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2LimitResponseFluentImpl> extends BaseFluent implements V1beta2LimitResponseFluent{ + public V1beta2LimitResponseFluentImpl() { + } public V1beta2LimitResponseFluentImpl(V1beta2LimitResponse instance) { this.withQueuing(instance.getQueuing()); this.withType(instance.getType()); - } + } private V1beta2QueuingConfigurationBuilder queuing; private String type; - + /** * This method has been deprecated, please use method buildQueuing instead. - * * @return The buildable object. */ @Deprecated public V1beta2QueuingConfiguration getQueuing() { - return this.queuing != null ? this.queuing.build() : null; + return this.queuing!=null ?this.queuing.build():null; } - public V1beta2QueuingConfiguration buildQueuing() { - return this.queuing != null ? this.queuing.build() : null; + return this.queuing!=null ?this.queuing.build():null; } - public A withQueuing(V1beta2QueuingConfiguration queuing) { _visitables.get("queuing").remove(this.queuing); - if (queuing != null) { - this.queuing = new V1beta2QueuingConfigurationBuilder(queuing); - _visitables.get("queuing").add(this.queuing); - } else { - this.queuing = null; - _visitables.get("queuing").remove(this.queuing); - } - return (A) this; + if (queuing!=null){ this.queuing= new V1beta2QueuingConfigurationBuilder(queuing); _visitables.get("queuing").add(this.queuing);} else { this.queuing = null; _visitables.get("queuing").remove(this.queuing); } return (A) this; } - public Boolean hasQueuing() { return this.queuing != null; } - public V1beta2LimitResponseFluent.QueuingNested withNewQueuing() { return new V1beta2LimitResponseFluentImpl.QueuingNestedImpl(); } - - public V1beta2LimitResponseFluent.QueuingNested withNewQueuingLike( - V1beta2QueuingConfiguration item) { + public V1beta2LimitResponseFluent.QueuingNested withNewQueuingLike(V1beta2QueuingConfiguration item) { return new V1beta2LimitResponseFluentImpl.QueuingNestedImpl(item); } - public V1beta2LimitResponseFluent.QueuingNested editQueuing() { return withNewQueuingLike(getQueuing()); } - public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuing() { - return withNewQueuingLike( - getQueuing() != null ? getQueuing() : new V1beta2QueuingConfigurationBuilder().build()); + return withNewQueuingLike(getQueuing() != null ? getQueuing(): new V1beta2QueuingConfigurationBuilder().build()); } - - public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuingLike( - V1beta2QueuingConfiguration item) { - return withNewQueuingLike(getQueuing() != null ? getQueuing() : item); + public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuingLike(V1beta2QueuingConfiguration item) { + return withNewQueuingLike(getQueuing() != null ? getQueuing(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2LimitResponseFluentImpl that = (V1beta2LimitResponseFluentImpl) o; - if (queuing != null ? !queuing.equals(that.queuing) : that.queuing != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (queuing != null ? !queuing.equals(that.queuing) :that.queuing != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(queuing, type, super.hashCode()); + return java.util.Objects.hash(queuing, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (queuing != null) { - sb.append("queuing:"); - sb.append(queuing + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class QueuingNestedImpl - extends V1beta2QueuingConfigurationFluentImpl> - implements V1beta2LimitResponseFluent.QueuingNested, Nested { + class QueuingNestedImpl extends V1beta2QueuingConfigurationFluentImpl> implements V1beta2LimitResponseFluent.QueuingNested,Nested{ QueuingNestedImpl(V1beta2QueuingConfiguration item) { this.builder = new V1beta2QueuingConfigurationBuilder(this, item); } - QueuingNestedImpl() { this.builder = new V1beta2QueuingConfigurationBuilder(this); } - V1beta2QueuingConfigurationBuilder builder; - public N and() { return (N) V1beta2LimitResponseFluentImpl.this.withQueuing(builder.build()); } - public N endQueuing() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java index 30b42112e4..6123b7b5d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java @@ -1,83 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta2LimitedPriorityLevelConfigurationBuilder - extends V1beta2LimitedPriorityLevelConfigurationFluentImpl< - V1beta2LimitedPriorityLevelConfigurationBuilder> - implements VisitableBuilder< - V1beta2LimitedPriorityLevelConfiguration, V1beta2LimitedPriorityLevelConfigurationBuilder> { +import java.lang.Boolean; +public class V1beta2LimitedPriorityLevelConfigurationBuilder extends V1beta2LimitedPriorityLevelConfigurationFluentImpl implements VisitableBuilder{ public V1beta2LimitedPriorityLevelConfigurationBuilder() { this(false); } - public V1beta2LimitedPriorityLevelConfigurationBuilder(Boolean validationEnabled) { this(new V1beta2LimitedPriorityLevelConfiguration(), validationEnabled); } - - public V1beta2LimitedPriorityLevelConfigurationBuilder( - V1beta2LimitedPriorityLevelConfigurationFluent fluent) { + public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfigurationFluent fluent) { this(fluent, false); } - - public V1beta2LimitedPriorityLevelConfigurationBuilder( - V1beta2LimitedPriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { + public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2LimitedPriorityLevelConfiguration(), validationEnabled); } - - public V1beta2LimitedPriorityLevelConfigurationBuilder( - V1beta2LimitedPriorityLevelConfigurationFluent fluent, - V1beta2LimitedPriorityLevelConfiguration instance) { + public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfigurationFluent fluent,V1beta2LimitedPriorityLevelConfiguration instance) { this(fluent, instance, false); } - - public V1beta2LimitedPriorityLevelConfigurationBuilder( - V1beta2LimitedPriorityLevelConfigurationFluent fluent, - V1beta2LimitedPriorityLevelConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfigurationFluent fluent,V1beta2LimitedPriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); fluent.withLimitResponse(instance.getLimitResponse()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta2LimitedPriorityLevelConfigurationBuilder( - V1beta2LimitedPriorityLevelConfiguration instance) { - this(instance, false); + public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfiguration instance) { + this(instance,false); } - - public V1beta2LimitedPriorityLevelConfigurationBuilder( - V1beta2LimitedPriorityLevelConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); this.withLimitResponse(instance.getLimitResponse()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2LimitedPriorityLevelConfigurationFluent fluent; Boolean validationEnabled; - public V1beta2LimitedPriorityLevelConfiguration build() { - V1beta2LimitedPriorityLevelConfiguration buildable = - new V1beta2LimitedPriorityLevelConfiguration(); + V1beta2LimitedPriorityLevelConfiguration buildable = new V1beta2LimitedPriorityLevelConfiguration(); buildable.setAssuredConcurrencyShares(fluent.getAssuredConcurrencyShares()); buildable.setLimitResponse(fluent.getLimitResponse()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java index 8530e45f48..68e0bad7b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java @@ -1,64 +1,37 @@ -/* -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 java.lang.Integer; +import java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2LimitedPriorityLevelConfigurationFluent< - A extends V1beta2LimitedPriorityLevelConfigurationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2LimitedPriorityLevelConfigurationFluent> extends Fluent{ public Integer getAssuredConcurrencyShares(); - public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares); - public Boolean hasAssuredConcurrencyShares(); - + /** * This method has been deprecated, please use method buildLimitResponse instead. - * * @return The buildable object. */ @Deprecated public V1beta2LimitResponse getLimitResponse(); - public V1beta2LimitResponse buildLimitResponse(); - public A withLimitResponse(V1beta2LimitResponse limitResponse); - public Boolean hasLimitResponse(); - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponse(); - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponseLike(V1beta2LimitResponse item); - + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponse(); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponseLike(V1beta2LimitResponse item); public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse(); - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponse(); - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponseLike(V1beta2LimitResponse item); - - public interface LimitResponseNested - extends Nested, - V1beta2LimitResponseFluent< - V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested> { + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse(); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponseLike(V1beta2LimitResponse item); + public interface LimitResponseNested extends Nested,V1beta2LimitResponseFluent>{ public N and(); - public N endLimitResponse(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java index bab96d0102..717d522393 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java @@ -1,162 +1,106 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2LimitedPriorityLevelConfigurationFluentImpl< - A extends V1beta2LimitedPriorityLevelConfigurationFluent> - extends BaseFluent implements V1beta2LimitedPriorityLevelConfigurationFluent { - public V1beta2LimitedPriorityLevelConfigurationFluentImpl() {} - - public V1beta2LimitedPriorityLevelConfigurationFluentImpl( - V1beta2LimitedPriorityLevelConfiguration instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2LimitedPriorityLevelConfigurationFluentImpl> extends BaseFluent implements V1beta2LimitedPriorityLevelConfigurationFluent{ + public V1beta2LimitedPriorityLevelConfigurationFluentImpl() { + } + public V1beta2LimitedPriorityLevelConfigurationFluentImpl(V1beta2LimitedPriorityLevelConfiguration instance) { this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); this.withLimitResponse(instance.getLimitResponse()); - } + } private Integer assuredConcurrencyShares; private V1beta2LimitResponseBuilder limitResponse; - public Integer getAssuredConcurrencyShares() { return this.assuredConcurrencyShares; } - public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares) { - this.assuredConcurrencyShares = assuredConcurrencyShares; - return (A) this; + this.assuredConcurrencyShares=assuredConcurrencyShares; return (A) this; } - public Boolean hasAssuredConcurrencyShares() { return this.assuredConcurrencyShares != null; } - + /** * This method has been deprecated, please use method buildLimitResponse instead. - * * @return The buildable object. */ @Deprecated public V1beta2LimitResponse getLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; + return this.limitResponse!=null ?this.limitResponse.build():null; } - public V1beta2LimitResponse buildLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; + return this.limitResponse!=null ?this.limitResponse.build():null; } - public A withLimitResponse(V1beta2LimitResponse limitResponse) { _visitables.get("limitResponse").remove(this.limitResponse); - if (limitResponse != null) { - this.limitResponse = new V1beta2LimitResponseBuilder(limitResponse); - _visitables.get("limitResponse").add(this.limitResponse); - } else { - this.limitResponse = null; - _visitables.get("limitResponse").remove(this.limitResponse); - } - return (A) this; + if (limitResponse!=null){ this.limitResponse= new V1beta2LimitResponseBuilder(limitResponse); _visitables.get("limitResponse").add(this.limitResponse);} else { this.limitResponse = null; _visitables.get("limitResponse").remove(this.limitResponse); } return (A) this; } - public Boolean hasLimitResponse() { return this.limitResponse != null; } - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponse() { + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponse() { return new V1beta2LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(); } - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - withNewLimitResponseLike(V1beta2LimitResponse item) { + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponseLike(V1beta2LimitResponse item) { return new V1beta2LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(item); } - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse() { return withNewLimitResponseLike(getLimitResponse()); } - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponse() { - return withNewLimitResponseLike( - getLimitResponse() != null - ? getLimitResponse() - : new V1beta2LimitResponseBuilder().build()); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse() { + return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse(): new V1beta2LimitResponseBuilder().build()); } - - public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested - editOrNewLimitResponseLike(V1beta2LimitResponse item) { - return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse() : item); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponseLike(V1beta2LimitResponse item) { + return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta2LimitedPriorityLevelConfigurationFluentImpl that = - (V1beta2LimitedPriorityLevelConfigurationFluentImpl) o; - if (assuredConcurrencyShares != null - ? !assuredConcurrencyShares.equals(that.assuredConcurrencyShares) - : that.assuredConcurrencyShares != null) return false; - if (limitResponse != null - ? !limitResponse.equals(that.limitResponse) - : that.limitResponse != null) return false; + V1beta2LimitedPriorityLevelConfigurationFluentImpl that = (V1beta2LimitedPriorityLevelConfigurationFluentImpl) o; + if (assuredConcurrencyShares != null ? !assuredConcurrencyShares.equals(that.assuredConcurrencyShares) :that.assuredConcurrencyShares != null) return false; + if (limitResponse != null ? !limitResponse.equals(that.limitResponse) :that.limitResponse != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(assuredConcurrencyShares, limitResponse, super.hashCode()); + return java.util.Objects.hash(assuredConcurrencyShares, limitResponse, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (assuredConcurrencyShares != null) { - sb.append("assuredConcurrencyShares:"); - sb.append(assuredConcurrencyShares + ","); - } - if (limitResponse != null) { - sb.append("limitResponse:"); - sb.append(limitResponse); - } + if (assuredConcurrencyShares != null) { sb.append("assuredConcurrencyShares:"); sb.append(assuredConcurrencyShares + ","); } + if (limitResponse != null) { sb.append("limitResponse:"); sb.append(limitResponse); } sb.append("}"); return sb.toString(); } - - class LimitResponseNestedImpl - extends V1beta2LimitResponseFluentImpl< - V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested> - implements V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested, Nested { + class LimitResponseNestedImpl extends V1beta2LimitResponseFluentImpl> implements V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested,Nested{ LimitResponseNestedImpl(V1beta2LimitResponse item) { this.builder = new V1beta2LimitResponseBuilder(this, item); } - LimitResponseNestedImpl() { this.builder = new V1beta2LimitResponseBuilder(this); } - V1beta2LimitResponseBuilder builder; - public N and() { - return (N) - V1beta2LimitedPriorityLevelConfigurationFluentImpl.this.withLimitResponse( - builder.build()); + return (N) V1beta2LimitedPriorityLevelConfigurationFluentImpl.this.withLimitResponse(builder.build()); } - public N endLimitResponse() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java index 655c496390..89796f9c0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta2NonResourcePolicyRuleBuilder - extends V1beta2NonResourcePolicyRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2NonResourcePolicyRuleBuilder extends V1beta2NonResourcePolicyRuleFluentImpl implements VisitableBuilder{ public V1beta2NonResourcePolicyRuleBuilder() { this(false); } - public V1beta2NonResourcePolicyRuleBuilder(Boolean validationEnabled) { this(new V1beta2NonResourcePolicyRule(), validationEnabled); } - public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent fluent) { this(fluent, false); } - - public V1beta2NonResourcePolicyRuleBuilder( - V1beta2NonResourcePolicyRuleFluent fluent, Boolean validationEnabled) { + public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2NonResourcePolicyRule(), validationEnabled); } - - public V1beta2NonResourcePolicyRuleBuilder( - V1beta2NonResourcePolicyRuleFluent fluent, V1beta2NonResourcePolicyRule instance) { + public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent fluent,V1beta2NonResourcePolicyRule instance) { this(fluent, instance, false); } - - public V1beta2NonResourcePolicyRuleBuilder( - V1beta2NonResourcePolicyRuleFluent fluent, - V1beta2NonResourcePolicyRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent fluent,V1beta2NonResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNonResourceURLs(instance.getNonResourceURLs()); fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRule instance) { - this(instance, false); + this(instance,false); } - - public V1beta2NonResourcePolicyRuleBuilder( - V1beta2NonResourcePolicyRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = this; this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2NonResourcePolicyRuleFluent fluent; Boolean validationEnabled; - public V1beta2NonResourcePolicyRule build() { V1beta2NonResourcePolicyRule buildable = new V1beta2NonResourcePolicyRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java index 893dc75343..be8c7080f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java @@ -1,82 +1,47 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1beta2NonResourcePolicyRuleFluent> - extends Fluent { - public A addToNonResourceURLs(Integer index, String item); - - public A setToNonResourceURLs(Integer index, String item); - + /** + * Generated + */ +public interface V1beta2NonResourcePolicyRuleFluent> extends Fluent{ + public A addToNonResourceURLs(Integer index,String item); + public A setToNonResourceURLs(Integer index,String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); - public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); - public String getNonResourceURL(Integer index); - public String getFirstNonResourceURL(); - public String getLastNonResourceURL(); - public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(List nonResourceURLs); - public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public Boolean hasNonResourceURLs(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java index 62ea1a22d3..1f4ffa9bb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java @@ -1,297 +1,151 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2NonResourcePolicyRuleFluentImpl> - extends BaseFluent implements V1beta2NonResourcePolicyRuleFluent { - public V1beta2NonResourcePolicyRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2NonResourcePolicyRuleFluentImpl> extends BaseFluent implements V1beta2NonResourcePolicyRuleFluent{ + public V1beta2NonResourcePolicyRuleFluentImpl() { + } public V1beta2NonResourcePolicyRuleFluentImpl(V1beta2NonResourcePolicyRule instance) { this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); - } + } private List nonResourceURLs; private List verbs; - - public A addToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } + public A addToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} this.nonResourceURLs.add(index, item); - return (A) this; + return (A)this; } - - public A setToNonResourceURLs(Integer index, String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - this.nonResourceURLs.set(index, item); - return (A) this; + public A setToNonResourceURLs(Integer index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + this.nonResourceURLs.set(index, item); return (A)this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); - } - return (A) this; + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public A removeAllFromNonResourceURLs(Collection items) { - for (String item : items) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.nonResourceURLs!= null){ this.nonResourceURLs.remove(item);}} return (A)this; } - public List getNonResourceURLs() { return this.nonResourceURLs; } - public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: nonResourceURLs) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } else { - this.nonResourceURLs = null; - } - return (A) this; + if (nonResourceURLs != null) {this.nonResourceURLs = new ArrayList(); for (String item : nonResourceURLs){this.addToNonResourceURLs(item);}} else { this.nonResourceURLs = null;} return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } - return (A) this; + if (this.nonResourceURLs != null) {this.nonResourceURLs.clear();} + if (nonResourceURLs != null) {for (String item :nonResourceURLs){ this.addToNonResourceURLs(item);}} return (A) this; } - public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2NonResourcePolicyRuleFluentImpl that = (V1beta2NonResourcePolicyRuleFluentImpl) o; - if (nonResourceURLs != null - ? !nonResourceURLs.equals(that.nonResourceURLs) - : that.nonResourceURLs != null) return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (nonResourceURLs != null ? !nonResourceURLs.equals(that.nonResourceURLs) :that.nonResourceURLs != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); + return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java index 76f76a21b6..9b96725fe6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1beta2PolicyRulesWithSubjectsBuilder - extends V1beta2PolicyRulesWithSubjectsFluentImpl - implements VisitableBuilder< - V1beta2PolicyRulesWithSubjects, V1beta2PolicyRulesWithSubjectsBuilder> { +import java.lang.Boolean; +public class V1beta2PolicyRulesWithSubjectsBuilder extends V1beta2PolicyRulesWithSubjectsFluentImpl implements VisitableBuilder{ public V1beta2PolicyRulesWithSubjectsBuilder() { this(false); } - public V1beta2PolicyRulesWithSubjectsBuilder(Boolean validationEnabled) { this(new V1beta2PolicyRulesWithSubjects(), validationEnabled); } - public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluent fluent) { this(fluent, false); } - - public V1beta2PolicyRulesWithSubjectsBuilder( - V1beta2PolicyRulesWithSubjectsFluent fluent, Boolean validationEnabled) { + public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PolicyRulesWithSubjects(), validationEnabled); } - - public V1beta2PolicyRulesWithSubjectsBuilder( - V1beta2PolicyRulesWithSubjectsFluent fluent, V1beta2PolicyRulesWithSubjects instance) { + public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluent fluent,V1beta2PolicyRulesWithSubjects instance) { this(fluent, instance, false); } - - public V1beta2PolicyRulesWithSubjectsBuilder( - V1beta2PolicyRulesWithSubjectsFluent fluent, - V1beta2PolicyRulesWithSubjects instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluent fluent,V1beta2PolicyRulesWithSubjects instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withNonResourceRules(instance.getNonResourceRules()); fluent.withResourceRules(instance.getResourceRules()); fluent.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjects instance) { - this(instance, false); + this(instance,false); } - - public V1beta2PolicyRulesWithSubjectsBuilder( - V1beta2PolicyRulesWithSubjects instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjects instance,Boolean validationEnabled) { + this.fluent = this; this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); this.withSubjects(instance.getSubjects()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PolicyRulesWithSubjectsFluent fluent; Boolean validationEnabled; - public V1beta2PolicyRulesWithSubjects build() { V1beta2PolicyRulesWithSubjects buildable = new V1beta2PolicyRulesWithSubjects(); buildable.setNonResourceRules(fluent.getNonResourceRules()); @@ -80,4 +50,5 @@ public V1beta2PolicyRulesWithSubjects build() { buildable.setSubjects(fluent.getSubjects()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java index f248086364..b1a256a662 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java @@ -1,233 +1,125 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta2PolicyRulesWithSubjectsFluent< - A extends V1beta2PolicyRulesWithSubjectsFluent> - extends Fluent { - public A addToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item); - - public A setToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item); - - public A addToNonResourceRules( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2PolicyRulesWithSubjectsFluent> extends Fluent{ + public A addToNonResourceRules(Integer index,V1beta2NonResourcePolicyRule item); + public A setToNonResourceRules(Integer index,V1beta2NonResourcePolicyRule item); + public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items); public A addAllToNonResourceRules(Collection items); - - public A removeFromNonResourceRules( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items); - + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items); public A removeAllFromNonResourceRules(Collection items); - - public A removeMatchingFromNonResourceRules( - Predicate predicate); - + public A removeMatchingFromNonResourceRules(Predicate predicate); + /** * This method has been deprecated, please use method buildNonResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getNonResourceRules(); - public List buildNonResourceRules(); - public V1beta2NonResourcePolicyRule buildNonResourceRule(Integer index); - public V1beta2NonResourcePolicyRule buildFirstNonResourceRule(); - public V1beta2NonResourcePolicyRule buildLastNonResourceRule(); - - public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule( - Predicate predicate); - - public Boolean hasMatchingNonResourceRule( - Predicate predicate); - + public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate); + public Boolean hasMatchingNonResourceRule(Predicate predicate); public A withNonResourceRules(List nonResourceRules); - - public A withNonResourceRules( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... nonResourceRules); - + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... nonResourceRules); public Boolean hasNonResourceRules(); - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRule(); - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( - V1beta2NonResourcePolicyRule item); - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( - Integer index, V1beta2NonResourcePolicyRule item); - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( - Integer index); - + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike(V1beta2NonResourcePolicyRule item); + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike(Integer index,V1beta2NonResourcePolicyRule item); + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule(Integer index); public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule(); - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editLastNonResourceRule(); - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( - Predicate predicate); - - public A addToResourceRules(Integer index, V1beta2ResourcePolicyRule item); - - public A setToResourceRules(Integer index, V1beta2ResourcePolicyRule item); - - public A addToResourceRules( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items); - + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate); + public A addToResourceRules(Integer index,V1beta2ResourcePolicyRule item); + public A setToResourceRules(Integer index,V1beta2ResourcePolicyRule item); + public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items); public A addAllToResourceRules(Collection items); - - public A removeFromResourceRules( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items); - + public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items); public A removeAllFromResourceRules(Collection items); - public A removeMatchingFromResourceRules(Predicate predicate); - + /** * This method has been deprecated, please use method buildResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getResourceRules(); - public List buildResourceRules(); - public V1beta2ResourcePolicyRule buildResourceRule(Integer index); - public V1beta2ResourcePolicyRule buildFirstResourceRule(); - public V1beta2ResourcePolicyRule buildLastResourceRule(); - - public V1beta2ResourcePolicyRule buildMatchingResourceRule( - Predicate predicate); - + public V1beta2ResourcePolicyRule buildMatchingResourceRule(Predicate predicate); public Boolean hasMatchingResourceRule(Predicate predicate); - public A withResourceRules(List resourceRules); - - public A withResourceRules( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... resourceRules); - + public A withResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... resourceRules); public Boolean hasResourceRules(); - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRule(); - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( - V1beta2ResourcePolicyRule item); - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( - Integer index, V1beta2ResourcePolicyRule item); - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( - Integer index); - + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike(V1beta2ResourcePolicyRule item); + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike(Integer index,V1beta2ResourcePolicyRule item); + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule(Integer index); public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule(); - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editLastResourceRule(); - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( - Predicate predicate); - - public A addToSubjects(Integer index, V1beta2Subject item); - - public A setToSubjects(Integer index, V1beta2Subject item); - + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule(Predicate predicate); + public A addToSubjects(Integer index,V1beta2Subject item); + public A setToSubjects(Integer index,V1beta2Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items); - public A addAllToSubjects(Collection items); - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items); - public A removeAllFromSubjects(Collection items); - public A removeMatchingFromSubjects(Predicate predicate); - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects(); - public List buildSubjects(); - public V1beta2Subject buildSubject(Integer index); - public V1beta2Subject buildFirstSubject(); - public V1beta2Subject buildLastSubject(); - public V1beta2Subject buildMatchingSubject(Predicate predicate); - public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects(List subjects); - public A withSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... subjects); - public Boolean hasSubjects(); - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject(); - - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( - V1beta2Subject item); - - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( - Integer index, V1beta2Subject item); - + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike(V1beta2Subject item); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike(Integer index,V1beta2Subject item); public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index); - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject(); - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editLastSubject(); - - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( - Predicate predicate); - - public interface NonResourceRulesNested - extends Nested, - V1beta2NonResourcePolicyRuleFluent< - V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested> { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject(Predicate predicate); + public interface NonResourceRulesNested extends Nested,V1beta2NonResourcePolicyRuleFluent>{ public N and(); - public N endNonResourceRule(); + } - - public interface ResourceRulesNested - extends Nested, - V1beta2ResourcePolicyRuleFluent< - V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested> { + public interface ResourceRulesNested extends Nested,V1beta2ResourcePolicyRuleFluent>{ public N and(); - public N endResourceRule(); + } - - public interface SubjectsNested - extends Nested, - V1beta2SubjectFluent> { + public interface SubjectsNested extends Nested,V1beta2SubjectFluent>{ public N and(); - public N endSubject(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java index 7c0ea55aad..9d2bfb53f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java @@ -1,124 +1,64 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PolicyRulesWithSubjectsFluentImpl< - A extends V1beta2PolicyRulesWithSubjectsFluent> - extends BaseFluent implements V1beta2PolicyRulesWithSubjectsFluent { - public V1beta2PolicyRulesWithSubjectsFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PolicyRulesWithSubjectsFluentImpl> extends BaseFluent implements V1beta2PolicyRulesWithSubjectsFluent{ + public V1beta2PolicyRulesWithSubjectsFluentImpl() { + } public V1beta2PolicyRulesWithSubjectsFluentImpl(V1beta2PolicyRulesWithSubjects instance) { this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); this.withSubjects(instance.getSubjects()); - } + } private ArrayList nonResourceRules; private ArrayList resourceRules; private ArrayList subjects; - - public A addToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - _visitables - .get("nonResourceRules") - .add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder); - this.nonResourceRules.add(index >= 0 ? index : nonResourceRules.size(), builder); - return (A) this; + public A addToNonResourceRules(Integer index,V1beta2NonResourcePolicyRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder);this.nonResourceRules.add(index >= 0 ? index : nonResourceRules.size(), builder); return (A)this; } - - public A setToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } + public A setToNonResourceRules(Integer index,V1beta2NonResourcePolicyRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { - _visitables.get("nonResourceRules").add(builder); - } else { - _visitables.get("nonResourceRules").set(index, builder); - } - if (index < 0 || index >= nonResourceRules.size()) { - nonResourceRules.add(builder); - } else { - nonResourceRules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { _visitables.get("nonResourceRules").add(builder); } else { _visitables.get("nonResourceRules").set(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { nonResourceRules.add(builder); } else { nonResourceRules.set(index, builder);} + return (A)this; } - - public A addToNonResourceRules( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1beta2NonResourcePolicyRule item : items) { - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; + public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; } - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1beta2NonResourcePolicyRule item : items) { - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; } - - public A removeFromNonResourceRules( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { - for (V1beta2NonResourcePolicyRule item : items) { - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - if (this.nonResourceRules != null) { - this.nonResourceRules.remove(builder); - } - } - return (A) this; + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { + for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder);if (this.nonResourceRules != null) {this.nonResourceRules.remove(builder);}} return (A)this; } - public A removeAllFromNonResourceRules(Collection items) { - for (V1beta2NonResourcePolicyRule item : items) { - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - if (this.nonResourceRules != null) { - this.nonResourceRules.remove(builder); - } - } - return (A) this; + for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder);if (this.nonResourceRules != null) {this.nonResourceRules.remove(builder);}} return (A)this; } - - public A removeMatchingFromNonResourceRules( - Predicate predicate) { + public A removeMatchingFromNonResourceRules(Predicate predicate) { if (nonResourceRules == null) return (A) this; final Iterator each = nonResourceRules.iterator(); final List visitables = _visitables.get("nonResourceRules"); @@ -129,213 +69,101 @@ public A removeMatchingFromNonResourceRules( each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildNonResourceRules instead. - * * @return The buildable object. */ @Deprecated public List getNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public List buildNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public V1beta2NonResourcePolicyRule buildNonResourceRule(Integer index) { return this.nonResourceRules.get(index).build(); } - public V1beta2NonResourcePolicyRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } - public V1beta2NonResourcePolicyRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } - - public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule( - Predicate predicate) { - for (V1beta2NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { + for (V1beta2NonResourcePolicyRuleBuilder item: nonResourceRules) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingNonResourceRule( - Predicate predicate) { - for (V1beta2NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1beta2NonResourcePolicyRuleBuilder item: nonResourceRules) { if(predicate.test(item)){ return true;} } return false; } - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - _visitables.get("nonResourceRules").removeAll(this.nonResourceRules); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1beta2NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } else { - this.nonResourceRules = null; - } - return (A) this; + if (this.nonResourceRules != null) { _visitables.get("nonResourceRules").removeAll(this.nonResourceRules);} + if (nonResourceRules != null) {this.nonResourceRules = new ArrayList(); for (V1beta2NonResourcePolicyRule item : nonResourceRules){this.addToNonResourceRules(item);}} else { this.nonResourceRules = null;} return (A) this; } - - public A withNonResourceRules( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - } - if (nonResourceRules != null) { - for (V1beta2NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... nonResourceRules) { + if (this.nonResourceRules != null) {this.nonResourceRules.clear();} + if (nonResourceRules != null) {for (V1beta2NonResourcePolicyRule item :nonResourceRules){ this.addToNonResourceRules(item);}} return (A) this; } - public Boolean hasNonResourceRules() { return nonResourceRules != null && !nonResourceRules.isEmpty(); } - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRule() { return new V1beta2PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(); } - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( - V1beta2NonResourcePolicyRule item) { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike(V1beta2NonResourcePolicyRule item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(-1, item); } - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( - Integer index, V1beta2NonResourcePolicyRule item) { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike(Integer index,V1beta2NonResourcePolicyRule item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(index, item); } - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( - Integer index) { - if (nonResourceRules.size() <= index) - throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule(Integer index) { + if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) - throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); + if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); } - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); + if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - - public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( - Predicate predicate) { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; - for (int i = 0; i < nonResourceRules.size(); i++) { - if (predicate.test(nonResourceRules.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching nonResourceRules. No match found."); + for (int i=0;i(); - } - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - _visitables - .get("resourceRules") - .add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder); - this.resourceRules.add(index >= 0 ? index : resourceRules.size(), builder); - return (A) this; + public A addToResourceRules(Integer index,V1beta2ResourcePolicyRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder);this.resourceRules.add(index >= 0 ? index : resourceRules.size(), builder); return (A)this; } - - public A setToResourceRules(Integer index, V1beta2ResourcePolicyRule item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } + public A setToResourceRules(Integer index,V1beta2ResourcePolicyRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= _visitables.get("resourceRules").size()) { - _visitables.get("resourceRules").add(builder); - } else { - _visitables.get("resourceRules").set(index, builder); - } - if (index < 0 || index >= resourceRules.size()) { - resourceRules.add(builder); - } else { - resourceRules.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("resourceRules").size()) { _visitables.get("resourceRules").add(builder); } else { _visitables.get("resourceRules").set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { resourceRules.add(builder); } else { resourceRules.set(index, builder);} + return (A)this; } - - public A addToResourceRules( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1beta2ResourcePolicyRule item : items) { - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); - } - return (A) this; + public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1beta2ResourcePolicyRule item : items) { - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); - } - return (A) this; + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; } - - public A removeFromResourceRules( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { - for (V1beta2ResourcePolicyRule item : items) { - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - if (this.resourceRules != null) { - this.resourceRules.remove(builder); - } - } - return (A) this; + public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { + for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder);if (this.resourceRules != null) {this.resourceRules.remove(builder);}} return (A)this; } - public A removeAllFromResourceRules(Collection items) { - for (V1beta2ResourcePolicyRule item : items) { - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - if (this.resourceRules != null) { - this.resourceRules.remove(builder); - } - } - return (A) this; + for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder);if (this.resourceRules != null) {this.resourceRules.remove(builder);}} return (A)this; } - public A removeMatchingFromResourceRules(Predicate predicate) { if (resourceRules == null) return (A) this; final Iterator each = resourceRules.iterator(); @@ -347,208 +175,101 @@ public A removeMatchingFromResourceRules(Predicate getResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public List buildResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public V1beta2ResourcePolicyRule buildResourceRule(Integer index) { return this.resourceRules.get(index).build(); } - public V1beta2ResourcePolicyRule buildFirstResourceRule() { return this.resourceRules.get(0).build(); } - public V1beta2ResourcePolicyRule buildLastResourceRule() { return this.resourceRules.get(resourceRules.size() - 1).build(); } - - public V1beta2ResourcePolicyRule buildMatchingResourceRule( - Predicate predicate) { - for (V1beta2ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta2ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { + for (V1beta2ResourcePolicyRuleBuilder item: resourceRules) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingResourceRule(Predicate predicate) { - for (V1beta2ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta2ResourcePolicyRuleBuilder item: resourceRules) { if(predicate.test(item)){ return true;} } return false; } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - _visitables.get("resourceRules").removeAll(this.resourceRules); - } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1beta2ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; - } - return (A) this; + if (this.resourceRules != null) { _visitables.get("resourceRules").removeAll(this.resourceRules);} + if (resourceRules != null) {this.resourceRules = new ArrayList(); for (V1beta2ResourcePolicyRule item : resourceRules){this.addToResourceRules(item);}} else { this.resourceRules = null;} return (A) this; } - - public A withResourceRules( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - } - if (resourceRules != null) { - for (V1beta2ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } - return (A) this; + public A withResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... resourceRules) { + if (this.resourceRules != null) {this.resourceRules.clear();} + if (resourceRules != null) {for (V1beta2ResourcePolicyRule item :resourceRules){ this.addToResourceRules(item);}} return (A) this; } - public Boolean hasResourceRules() { return resourceRules != null && !resourceRules.isEmpty(); } - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRule() { return new V1beta2PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(); } - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( - V1beta2ResourcePolicyRule item) { + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike(V1beta2ResourcePolicyRule item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(-1, item); } - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( - Integer index, V1beta2ResourcePolicyRule item) { + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike(Integer index,V1beta2ResourcePolicyRule item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(index, item); } - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( - Integer index) { - if (resourceRules.size() <= index) - throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule(Integer index) { + if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) - throw new RuntimeException("Can't edit first resourceRules. The list is empty."); + if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); return setNewResourceRuleLike(0, buildResourceRule(0)); } - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - - public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( - Predicate predicate) { + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i = 0; i < resourceRules.size(); i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - _visitables - .get("subjects") - .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); - this.subjects.add(index >= 0 ? index : subjects.size(), builder); - return (A) this; + public A addToSubjects(Integer index,V1beta2Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").add(index >= 0 ? index : _visitables.get("subjects").size(), builder);this.subjects.add(index >= 0 ? index : subjects.size(), builder); return (A)this; } - - public A setToSubjects(Integer index, V1beta2Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } + public A setToSubjects(Integer index,V1beta2Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - if (index < 0 || index >= _visitables.get("subjects").size()) { - _visitables.get("subjects").add(builder); - } else { - _visitables.get("subjects").set(index, builder); - } - if (index < 0 || index >= subjects.size()) { - subjects.add(builder); - } else { - subjects.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { _visitables.get("subjects").set(index, builder);} + if (index < 0 || index >= subjects.size()) { subjects.add(builder); } else { subjects.set(index, builder);} + return (A)this; } - public A addToSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1beta2Subject item : items) { - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A addAllToSubjects(Collection items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (V1beta2Subject item : items) { - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; + if (this.subjects == null) {this.subjects = new ArrayList();} + for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items) { - for (V1beta2Subject item : items) { - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeAllFromSubjects(Collection items) { - for (V1beta2Subject item : items) { - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - if (this.subjects != null) { - this.subjects.remove(builder); - } - } - return (A) this; + for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").remove(builder);if (this.subjects != null) {this.subjects.remove(builder);}} return (A)this; } - public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; final Iterator each = subjects.iterator(); @@ -560,244 +281,153 @@ public A removeMatchingFromSubjects(Predicate predicate) each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildSubjects instead. - * * @return The buildable object. */ @Deprecated public List getSubjects() { return subjects != null ? build(subjects) : null; } - public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public V1beta2Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public V1beta2Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public V1beta2Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public V1beta2Subject buildMatchingSubject(Predicate predicate) { - for (V1beta2SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V1beta2SubjectBuilder item: subjects) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingSubject(Predicate predicate) { - for (V1beta2SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta2SubjectBuilder item: subjects) { if(predicate.test(item)){ return true;} } return false; } - public A withSubjects(List subjects) { - if (this.subjects != null) { - _visitables.get("subjects").removeAll(this.subjects); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (V1beta2Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; + if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects);} + if (subjects != null) {this.subjects = new ArrayList(); for (V1beta2Subject item : subjects){this.addToSubjects(item);}} else { this.subjects = null;} return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - } - if (subjects != null) { - for (V1beta2Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; + if (this.subjects != null) {this.subjects.clear();} + if (subjects != null) {for (V1beta2Subject item :subjects){ this.addToSubjects(item);}} return (A) this; } - public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject() { return new V1beta2PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(); } - - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( - V1beta2Subject item) { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike(V1beta2Subject item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(-1, item); } - - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( - Integer index, V1beta2Subject item) { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike(Integer index,V1beta2Subject item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(index, item); } - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index) { - if (subjects.size() <= index) - throw new RuntimeException("Can't edit subjects. Index exceeds size."); + if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject() { - if (subjects.size() == 0) - throw new RuntimeException("Can't edit first subjects. The list is empty."); + if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editLastSubject() { int index = subjects.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); return setNewSubjectLike(index, buildSubject(index)); } - - public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( - Predicate predicate) { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i = 0; i < subjects.size(); i++) { - if (predicate.test(subjects.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta2NonResourcePolicyRuleFluentImpl< - V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested> - implements V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested, Nested { - NonResourceRulesNestedImpl(Integer index, V1beta2NonResourcePolicyRule item) { + class NonResourceRulesNestedImpl extends V1beta2NonResourcePolicyRuleFluentImpl> implements V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested,Nested{ + NonResourceRulesNestedImpl(Integer index,V1beta2NonResourcePolicyRule item) { this.index = index; this.builder = new V1beta2NonResourcePolicyRuleBuilder(this, item); } - NonResourceRulesNestedImpl() { this.index = -1; this.builder = new V1beta2NonResourcePolicyRuleBuilder(this); } - V1beta2NonResourcePolicyRuleBuilder builder; Integer index; - public N and() { - return (N) - V1beta2PolicyRulesWithSubjectsFluentImpl.this.setToNonResourceRules( - index, builder.build()); + return (N) V1beta2PolicyRulesWithSubjectsFluentImpl.this.setToNonResourceRules(index,builder.build()); } - public N endNonResourceRule() { return and(); } + } - - class ResourceRulesNestedImpl - extends V1beta2ResourcePolicyRuleFluentImpl< - V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested> - implements V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested, Nested { - ResourceRulesNestedImpl(Integer index, V1beta2ResourcePolicyRule item) { + class ResourceRulesNestedImpl extends V1beta2ResourcePolicyRuleFluentImpl> implements V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested,Nested{ + ResourceRulesNestedImpl(Integer index,V1beta2ResourcePolicyRule item) { this.index = index; this.builder = new V1beta2ResourcePolicyRuleBuilder(this, item); } - ResourceRulesNestedImpl() { this.index = -1; this.builder = new V1beta2ResourcePolicyRuleBuilder(this); } - V1beta2ResourcePolicyRuleBuilder builder; Integer index; - public N and() { - return (N) - V1beta2PolicyRulesWithSubjectsFluentImpl.this.setToResourceRules(index, builder.build()); + return (N) V1beta2PolicyRulesWithSubjectsFluentImpl.this.setToResourceRules(index,builder.build()); } - public N endResourceRule() { return and(); } + } - - class SubjectsNestedImpl - extends V1beta2SubjectFluentImpl> - implements V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested, Nested { - SubjectsNestedImpl(Integer index, V1beta2Subject item) { + class SubjectsNestedImpl extends V1beta2SubjectFluentImpl> implements V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested,Nested{ + SubjectsNestedImpl(Integer index,V1beta2Subject item) { this.index = index; this.builder = new V1beta2SubjectBuilder(this, item); } - SubjectsNestedImpl() { this.index = -1; this.builder = new V1beta2SubjectBuilder(this); } - V1beta2SubjectBuilder builder; Integer index; - public N and() { - return (N) - V1beta2PolicyRulesWithSubjectsFluentImpl.this.setToSubjects(index, builder.build()); + return (N) V1beta2PolicyRulesWithSubjectsFluentImpl.this.setToSubjects(index,builder.build()); } - public N endSubject() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java index 54f0cadcbd..4dfb3386ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2PriorityLevelConfigurationBuilder - extends V1beta2PriorityLevelConfigurationFluentImpl - implements VisitableBuilder< - V1beta2PriorityLevelConfiguration, V1beta2PriorityLevelConfigurationBuilder> { +import java.lang.Boolean; +public class V1beta2PriorityLevelConfigurationBuilder extends V1beta2PriorityLevelConfigurationFluentImpl implements VisitableBuilder{ public V1beta2PriorityLevelConfigurationBuilder() { this(false); } - public V1beta2PriorityLevelConfigurationBuilder(Boolean validationEnabled) { this(new V1beta2PriorityLevelConfiguration(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationBuilder( - V1beta2PriorityLevelConfigurationFluent fluent) { + public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfigurationFluent fluent) { this(fluent, false); } - - public V1beta2PriorityLevelConfigurationBuilder( - V1beta2PriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { + public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfiguration(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationBuilder( - V1beta2PriorityLevelConfigurationFluent fluent, - V1beta2PriorityLevelConfiguration instance) { + public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfigurationFluent fluent,V1beta2PriorityLevelConfiguration instance) { this(fluent, instance, false); } - - public V1beta2PriorityLevelConfigurationBuilder( - V1beta2PriorityLevelConfigurationFluent fluent, - V1beta2PriorityLevelConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfigurationFluent fluent,V1beta2PriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -57,16 +30,13 @@ public V1beta2PriorityLevelConfigurationBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfiguration instance) { - this(instance, false); + this(instance,false); } - - public V1beta2PriorityLevelConfigurationBuilder( - V1beta2PriorityLevelConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -77,12 +47,10 @@ public V1beta2PriorityLevelConfigurationBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PriorityLevelConfigurationFluent fluent; Boolean validationEnabled; - public V1beta2PriorityLevelConfiguration build() { V1beta2PriorityLevelConfiguration buildable = new V1beta2PriorityLevelConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -92,4 +60,5 @@ public V1beta2PriorityLevelConfiguration build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java index 3341be13c0..87bd13b8d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java @@ -1,54 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2PriorityLevelConfigurationConditionBuilder - extends V1beta2PriorityLevelConfigurationConditionFluentImpl< - V1beta2PriorityLevelConfigurationConditionBuilder> - implements VisitableBuilder< - V1beta2PriorityLevelConfigurationCondition, - V1beta2PriorityLevelConfigurationConditionBuilder> { +import java.lang.Boolean; +public class V1beta2PriorityLevelConfigurationConditionBuilder extends V1beta2PriorityLevelConfigurationConditionFluentImpl implements VisitableBuilder{ public V1beta2PriorityLevelConfigurationConditionBuilder() { this(false); } - public V1beta2PriorityLevelConfigurationConditionBuilder(Boolean validationEnabled) { this(new V1beta2PriorityLevelConfigurationCondition(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationConditionBuilder( - V1beta2PriorityLevelConfigurationConditionFluent fluent) { + public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationConditionFluent fluent) { this(fluent, false); } - - public V1beta2PriorityLevelConfigurationConditionBuilder( - V1beta2PriorityLevelConfigurationConditionFluent fluent, Boolean validationEnabled) { + public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationCondition(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationConditionBuilder( - V1beta2PriorityLevelConfigurationConditionFluent fluent, - V1beta2PriorityLevelConfigurationCondition instance) { + public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationConditionFluent fluent,V1beta2PriorityLevelConfigurationCondition instance) { this(fluent, instance, false); } - - public V1beta2PriorityLevelConfigurationConditionBuilder( - V1beta2PriorityLevelConfigurationConditionFluent fluent, - V1beta2PriorityLevelConfigurationCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationConditionFluent fluent,V1beta2PriorityLevelConfigurationCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -59,17 +30,13 @@ public V1beta2PriorityLevelConfigurationConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta2PriorityLevelConfigurationConditionBuilder( - V1beta2PriorityLevelConfigurationCondition instance) { - this(instance, false); + public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationCondition instance) { + this(instance,false); } - - public V1beta2PriorityLevelConfigurationConditionBuilder( - V1beta2PriorityLevelConfigurationCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -80,15 +47,12 @@ public V1beta2PriorityLevelConfigurationConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PriorityLevelConfigurationConditionFluent fluent; Boolean validationEnabled; - public V1beta2PriorityLevelConfigurationCondition build() { - V1beta2PriorityLevelConfigurationCondition buildable = - new V1beta2PriorityLevelConfigurationCondition(); + V1beta2PriorityLevelConfigurationCondition buildable = new V1beta2PriorityLevelConfigurationCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); buildable.setReason(fluent.getReason()); @@ -96,4 +60,5 @@ public V1beta2PriorityLevelConfigurationCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java index f5f9d19488..744f0db21b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java @@ -1,51 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2PriorityLevelConfigurationConditionFluent< - A extends V1beta2PriorityLevelConfigurationConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2PriorityLevelConfigurationConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java index 97f18ebe95..05a5284296 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java @@ -1,29 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PriorityLevelConfigurationConditionFluentImpl< - A extends V1beta2PriorityLevelConfigurationConditionFluent> - extends BaseFluent implements V1beta2PriorityLevelConfigurationConditionFluent { - public V1beta2PriorityLevelConfigurationConditionFluentImpl() {} - - public V1beta2PriorityLevelConfigurationConditionFluentImpl( - V1beta2PriorityLevelConfigurationCondition instance) { +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PriorityLevelConfigurationConditionFluentImpl> extends BaseFluent implements V1beta2PriorityLevelConfigurationConditionFluent{ + public V1beta2PriorityLevelConfigurationConditionFluentImpl() { + } + public V1beta2PriorityLevelConfigurationConditionFluentImpl(V1beta2PriorityLevelConfigurationCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -33,123 +24,82 @@ public V1beta2PriorityLevelConfigurationConditionFluentImpl( this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta2PriorityLevelConfigurationConditionFluentImpl that = - (V1beta2PriorityLevelConfigurationConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1beta2PriorityLevelConfigurationConditionFluentImpl that = (V1beta2PriorityLevelConfigurationConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java index d6b9fc8ab1..392c3afffa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java @@ -1,137 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta2PriorityLevelConfigurationFluent< - A extends V1beta2PriorityLevelConfigurationFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2PriorityLevelConfigurationFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadata(); - - public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public V1beta2PriorityLevelConfigurationFluent.MetadataNested editMetadata(); - public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata(); - - public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta2PriorityLevelConfigurationSpec getSpec(); - public V1beta2PriorityLevelConfigurationSpec buildSpec(); - public A withSpec(V1beta2PriorityLevelConfigurationSpec spec); - public Boolean hasSpec(); - public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpec(); - - public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( - V1beta2PriorityLevelConfigurationSpec item); - + public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpecLike(V1beta2PriorityLevelConfigurationSpec item); public V1beta2PriorityLevelConfigurationFluent.SpecNested editSpec(); - public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpec(); - - public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( - V1beta2PriorityLevelConfigurationSpec item); - + public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike(V1beta2PriorityLevelConfigurationSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta2PriorityLevelConfigurationStatus getStatus(); - public V1beta2PriorityLevelConfigurationStatus buildStatus(); - public A withStatus(V1beta2PriorityLevelConfigurationStatus status); - public Boolean hasStatus(); - public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatus(); - - public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( - V1beta2PriorityLevelConfigurationStatus item); - + public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatusLike(V1beta2PriorityLevelConfigurationStatus item); public V1beta2PriorityLevelConfigurationFluent.StatusNested editStatus(); - public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatus(); - - public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( - V1beta2PriorityLevelConfigurationStatus item); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { + public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike(V1beta2PriorityLevelConfigurationStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V1beta2PriorityLevelConfigurationSpecFluent< - V1beta2PriorityLevelConfigurationFluent.SpecNested> { + public interface SpecNested extends Nested,V1beta2PriorityLevelConfigurationSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V1beta2PriorityLevelConfigurationStatusFluent< - V1beta2PriorityLevelConfigurationFluent.StatusNested> { + public interface StatusNested extends Nested,V1beta2PriorityLevelConfigurationStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java index 337b49bc01..b2375ee527 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PriorityLevelConfigurationFluentImpl< - A extends V1beta2PriorityLevelConfigurationFluent> - extends BaseFluent implements V1beta2PriorityLevelConfigurationFluent { - public V1beta2PriorityLevelConfigurationFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PriorityLevelConfigurationFluentImpl> extends BaseFluent implements V1beta2PriorityLevelConfigurationFluent{ + public V1beta2PriorityLevelConfigurationFluentImpl() { + } public V1beta2PriorityLevelConfigurationFluentImpl(V1beta2PriorityLevelConfiguration instance) { this.withApiVersion(instance.getApiVersion()); @@ -32,311 +25,205 @@ public V1beta2PriorityLevelConfigurationFluentImpl(V1beta2PriorityLevelConfigura this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta2PriorityLevelConfigurationSpecBuilder spec; private V1beta2PriorityLevelConfigurationStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadata() { return new V1beta2PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(); } - - public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta2PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(item); } - public V1beta2PriorityLevelConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V1beta2PriorityLevelConfigurationSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V1beta2PriorityLevelConfigurationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V1beta2PriorityLevelConfigurationSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1beta2PriorityLevelConfigurationSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V1beta2PriorityLevelConfigurationSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpec() { return new V1beta2PriorityLevelConfigurationFluentImpl.SpecNestedImpl(); } - - public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( - V1beta2PriorityLevelConfigurationSpec item) { + public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpecLike(V1beta2PriorityLevelConfigurationSpec item) { return new V1beta2PriorityLevelConfigurationFluentImpl.SpecNestedImpl(item); } - public V1beta2PriorityLevelConfigurationFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V1beta2PriorityLevelConfigurationSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V1beta2PriorityLevelConfigurationSpecBuilder().build()); } - - public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( - V1beta2PriorityLevelConfigurationSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike(V1beta2PriorityLevelConfigurationSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V1beta2PriorityLevelConfigurationStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V1beta2PriorityLevelConfigurationStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V1beta2PriorityLevelConfigurationStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1beta2PriorityLevelConfigurationStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V1beta2PriorityLevelConfigurationStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatus() { return new V1beta2PriorityLevelConfigurationFluentImpl.StatusNestedImpl(); } - - public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( - V1beta2PriorityLevelConfigurationStatus item) { + public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatusLike(V1beta2PriorityLevelConfigurationStatus item) { return new V1beta2PriorityLevelConfigurationFluentImpl.StatusNestedImpl(item); } - public V1beta2PriorityLevelConfigurationFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new V1beta2PriorityLevelConfigurationStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V1beta2PriorityLevelConfigurationStatusBuilder().build()); } - - public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( - V1beta2PriorityLevelConfigurationStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike(V1beta2PriorityLevelConfigurationStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta2PriorityLevelConfigurationFluentImpl that = - (V1beta2PriorityLevelConfigurationFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + V1beta2PriorityLevelConfigurationFluentImpl that = (V1beta2PriorityLevelConfigurationFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V1beta2PriorityLevelConfigurationFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V1beta2PriorityLevelConfigurationFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V1beta2PriorityLevelConfigurationFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V1beta2PriorityLevelConfigurationSpecFluentImpl< - V1beta2PriorityLevelConfigurationFluent.SpecNested> - implements V1beta2PriorityLevelConfigurationFluent.SpecNested, Nested { + class SpecNestedImpl extends V1beta2PriorityLevelConfigurationSpecFluentImpl> implements V1beta2PriorityLevelConfigurationFluent.SpecNested,Nested{ SpecNestedImpl(V1beta2PriorityLevelConfigurationSpec item) { this.builder = new V1beta2PriorityLevelConfigurationSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V1beta2PriorityLevelConfigurationSpecBuilder(this); } - V1beta2PriorityLevelConfigurationSpecBuilder builder; - public N and() { return (N) V1beta2PriorityLevelConfigurationFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V1beta2PriorityLevelConfigurationStatusFluentImpl< - V1beta2PriorityLevelConfigurationFluent.StatusNested> - implements V1beta2PriorityLevelConfigurationFluent.StatusNested, Nested { + class StatusNestedImpl extends V1beta2PriorityLevelConfigurationStatusFluentImpl> implements V1beta2PriorityLevelConfigurationFluent.StatusNested,Nested{ StatusNestedImpl(V1beta2PriorityLevelConfigurationStatus item) { this.builder = new V1beta2PriorityLevelConfigurationStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V1beta2PriorityLevelConfigurationStatusBuilder(this); } - V1beta2PriorityLevelConfigurationStatusBuilder builder; - public N and() { return (N) V1beta2PriorityLevelConfigurationFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java index c746dd4236..e525f08db6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2PriorityLevelConfigurationListBuilder - extends V1beta2PriorityLevelConfigurationListFluentImpl< - V1beta2PriorityLevelConfigurationListBuilder> - implements VisitableBuilder< - V1beta2PriorityLevelConfigurationList, V1beta2PriorityLevelConfigurationListBuilder> { +import java.lang.Boolean; +public class V1beta2PriorityLevelConfigurationListBuilder extends V1beta2PriorityLevelConfigurationListFluentImpl implements VisitableBuilder{ public V1beta2PriorityLevelConfigurationListBuilder() { this(false); } - public V1beta2PriorityLevelConfigurationListBuilder(Boolean validationEnabled) { this(new V1beta2PriorityLevelConfigurationList(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationListBuilder( - V1beta2PriorityLevelConfigurationListFluent fluent) { + public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationListFluent fluent) { this(fluent, false); } - - public V1beta2PriorityLevelConfigurationListBuilder( - V1beta2PriorityLevelConfigurationListFluent fluent, Boolean validationEnabled) { + public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationListFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationList(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationListBuilder( - V1beta2PriorityLevelConfigurationListFluent fluent, - V1beta2PriorityLevelConfigurationList instance) { + public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationListFluent fluent,V1beta2PriorityLevelConfigurationList instance) { this(fluent, instance, false); } - - public V1beta2PriorityLevelConfigurationListBuilder( - V1beta2PriorityLevelConfigurationListFluent fluent, - V1beta2PriorityLevelConfigurationList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationListFluent fluent,V1beta2PriorityLevelConfigurationList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -56,17 +28,13 @@ public V1beta2PriorityLevelConfigurationListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta2PriorityLevelConfigurationListBuilder( - V1beta2PriorityLevelConfigurationList instance) { - this(instance, false); + public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationList instance) { + this(instance,false); } - - public V1beta2PriorityLevelConfigurationListBuilder( - V1beta2PriorityLevelConfigurationList instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -75,12 +43,10 @@ public V1beta2PriorityLevelConfigurationListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PriorityLevelConfigurationListFluent fluent; Boolean validationEnabled; - public V1beta2PriorityLevelConfigurationList build() { V1beta2PriorityLevelConfigurationList buildable = new V1beta2PriorityLevelConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +55,5 @@ public V1beta2PriorityLevelConfigurationList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java index 41d0780aa4..55b7bf3ee4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java @@ -1,140 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2PriorityLevelConfigurationListFluent< - A extends V1beta2PriorityLevelConfigurationListFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2PriorityLevelConfigurationListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta2PriorityLevelConfiguration item); - - public A setToItems(Integer index, V1beta2PriorityLevelConfiguration item); - - public A addToItems( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); - + public A addToItems(Integer index,V1beta2PriorityLevelConfiguration item); + public A setToItems(Integer index,V1beta2PriorityLevelConfiguration item); + public A addToItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); public A addAllToItems(Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); - + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V1beta2PriorityLevelConfiguration buildItem(Integer index); - public V1beta2PriorityLevelConfiguration buildFirstItem(); - public V1beta2PriorityLevelConfiguration buildLastItem(); - - public V1beta2PriorityLevelConfiguration buildMatchingItem( - Predicate predicate); - + public V1beta2PriorityLevelConfiguration buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - - public A withItems( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); - + public A withItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); public Boolean hasItems(); - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItem(); - - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( - V1beta2PriorityLevelConfiguration item); - - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1beta2PriorityLevelConfiguration item); - + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike(V1beta2PriorityLevelConfiguration item); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1beta2PriorityLevelConfiguration item); public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index); - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editFirstItem(); - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editLastItem(); - - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadata(); - - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editMetadata(); - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata(); - - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1beta2PriorityLevelConfigurationFluent< - V1beta2PriorityLevelConfigurationListFluent.ItemsNested> { + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V1beta2PriorityLevelConfigurationFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, - V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java index 12dea2cbfc..5083b439cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java @@ -1,34 +1,28 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PriorityLevelConfigurationListFluentImpl< - A extends V1beta2PriorityLevelConfigurationListFluent> - extends BaseFluent implements V1beta2PriorityLevelConfigurationListFluent { - public V1beta2PriorityLevelConfigurationListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; - public V1beta2PriorityLevelConfigurationListFluentImpl( - V1beta2PriorityLevelConfigurationList instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PriorityLevelConfigurationListFluentImpl> extends BaseFluent implements V1beta2PriorityLevelConfigurationListFluent{ + public V1beta2PriorityLevelConfigurationListFluentImpl() { + } + public V1beta2PriorityLevelConfigurationListFluentImpl(V1beta2PriorityLevelConfigurationList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -36,108 +30,46 @@ public V1beta2PriorityLevelConfigurationListFluentImpl( this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V1beta2PriorityLevelConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2PriorityLevelConfigurationBuilder builder = - new V1beta2PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V1beta2PriorityLevelConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V1beta2PriorityLevelConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2PriorityLevelConfigurationBuilder builder = - new V1beta2PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + public A setToItems(Integer index,V1beta2PriorityLevelConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item); + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - - public A addToItems( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta2PriorityLevelConfiguration item : items) { - V1beta2PriorityLevelConfigurationBuilder builder = - new V1beta2PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + public A addToItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta2PriorityLevelConfiguration item : items) { - V1beta2PriorityLevelConfigurationBuilder builder = - new V1beta2PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - for (V1beta2PriorityLevelConfiguration item : items) { - V1beta2PriorityLevelConfigurationBuilder builder = - new V1beta2PriorityLevelConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { + for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V1beta2PriorityLevelConfiguration item : items) { - V1beta2PriorityLevelConfigurationBuilder builder = - new V1beta2PriorityLevelConfigurationBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -149,281 +81,176 @@ public A removeMatchingFromItems(Predicate getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V1beta2PriorityLevelConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public V1beta2PriorityLevelConfiguration buildFirstItem() { return this.items.get(0).build(); } - public V1beta2PriorityLevelConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V1beta2PriorityLevelConfiguration buildMatchingItem( - Predicate predicate) { - for (V1beta2PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta2PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { + for (V1beta2PriorityLevelConfigurationBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V1beta2PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V1beta2PriorityLevelConfigurationBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V1beta2PriorityLevelConfiguration item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - - public A withItems( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V1beta2PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } - return (A) this; + public A withItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { + if (this.items != null) {this.items.clear();} + if (items != null) {for (V1beta2PriorityLevelConfiguration item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItem() { return new V1beta2PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(); } - - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( - V1beta2PriorityLevelConfiguration item) { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike(V1beta2PriorityLevelConfiguration item) { return new V1beta2PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( - Integer index, V1beta2PriorityLevelConfiguration item) { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike(Integer index,V1beta2PriorityLevelConfiguration item) { return new V1beta2PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V1beta2PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(); } - - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V1beta2PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(item); } - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta2PriorityLevelConfigurationListFluentImpl that = - (V1beta2PriorityLevelConfigurationListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + V1beta2PriorityLevelConfigurationListFluentImpl that = (V1beta2PriorityLevelConfigurationListFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V1beta2PriorityLevelConfigurationFluentImpl< - V1beta2PriorityLevelConfigurationListFluent.ItemsNested> - implements V1beta2PriorityLevelConfigurationListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V1beta2PriorityLevelConfiguration item) { + class ItemsNestedImpl extends V1beta2PriorityLevelConfigurationFluentImpl> implements V1beta2PriorityLevelConfigurationListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V1beta2PriorityLevelConfiguration item) { this.index = index; this.builder = new V1beta2PriorityLevelConfigurationBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V1beta2PriorityLevelConfigurationBuilder(this); } - V1beta2PriorityLevelConfigurationBuilder builder; Integer index; - public N and() { - return (N) - V1beta2PriorityLevelConfigurationListFluentImpl.this.setToItems(index, builder.build()); + return (N) V1beta2PriorityLevelConfigurationListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V1beta2PriorityLevelConfigurationListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V1beta2PriorityLevelConfigurationListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V1beta2PriorityLevelConfigurationListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java index 8e5012a4bb..28d2504240 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java @@ -1,79 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta2PriorityLevelConfigurationReferenceBuilder - extends V1beta2PriorityLevelConfigurationReferenceFluentImpl< - V1beta2PriorityLevelConfigurationReferenceBuilder> - implements VisitableBuilder< - V1beta2PriorityLevelConfigurationReference, - V1beta2PriorityLevelConfigurationReferenceBuilder> { +import java.lang.Boolean; +public class V1beta2PriorityLevelConfigurationReferenceBuilder extends V1beta2PriorityLevelConfigurationReferenceFluentImpl implements VisitableBuilder{ public V1beta2PriorityLevelConfigurationReferenceBuilder() { this(false); } - public V1beta2PriorityLevelConfigurationReferenceBuilder(Boolean validationEnabled) { this(new V1beta2PriorityLevelConfigurationReference(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationReferenceBuilder( - V1beta2PriorityLevelConfigurationReferenceFluent fluent) { + public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReferenceFluent fluent) { this(fluent, false); } - - public V1beta2PriorityLevelConfigurationReferenceBuilder( - V1beta2PriorityLevelConfigurationReferenceFluent fluent, Boolean validationEnabled) { + public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationReference(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationReferenceBuilder( - V1beta2PriorityLevelConfigurationReferenceFluent fluent, - V1beta2PriorityLevelConfigurationReference instance) { + public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReferenceFluent fluent,V1beta2PriorityLevelConfigurationReference instance) { this(fluent, instance, false); } - - public V1beta2PriorityLevelConfigurationReferenceBuilder( - V1beta2PriorityLevelConfigurationReferenceFluent fluent, - V1beta2PriorityLevelConfigurationReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReferenceFluent fluent,V1beta2PriorityLevelConfigurationReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta2PriorityLevelConfigurationReferenceBuilder( - V1beta2PriorityLevelConfigurationReference instance) { - this(instance, false); + public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReference instance) { + this(instance,false); } - - public V1beta2PriorityLevelConfigurationReferenceBuilder( - V1beta2PriorityLevelConfigurationReference instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReference instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PriorityLevelConfigurationReferenceFluent fluent; Boolean validationEnabled; - public V1beta2PriorityLevelConfigurationReference build() { - V1beta2PriorityLevelConfigurationReference buildable = - new V1beta2PriorityLevelConfigurationReference(); + V1beta2PriorityLevelConfigurationReference buildable = new V1beta2PriorityLevelConfigurationReference(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java index 8300bce70c..9a25fd3952 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java @@ -1,26 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2PriorityLevelConfigurationReferenceFluent< - A extends V1beta2PriorityLevelConfigurationReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2PriorityLevelConfigurationReferenceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java index 94d1dd1f3b..31de341108 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java @@ -1,67 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PriorityLevelConfigurationReferenceFluentImpl< - A extends V1beta2PriorityLevelConfigurationReferenceFluent> - extends BaseFluent implements V1beta2PriorityLevelConfigurationReferenceFluent { - public V1beta2PriorityLevelConfigurationReferenceFluentImpl() {} - - public V1beta2PriorityLevelConfigurationReferenceFluentImpl( - V1beta2PriorityLevelConfigurationReference instance) { - this.withName(instance.getName()); +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PriorityLevelConfigurationReferenceFluentImpl> extends BaseFluent implements V1beta2PriorityLevelConfigurationReferenceFluent{ + public V1beta2PriorityLevelConfigurationReferenceFluentImpl() { } + public V1beta2PriorityLevelConfigurationReferenceFluentImpl(V1beta2PriorityLevelConfigurationReference instance) { + this.withName(instance.getName()); + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta2PriorityLevelConfigurationReferenceFluentImpl that = - (V1beta2PriorityLevelConfigurationReferenceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + V1beta2PriorityLevelConfigurationReferenceFluentImpl that = (V1beta2PriorityLevelConfigurationReferenceFluentImpl) o; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java index 70f06a1991..a866de618f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java @@ -1,82 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta2PriorityLevelConfigurationSpecBuilder - extends V1beta2PriorityLevelConfigurationSpecFluentImpl< - V1beta2PriorityLevelConfigurationSpecBuilder> - implements VisitableBuilder< - V1beta2PriorityLevelConfigurationSpec, V1beta2PriorityLevelConfigurationSpecBuilder> { +import java.lang.Boolean; +public class V1beta2PriorityLevelConfigurationSpecBuilder extends V1beta2PriorityLevelConfigurationSpecFluentImpl implements VisitableBuilder{ public V1beta2PriorityLevelConfigurationSpecBuilder() { this(false); } - public V1beta2PriorityLevelConfigurationSpecBuilder(Boolean validationEnabled) { this(new V1beta2PriorityLevelConfigurationSpec(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationSpecBuilder( - V1beta2PriorityLevelConfigurationSpecFluent fluent) { + public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpecFluent fluent) { this(fluent, false); } - - public V1beta2PriorityLevelConfigurationSpecBuilder( - V1beta2PriorityLevelConfigurationSpecFluent fluent, Boolean validationEnabled) { + public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationSpec(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationSpecBuilder( - V1beta2PriorityLevelConfigurationSpecFluent fluent, - V1beta2PriorityLevelConfigurationSpec instance) { + public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpecFluent fluent,V1beta2PriorityLevelConfigurationSpec instance) { this(fluent, instance, false); } - - public V1beta2PriorityLevelConfigurationSpecBuilder( - V1beta2PriorityLevelConfigurationSpecFluent fluent, - V1beta2PriorityLevelConfigurationSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpecFluent fluent,V1beta2PriorityLevelConfigurationSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLimited(instance.getLimited()); fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta2PriorityLevelConfigurationSpecBuilder( - V1beta2PriorityLevelConfigurationSpec instance) { - this(instance, false); + public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpec instance) { + this(instance,false); } - - public V1beta2PriorityLevelConfigurationSpecBuilder( - V1beta2PriorityLevelConfigurationSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withLimited(instance.getLimited()); this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PriorityLevelConfigurationSpecFluent fluent; Boolean validationEnabled; - public V1beta2PriorityLevelConfigurationSpec build() { V1beta2PriorityLevelConfigurationSpec buildable = new V1beta2PriorityLevelConfigurationSpec(); buildable.setLimited(fluent.getLimited()); buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java index b6f7f525cb..ed0c588356 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java @@ -1,63 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta2PriorityLevelConfigurationSpecFluent< - A extends V1beta2PriorityLevelConfigurationSpecFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2PriorityLevelConfigurationSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildLimited instead. - * * @return The buildable object. */ @Deprecated public V1beta2LimitedPriorityLevelConfiguration getLimited(); - public V1beta2LimitedPriorityLevelConfiguration buildLimited(); - public A withLimited(V1beta2LimitedPriorityLevelConfiguration limited); - public Boolean hasLimited(); - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimited(); - - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( - V1beta2LimitedPriorityLevelConfiguration item); - + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike(V1beta2LimitedPriorityLevelConfiguration item); public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editLimited(); - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited(); - - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( - V1beta2LimitedPriorityLevelConfiguration item); - + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike(V1beta2LimitedPriorityLevelConfiguration item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface LimitedNested - extends Nested, - V1beta2LimitedPriorityLevelConfigurationFluent< - V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested> { + public interface LimitedNested extends Nested,V1beta2LimitedPriorityLevelConfigurationFluent>{ public N and(); - public N endLimited(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java index 8c627de0fa..b565b82c1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java @@ -1,154 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PriorityLevelConfigurationSpecFluentImpl< - A extends V1beta2PriorityLevelConfigurationSpecFluent> - extends BaseFluent implements V1beta2PriorityLevelConfigurationSpecFluent { - public V1beta2PriorityLevelConfigurationSpecFluentImpl() {} - - public V1beta2PriorityLevelConfigurationSpecFluentImpl( - V1beta2PriorityLevelConfigurationSpec instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PriorityLevelConfigurationSpecFluentImpl> extends BaseFluent implements V1beta2PriorityLevelConfigurationSpecFluent{ + public V1beta2PriorityLevelConfigurationSpecFluentImpl() { + } + public V1beta2PriorityLevelConfigurationSpecFluentImpl(V1beta2PriorityLevelConfigurationSpec instance) { this.withLimited(instance.getLimited()); this.withType(instance.getType()); - } + } private V1beta2LimitedPriorityLevelConfigurationBuilder limited; private String type; - + /** * This method has been deprecated, please use method buildLimited instead. - * * @return The buildable object. */ @Deprecated public V1beta2LimitedPriorityLevelConfiguration getLimited() { - return this.limited != null ? this.limited.build() : null; + return this.limited!=null ?this.limited.build():null; } - public V1beta2LimitedPriorityLevelConfiguration buildLimited() { - return this.limited != null ? this.limited.build() : null; + return this.limited!=null ?this.limited.build():null; } - public A withLimited(V1beta2LimitedPriorityLevelConfiguration limited) { _visitables.get("limited").remove(this.limited); - if (limited != null) { - this.limited = new V1beta2LimitedPriorityLevelConfigurationBuilder(limited); - _visitables.get("limited").add(this.limited); - } else { - this.limited = null; - _visitables.get("limited").remove(this.limited); - } - return (A) this; + if (limited!=null){ this.limited= new V1beta2LimitedPriorityLevelConfigurationBuilder(limited); _visitables.get("limited").add(this.limited);} else { this.limited = null; _visitables.get("limited").remove(this.limited); } return (A) this; } - public Boolean hasLimited() { return this.limited != null; } - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimited() { return new V1beta2PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(); } - - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( - V1beta2LimitedPriorityLevelConfiguration item) { + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike(V1beta2LimitedPriorityLevelConfiguration item) { return new V1beta2PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(item); } - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editLimited() { return withNewLimitedLike(getLimited()); } - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited() { - return withNewLimitedLike( - getLimited() != null - ? getLimited() - : new V1beta2LimitedPriorityLevelConfigurationBuilder().build()); + return withNewLimitedLike(getLimited() != null ? getLimited(): new V1beta2LimitedPriorityLevelConfigurationBuilder().build()); } - - public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( - V1beta2LimitedPriorityLevelConfiguration item) { - return withNewLimitedLike(getLimited() != null ? getLimited() : item); + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike(V1beta2LimitedPriorityLevelConfiguration item) { + return withNewLimitedLike(getLimited() != null ? getLimited(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V1beta2PriorityLevelConfigurationSpecFluentImpl that = - (V1beta2PriorityLevelConfigurationSpecFluentImpl) o; - if (limited != null ? !limited.equals(that.limited) : that.limited != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V1beta2PriorityLevelConfigurationSpecFluentImpl that = (V1beta2PriorityLevelConfigurationSpecFluentImpl) o; + if (limited != null ? !limited.equals(that.limited) :that.limited != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(limited, type, super.hashCode()); + return java.util.Objects.hash(limited, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (limited != null) { - sb.append("limited:"); - sb.append(limited + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (limited != null) { sb.append("limited:"); sb.append(limited + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class LimitedNestedImpl - extends V1beta2LimitedPriorityLevelConfigurationFluentImpl< - V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested> - implements V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested, Nested { + class LimitedNestedImpl extends V1beta2LimitedPriorityLevelConfigurationFluentImpl> implements V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested,Nested{ LimitedNestedImpl(V1beta2LimitedPriorityLevelConfiguration item) { this.builder = new V1beta2LimitedPriorityLevelConfigurationBuilder(this, item); } - LimitedNestedImpl() { this.builder = new V1beta2LimitedPriorityLevelConfigurationBuilder(this); } - V1beta2LimitedPriorityLevelConfigurationBuilder builder; - public N and() { return (N) V1beta2PriorityLevelConfigurationSpecFluentImpl.this.withLimited(builder.build()); } - public N endLimited() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java index 7d25403f88..5db8ff8224 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java @@ -1,78 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta2PriorityLevelConfigurationStatusBuilder - extends V1beta2PriorityLevelConfigurationStatusFluentImpl< - V1beta2PriorityLevelConfigurationStatusBuilder> - implements VisitableBuilder< - V1beta2PriorityLevelConfigurationStatus, V1beta2PriorityLevelConfigurationStatusBuilder> { +import java.lang.Boolean; +public class V1beta2PriorityLevelConfigurationStatusBuilder extends V1beta2PriorityLevelConfigurationStatusFluentImpl implements VisitableBuilder{ public V1beta2PriorityLevelConfigurationStatusBuilder() { this(false); } - public V1beta2PriorityLevelConfigurationStatusBuilder(Boolean validationEnabled) { this(new V1beta2PriorityLevelConfigurationStatus(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationStatusBuilder( - V1beta2PriorityLevelConfigurationStatusFluent fluent) { + public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatusFluent fluent) { this(fluent, false); } - - public V1beta2PriorityLevelConfigurationStatusBuilder( - V1beta2PriorityLevelConfigurationStatusFluent fluent, Boolean validationEnabled) { + public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationStatus(), validationEnabled); } - - public V1beta2PriorityLevelConfigurationStatusBuilder( - V1beta2PriorityLevelConfigurationStatusFluent fluent, - V1beta2PriorityLevelConfigurationStatus instance) { + public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatusFluent fluent,V1beta2PriorityLevelConfigurationStatus instance) { this(fluent, instance, false); } - - public V1beta2PriorityLevelConfigurationStatusBuilder( - V1beta2PriorityLevelConfigurationStatusFluent fluent, - V1beta2PriorityLevelConfigurationStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatusFluent fluent,V1beta2PriorityLevelConfigurationStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V1beta2PriorityLevelConfigurationStatusBuilder( - V1beta2PriorityLevelConfigurationStatus instance) { - this(instance, false); + public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatus instance) { + this(instance,false); } - - public V1beta2PriorityLevelConfigurationStatusBuilder( - V1beta2PriorityLevelConfigurationStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2PriorityLevelConfigurationStatusFluent fluent; Boolean validationEnabled; - public V1beta2PriorityLevelConfigurationStatus build() { - V1beta2PriorityLevelConfigurationStatus buildable = - new V1beta2PriorityLevelConfigurationStatus(); + V1beta2PriorityLevelConfigurationStatus buildable = new V1beta2PriorityLevelConfigurationStatus(); buildable.setConditions(fluent.getConditions()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java index 1c1c1f063f..7af22c22cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java @@ -1,97 +1,55 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta2PriorityLevelConfigurationStatusFluent< - A extends V1beta2PriorityLevelConfigurationStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item); - - public A setToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2PriorityLevelConfigurationStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V1beta2PriorityLevelConfigurationCondition item); + public A setToConditions(Integer index,V1beta2PriorityLevelConfigurationCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V1beta2PriorityLevelConfigurationCondition buildCondition(Integer index); - public V1beta2PriorityLevelConfigurationCondition buildFirstCondition(); - public V1beta2PriorityLevelConfigurationCondition buildLastCondition(); - - public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition( - Predicate predicate); - - public Boolean hasMatchingCondition( - Predicate predicate); - + public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate); + public Boolean hasMatchingCondition(Predicate predicate); public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... conditions); public Boolean hasConditions(); - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewCondition(); - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( - V1beta2PriorityLevelConfigurationCondition item); - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta2PriorityLevelConfigurationCondition item); - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( - Integer index); - + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike(V1beta2PriorityLevelConfigurationCondition item); + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta2PriorityLevelConfigurationCondition item); + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition(Integer index); public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition(); - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editLastCondition(); - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public interface ConditionsNested - extends Nested, - V1beta2PriorityLevelConfigurationConditionFluent< - V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested> { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public interface ConditionsNested extends Nested,V1beta2PriorityLevelConfigurationConditionFluent>{ public N and(); - public N endCondition(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java index 0a3c2730f6..7ae812f3a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java @@ -1,125 +1,58 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2PriorityLevelConfigurationStatusFluentImpl< - A extends V1beta2PriorityLevelConfigurationStatusFluent> - extends BaseFluent implements V1beta2PriorityLevelConfigurationStatusFluent { - public V1beta2PriorityLevelConfigurationStatusFluentImpl() {} +import java.lang.Boolean; - public V1beta2PriorityLevelConfigurationStatusFluentImpl( - V1beta2PriorityLevelConfigurationStatus instance) { - this.withConditions(instance.getConditions()); + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2PriorityLevelConfigurationStatusFluentImpl> extends BaseFluent implements V1beta2PriorityLevelConfigurationStatusFluent{ + public V1beta2PriorityLevelConfigurationStatusFluentImpl() { } + public V1beta2PriorityLevelConfigurationStatusFluentImpl(V1beta2PriorityLevelConfigurationStatus instance) { + this.withConditions(instance.getConditions()); + } private ArrayList conditions; - - public A addToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1beta2PriorityLevelConfigurationConditionBuilder builder = - new V1beta2PriorityLevelConfigurationConditionBuilder(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 addToConditions(Integer index,V1beta2PriorityLevelConfigurationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(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(Integer index, V1beta2PriorityLevelConfigurationCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1beta2PriorityLevelConfigurationConditionBuilder builder = - new V1beta2PriorityLevelConfigurationConditionBuilder(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 setToConditions(Integer index,V1beta2PriorityLevelConfigurationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(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.V1beta2PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1beta2PriorityLevelConfigurationCondition item : items) { - V1beta2PriorityLevelConfigurationConditionBuilder builder = - new V1beta2PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(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 ArrayList(); - } - for (V1beta2PriorityLevelConfigurationCondition item : items) { - V1beta2PriorityLevelConfigurationConditionBuilder builder = - new V1beta2PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { - for (V1beta2PriorityLevelConfigurationCondition item : items) { - V1beta2PriorityLevelConfigurationConditionBuilder builder = - new V1beta2PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { + for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V1beta2PriorityLevelConfigurationCondition item : items) { - V1beta2PriorityLevelConfigurationConditionBuilder builder = - new V1beta2PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -130,184 +63,111 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V1beta2PriorityLevelConfigurationCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V1beta2PriorityLevelConfigurationCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1beta2PriorityLevelConfigurationCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition( - Predicate predicate) { - for (V1beta2PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate) { + for (V1beta2PriorityLevelConfigurationConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V1beta2PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1beta2PriorityLevelConfigurationConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta2PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V1beta2PriorityLevelConfigurationCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... - conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V1beta2PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V1beta2PriorityLevelConfigurationCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewCondition() { return new V1beta2PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(); } - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( - V1beta2PriorityLevelConfigurationCondition item) { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike(V1beta2PriorityLevelConfigurationCondition item) { return new V1beta2PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V1beta2PriorityLevelConfigurationCondition item) { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike(Integer index,V1beta2PriorityLevelConfigurationCondition item) { return new V1beta2PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(index, item); } - - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( - Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition(Integer index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V1beta2PriorityLevelConfigurationStatusFluent.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 V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V1beta2PriorityLevelConfigurationConditionFluentImpl< - V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested> - implements V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V1beta2PriorityLevelConfigurationCondition item) { + class ConditionsNestedImpl extends V1beta2PriorityLevelConfigurationConditionFluentImpl> implements V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V1beta2PriorityLevelConfigurationCondition item) { this.index = index; this.builder = new V1beta2PriorityLevelConfigurationConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V1beta2PriorityLevelConfigurationConditionBuilder(this); } - V1beta2PriorityLevelConfigurationConditionBuilder builder; Integer index; - public N and() { - return (N) - V1beta2PriorityLevelConfigurationStatusFluentImpl.this.setToConditions( - index, builder.build()); + return (N) V1beta2PriorityLevelConfigurationStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java index 39954db970..4eef1fca51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V1beta2QueuingConfigurationBuilder - extends V1beta2QueuingConfigurationFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2QueuingConfigurationBuilder extends V1beta2QueuingConfigurationFluentImpl implements VisitableBuilder{ public V1beta2QueuingConfigurationBuilder() { this(false); } - public V1beta2QueuingConfigurationBuilder(Boolean validationEnabled) { this(new V1beta2QueuingConfiguration(), validationEnabled); } - public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent fluent) { this(fluent, false); } - - public V1beta2QueuingConfigurationBuilder( - V1beta2QueuingConfigurationFluent fluent, Boolean validationEnabled) { + public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2QueuingConfiguration(), validationEnabled); } - - public V1beta2QueuingConfigurationBuilder( - V1beta2QueuingConfigurationFluent fluent, V1beta2QueuingConfiguration instance) { + public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent fluent,V1beta2QueuingConfiguration instance) { this(fluent, instance, false); } - - public V1beta2QueuingConfigurationBuilder( - V1beta2QueuingConfigurationFluent fluent, - V1beta2QueuingConfiguration instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent fluent,V1beta2QueuingConfiguration instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withHandSize(instance.getHandSize()); fluent.withQueueLengthLimit(instance.getQueueLengthLimit()); fluent.withQueues(instance.getQueues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfiguration instance) { - this(instance, false); + this(instance,false); } - - public V1beta2QueuingConfigurationBuilder( - V1beta2QueuingConfiguration instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfiguration instance,Boolean validationEnabled) { + this.fluent = this; this.withHandSize(instance.getHandSize()); this.withQueueLengthLimit(instance.getQueueLengthLimit()); this.withQueues(instance.getQueues()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2QueuingConfigurationFluent fluent; Boolean validationEnabled; - public V1beta2QueuingConfiguration build() { V1beta2QueuingConfiguration buildable = new V1beta2QueuingConfiguration(); buildable.setHandSize(fluent.getHandSize()); @@ -79,4 +50,5 @@ public V1beta2QueuingConfiguration build() { buildable.setQueues(fluent.getQueues()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java index 749f69e72a..0a8d21ae5f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java @@ -1,37 +1,21 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2QueuingConfigurationFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2QueuingConfigurationFluent> extends Fluent{ public Integer getHandSize(); - public A withHandSize(Integer handSize); - public Boolean hasHandSize(); - public Integer getQueueLengthLimit(); - public A withQueueLengthLimit(Integer queueLengthLimit); - public Boolean hasQueueLengthLimit(); - public Integer getQueues(); - public A withQueues(Integer queues); - public Boolean hasQueues(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java index 130ea63584..2cf7a671ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java @@ -1,108 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2QueuingConfigurationFluentImpl> - extends BaseFluent implements V1beta2QueuingConfigurationFluent { - public V1beta2QueuingConfigurationFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2QueuingConfigurationFluentImpl> extends BaseFluent implements V1beta2QueuingConfigurationFluent{ + public V1beta2QueuingConfigurationFluentImpl() { + } public V1beta2QueuingConfigurationFluentImpl(V1beta2QueuingConfiguration instance) { this.withHandSize(instance.getHandSize()); this.withQueueLengthLimit(instance.getQueueLengthLimit()); this.withQueues(instance.getQueues()); - } + } private Integer handSize; private Integer queueLengthLimit; private Integer queues; - public Integer getHandSize() { return this.handSize; } - public A withHandSize(Integer handSize) { - this.handSize = handSize; - return (A) this; + this.handSize=handSize; return (A) this; } - public Boolean hasHandSize() { return this.handSize != null; } - public Integer getQueueLengthLimit() { return this.queueLengthLimit; } - public A withQueueLengthLimit(Integer queueLengthLimit) { - this.queueLengthLimit = queueLengthLimit; - return (A) this; + this.queueLengthLimit=queueLengthLimit; return (A) this; } - public Boolean hasQueueLengthLimit() { return this.queueLengthLimit != null; } - public Integer getQueues() { return this.queues; } - public A withQueues(Integer queues) { - this.queues = queues; - return (A) this; + this.queues=queues; return (A) this; } - public Boolean hasQueues() { return this.queues != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2QueuingConfigurationFluentImpl that = (V1beta2QueuingConfigurationFluentImpl) o; - if (handSize != null ? !handSize.equals(that.handSize) : that.handSize != null) return false; - if (queueLengthLimit != null - ? !queueLengthLimit.equals(that.queueLengthLimit) - : that.queueLengthLimit != null) return false; - if (queues != null ? !queues.equals(that.queues) : that.queues != null) return false; + if (handSize != null ? !handSize.equals(that.handSize) :that.handSize != null) return false; + if (queueLengthLimit != null ? !queueLengthLimit.equals(that.queueLengthLimit) :that.queueLengthLimit != null) return false; + if (queues != null ? !queues.equals(that.queues) :that.queues != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); + return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (handSize != null) { - sb.append("handSize:"); - sb.append(handSize + ","); - } - if (queueLengthLimit != null) { - sb.append("queueLengthLimit:"); - sb.append(queueLengthLimit + ","); - } - if (queues != null) { - sb.append("queues:"); - sb.append(queues); - } + if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); } + if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); } + if (queues != null) { sb.append("queues:"); sb.append(queues); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java index 5bdbe05607..b8ef9bd1ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2ResourcePolicyRuleBuilder - extends V1beta2ResourcePolicyRuleFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2ResourcePolicyRuleBuilder extends V1beta2ResourcePolicyRuleFluentImpl implements VisitableBuilder{ public V1beta2ResourcePolicyRuleBuilder() { this(false); } - public V1beta2ResourcePolicyRuleBuilder(Boolean validationEnabled) { this(new V1beta2ResourcePolicyRule(), validationEnabled); } - public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent) { this(fluent, false); } - - public V1beta2ResourcePolicyRuleBuilder( - V1beta2ResourcePolicyRuleFluent fluent, Boolean validationEnabled) { + public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2ResourcePolicyRule(), validationEnabled); } - - public V1beta2ResourcePolicyRuleBuilder( - V1beta2ResourcePolicyRuleFluent fluent, V1beta2ResourcePolicyRule instance) { + public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent,V1beta2ResourcePolicyRule instance) { this(fluent, instance, false); } - - public V1beta2ResourcePolicyRuleBuilder( - V1beta2ResourcePolicyRuleFluent fluent, - V1beta2ResourcePolicyRule instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent,V1beta2ResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); fluent.withClusterScope(instance.getClusterScope()); @@ -54,16 +30,13 @@ public V1beta2ResourcePolicyRuleBuilder( fluent.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRule instance) { - this(instance, false); + this(instance,false); } - - public V1beta2ResourcePolicyRuleBuilder( - V1beta2ResourcePolicyRule instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRule instance,Boolean validationEnabled) { + this.fluent = this; this.withApiGroups(instance.getApiGroups()); this.withClusterScope(instance.getClusterScope()); @@ -74,12 +47,10 @@ public V1beta2ResourcePolicyRuleBuilder( this.withVerbs(instance.getVerbs()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2ResourcePolicyRuleFluent fluent; Boolean validationEnabled; - public V1beta2ResourcePolicyRule build() { V1beta2ResourcePolicyRule buildable = new V1beta2ResourcePolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -89,4 +60,5 @@ public V1beta2ResourcePolicyRule build() { buildable.setVerbs(fluent.getVerbs()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java index d8dcab5326..07ddc087eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java @@ -1,150 +1,81 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.lang.String; +import java.lang.Boolean; import java.util.function.Predicate; -/** Generated */ -public interface V1beta2ResourcePolicyRuleFluent> - extends Fluent { - public A addToApiGroups(Integer index, String item); - - public A setToApiGroups(Integer index, String item); - + /** + * Generated + */ +public interface V1beta2ResourcePolicyRuleFluent> extends Fluent{ + public A addToApiGroups(Integer index,String item); + public A setToApiGroups(Integer index,String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); - public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); - public String getApiGroup(Integer index); - public String getFirstApiGroup(); - public String getLastApiGroup(); - public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(List apiGroups); - public A withApiGroups(java.lang.String... apiGroups); - public Boolean hasApiGroups(); - public Boolean getClusterScope(); - public A withClusterScope(Boolean clusterScope); - public Boolean hasClusterScope(); - - public A addToNamespaces(Integer index, String item); - - public A setToNamespaces(Integer index, String item); - + public A addToNamespaces(Integer index,String item); + public A setToNamespaces(Integer index,String item); public A addToNamespaces(java.lang.String... items); - public A addAllToNamespaces(Collection items); - public A removeFromNamespaces(java.lang.String... items); - public A removeAllFromNamespaces(Collection items); - public List getNamespaces(); - public String getNamespace(Integer index); - public String getFirstNamespace(); - public String getLastNamespace(); - public String getMatchingNamespace(Predicate predicate); - public Boolean hasMatchingNamespace(Predicate predicate); - public A withNamespaces(List namespaces); - public A withNamespaces(java.lang.String... namespaces); - public Boolean hasNamespaces(); - - public A addToResources(Integer index, String item); - - public A setToResources(Integer index, String item); - + public A addToResources(Integer index,String item); + public A setToResources(Integer index,String item); public A addToResources(java.lang.String... items); - public A addAllToResources(Collection items); - public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(Collection items); - public List getResources(); - public String getResource(Integer index); - public String getFirstResource(); - public String getLastResource(); - public String getMatchingResource(Predicate predicate); - public Boolean hasMatchingResource(Predicate predicate); - public A withResources(List resources); - public A withResources(java.lang.String... resources); - public Boolean hasResources(); - - public A addToVerbs(Integer index, String item); - - public A setToVerbs(Integer index, String item); - + public A addToVerbs(Integer index,String item); + public A setToVerbs(Integer index,String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(Collection items); - public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(Collection items); - public List getVerbs(); - public String getVerb(Integer index); - public String getFirstVerb(); - public String getLastVerb(); - public String getMatchingVerb(Predicate predicate); - public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(List verbs); - public A withVerbs(java.lang.String... verbs); - public Boolean hasVerbs(); - public A withClusterScope(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java index 318daf31fb..2cc07abbb6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java @@ -1,29 +1,23 @@ -/* -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 java.lang.SuppressWarnings; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2ResourcePolicyRuleFluentImpl> - extends BaseFluent implements V1beta2ResourcePolicyRuleFluent { - public V1beta2ResourcePolicyRuleFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2ResourcePolicyRuleFluentImpl> extends BaseFluent implements V1beta2ResourcePolicyRuleFluent{ + public V1beta2ResourcePolicyRuleFluentImpl() { + } public V1beta2ResourcePolicyRuleFluentImpl(V1beta2ResourcePolicyRule instance) { this.withApiGroups(instance.getApiGroups()); @@ -34,540 +28,253 @@ public V1beta2ResourcePolicyRuleFluentImpl(V1beta2ResourcePolicyRule instance) { this.withResources(instance.getResources()); this.withVerbs(instance.getVerbs()); - } + } private List apiGroups; private Boolean clusterScope; private List namespaces; private List resources; private List verbs; - - public A addToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } + public A addToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} this.apiGroups.add(index, item); - return (A) this; + return (A)this; } - - public A setToApiGroups(Integer index, String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.set(index, item); - return (A) this; + public A setToApiGroups(Integer index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - for (String item : items) { - this.apiGroups.add(item); - } - return (A) this; + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; } - public A removeFromApiGroups(java.lang.String... items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public A removeAllFromApiGroups(Collection items) { - for (String item : items) { - if (this.apiGroups != null) { - this.apiGroups.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.apiGroups!= null){ this.apiGroups.remove(item);}} return (A)this; } - public List getApiGroups() { return this.apiGroups; } - public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public String getFirstApiGroup() { return this.apiGroups.get(0); } - public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: apiGroups) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: apiGroups) { if(predicate.test(item)){ return true;} } return false; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; + if (apiGroups != null) {this.apiGroups = new ArrayList(); for (String item : apiGroups){this.addToApiGroups(item);}} else { this.apiGroups = null;} return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; + if (this.apiGroups != null) {this.apiGroups.clear();} + if (apiGroups != null) {for (String item :apiGroups){ this.addToApiGroups(item);}} return (A) this; } - public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public Boolean getClusterScope() { return this.clusterScope; } - public A withClusterScope(Boolean clusterScope) { - this.clusterScope = clusterScope; - return (A) this; + this.clusterScope=clusterScope; return (A) this; } - public Boolean hasClusterScope() { return this.clusterScope != null; } - - public A addToNamespaces(Integer index, String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } + public A addToNamespaces(Integer index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} this.namespaces.add(index, item); - return (A) this; + return (A)this; } - - public A setToNamespaces(Integer index, String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.set(index, item); - return (A) this; + public A setToNamespaces(Integer index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + this.namespaces.set(index, item); return (A)this; } - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; } - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; } - public A removeFromNamespaces(java.lang.String... items) { - for (String item : items) { - if (this.namespaces != null) { - this.namespaces.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.namespaces!= null){ this.namespaces.remove(item);}} return (A)this; } - public A removeAllFromNamespaces(Collection items) { - for (String item : items) { - if (this.namespaces != null) { - this.namespaces.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.namespaces!= null){ this.namespaces.remove(item);}} return (A)this; } - public List getNamespaces() { return this.namespaces; } - public String getNamespace(Integer index) { return this.namespaces.get(index); } - public String getFirstNamespace() { return this.namespaces.get(0); } - public String getLastNamespace() { return this.namespaces.get(namespaces.size() - 1); } - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: namespaces) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: namespaces) { if(predicate.test(item)){ return true;} } return false; } - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); - } - } else { - this.namespaces = null; - } - return (A) this; + if (namespaces != null) {this.namespaces = new ArrayList(); for (String item : namespaces){this.addToNamespaces(item);}} else { this.namespaces = null;} return (A) this; } - public A withNamespaces(java.lang.String... namespaces) { - if (this.namespaces != null) { - this.namespaces.clear(); - } - if (namespaces != null) { - for (String item : namespaces) { - this.addToNamespaces(item); - } - } - return (A) this; + if (this.namespaces != null) {this.namespaces.clear();} + if (namespaces != null) {for (String item :namespaces){ this.addToNamespaces(item);}} return (A) this; } - public Boolean hasNamespaces() { return namespaces != null && !namespaces.isEmpty(); } - - public A addToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } + public A addToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} this.resources.add(index, item); - return (A) this; + return (A)this; } - - public A setToResources(Integer index, String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public A setToResources(Integer index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; } - public A removeFromResources(java.lang.String... items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public A removeAllFromResources(Collection items) { - for (String item : items) { - if (this.resources != null) { - this.resources.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.resources!= null){ this.resources.remove(item);}} return (A)this; } - public List getResources() { return this.resources; } - public String getResource(Integer index) { return this.resources.get(index); } - public String getFirstResource() { return this.resources.get(0); } - public String getLastResource() { return this.resources.get(resources.size() - 1); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: resources) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: resources) { if(predicate.test(item)){ return true;} } return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; + if (resources != null) {this.resources = new ArrayList(); for (String item : resources){this.addToResources(item);}} else { this.resources = null;} return (A) this; } - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; + if (this.resources != null) {this.resources.clear();} + if (resources != null) {for (String item :resources){ this.addToResources(item);}} return (A) this; } - public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - - public A addToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } + public A addToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} this.verbs.add(index, item); - return (A) this; + return (A)this; } - - public A setToVerbs(Integer index, String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public A setToVerbs(Integer index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - for (String item : items) { - this.verbs.add(item); - } - return (A) this; + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; } - public A removeFromVerbs(java.lang.String... items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public A removeAllFromVerbs(Collection items) { - for (String item : items) { - if (this.verbs != null) { - this.verbs.remove(item); - } - } - return (A) this; + for (String item : items) {if (this.verbs!= null){ this.verbs.remove(item);}} return (A)this; } - public List getVerbs() { return this.verbs; } - public String getVerb(Integer index) { return this.verbs.get(index); } - public String getFirstVerb() { return this.verbs.get(0); } - public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + for (String item: verbs) { if(predicate.test(item)){ return item;} } return null; } - public Boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (String item: verbs) { if(predicate.test(item)){ return true;} } return false; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; + if (verbs != null) {this.verbs = new ArrayList(); for (String item : verbs){this.addToVerbs(item);}} else { this.verbs = null;} return (A) this; } - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; + if (this.verbs != null) {this.verbs.clear();} + if (verbs != null) {for (String item :verbs){ this.addToVerbs(item);}} return (A) this; } - public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2ResourcePolicyRuleFluentImpl that = (V1beta2ResourcePolicyRuleFluentImpl) o; - if (apiGroups != null ? !apiGroups.equals(that.apiGroups) : that.apiGroups != null) - return false; - if (clusterScope != null ? !clusterScope.equals(that.clusterScope) : that.clusterScope != null) - return false; - if (namespaces != null ? !namespaces.equals(that.namespaces) : that.namespaces != null) - return false; - if (resources != null ? !resources.equals(that.resources) : that.resources != null) - return false; - if (verbs != null ? !verbs.equals(that.verbs) : that.verbs != null) return false; + if (apiGroups != null ? !apiGroups.equals(that.apiGroups) :that.apiGroups != null) return false; + if (clusterScope != null ? !clusterScope.equals(that.clusterScope) :that.clusterScope != null) return false; + if (namespaces != null ? !namespaces.equals(that.namespaces) :that.namespaces != null) return false; + if (resources != null ? !resources.equals(that.resources) :that.resources != null) return false; + if (verbs != null ? !verbs.equals(that.verbs) :that.verbs != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); + return java.util.Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { - sb.append("apiGroups:"); - sb.append(apiGroups + ","); - } - if (clusterScope != null) { - sb.append("clusterScope:"); - sb.append(clusterScope + ","); - } - if (namespaces != null && !namespaces.isEmpty()) { - sb.append("namespaces:"); - sb.append(namespaces + ","); - } - if (resources != null && !resources.isEmpty()) { - sb.append("resources:"); - sb.append(resources + ","); - } - if (verbs != null && !verbs.isEmpty()) { - sb.append("verbs:"); - sb.append(verbs); - } + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (clusterScope != null) { sb.append("clusterScope:"); sb.append(clusterScope + ","); } + if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } sb.append("}"); return sb.toString(); } - public A withClusterScope() { return withClusterScope(true); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java index bc94aa1da6..1a12e25f80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V1beta2ServiceAccountSubjectBuilder - extends V1beta2ServiceAccountSubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2ServiceAccountSubjectBuilder extends V1beta2ServiceAccountSubjectFluentImpl implements VisitableBuilder{ public V1beta2ServiceAccountSubjectBuilder() { this(false); } - public V1beta2ServiceAccountSubjectBuilder(Boolean validationEnabled) { this(new V1beta2ServiceAccountSubject(), validationEnabled); } - public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent fluent) { this(fluent, false); } - - public V1beta2ServiceAccountSubjectBuilder( - V1beta2ServiceAccountSubjectFluent fluent, Boolean validationEnabled) { + public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2ServiceAccountSubject(), validationEnabled); } - - public V1beta2ServiceAccountSubjectBuilder( - V1beta2ServiceAccountSubjectFluent fluent, V1beta2ServiceAccountSubject instance) { + public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent fluent,V1beta2ServiceAccountSubject instance) { this(fluent, instance, false); } - - public V1beta2ServiceAccountSubjectBuilder( - V1beta2ServiceAccountSubjectFluent fluent, - V1beta2ServiceAccountSubject instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent fluent,V1beta2ServiceAccountSubject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubject instance) { - this(instance, false); + this(instance,false); } - - public V1beta2ServiceAccountSubjectBuilder( - V1beta2ServiceAccountSubject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubject instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2ServiceAccountSubjectFluent fluent; Boolean validationEnabled; - public V1beta2ServiceAccountSubject build() { V1beta2ServiceAccountSubject buildable = new V1beta2ServiceAccountSubject(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java index bf5538ee02..a33c936e48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java @@ -1,31 +1,18 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2ServiceAccountSubjectFluent> - extends Fluent { + /** + * Generated + */ +public interface V1beta2ServiceAccountSubjectFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - public String getNamespace(); - public A withNamespace(String namespace); - public Boolean hasNamespace(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java index 50cba3e510..42ae9836c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java @@ -1,86 +1,62 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2ServiceAccountSubjectFluentImpl> - extends BaseFluent implements V1beta2ServiceAccountSubjectFluent { - public V1beta2ServiceAccountSubjectFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2ServiceAccountSubjectFluentImpl> extends BaseFluent implements V1beta2ServiceAccountSubjectFluent{ + public V1beta2ServiceAccountSubjectFluentImpl() { + } public V1beta2ServiceAccountSubjectFluentImpl(V1beta2ServiceAccountSubject instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); - } + } private String name; private String namespace; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + this.namespace=namespace; return (A) this; } - public Boolean hasNamespace() { return this.namespace != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2ServiceAccountSubjectFluentImpl that = (V1beta2ServiceAccountSubjectFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) - return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); + return java.util.Objects.hash(name, namespace, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (namespace != null) { - sb.append("namespace:"); - sb.append(namespace); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java index d2e5b82365..e90493a813 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V1beta2SubjectBuilder extends V1beta2SubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2SubjectBuilder extends V1beta2SubjectFluentImpl implements VisitableBuilder{ public V1beta2SubjectBuilder() { this(false); } - public V1beta2SubjectBuilder(Boolean validationEnabled) { this(new V1beta2Subject(), validationEnabled); } - public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent) { this(fluent, false); } - - public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent, Boolean validationEnabled) { + public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2Subject(), validationEnabled); } - - public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent, V1beta2Subject instance) { + public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent,V1beta2Subject instance) { this(fluent, instance, false); } - - public V1beta2SubjectBuilder( - V1beta2SubjectFluent fluent, V1beta2Subject instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent,V1beta2Subject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withGroup(instance.getGroup()); fluent.withKind(instance.getKind()); @@ -47,15 +28,13 @@ public V1beta2SubjectBuilder( fluent.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2SubjectBuilder(V1beta2Subject instance) { - this(instance, false); + this(instance,false); } - - public V1beta2SubjectBuilder(V1beta2Subject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2SubjectBuilder(V1beta2Subject instance,Boolean validationEnabled) { + this.fluent = this; this.withGroup(instance.getGroup()); this.withKind(instance.getKind()); @@ -64,12 +43,10 @@ public V1beta2SubjectBuilder(V1beta2Subject instance, Boolean validationEnabled) this.withUser(instance.getUser()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2SubjectFluent fluent; Boolean validationEnabled; - public V1beta2Subject build() { V1beta2Subject buildable = new V1beta2Subject(); buildable.setGroup(fluent.getGroup()); @@ -78,4 +55,5 @@ public V1beta2Subject build() { buildable.setUser(fluent.getUser()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java index a070d5b4ef..d41624cbbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java @@ -1,122 +1,77 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta2SubjectFluent> extends Fluent { - +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V1beta2SubjectFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildGroup instead. - * * @return The buildable object. */ @Deprecated public V1beta2GroupSubject getGroup(); - public V1beta2GroupSubject buildGroup(); - public A withGroup(V1beta2GroupSubject group); - public Boolean hasGroup(); - public V1beta2SubjectFluent.GroupNested withNewGroup(); - public V1beta2SubjectFluent.GroupNested withNewGroupLike(V1beta2GroupSubject item); - public V1beta2SubjectFluent.GroupNested editGroup(); - public V1beta2SubjectFluent.GroupNested editOrNewGroup(); - public V1beta2SubjectFluent.GroupNested editOrNewGroupLike(V1beta2GroupSubject item); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildServiceAccount instead. - * * @return The buildable object. */ @Deprecated public V1beta2ServiceAccountSubject getServiceAccount(); - public V1beta2ServiceAccountSubject buildServiceAccount(); - public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount); - public Boolean hasServiceAccount(); - public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccount(); - - public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccountLike( - V1beta2ServiceAccountSubject item); - + public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccountLike(V1beta2ServiceAccountSubject item); public V1beta2SubjectFluent.ServiceAccountNested editServiceAccount(); - public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccount(); - - public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( - V1beta2ServiceAccountSubject item); - + public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike(V1beta2ServiceAccountSubject item); + /** * This method has been deprecated, please use method buildUser instead. - * * @return The buildable object. */ @Deprecated public V1beta2UserSubject getUser(); - public V1beta2UserSubject buildUser(); - public A withUser(V1beta2UserSubject user); - public Boolean hasUser(); - public V1beta2SubjectFluent.UserNested withNewUser(); - public V1beta2SubjectFluent.UserNested withNewUserLike(V1beta2UserSubject item); - public V1beta2SubjectFluent.UserNested editUser(); - public V1beta2SubjectFluent.UserNested editOrNewUser(); - public V1beta2SubjectFluent.UserNested editOrNewUserLike(V1beta2UserSubject item); - - public interface GroupNested - extends Nested, V1beta2GroupSubjectFluent> { + public interface GroupNested extends Nested,V1beta2GroupSubjectFluent>{ public N and(); - public N endGroup(); + } - - public interface ServiceAccountNested - extends Nested, - V1beta2ServiceAccountSubjectFluent> { + public interface ServiceAccountNested extends Nested,V1beta2ServiceAccountSubjectFluent>{ public N and(); - public N endServiceAccount(); + } - - public interface UserNested - extends Nested, V1beta2UserSubjectFluent> { + public interface UserNested extends Nested,V1beta2UserSubjectFluent>{ public N and(); - public N endUser(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java index a51aec86b2..a9333655c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2SubjectFluentImpl> extends BaseFluent - implements V1beta2SubjectFluent { - public V1beta2SubjectFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2SubjectFluentImpl> extends BaseFluent implements V1beta2SubjectFluent{ + public V1beta2SubjectFluentImpl() { + } public V1beta2SubjectFluentImpl(V1beta2Subject instance) { this.withGroup(instance.getGroup()); @@ -29,284 +23,193 @@ public V1beta2SubjectFluentImpl(V1beta2Subject instance) { this.withServiceAccount(instance.getServiceAccount()); this.withUser(instance.getUser()); - } + } private V1beta2GroupSubjectBuilder group; private String kind; private V1beta2ServiceAccountSubjectBuilder serviceAccount; private V1beta2UserSubjectBuilder user; - + /** * This method has been deprecated, please use method buildGroup instead. - * * @return The buildable object. */ @Deprecated public V1beta2GroupSubject getGroup() { - return this.group != null ? this.group.build() : null; + return this.group!=null ?this.group.build():null; } - public V1beta2GroupSubject buildGroup() { - return this.group != null ? this.group.build() : null; + return this.group!=null ?this.group.build():null; } - public A withGroup(V1beta2GroupSubject group) { _visitables.get("group").remove(this.group); - if (group != null) { - this.group = new V1beta2GroupSubjectBuilder(group); - _visitables.get("group").add(this.group); - } else { - this.group = null; - _visitables.get("group").remove(this.group); - } - return (A) this; + if (group!=null){ this.group= new V1beta2GroupSubjectBuilder(group); _visitables.get("group").add(this.group);} else { this.group = null; _visitables.get("group").remove(this.group); } return (A) this; } - public Boolean hasGroup() { return this.group != null; } - public V1beta2SubjectFluent.GroupNested withNewGroup() { return new V1beta2SubjectFluentImpl.GroupNestedImpl(); } - public V1beta2SubjectFluent.GroupNested withNewGroupLike(V1beta2GroupSubject item) { return new V1beta2SubjectFluentImpl.GroupNestedImpl(item); } - public V1beta2SubjectFluent.GroupNested editGroup() { return withNewGroupLike(getGroup()); } - public V1beta2SubjectFluent.GroupNested editOrNewGroup() { - return withNewGroupLike( - getGroup() != null ? getGroup() : new V1beta2GroupSubjectBuilder().build()); + return withNewGroupLike(getGroup() != null ? getGroup(): new V1beta2GroupSubjectBuilder().build()); } - public V1beta2SubjectFluent.GroupNested editOrNewGroupLike(V1beta2GroupSubject item) { - return withNewGroupLike(getGroup() != null ? getGroup() : item); + return withNewGroupLike(getGroup() != null ? getGroup(): item); } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildServiceAccount instead. - * * @return The buildable object. */ @Deprecated public V1beta2ServiceAccountSubject getServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; + return this.serviceAccount!=null ?this.serviceAccount.build():null; } - public V1beta2ServiceAccountSubject buildServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; + return this.serviceAccount!=null ?this.serviceAccount.build():null; } - public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount) { _visitables.get("serviceAccount").remove(this.serviceAccount); - if (serviceAccount != null) { - this.serviceAccount = new V1beta2ServiceAccountSubjectBuilder(serviceAccount); - _visitables.get("serviceAccount").add(this.serviceAccount); - } else { - this.serviceAccount = null; - _visitables.get("serviceAccount").remove(this.serviceAccount); - } - return (A) this; + if (serviceAccount!=null){ this.serviceAccount= new V1beta2ServiceAccountSubjectBuilder(serviceAccount); _visitables.get("serviceAccount").add(this.serviceAccount);} else { this.serviceAccount = null; _visitables.get("serviceAccount").remove(this.serviceAccount); } return (A) this; } - public Boolean hasServiceAccount() { return this.serviceAccount != null; } - public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccount() { return new V1beta2SubjectFluentImpl.ServiceAccountNestedImpl(); } - - public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccountLike( - V1beta2ServiceAccountSubject item) { + public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccountLike(V1beta2ServiceAccountSubject item) { return new V1beta2SubjectFluentImpl.ServiceAccountNestedImpl(item); } - public V1beta2SubjectFluent.ServiceAccountNested editServiceAccount() { return withNewServiceAccountLike(getServiceAccount()); } - public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccount() { - return withNewServiceAccountLike( - getServiceAccount() != null - ? getServiceAccount() - : new V1beta2ServiceAccountSubjectBuilder().build()); + return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount(): new V1beta2ServiceAccountSubjectBuilder().build()); } - - public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( - V1beta2ServiceAccountSubject item) { - return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount() : item); + public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike(V1beta2ServiceAccountSubject item) { + return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount(): item); } - + /** * This method has been deprecated, please use method buildUser instead. - * * @return The buildable object. */ @Deprecated public V1beta2UserSubject getUser() { - return this.user != null ? this.user.build() : null; + return this.user!=null ?this.user.build():null; } - public V1beta2UserSubject buildUser() { - return this.user != null ? this.user.build() : null; + return this.user!=null ?this.user.build():null; } - public A withUser(V1beta2UserSubject user) { _visitables.get("user").remove(this.user); - if (user != null) { - this.user = new V1beta2UserSubjectBuilder(user); - _visitables.get("user").add(this.user); - } else { - this.user = null; - _visitables.get("user").remove(this.user); - } - return (A) this; + if (user!=null){ this.user= new V1beta2UserSubjectBuilder(user); _visitables.get("user").add(this.user);} else { this.user = null; _visitables.get("user").remove(this.user); } return (A) this; } - public Boolean hasUser() { return this.user != null; } - public V1beta2SubjectFluent.UserNested withNewUser() { return new V1beta2SubjectFluentImpl.UserNestedImpl(); } - public V1beta2SubjectFluent.UserNested withNewUserLike(V1beta2UserSubject item) { return new V1beta2SubjectFluentImpl.UserNestedImpl(item); } - public V1beta2SubjectFluent.UserNested editUser() { return withNewUserLike(getUser()); } - public V1beta2SubjectFluent.UserNested editOrNewUser() { - return withNewUserLike(getUser() != null ? getUser() : new V1beta2UserSubjectBuilder().build()); + return withNewUserLike(getUser() != null ? getUser(): new V1beta2UserSubjectBuilder().build()); } - public V1beta2SubjectFluent.UserNested editOrNewUserLike(V1beta2UserSubject item) { - return withNewUserLike(getUser() != null ? getUser() : item); + return withNewUserLike(getUser() != null ? getUser(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2SubjectFluentImpl that = (V1beta2SubjectFluentImpl) o; - if (group != null ? !group.equals(that.group) : that.group != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (serviceAccount != null - ? !serviceAccount.equals(that.serviceAccount) - : that.serviceAccount != null) return false; - if (user != null ? !user.equals(that.user) : that.user != null) return false; + if (group != null ? !group.equals(that.group) :that.group != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (serviceAccount != null ? !serviceAccount.equals(that.serviceAccount) :that.serviceAccount != null) return false; + if (user != null ? !user.equals(that.user) :that.user != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); + return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { - sb.append("group:"); - sb.append(group + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (serviceAccount != null) { - sb.append("serviceAccount:"); - sb.append(serviceAccount + ","); - } - if (user != null) { - sb.append("user:"); - sb.append(user); - } + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (serviceAccount != null) { sb.append("serviceAccount:"); sb.append(serviceAccount + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } sb.append("}"); return sb.toString(); } - - class GroupNestedImpl - extends V1beta2GroupSubjectFluentImpl> - implements V1beta2SubjectFluent.GroupNested, Nested { + class GroupNestedImpl extends V1beta2GroupSubjectFluentImpl> implements V1beta2SubjectFluent.GroupNested,Nested{ GroupNestedImpl(V1beta2GroupSubject item) { this.builder = new V1beta2GroupSubjectBuilder(this, item); } - GroupNestedImpl() { this.builder = new V1beta2GroupSubjectBuilder(this); } - V1beta2GroupSubjectBuilder builder; - public N and() { return (N) V1beta2SubjectFluentImpl.this.withGroup(builder.build()); } - public N endGroup() { return and(); } + } - - class ServiceAccountNestedImpl - extends V1beta2ServiceAccountSubjectFluentImpl> - implements V1beta2SubjectFluent.ServiceAccountNested, Nested { + class ServiceAccountNestedImpl extends V1beta2ServiceAccountSubjectFluentImpl> implements V1beta2SubjectFluent.ServiceAccountNested,Nested{ ServiceAccountNestedImpl(V1beta2ServiceAccountSubject item) { this.builder = new V1beta2ServiceAccountSubjectBuilder(this, item); } - ServiceAccountNestedImpl() { this.builder = new V1beta2ServiceAccountSubjectBuilder(this); } - V1beta2ServiceAccountSubjectBuilder builder; - public N and() { return (N) V1beta2SubjectFluentImpl.this.withServiceAccount(builder.build()); } - public N endServiceAccount() { return and(); } + } - - class UserNestedImpl extends V1beta2UserSubjectFluentImpl> - implements V1beta2SubjectFluent.UserNested, Nested { + class UserNestedImpl extends V1beta2UserSubjectFluentImpl> implements V1beta2SubjectFluent.UserNested,Nested{ UserNestedImpl(V1beta2UserSubject item) { this.builder = new V1beta2UserSubjectBuilder(this, item); } - UserNestedImpl() { this.builder = new V1beta2UserSubjectBuilder(this); } - V1beta2UserSubjectBuilder builder; - public N and() { return (N) V1beta2SubjectFluentImpl.this.withUser(builder.build()); } - public N endUser() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java index 81ea39a3de..6ad893053e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java @@ -1,68 +1,44 @@ -/* -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.VisitableBuilder; - -public class V1beta2UserSubjectBuilder - extends V1beta2UserSubjectFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V1beta2UserSubjectBuilder extends V1beta2UserSubjectFluentImpl implements VisitableBuilder{ public V1beta2UserSubjectBuilder() { this(false); } - public V1beta2UserSubjectBuilder(Boolean validationEnabled) { this(new V1beta2UserSubject(), validationEnabled); } - public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent) { this(fluent, false); } - - public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent, Boolean validationEnabled) { + public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent,Boolean validationEnabled) { this(fluent, new V1beta2UserSubject(), validationEnabled); } - - public V1beta2UserSubjectBuilder( - V1beta2UserSubjectFluent fluent, V1beta2UserSubject instance) { + public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent,V1beta2UserSubject instance) { this(fluent, instance, false); } - - public V1beta2UserSubjectBuilder( - V1beta2UserSubjectFluent fluent, V1beta2UserSubject instance, Boolean validationEnabled) { - this.fluent = fluent; + public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent,V1beta2UserSubject instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V1beta2UserSubjectBuilder(V1beta2UserSubject instance) { - this(instance, false); + this(instance,false); } - - public V1beta2UserSubjectBuilder(V1beta2UserSubject instance, Boolean validationEnabled) { - this.fluent = this; + public V1beta2UserSubjectBuilder(V1beta2UserSubject instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V1beta2UserSubjectFluent fluent; Boolean validationEnabled; - public V1beta2UserSubject build() { V1beta2UserSubject buildable = new V1beta2UserSubject(); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java index 040c9b2b87..c1499ad0da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java @@ -1,24 +1,15 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V1beta2UserSubjectFluent> extends Fluent { + /** + * Generated + */ +public interface V1beta2UserSubjectFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java index c94a91194a..8b70256362 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java @@ -1,64 +1,48 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta2UserSubjectFluentImpl> - extends BaseFluent implements V1beta2UserSubjectFluent { - public V1beta2UserSubjectFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V1beta2UserSubjectFluentImpl> extends BaseFluent implements V1beta2UserSubjectFluent{ + public V1beta2UserSubjectFluentImpl() { + } public V1beta2UserSubjectFluentImpl(V1beta2UserSubject instance) { this.withName(instance.getName()); - } + } private String name; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1beta2UserSubjectFluentImpl that = (V1beta2UserSubjectFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java index d059665284..050ff7b2a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2ContainerResourceMetricSourceBuilder - extends V2ContainerResourceMetricSourceFluentImpl - implements VisitableBuilder< - V2ContainerResourceMetricSource, V2ContainerResourceMetricSourceBuilder> { +import java.lang.Boolean; +public class V2ContainerResourceMetricSourceBuilder extends V2ContainerResourceMetricSourceFluentImpl implements VisitableBuilder{ public V2ContainerResourceMetricSourceBuilder() { this(false); } - public V2ContainerResourceMetricSourceBuilder(Boolean validationEnabled) { this(new V2ContainerResourceMetricSource(), validationEnabled); } - public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent) { this(fluent, false); } - - public V2ContainerResourceMetricSourceBuilder( - V2ContainerResourceMetricSourceFluent fluent, Boolean validationEnabled) { + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2ContainerResourceMetricSource(), validationEnabled); } - - public V2ContainerResourceMetricSourceBuilder( - V2ContainerResourceMetricSourceFluent fluent, V2ContainerResourceMetricSource instance) { + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,V2ContainerResourceMetricSource instance) { this(fluent, instance, false); } - - public V2ContainerResourceMetricSourceBuilder( - V2ContainerResourceMetricSourceFluent fluent, - V2ContainerResourceMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,V2ContainerResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainer(instance.getContainer()); fluent.withName(instance.getName()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2ContainerResourceMetricSourceBuilder( - V2ContainerResourceMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withContainer(instance.getContainer()); this.withName(instance.getName()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ContainerResourceMetricSourceFluent fluent; Boolean validationEnabled; - public V2ContainerResourceMetricSource build() { V2ContainerResourceMetricSource buildable = new V2ContainerResourceMetricSource(); buildable.setContainer(fluent.getContainer()); @@ -80,4 +50,5 @@ public V2ContainerResourceMetricSource build() { buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java index e8a3ac0f0a..bc31811cd8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java @@ -1,67 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2ContainerResourceMetricSourceFluent< - A extends V2ContainerResourceMetricSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V2ContainerResourceMetricSourceFluent> extends Fluent{ public String getContainer(); - public A withContainer(String container); - public Boolean hasContainer(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget(); - public V2MetricTarget buildTarget(); - public A withTarget(V2MetricTarget target); - public Boolean hasTarget(); - public V2ContainerResourceMetricSourceFluent.TargetNested withNewTarget(); - - public V2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( - V2MetricTarget item); - + public V2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); public V2ContainerResourceMetricSourceFluent.TargetNested editTarget(); - public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget(); - - public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( - V2MetricTarget item); - - public interface TargetNested - extends Nested, - V2MetricTargetFluent> { + public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); + public interface TargetNested extends Nested,V2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java index 5a8a2fb0b5..5acefeb317 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java @@ -1,171 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ContainerResourceMetricSourceFluentImpl< - A extends V2ContainerResourceMetricSourceFluent> - extends BaseFluent implements V2ContainerResourceMetricSourceFluent { - public V2ContainerResourceMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ContainerResourceMetricSourceFluentImpl> extends BaseFluent implements V2ContainerResourceMetricSourceFluent{ + public V2ContainerResourceMetricSourceFluentImpl() { + } public V2ContainerResourceMetricSourceFluentImpl(V2ContainerResourceMetricSource instance) { this.withContainer(instance.getContainer()); this.withName(instance.getName()); this.withTarget(instance.getTarget()); - } + } private String container; private String name; private V2MetricTargetBuilder target; - public String getContainer() { return this.container; } - public A withContainer(String container) { - this.container = container; - return (A) this; + this.container=container; return (A) this; } - public Boolean hasContainer() { return this.container != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2ContainerResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(); } - - public V2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( - V2MetricTarget item) { + public V2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { return new V2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2ContainerResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2MetricTargetBuilder().build()); } - - public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( - V2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ContainerResourceMetricSourceFluentImpl that = (V2ContainerResourceMetricSourceFluentImpl) o; - if (container != null ? !container.equals(that.container) : that.container != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (container != null ? !container.equals(that.container) :that.container != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(container, name, target, super.hashCode()); + return java.util.Objects.hash(container, name, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (container != null) { - sb.append("container:"); - sb.append(container + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (container != null) { sb.append("container:"); sb.append(container + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class TargetNestedImpl - extends V2MetricTargetFluentImpl> - implements V2ContainerResourceMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2MetricTargetFluentImpl> implements V2ContainerResourceMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2MetricTargetBuilder(this); } - V2MetricTargetBuilder builder; - public N and() { return (N) V2ContainerResourceMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java index b84c73f088..8168a2978d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2ContainerResourceMetricStatusBuilder - extends V2ContainerResourceMetricStatusFluentImpl - implements VisitableBuilder< - V2ContainerResourceMetricStatus, V2ContainerResourceMetricStatusBuilder> { +import java.lang.Boolean; +public class V2ContainerResourceMetricStatusBuilder extends V2ContainerResourceMetricStatusFluentImpl implements VisitableBuilder{ public V2ContainerResourceMetricStatusBuilder() { this(false); } - public V2ContainerResourceMetricStatusBuilder(Boolean validationEnabled) { this(new V2ContainerResourceMetricStatus(), validationEnabled); } - public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent) { this(fluent, false); } - - public V2ContainerResourceMetricStatusBuilder( - V2ContainerResourceMetricStatusFluent fluent, Boolean validationEnabled) { + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2ContainerResourceMetricStatus(), validationEnabled); } - - public V2ContainerResourceMetricStatusBuilder( - V2ContainerResourceMetricStatusFluent fluent, V2ContainerResourceMetricStatus instance) { + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,V2ContainerResourceMetricStatus instance) { this(fluent, instance, false); } - - public V2ContainerResourceMetricStatusBuilder( - V2ContainerResourceMetricStatusFluent fluent, - V2ContainerResourceMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,V2ContainerResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainer(instance.getContainer()); fluent.withCurrent(instance.getCurrent()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2ContainerResourceMetricStatusBuilder( - V2ContainerResourceMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withContainer(instance.getContainer()); this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ContainerResourceMetricStatusFluent fluent; Boolean validationEnabled; - public V2ContainerResourceMetricStatus build() { V2ContainerResourceMetricStatus buildable = new V2ContainerResourceMetricStatus(); buildable.setContainer(fluent.getContainer()); @@ -80,4 +50,5 @@ public V2ContainerResourceMetricStatus build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java index 8a4f26145b..f0c76c154d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java @@ -1,67 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2ContainerResourceMetricStatusFluent< - A extends V2ContainerResourceMetricStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V2ContainerResourceMetricStatusFluent> extends Fluent{ public String getContainer(); - public A withContainer(String container); - public Boolean hasContainer(); - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent(); - public V2MetricValueStatus buildCurrent(); - public A withCurrent(V2MetricValueStatus current); - public Boolean hasCurrent(); - public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent(); - - public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2MetricValueStatus item); - + public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); public V2ContainerResourceMetricStatusFluent.CurrentNested editCurrent(); - public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item); - + public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); public String getName(); - public A withName(String name); - public Boolean hasName(); - - public interface CurrentNested - extends Nested, - V2MetricValueStatusFluent> { + public interface CurrentNested extends Nested,V2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java index 13e3468671..2d11f7215b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java @@ -1,171 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ContainerResourceMetricStatusFluentImpl< - A extends V2ContainerResourceMetricStatusFluent> - extends BaseFluent implements V2ContainerResourceMetricStatusFluent { - public V2ContainerResourceMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ContainerResourceMetricStatusFluentImpl> extends BaseFluent implements V2ContainerResourceMetricStatusFluent{ + public V2ContainerResourceMetricStatusFluentImpl() { + } public V2ContainerResourceMetricStatusFluentImpl(V2ContainerResourceMetricStatus instance) { this.withContainer(instance.getContainer()); this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - } + } private String container; private V2MetricValueStatusBuilder current; private String name; - public String getContainer() { return this.container; } - public A withContainer(String container) { - this.container = container; - return (A) this; + this.container=container; return (A) this; } - public Boolean hasContainer() { return this.container != null; } - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2MetricValueStatus item) { + public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2ContainerResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2MetricValueStatusBuilder().build()); } - - public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ContainerResourceMetricStatusFluentImpl that = (V2ContainerResourceMetricStatusFluentImpl) o; - if (container != null ? !container.equals(that.container) : that.container != null) - return false; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (container != null ? !container.equals(that.container) :that.container != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(container, current, name, super.hashCode()); + return java.util.Objects.hash(container, current, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (container != null) { - sb.append("container:"); - sb.append(container + ","); - } - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (container != null) { sb.append("container:"); sb.append(container + ","); } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2MetricValueStatusFluentImpl> - implements V2ContainerResourceMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> implements V2ContainerResourceMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2MetricValueStatusBuilder(this); } - V2MetricValueStatusBuilder builder; - public N and() { return (N) V2ContainerResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java index 1fa0d65042..ca88f0303b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java @@ -1,78 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2CrossVersionObjectReferenceBuilder - extends V2CrossVersionObjectReferenceFluentImpl - implements VisitableBuilder< - V2CrossVersionObjectReference, V2CrossVersionObjectReferenceBuilder> { +import java.lang.Boolean; +public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluentImpl implements VisitableBuilder{ public V2CrossVersionObjectReferenceBuilder() { this(false); } - public V2CrossVersionObjectReferenceBuilder(Boolean validationEnabled) { this(new V2CrossVersionObjectReference(), validationEnabled); } - public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent) { this(fluent, false); } - - public V2CrossVersionObjectReferenceBuilder( - V2CrossVersionObjectReferenceFluent fluent, Boolean validationEnabled) { + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V2CrossVersionObjectReference(), validationEnabled); } - - public V2CrossVersionObjectReferenceBuilder( - V2CrossVersionObjectReferenceFluent fluent, V2CrossVersionObjectReference instance) { + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance) { this(fluent, instance, false); } - - public V2CrossVersionObjectReferenceBuilder( - V2CrossVersionObjectReferenceFluent fluent, - V2CrossVersionObjectReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V2CrossVersionObjectReferenceBuilder( - V2CrossVersionObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2CrossVersionObjectReferenceFluent fluent; Boolean validationEnabled; - public V2CrossVersionObjectReference build() { V2CrossVersionObjectReference buildable = new V2CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -80,4 +50,5 @@ public V2CrossVersionObjectReference build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java index 35983b9e95..f69ea7711d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java @@ -1,38 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2CrossVersionObjectReferenceFluent< - A extends V2CrossVersionObjectReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V2CrossVersionObjectReferenceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java index ac139f0d3a..81d8e42c24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java @@ -1,108 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2CrossVersionObjectReferenceFluentImpl< - A extends V2CrossVersionObjectReferenceFluent> - extends BaseFluent implements V2CrossVersionObjectReferenceFluent { - public V2CrossVersionObjectReferenceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2CrossVersionObjectReferenceFluentImpl> extends BaseFluent implements V2CrossVersionObjectReferenceFluent{ + public V2CrossVersionObjectReferenceFluentImpl() { + } public V2CrossVersionObjectReferenceFluentImpl(V2CrossVersionObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withName(instance.getName()); - } + } private String apiVersion; private String kind; private String name; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2CrossVersionObjectReferenceFluentImpl that = (V2CrossVersionObjectReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java index 135e3482f6..baa2ed0689 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2ExternalMetricSourceBuilder - extends V2ExternalMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2ExternalMetricSourceBuilder extends V2ExternalMetricSourceFluentImpl implements VisitableBuilder{ public V2ExternalMetricSourceBuilder() { this(false); } - public V2ExternalMetricSourceBuilder(Boolean validationEnabled) { this(new V2ExternalMetricSource(), validationEnabled); } - public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent) { this(fluent, false); } - - public V2ExternalMetricSourceBuilder( - V2ExternalMetricSourceFluent fluent, Boolean validationEnabled) { + public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2ExternalMetricSource(), validationEnabled); } - - public V2ExternalMetricSourceBuilder( - V2ExternalMetricSourceFluent fluent, V2ExternalMetricSource instance) { + public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,V2ExternalMetricSource instance) { this(fluent, instance, false); } - - public V2ExternalMetricSourceBuilder( - V2ExternalMetricSourceFluent fluent, - V2ExternalMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,V2ExternalMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetric(instance.getMetric()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ExternalMetricSourceFluent fluent; Boolean validationEnabled; - public V2ExternalMetricSource build() { V2ExternalMetricSource buildable = new V2ExternalMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java index 38d4da0c29..160d507db1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java @@ -1,83 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2ExternalMetricSourceFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2ExternalMetricSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric(); - public V2MetricIdentifier buildMetric(); - public A withMetric(V2MetricIdentifier metric); - public Boolean hasMetric(); - public V2ExternalMetricSourceFluent.MetricNested withNewMetric(); - public V2ExternalMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public V2ExternalMetricSourceFluent.MetricNested editMetric(); - public V2ExternalMetricSourceFluent.MetricNested editOrNewMetric(); - public V2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget(); - public V2MetricTarget buildTarget(); - public A withTarget(V2MetricTarget target); - public Boolean hasTarget(); - public V2ExternalMetricSourceFluent.TargetNested withNewTarget(); - public V2ExternalMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public V2ExternalMetricSourceFluent.TargetNested editTarget(); - public V2ExternalMetricSourceFluent.TargetNested editOrNewTarget(); - public V2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); - - public interface MetricNested - extends Nested, V2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } - - public interface TargetNested - extends Nested, V2MetricTargetFluent> { + public interface TargetNested extends Nested,V2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java index 48b5a80f72..5165c098c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java @@ -1,206 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ExternalMetricSourceFluentImpl> - extends BaseFluent implements V2ExternalMetricSourceFluent { - public V2ExternalMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ExternalMetricSourceFluentImpl> extends BaseFluent implements V2ExternalMetricSourceFluent{ + public V2ExternalMetricSourceFluentImpl() { + } public V2ExternalMetricSourceFluentImpl(V2ExternalMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - } + } private V2MetricIdentifierBuilder metric; private V2MetricTargetBuilder target; - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2ExternalMetricSourceFluent.MetricNested withNewMetric() { return new V2ExternalMetricSourceFluentImpl.MetricNestedImpl(); } - public V2ExternalMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2ExternalMetricSourceFluentImpl.MetricNestedImpl(item); } - public V2ExternalMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2ExternalMetricSourceFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2MetricIdentifierBuilder().build()); } - public V2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2ExternalMetricSourceFluent.TargetNested withNewTarget() { return new V2ExternalMetricSourceFluentImpl.TargetNestedImpl(); } - public V2ExternalMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { return new V2ExternalMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2ExternalMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2ExternalMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2MetricTargetBuilder().build()); } - public V2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ExternalMetricSourceFluentImpl that = (V2ExternalMetricSourceFluentImpl) o; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); + return java.util.Objects.hash(metric, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metric != null) { - sb.append("metric:"); - sb.append(metric + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class MetricNestedImpl - extends V2MetricIdentifierFluentImpl> - implements V2ExternalMetricSourceFluent.MetricNested, Nested { + class MetricNestedImpl extends V2MetricIdentifierFluentImpl> implements V2ExternalMetricSourceFluent.MetricNested,Nested{ MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2MetricIdentifierBuilder(this); } - V2MetricIdentifierBuilder builder; - public N and() { return (N) V2ExternalMetricSourceFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } - - class TargetNestedImpl - extends V2MetricTargetFluentImpl> - implements V2ExternalMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2MetricTargetFluentImpl> implements V2ExternalMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2MetricTargetBuilder(this); } - V2MetricTargetBuilder builder; - public N and() { return (N) V2ExternalMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java index 852f39aa87..c16b9538e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2ExternalMetricStatusBuilder - extends V2ExternalMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2ExternalMetricStatusBuilder extends V2ExternalMetricStatusFluentImpl implements VisitableBuilder{ public V2ExternalMetricStatusBuilder() { this(false); } - public V2ExternalMetricStatusBuilder(Boolean validationEnabled) { this(new V2ExternalMetricStatus(), validationEnabled); } - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent) { this(fluent, false); } - - public V2ExternalMetricStatusBuilder( - V2ExternalMetricStatusFluent fluent, Boolean validationEnabled) { + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2ExternalMetricStatus(), validationEnabled); } - - public V2ExternalMetricStatusBuilder( - V2ExternalMetricStatusFluent fluent, V2ExternalMetricStatus instance) { + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,V2ExternalMetricStatus instance) { this(fluent, instance, false); } - - public V2ExternalMetricStatusBuilder( - V2ExternalMetricStatusFluent fluent, - V2ExternalMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,V2ExternalMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ExternalMetricStatusFluent fluent; Boolean validationEnabled; - public V2ExternalMetricStatus build() { V2ExternalMetricStatus buildable = new V2ExternalMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java index 0dac9cf98d..95974c96ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java @@ -1,84 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2ExternalMetricStatusFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2ExternalMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent(); - public V2MetricValueStatus buildCurrent(); - public A withCurrent(V2MetricValueStatus current); - public Boolean hasCurrent(); - public V2ExternalMetricStatusFluent.CurrentNested withNewCurrent(); - public V2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public V2ExternalMetricStatusFluent.CurrentNested editCurrent(); - public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item); - + public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric(); - public V2MetricIdentifier buildMetric(); - public A withMetric(V2MetricIdentifier metric); - public Boolean hasMetric(); - public V2ExternalMetricStatusFluent.MetricNested withNewMetric(); - public V2ExternalMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public V2ExternalMetricStatusFluent.MetricNested editMetric(); - public V2ExternalMetricStatusFluent.MetricNested editOrNewMetric(); - public V2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); - - public interface CurrentNested - extends Nested, V2MetricValueStatusFluent> { + public interface CurrentNested extends Nested,V2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } - - public interface MetricNested - extends Nested, V2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java index 1ded2679c9..e66caba8fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java @@ -1,208 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ExternalMetricStatusFluentImpl> - extends BaseFluent implements V2ExternalMetricStatusFluent { - public V2ExternalMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ExternalMetricStatusFluentImpl> extends BaseFluent implements V2ExternalMetricStatusFluent{ + public V2ExternalMetricStatusFluentImpl() { + } public V2ExternalMetricStatusFluentImpl(V2ExternalMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - } + } private V2MetricValueStatusBuilder current; private V2MetricIdentifierBuilder metric; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2ExternalMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ExternalMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike( - V2MetricValueStatus item) { + public V2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2ExternalMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2ExternalMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2MetricValueStatusBuilder().build()); } - - public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2ExternalMetricStatusFluent.MetricNested withNewMetric() { return new V2ExternalMetricStatusFluentImpl.MetricNestedImpl(); } - public V2ExternalMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2ExternalMetricStatusFluentImpl.MetricNestedImpl(item); } - public V2ExternalMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2ExternalMetricStatusFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2MetricIdentifierBuilder().build()); } - public V2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ExternalMetricStatusFluentImpl that = (V2ExternalMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); + return java.util.Objects.hash(current, metric, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2MetricValueStatusFluentImpl> - implements V2ExternalMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> implements V2ExternalMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2MetricValueStatusBuilder(this); } - V2MetricValueStatusBuilder builder; - public N and() { return (N) V2ExternalMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } - - class MetricNestedImpl - extends V2MetricIdentifierFluentImpl> - implements V2ExternalMetricStatusFluent.MetricNested, Nested { + class MetricNestedImpl extends V2MetricIdentifierFluentImpl> implements V2ExternalMetricStatusFluent.MetricNested,Nested{ MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2MetricIdentifierBuilder(this); } - V2MetricIdentifierBuilder builder; - public N and() { return (N) V2ExternalMetricStatusFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java index ba31befb47..02fbbeda45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java @@ -1,73 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2HPAScalingPolicyBuilder - extends V2HPAScalingPolicyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2HPAScalingPolicyBuilder extends V2HPAScalingPolicyFluentImpl implements VisitableBuilder{ public V2HPAScalingPolicyBuilder() { this(false); } - public V2HPAScalingPolicyBuilder(Boolean validationEnabled) { this(new V2HPAScalingPolicy(), validationEnabled); } - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent) { this(fluent, false); } - - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent, Boolean validationEnabled) { + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,Boolean validationEnabled) { this(fluent, new V2HPAScalingPolicy(), validationEnabled); } - - public V2HPAScalingPolicyBuilder( - V2HPAScalingPolicyFluent fluent, V2HPAScalingPolicy instance) { + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,V2HPAScalingPolicy instance) { this(fluent, instance, false); } - - public V2HPAScalingPolicyBuilder( - V2HPAScalingPolicyFluent fluent, V2HPAScalingPolicy instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,V2HPAScalingPolicy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPeriodSeconds(instance.getPeriodSeconds()); fluent.withType(instance.getType()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance) { - this(instance, false); + this(instance,false); } - - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance, Boolean validationEnabled) { - this.fluent = this; + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance,Boolean validationEnabled) { + this.fluent = this; this.withPeriodSeconds(instance.getPeriodSeconds()); this.withType(instance.getType()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HPAScalingPolicyFluent fluent; Boolean validationEnabled; - public V2HPAScalingPolicy build() { V2HPAScalingPolicy buildable = new V2HPAScalingPolicy(); buildable.setPeriodSeconds(fluent.getPeriodSeconds()); @@ -75,4 +50,5 @@ public V2HPAScalingPolicy build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java index f751d5b8fc..16dd30f90e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java @@ -1,36 +1,22 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2HPAScalingPolicyFluent> extends Fluent { + /** + * Generated + */ +public interface V2HPAScalingPolicyFluent> extends Fluent{ public Integer getPeriodSeconds(); - public A withPeriodSeconds(Integer periodSeconds); - public Boolean hasPeriodSeconds(); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public Integer getValue(); - public A withValue(Integer value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java index 433d2fa05b..682c930fa9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java @@ -1,108 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HPAScalingPolicyFluentImpl> - extends BaseFluent implements V2HPAScalingPolicyFluent { - public V2HPAScalingPolicyFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HPAScalingPolicyFluentImpl> extends BaseFluent implements V2HPAScalingPolicyFluent{ + public V2HPAScalingPolicyFluentImpl() { + } public V2HPAScalingPolicyFluentImpl(V2HPAScalingPolicy instance) { this.withPeriodSeconds(instance.getPeriodSeconds()); this.withType(instance.getType()); this.withValue(instance.getValue()); - } + } private Integer periodSeconds; private String type; private Integer value; - public Integer getPeriodSeconds() { return this.periodSeconds; } - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; + this.periodSeconds=periodSeconds; return (A) this; } - public Boolean hasPeriodSeconds() { return this.periodSeconds != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public Integer getValue() { return this.value; } - public A withValue(Integer value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2HPAScalingPolicyFluentImpl that = (V2HPAScalingPolicyFluentImpl) o; - if (periodSeconds != null - ? !periodSeconds.equals(that.periodSeconds) - : that.periodSeconds != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (periodSeconds != null ? !periodSeconds.equals(that.periodSeconds) :that.periodSeconds != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); + return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (periodSeconds != null) { - sb.append("periodSeconds:"); - sb.append(periodSeconds + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } + if (type != null) { sb.append("type:"); sb.append(type + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java index b3991d974d..f8642acb59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java @@ -1,71 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluentImpl implements VisitableBuilder{ public V2HPAScalingRulesBuilder() { this(false); } - public V2HPAScalingRulesBuilder(Boolean validationEnabled) { this(new V2HPAScalingRules(), validationEnabled); } - public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent) { this(fluent, false); } - - public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent, Boolean validationEnabled) { + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,Boolean validationEnabled) { this(fluent, new V2HPAScalingRules(), validationEnabled); } - - public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent, V2HPAScalingRules instance) { + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,V2HPAScalingRules instance) { this(fluent, instance, false); } - - public V2HPAScalingRulesBuilder( - V2HPAScalingRulesFluent fluent, V2HPAScalingRules instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,V2HPAScalingRules instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPolicies(instance.getPolicies()); fluent.withSelectPolicy(instance.getSelectPolicy()); fluent.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HPAScalingRulesBuilder(V2HPAScalingRules instance) { - this(instance, false); + this(instance,false); } - - public V2HPAScalingRulesBuilder(V2HPAScalingRules instance, Boolean validationEnabled) { - this.fluent = this; + public V2HPAScalingRulesBuilder(V2HPAScalingRules instance,Boolean validationEnabled) { + this.fluent = this; this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HPAScalingRulesFluent fluent; Boolean validationEnabled; - public V2HPAScalingRules build() { V2HPAScalingRules buildable = new V2HPAScalingRules(); buildable.setPolicies(fluent.getPolicies()); @@ -73,4 +50,5 @@ public V2HPAScalingRules build() { buildable.setStabilizationWindowSeconds(fluent.getStabilizationWindowSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java index 8665f16b05..8a649383c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java @@ -1,97 +1,62 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2HPAScalingRulesFluent> extends Fluent { - public A addToPolicies(Integer index, V2HPAScalingPolicy item); - - public A setToPolicies(Integer index, V2HPAScalingPolicy item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2HPAScalingRulesFluent> extends Fluent{ + public A addToPolicies(Integer index,V2HPAScalingPolicy item); + public A setToPolicies(Integer index,V2HPAScalingPolicy item); public A addToPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items); - public A addAllToPolicies(Collection items); - public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items); - public A removeAllFromPolicies(Collection items); - public A removeMatchingFromPolicies(Predicate predicate); - + /** * This method has been deprecated, please use method buildPolicies instead. - * * @return The buildable object. */ @Deprecated public List getPolicies(); - public List buildPolicies(); - public V2HPAScalingPolicy buildPolicy(Integer index); - public V2HPAScalingPolicy buildFirstPolicy(); - public V2HPAScalingPolicy buildLastPolicy(); - public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate); - public Boolean hasMatchingPolicy(Predicate predicate); - public A withPolicies(List policies); - public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... policies); - public Boolean hasPolicies(); - public V2HPAScalingRulesFluent.PoliciesNested addNewPolicy(); - public V2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item); - - public V2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( - Integer index, V2HPAScalingPolicy item); - + public V2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike(Integer index,V2HPAScalingPolicy item); public V2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index); - public V2HPAScalingRulesFluent.PoliciesNested editFirstPolicy(); - public V2HPAScalingRulesFluent.PoliciesNested editLastPolicy(); - - public V2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( - Predicate predicate); - + public V2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy(Predicate predicate); public String getSelectPolicy(); - public A withSelectPolicy(String selectPolicy); - public Boolean hasSelectPolicy(); - public Integer getStabilizationWindowSeconds(); - public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds); - public Boolean hasStabilizationWindowSeconds(); - - public interface PoliciesNested - extends Nested, V2HPAScalingPolicyFluent> { + public interface PoliciesNested extends Nested,V2HPAScalingPolicyFluent>{ public N and(); - public N endPolicy(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java index 70754dc7e4..6d11bf5c49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java @@ -1,119 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HPAScalingRulesFluentImpl> extends BaseFluent - implements V2HPAScalingRulesFluent { - public V2HPAScalingRulesFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HPAScalingRulesFluentImpl> extends BaseFluent implements V2HPAScalingRulesFluent{ + public V2HPAScalingRulesFluentImpl() { + } public V2HPAScalingRulesFluentImpl(V2HPAScalingRules instance) { this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - } + } private ArrayList policies; private String selectPolicy; private Integer stabilizationWindowSeconds; - - public A addToPolicies(Integer index, V2HPAScalingPolicy item) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables - .get("policies") - .add(index >= 0 ? index : _visitables.get("policies").size(), builder); - this.policies.add(index >= 0 ? index : policies.size(), builder); - return (A) this; + public A addToPolicies(Integer index,V2HPAScalingPolicy item) { + if (this.policies == null) {this.policies = new ArrayList();} + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(index >= 0 ? index : _visitables.get("policies").size(), builder);this.policies.add(index >= 0 ? index : policies.size(), builder); return (A)this; } - - public A setToPolicies(Integer index, V2HPAScalingPolicy item) { - if (this.policies == null) { - this.policies = new ArrayList(); - } + public A setToPolicies(Integer index,V2HPAScalingPolicy item) { + if (this.policies == null) {this.policies = new ArrayList();} V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= _visitables.get("policies").size()) { - _visitables.get("policies").add(builder); - } else { - _visitables.get("policies").set(index, builder); - } - if (index < 0 || index >= policies.size()) { - policies.add(builder); - } else { - policies.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("policies").size()) { _visitables.get("policies").add(builder); } else { _visitables.get("policies").set(index, builder);} + if (index < 0 || index >= policies.size()) { policies.add(builder); } else { policies.set(index, builder);} + return (A)this; } - public A addToPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").add(builder); - this.policies.add(builder); - } - return (A) this; + if (this.policies == null) {this.policies = new ArrayList();} + for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; } - public A addAllToPolicies(Collection items) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").add(builder); - this.policies.add(builder); - } - return (A) this; + if (this.policies == null) {this.policies = new ArrayList();} + for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; } - public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").remove(builder); - if (this.policies != null) { - this.policies.remove(builder); - } - } - return (A) this; + for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder);if (this.policies != null) {this.policies.remove(builder);}} return (A)this; } - public A removeAllFromPolicies(Collection items) { - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").remove(builder); - if (this.policies != null) { - this.policies.remove(builder); - } - } - return (A) this; + for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder);if (this.policies != null) {this.policies.remove(builder);}} return (A)this; } - public A removeMatchingFromPolicies(Predicate predicate) { if (policies == null) return (A) this; final Iterator each = policies.iterator(); @@ -125,213 +69,133 @@ public A removeMatchingFromPolicies(Predicate predica each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPolicies instead. - * * @return The buildable object. */ @Deprecated public List getPolicies() { return policies != null ? build(policies) : null; } - public List buildPolicies() { return policies != null ? build(policies) : null; } - public V2HPAScalingPolicy buildPolicy(Integer index) { return this.policies.get(index).build(); } - public V2HPAScalingPolicy buildFirstPolicy() { return this.policies.get(0).build(); } - public V2HPAScalingPolicy buildLastPolicy() { return this.policies.get(policies.size() - 1).build(); } - public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate) { - for (V2HPAScalingPolicyBuilder item : policies) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V2HPAScalingPolicyBuilder item: policies) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPolicy(Predicate predicate) { - for (V2HPAScalingPolicyBuilder item : policies) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2HPAScalingPolicyBuilder item: policies) { if(predicate.test(item)){ return true;} } return false; } - public A withPolicies(List policies) { - if (this.policies != null) { - _visitables.get("policies").removeAll(this.policies); - } - if (policies != null) { - this.policies = new ArrayList(); - for (V2HPAScalingPolicy item : policies) { - this.addToPolicies(item); - } - } else { - this.policies = null; - } - return (A) this; + if (this.policies != null) { _visitables.get("policies").removeAll(this.policies);} + if (policies != null) {this.policies = new ArrayList(); for (V2HPAScalingPolicy item : policies){this.addToPolicies(item);}} else { this.policies = null;} return (A) this; } - public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... policies) { - if (this.policies != null) { - this.policies.clear(); - } - if (policies != null) { - for (V2HPAScalingPolicy item : policies) { - this.addToPolicies(item); - } - } - return (A) this; + if (this.policies != null) {this.policies.clear();} + if (policies != null) {for (V2HPAScalingPolicy item :policies){ this.addToPolicies(item);}} return (A) this; } - public Boolean hasPolicies() { return policies != null && !policies.isEmpty(); } - public V2HPAScalingRulesFluent.PoliciesNested addNewPolicy() { return new V2HPAScalingRulesFluentImpl.PoliciesNestedImpl(); } - public V2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { return new V2HPAScalingRulesFluentImpl.PoliciesNestedImpl(-1, item); } - - public V2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( - Integer index, V2HPAScalingPolicy item) { + public V2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike(Integer index,V2HPAScalingPolicy item) { return new V2HPAScalingRulesFluentImpl.PoliciesNestedImpl(index, item); } - public V2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index) { - if (policies.size() <= index) - throw new RuntimeException("Can't edit policies. Index exceeds size."); + if (policies.size() <= index) throw new RuntimeException("Can't edit policies. Index exceeds size."); return setNewPolicyLike(index, buildPolicy(index)); } - public V2HPAScalingRulesFluent.PoliciesNested editFirstPolicy() { - if (policies.size() == 0) - throw new RuntimeException("Can't edit first policies. The list is empty."); + if (policies.size() == 0) throw new RuntimeException("Can't edit first policies. The list is empty."); return setNewPolicyLike(0, buildPolicy(0)); } - public V2HPAScalingRulesFluent.PoliciesNested editLastPolicy() { int index = policies.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last policies. The list is empty."); return setNewPolicyLike(index, buildPolicy(index)); } - - public V2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( - Predicate predicate) { + public V2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy(Predicate predicate) { int index = -1; - for (int i = 0; i < policies.size(); i++) { - if (predicate.test(policies.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V2HPAScalingPolicyFluentImpl> - implements V2HPAScalingRulesFluent.PoliciesNested, Nested { - PoliciesNestedImpl(Integer index, V2HPAScalingPolicy item) { + class PoliciesNestedImpl extends V2HPAScalingPolicyFluentImpl> implements V2HPAScalingRulesFluent.PoliciesNested,Nested{ + PoliciesNestedImpl(Integer index,V2HPAScalingPolicy item) { this.index = index; this.builder = new V2HPAScalingPolicyBuilder(this, item); } - PoliciesNestedImpl() { this.index = -1; this.builder = new V2HPAScalingPolicyBuilder(this); } - V2HPAScalingPolicyBuilder builder; Integer index; - public N and() { - return (N) V2HPAScalingRulesFluentImpl.this.setToPolicies(index, builder.build()); + return (N) V2HPAScalingRulesFluentImpl.this.setToPolicies(index,builder.build()); } - public N endPolicy() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java index 37fb752736..c2809a76a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java @@ -1,80 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2HorizontalPodAutoscalerBehaviorBuilder - extends V2HorizontalPodAutoscalerBehaviorFluentImpl - implements VisitableBuilder< - V2HorizontalPodAutoscalerBehavior, V2HorizontalPodAutoscalerBehaviorBuilder> { +import java.lang.Boolean; +public class V2HorizontalPodAutoscalerBehaviorBuilder extends V2HorizontalPodAutoscalerBehaviorFluentImpl implements VisitableBuilder{ public V2HorizontalPodAutoscalerBehaviorBuilder() { this(false); } - public V2HorizontalPodAutoscalerBehaviorBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscalerBehavior(), validationEnabled); } - - public V2HorizontalPodAutoscalerBehaviorBuilder( - V2HorizontalPodAutoscalerBehaviorFluent fluent) { + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent) { this(fluent, false); } - - public V2HorizontalPodAutoscalerBehaviorBuilder( - V2HorizontalPodAutoscalerBehaviorFluent fluent, Boolean validationEnabled) { + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerBehavior(), validationEnabled); } - - public V2HorizontalPodAutoscalerBehaviorBuilder( - V2HorizontalPodAutoscalerBehaviorFluent fluent, - V2HorizontalPodAutoscalerBehavior instance) { + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,V2HorizontalPodAutoscalerBehavior instance) { this(fluent, instance, false); } - - public V2HorizontalPodAutoscalerBehaviorBuilder( - V2HorizontalPodAutoscalerBehaviorFluent fluent, - V2HorizontalPodAutoscalerBehavior instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,V2HorizontalPodAutoscalerBehavior instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withScaleDown(instance.getScaleDown()); fluent.withScaleUp(instance.getScaleUp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavior instance) { - this(instance, false); + this(instance,false); } - - public V2HorizontalPodAutoscalerBehaviorBuilder( - V2HorizontalPodAutoscalerBehavior instance, Boolean validationEnabled) { - this.fluent = this; + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavior instance,Boolean validationEnabled) { + this.fluent = this; this.withScaleDown(instance.getScaleDown()); this.withScaleUp(instance.getScaleUp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HorizontalPodAutoscalerBehaviorFluent fluent; Boolean validationEnabled; - public V2HorizontalPodAutoscalerBehavior build() { V2HorizontalPodAutoscalerBehavior buildable = new V2HorizontalPodAutoscalerBehavior(); buildable.setScaleDown(fluent.getScaleDown()); buildable.setScaleUp(fluent.getScaleUp()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java index 7e6851c5a5..98d038cde8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java @@ -1,90 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2HorizontalPodAutoscalerBehaviorFluent< - A extends V2HorizontalPodAutoscalerBehaviorFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2HorizontalPodAutoscalerBehaviorFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildScaleDown instead. - * * @return The buildable object. */ @Deprecated public V2HPAScalingRules getScaleDown(); - public V2HPAScalingRules buildScaleDown(); - public A withScaleDown(V2HPAScalingRules scaleDown); - public Boolean hasScaleDown(); - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDown(); - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( - V2HPAScalingRules item); - + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item); public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown(); - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown(); - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( - V2HPAScalingRules item); - + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike(V2HPAScalingRules item); + /** * This method has been deprecated, please use method buildScaleUp instead. - * * @return The buildable object. */ @Deprecated public V2HPAScalingRules getScaleUp(); - public V2HPAScalingRules buildScaleUp(); - public A withScaleUp(V2HPAScalingRules scaleUp); - public Boolean hasScaleUp(); - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp(); - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( - V2HPAScalingRules item); - + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item); public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp(); - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp(); - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( - V2HPAScalingRules item); - - public interface ScaleDownNested - extends Nested, - V2HPAScalingRulesFluent> { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item); + public interface ScaleDownNested extends Nested,V2HPAScalingRulesFluent>{ public N and(); - public N endScaleDown(); + } - - public interface ScaleUpNested - extends Nested, - V2HPAScalingRulesFluent> { + public interface ScaleUpNested extends Nested,V2HPAScalingRulesFluent>{ public N and(); - public N endScaleUp(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java index a8413bf474..cc11963a23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java @@ -1,214 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HorizontalPodAutoscalerBehaviorFluentImpl< - A extends V2HorizontalPodAutoscalerBehaviorFluent> - extends BaseFluent implements V2HorizontalPodAutoscalerBehaviorFluent { - public V2HorizontalPodAutoscalerBehaviorFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HorizontalPodAutoscalerBehaviorFluentImpl> extends BaseFluent implements V2HorizontalPodAutoscalerBehaviorFluent{ + public V2HorizontalPodAutoscalerBehaviorFluentImpl() { + } public V2HorizontalPodAutoscalerBehaviorFluentImpl(V2HorizontalPodAutoscalerBehavior instance) { this.withScaleDown(instance.getScaleDown()); this.withScaleUp(instance.getScaleUp()); - } + } private V2HPAScalingRulesBuilder scaleDown; private V2HPAScalingRulesBuilder scaleUp; - + /** * This method has been deprecated, please use method buildScaleDown instead. - * * @return The buildable object. */ @Deprecated public V2HPAScalingRules getScaleDown() { - return this.scaleDown != null ? this.scaleDown.build() : null; + return this.scaleDown!=null ?this.scaleDown.build():null; } - public V2HPAScalingRules buildScaleDown() { - return this.scaleDown != null ? this.scaleDown.build() : null; + return this.scaleDown!=null ?this.scaleDown.build():null; } - public A withScaleDown(V2HPAScalingRules scaleDown) { _visitables.get("scaleDown").remove(this.scaleDown); - if (scaleDown != null) { - this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); - _visitables.get("scaleDown").add(this.scaleDown); - } else { - this.scaleDown = null; - _visitables.get("scaleDown").remove(this.scaleDown); - } - return (A) this; + if (scaleDown!=null){ this.scaleDown= new V2HPAScalingRulesBuilder(scaleDown); _visitables.get("scaleDown").add(this.scaleDown);} else { this.scaleDown = null; _visitables.get("scaleDown").remove(this.scaleDown); } return (A) this; } - public Boolean hasScaleDown() { return this.scaleDown != null; } - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDown() { return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(); } - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( - V2HPAScalingRules item) { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(item); } - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown() { return withNewScaleDownLike(getScaleDown()); } - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown() { - return withNewScaleDownLike( - getScaleDown() != null ? getScaleDown() : new V2HPAScalingRulesBuilder().build()); + return withNewScaleDownLike(getScaleDown() != null ? getScaleDown(): new V2HPAScalingRulesBuilder().build()); } - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( - V2HPAScalingRules item) { - return withNewScaleDownLike(getScaleDown() != null ? getScaleDown() : item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike(V2HPAScalingRules item) { + return withNewScaleDownLike(getScaleDown() != null ? getScaleDown(): item); } - + /** * This method has been deprecated, please use method buildScaleUp instead. - * * @return The buildable object. */ @Deprecated public V2HPAScalingRules getScaleUp() { - return this.scaleUp != null ? this.scaleUp.build() : null; + return this.scaleUp!=null ?this.scaleUp.build():null; } - public V2HPAScalingRules buildScaleUp() { - return this.scaleUp != null ? this.scaleUp.build() : null; + return this.scaleUp!=null ?this.scaleUp.build():null; } - public A withScaleUp(V2HPAScalingRules scaleUp) { _visitables.get("scaleUp").remove(this.scaleUp); - if (scaleUp != null) { - this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); - _visitables.get("scaleUp").add(this.scaleUp); - } else { - this.scaleUp = null; - _visitables.get("scaleUp").remove(this.scaleUp); - } - return (A) this; + if (scaleUp!=null){ this.scaleUp= new V2HPAScalingRulesBuilder(scaleUp); _visitables.get("scaleUp").add(this.scaleUp);} else { this.scaleUp = null; _visitables.get("scaleUp").remove(this.scaleUp); } return (A) this; } - public Boolean hasScaleUp() { return this.scaleUp != null; } - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp() { return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(); } - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( - V2HPAScalingRules item) { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(item); } - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp() { return withNewScaleUpLike(getScaleUp()); } - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp() { - return withNewScaleUpLike( - getScaleUp() != null ? getScaleUp() : new V2HPAScalingRulesBuilder().build()); + return withNewScaleUpLike(getScaleUp() != null ? getScaleUp(): new V2HPAScalingRulesBuilder().build()); } - - public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( - V2HPAScalingRules item) { - return withNewScaleUpLike(getScaleUp() != null ? getScaleUp() : item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item) { + return withNewScaleUpLike(getScaleUp() != null ? getScaleUp(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2HorizontalPodAutoscalerBehaviorFluentImpl that = - (V2HorizontalPodAutoscalerBehaviorFluentImpl) o; - if (scaleDown != null ? !scaleDown.equals(that.scaleDown) : that.scaleDown != null) - return false; - if (scaleUp != null ? !scaleUp.equals(that.scaleUp) : that.scaleUp != null) return false; + V2HorizontalPodAutoscalerBehaviorFluentImpl that = (V2HorizontalPodAutoscalerBehaviorFluentImpl) o; + if (scaleDown != null ? !scaleDown.equals(that.scaleDown) :that.scaleDown != null) return false; + if (scaleUp != null ? !scaleUp.equals(that.scaleUp) :that.scaleUp != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(scaleDown, scaleUp, super.hashCode()); + return java.util.Objects.hash(scaleDown, scaleUp, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (scaleDown != null) { - sb.append("scaleDown:"); - sb.append(scaleDown + ","); - } - if (scaleUp != null) { - sb.append("scaleUp:"); - sb.append(scaleUp); - } + if (scaleDown != null) { sb.append("scaleDown:"); sb.append(scaleDown + ","); } + if (scaleUp != null) { sb.append("scaleUp:"); sb.append(scaleUp); } sb.append("}"); return sb.toString(); } - - class ScaleDownNestedImpl - extends V2HPAScalingRulesFluentImpl< - V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested> - implements V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested, Nested { + class ScaleDownNestedImpl extends V2HPAScalingRulesFluentImpl> implements V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested,Nested{ ScaleDownNestedImpl(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } - ScaleDownNestedImpl() { this.builder = new V2HPAScalingRulesBuilder(this); } - V2HPAScalingRulesBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleDown(builder.build()); } - public N endScaleDown() { return and(); } + } - - class ScaleUpNestedImpl - extends V2HPAScalingRulesFluentImpl> - implements V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested, Nested { + class ScaleUpNestedImpl extends V2HPAScalingRulesFluentImpl> implements V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested,Nested{ ScaleUpNestedImpl(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } - ScaleUpNestedImpl() { this.builder = new V2HPAScalingRulesBuilder(this); } - V2HPAScalingRulesBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleUp(builder.build()); } - public N endScaleUp() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java index cc6aa4a01f..9408ae3b20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2HorizontalPodAutoscalerBuilder - extends V2HorizontalPodAutoscalerFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2HorizontalPodAutoscalerBuilder extends V2HorizontalPodAutoscalerFluentImpl implements VisitableBuilder{ public V2HorizontalPodAutoscalerBuilder() { this(false); } - public V2HorizontalPodAutoscalerBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscaler(), validationEnabled); } - public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent) { this(fluent, false); } - - public V2HorizontalPodAutoscalerBuilder( - V2HorizontalPodAutoscalerFluent fluent, Boolean validationEnabled) { + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscaler(), validationEnabled); } - - public V2HorizontalPodAutoscalerBuilder( - V2HorizontalPodAutoscalerFluent fluent, V2HorizontalPodAutoscaler instance) { + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,V2HorizontalPodAutoscaler instance) { this(fluent, instance, false); } - - public V2HorizontalPodAutoscalerBuilder( - V2HorizontalPodAutoscalerFluent fluent, - V2HorizontalPodAutoscaler instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,V2HorizontalPodAutoscaler instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -54,16 +30,13 @@ public V2HorizontalPodAutoscalerBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscaler instance) { - this(instance, false); + this(instance,false); } - - public V2HorizontalPodAutoscalerBuilder( - V2HorizontalPodAutoscaler instance, Boolean validationEnabled) { - this.fluent = this; + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscaler instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -74,12 +47,10 @@ public V2HorizontalPodAutoscalerBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HorizontalPodAutoscalerFluent fluent; Boolean validationEnabled; - public V2HorizontalPodAutoscaler build() { V2HorizontalPodAutoscaler buildable = new V2HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -89,4 +60,5 @@ public V2HorizontalPodAutoscaler build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java index 0445db5b35..718ed5d37c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2HorizontalPodAutoscalerConditionBuilder - extends V2HorizontalPodAutoscalerConditionFluentImpl - implements VisitableBuilder< - V2HorizontalPodAutoscalerCondition, V2HorizontalPodAutoscalerConditionBuilder> { +import java.lang.Boolean; +public class V2HorizontalPodAutoscalerConditionBuilder extends V2HorizontalPodAutoscalerConditionFluentImpl implements VisitableBuilder{ public V2HorizontalPodAutoscalerConditionBuilder() { this(false); } - public V2HorizontalPodAutoscalerConditionBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscalerCondition(), validationEnabled); } - - public V2HorizontalPodAutoscalerConditionBuilder( - V2HorizontalPodAutoscalerConditionFluent fluent) { + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent) { this(fluent, false); } - - public V2HorizontalPodAutoscalerConditionBuilder( - V2HorizontalPodAutoscalerConditionFluent fluent, Boolean validationEnabled) { + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerCondition(), validationEnabled); } - - public V2HorizontalPodAutoscalerConditionBuilder( - V2HorizontalPodAutoscalerConditionFluent fluent, - V2HorizontalPodAutoscalerCondition instance) { + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,V2HorizontalPodAutoscalerCondition instance) { this(fluent, instance, false); } - - public V2HorizontalPodAutoscalerConditionBuilder( - V2HorizontalPodAutoscalerConditionFluent fluent, - V2HorizontalPodAutoscalerCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,V2HorizontalPodAutoscalerCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -57,16 +30,13 @@ public V2HorizontalPodAutoscalerConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondition instance) { - this(instance, false); + this(instance,false); } - - public V2HorizontalPodAutoscalerConditionBuilder( - V2HorizontalPodAutoscalerCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -77,12 +47,10 @@ public V2HorizontalPodAutoscalerConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HorizontalPodAutoscalerConditionFluent fluent; Boolean validationEnabled; - public V2HorizontalPodAutoscalerCondition build() { V2HorizontalPodAutoscalerCondition buildable = new V2HorizontalPodAutoscalerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -92,4 +60,5 @@ public V2HorizontalPodAutoscalerCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java index 47181b78d0..700c4f46f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java @@ -1,51 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2HorizontalPodAutoscalerConditionFluent< - A extends V2HorizontalPodAutoscalerConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V2HorizontalPodAutoscalerConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java index 54f7c06819..74c088757e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java @@ -1,27 +1,19 @@ -/* -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 java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HorizontalPodAutoscalerConditionFluentImpl< - A extends V2HorizontalPodAutoscalerConditionFluent> - extends BaseFluent implements V2HorizontalPodAutoscalerConditionFluent { - public V2HorizontalPodAutoscalerConditionFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HorizontalPodAutoscalerConditionFluentImpl> extends BaseFluent implements V2HorizontalPodAutoscalerConditionFluent{ + public V2HorizontalPodAutoscalerConditionFluentImpl() { + } public V2HorizontalPodAutoscalerConditionFluentImpl(V2HorizontalPodAutoscalerCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -32,123 +24,82 @@ public V2HorizontalPodAutoscalerConditionFluentImpl(V2HorizontalPodAutoscalerCon this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2HorizontalPodAutoscalerConditionFluentImpl that = - (V2HorizontalPodAutoscalerConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V2HorizontalPodAutoscalerConditionFluentImpl that = (V2HorizontalPodAutoscalerConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java index bf50b84922..967815206f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java @@ -1,131 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2HorizontalPodAutoscalerFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2HorizontalPodAutoscalerFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata(); - public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public V2HorizontalPodAutoscalerFluent.MetadataNested editMetadata(); - public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata(); - public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V2HorizontalPodAutoscalerSpec getSpec(); - public V2HorizontalPodAutoscalerSpec buildSpec(); - public A withSpec(V2HorizontalPodAutoscalerSpec spec); - public Boolean hasSpec(); - public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - - public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( - V2HorizontalPodAutoscalerSpec item); - + public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item); public V2HorizontalPodAutoscalerFluent.SpecNested editSpec(); - public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec(); - - public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( - V2HorizontalPodAutoscalerSpec item); - + public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike(V2HorizontalPodAutoscalerSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V2HorizontalPodAutoscalerStatus getStatus(); - public V2HorizontalPodAutoscalerStatus buildStatus(); - public A withStatus(V2HorizontalPodAutoscalerStatus status); - public Boolean hasStatus(); - public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - - public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( - V2HorizontalPodAutoscalerStatus item); - + public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item); public V2HorizontalPodAutoscalerFluent.StatusNested editStatus(); - public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus(); - - public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( - V2HorizontalPodAutoscalerStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { + public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V2HorizontalPodAutoscalerSpecFluent> { + public interface SpecNested extends Nested,V2HorizontalPodAutoscalerSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V2HorizontalPodAutoscalerStatusFluent> { + public interface StatusNested extends Nested,V2HorizontalPodAutoscalerStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java index bb3702a1dc..bfbfa524e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HorizontalPodAutoscalerFluentImpl> - extends BaseFluent implements V2HorizontalPodAutoscalerFluent { - public V2HorizontalPodAutoscalerFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HorizontalPodAutoscalerFluentImpl> extends BaseFluent implements V2HorizontalPodAutoscalerFluent{ + public V2HorizontalPodAutoscalerFluentImpl() { + } public V2HorizontalPodAutoscalerFluentImpl(V2HorizontalPodAutoscaler instance) { this.withApiVersion(instance.getApiVersion()); @@ -31,306 +25,205 @@ public V2HorizontalPodAutoscalerFluentImpl(V2HorizontalPodAutoscaler instance) { this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V2HorizontalPodAutoscalerSpecBuilder spec; private V2HorizontalPodAutoscalerStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { return new V2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); } - public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); } - public V2HorizontalPodAutoscalerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V2HorizontalPodAutoscalerSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V2HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V2HorizontalPodAutoscalerSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V2HorizontalPodAutoscalerSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V2HorizontalPodAutoscalerSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { return new V2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); } - - public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( - V2HorizontalPodAutoscalerSpec item) { + public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item) { return new V2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(item); } - public V2HorizontalPodAutoscalerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V2HorizontalPodAutoscalerSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V2HorizontalPodAutoscalerSpecBuilder().build()); } - - public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( - V2HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike(V2HorizontalPodAutoscalerSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V2HorizontalPodAutoscalerStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V2HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V2HorizontalPodAutoscalerStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V2HorizontalPodAutoscalerStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V2HorizontalPodAutoscalerStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { return new V2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); } - - public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( - V2HorizontalPodAutoscalerStatus item) { + public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item) { return new V2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(item); } - public V2HorizontalPodAutoscalerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null ? getStatus() : new V2HorizontalPodAutoscalerStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V2HorizontalPodAutoscalerStatusBuilder().build()); } - - public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( - V2HorizontalPodAutoscalerStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2HorizontalPodAutoscalerFluentImpl that = (V2HorizontalPodAutoscalerFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V2HorizontalPodAutoscalerFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V2HorizontalPodAutoscalerFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V2HorizontalPodAutoscalerSpecFluentImpl> - implements V2HorizontalPodAutoscalerFluent.SpecNested, Nested { + class SpecNestedImpl extends V2HorizontalPodAutoscalerSpecFluentImpl> implements V2HorizontalPodAutoscalerFluent.SpecNested,Nested{ SpecNestedImpl(V2HorizontalPodAutoscalerSpec item) { this.builder = new V2HorizontalPodAutoscalerSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V2HorizontalPodAutoscalerSpecBuilder(this); } - V2HorizontalPodAutoscalerSpecBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V2HorizontalPodAutoscalerStatusFluentImpl< - V2HorizontalPodAutoscalerFluent.StatusNested> - implements V2HorizontalPodAutoscalerFluent.StatusNested, Nested { + class StatusNestedImpl extends V2HorizontalPodAutoscalerStatusFluentImpl> implements V2HorizontalPodAutoscalerFluent.StatusNested,Nested{ StatusNestedImpl(V2HorizontalPodAutoscalerStatus item) { this.builder = new V2HorizontalPodAutoscalerStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V2HorizontalPodAutoscalerStatusBuilder(this); } - V2HorizontalPodAutoscalerStatusBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java index e3468f7b05..a40dd07952 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2HorizontalPodAutoscalerListBuilder - extends V2HorizontalPodAutoscalerListFluentImpl - implements VisitableBuilder< - V2HorizontalPodAutoscalerList, V2HorizontalPodAutoscalerListBuilder> { +import java.lang.Boolean; +public class V2HorizontalPodAutoscalerListBuilder extends V2HorizontalPodAutoscalerListFluentImpl implements VisitableBuilder{ public V2HorizontalPodAutoscalerListBuilder() { this(false); } - public V2HorizontalPodAutoscalerListBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscalerList(), validationEnabled); } - public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent) { this(fluent, false); } - - public V2HorizontalPodAutoscalerListBuilder( - V2HorizontalPodAutoscalerListFluent fluent, Boolean validationEnabled) { + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerList(), validationEnabled); } - - public V2HorizontalPodAutoscalerListBuilder( - V2HorizontalPodAutoscalerListFluent fluent, V2HorizontalPodAutoscalerList instance) { + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,V2HorizontalPodAutoscalerList instance) { this(fluent, instance, false); } - - public V2HorizontalPodAutoscalerListBuilder( - V2HorizontalPodAutoscalerListFluent fluent, - V2HorizontalPodAutoscalerList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,V2HorizontalPodAutoscalerList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -53,16 +28,13 @@ public V2HorizontalPodAutoscalerListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerList instance) { - this(instance, false); + this(instance,false); } - - public V2HorizontalPodAutoscalerListBuilder( - V2HorizontalPodAutoscalerList instance, Boolean validationEnabled) { - this.fluent = this; + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -71,12 +43,10 @@ public V2HorizontalPodAutoscalerListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HorizontalPodAutoscalerListFluent fluent; Boolean validationEnabled; - public V2HorizontalPodAutoscalerList build() { V2HorizontalPodAutoscalerList buildable = new V2HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -85,4 +55,5 @@ public V2HorizontalPodAutoscalerList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java index 0de9159330..182a065e56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java @@ -1,134 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V2HorizontalPodAutoscalerListFluent< - A extends V2HorizontalPodAutoscalerListFluent> - extends Fluent { + /** + * Generated + */ +public interface V2HorizontalPodAutoscalerListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V2HorizontalPodAutoscaler item); - - public A setToItems(Integer index, V2HorizontalPodAutoscaler item); - + public A addToItems(Integer index,V2HorizontalPodAutoscaler item); + public A setToItems(Integer index,V2HorizontalPodAutoscaler item); public A addToItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items); - public A addAllToItems(Collection items); - public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items); - public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V2HorizontalPodAutoscaler buildItem(Integer index); - public V2HorizontalPodAutoscaler buildFirstItem(); - public V2HorizontalPodAutoscaler buildLastItem(); - - public V2HorizontalPodAutoscaler buildMatchingItem( - Predicate predicate); - + public V2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items); - public Boolean hasItems(); - public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); - - public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - V2HorizontalPodAutoscaler item); - - public V2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( - Integer index, V2HorizontalPodAutoscaler item); - + public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item); + public V2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike(Integer index,V2HorizontalPodAutoscaler item); public V2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index); - public V2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem(); - public V2HorizontalPodAutoscalerListFluent.ItemsNested editLastItem(); - - public V2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public V2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata(); - public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata(); - - public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V2HorizontalPodAutoscalerFluent> { + public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V2HorizontalPodAutoscalerFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java index fb63b1af87..e751259a4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HorizontalPodAutoscalerListFluentImpl< - A extends V2HorizontalPodAutoscalerListFluent> - extends BaseFluent implements V2HorizontalPodAutoscalerListFluent { - public V2HorizontalPodAutoscalerListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HorizontalPodAutoscalerListFluentImpl> extends BaseFluent implements V2HorizontalPodAutoscalerListFluent{ + public V2HorizontalPodAutoscalerListFluentImpl() { + } public V2HorizontalPodAutoscalerListFluentImpl(V2HorizontalPodAutoscalerList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,100 +30,46 @@ public V2HorizontalPodAutoscalerListFluentImpl(V2HorizontalPodAutoscalerList ins this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V2HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V2HorizontalPodAutoscaler item) { + if (this.items == null) {this.items = new ArrayList();} + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V2HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V2HorizontalPodAutoscaler item) { + if (this.items == null) {this.items = new ArrayList();} V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -140,278 +81,176 @@ public A removeMatchingFromItems(Predicate pre each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V2HorizontalPodAutoscaler buildItem(Integer index) { return this.items.get(index).build(); } - public V2HorizontalPodAutoscaler buildFirstItem() { return this.items.get(0).build(); } - public V2HorizontalPodAutoscaler buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V2HorizontalPodAutoscaler buildMatchingItem( - Predicate predicate) { - for (V2HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { + for (V2HorizontalPodAutoscalerBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V2HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2HorizontalPodAutoscalerBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V2HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V2HorizontalPodAutoscaler item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V2HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V2HorizontalPodAutoscaler item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return new V2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(); } - - public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - V2HorizontalPodAutoscaler item) { + public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item) { return new V2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); } - - public V2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( - Integer index, V2HorizontalPodAutoscaler item) { + public V2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike(Integer index,V2HorizontalPodAutoscaler item) { return new V2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(index, item); } - public V2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V2HorizontalPodAutoscalerListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); } - - public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(item); } - public V2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2HorizontalPodAutoscalerListFluentImpl that = (V2HorizontalPodAutoscalerListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V2HorizontalPodAutoscalerFluentImpl< - V2HorizontalPodAutoscalerListFluent.ItemsNested> - implements V2HorizontalPodAutoscalerListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V2HorizontalPodAutoscaler item) { + class ItemsNestedImpl extends V2HorizontalPodAutoscalerFluentImpl> implements V2HorizontalPodAutoscalerListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V2HorizontalPodAutoscaler item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V2HorizontalPodAutoscalerBuilder(this); } - V2HorizontalPodAutoscalerBuilder builder; Integer index; - public N and() { - return (N) V2HorizontalPodAutoscalerListFluentImpl.this.setToItems(index, builder.build()); + return (N) V2HorizontalPodAutoscalerListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V2HorizontalPodAutoscalerListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V2HorizontalPodAutoscalerListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java index 858bf5c3db..f917dc3ab2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2HorizontalPodAutoscalerSpecBuilder - extends V2HorizontalPodAutoscalerSpecFluentImpl - implements VisitableBuilder< - V2HorizontalPodAutoscalerSpec, V2HorizontalPodAutoscalerSpecBuilder> { +import java.lang.Boolean; +public class V2HorizontalPodAutoscalerSpecBuilder extends V2HorizontalPodAutoscalerSpecFluentImpl implements VisitableBuilder{ public V2HorizontalPodAutoscalerSpecBuilder() { this(false); } - public V2HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscalerSpec(), validationEnabled); } - public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent) { this(fluent, false); } - - public V2HorizontalPodAutoscalerSpecBuilder( - V2HorizontalPodAutoscalerSpecFluent fluent, Boolean validationEnabled) { + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerSpec(), validationEnabled); } - - public V2HorizontalPodAutoscalerSpecBuilder( - V2HorizontalPodAutoscalerSpecFluent fluent, V2HorizontalPodAutoscalerSpec instance) { + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,V2HorizontalPodAutoscalerSpec instance) { this(fluent, instance, false); } - - public V2HorizontalPodAutoscalerSpecBuilder( - V2HorizontalPodAutoscalerSpecFluent fluent, - V2HorizontalPodAutoscalerSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,V2HorizontalPodAutoscalerSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withBehavior(instance.getBehavior()); fluent.withMaxReplicas(instance.getMaxReplicas()); @@ -55,16 +30,13 @@ public V2HorizontalPodAutoscalerSpecBuilder( fluent.withScaleTargetRef(instance.getScaleTargetRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpec instance) { - this(instance, false); + this(instance,false); } - - public V2HorizontalPodAutoscalerSpecBuilder( - V2HorizontalPodAutoscalerSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withBehavior(instance.getBehavior()); this.withMaxReplicas(instance.getMaxReplicas()); @@ -75,12 +47,10 @@ public V2HorizontalPodAutoscalerSpecBuilder( this.withScaleTargetRef(instance.getScaleTargetRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HorizontalPodAutoscalerSpecFluent fluent; Boolean validationEnabled; - public V2HorizontalPodAutoscalerSpec build() { V2HorizontalPodAutoscalerSpec buildable = new V2HorizontalPodAutoscalerSpec(); buildable.setBehavior(fluent.getBehavior()); @@ -90,4 +60,5 @@ public V2HorizontalPodAutoscalerSpec build() { buildable.setScaleTargetRef(fluent.getScaleTargetRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java index 7dd20f5529..35ebdaf90d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java @@ -1,170 +1,101 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2HorizontalPodAutoscalerSpecFluent< - A extends V2HorizontalPodAutoscalerSpecFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V2HorizontalPodAutoscalerSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildBehavior instead. - * * @return The buildable object. */ @Deprecated public V2HorizontalPodAutoscalerBehavior getBehavior(); - public V2HorizontalPodAutoscalerBehavior buildBehavior(); - public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior); - public Boolean hasBehavior(); - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior(); - - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( - V2HorizontalPodAutoscalerBehavior item); - + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item); public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior(); - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior(); - - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( - V2HorizontalPodAutoscalerBehavior item); - + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item); public Integer getMaxReplicas(); - public A withMaxReplicas(Integer maxReplicas); - public Boolean hasMaxReplicas(); - - public A addToMetrics(Integer index, V2MetricSpec item); - - public A setToMetrics(Integer index, V2MetricSpec item); - + public A addToMetrics(Integer index,V2MetricSpec item); + public A setToMetrics(Integer index,V2MetricSpec item); public A addToMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items); - public A addAllToMetrics(Collection items); - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items); - public A removeAllFromMetrics(Collection items); - public A removeMatchingFromMetrics(Predicate predicate); - + /** * This method has been deprecated, please use method buildMetrics instead. - * * @return The buildable object. */ @Deprecated public List getMetrics(); - public List buildMetrics(); - public V2MetricSpec buildMetric(Integer index); - public V2MetricSpec buildFirstMetric(); - public V2MetricSpec buildLastMetric(); - public V2MetricSpec buildMatchingMetric(Predicate predicate); - public Boolean hasMatchingMetric(Predicate predicate); - public A withMetrics(List metrics); - public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics); - public Boolean hasMetrics(); - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric(); - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike(V2MetricSpec item); - - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( - Integer index, V2MetricSpec item); - + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike(Integer index,V2MetricSpec item); public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index); - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric(); - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editLastMetric(); - - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( - Predicate predicate); - + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric(Predicate predicate); public Integer getMinReplicas(); - public A withMinReplicas(Integer minReplicas); - public Boolean hasMinReplicas(); - + /** * This method has been deprecated, please use method buildScaleTargetRef instead. - * * @return The buildable object. */ @Deprecated public V2CrossVersionObjectReference getScaleTargetRef(); - public V2CrossVersionObjectReference buildScaleTargetRef(); - public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef); - public Boolean hasScaleTargetRef(); - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( - V2CrossVersionObjectReference item); - + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item); public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef(); - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef(); - - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( - V2CrossVersionObjectReference item); - - public interface BehaviorNested - extends Nested, - V2HorizontalPodAutoscalerBehaviorFluent< - V2HorizontalPodAutoscalerSpecFluent.BehaviorNested> { + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike(V2CrossVersionObjectReference item); + public interface BehaviorNested extends Nested,V2HorizontalPodAutoscalerBehaviorFluent>{ public N and(); - public N endBehavior(); + } - - public interface MetricsNested - extends Nested, V2MetricSpecFluent> { + public interface MetricsNested extends Nested,V2MetricSpecFluent>{ public N and(); - public N endMetric(); + } - - public interface ScaleTargetRefNested - extends Nested, - V2CrossVersionObjectReferenceFluent< - V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> { + public interface ScaleTargetRefNested extends Nested,V2CrossVersionObjectReferenceFluent>{ public N and(); - public N endScaleTargetRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java index cdea7edfb0..8c14663466 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HorizontalPodAutoscalerSpecFluentImpl< - A extends V2HorizontalPodAutoscalerSpecFluent> - extends BaseFluent implements V2HorizontalPodAutoscalerSpecFluent { - public V2HorizontalPodAutoscalerSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HorizontalPodAutoscalerSpecFluentImpl> extends BaseFluent implements V2HorizontalPodAutoscalerSpecFluent{ + public V2HorizontalPodAutoscalerSpecFluentImpl() { + } public V2HorizontalPodAutoscalerSpecFluentImpl(V2HorizontalPodAutoscalerSpec instance) { this.withBehavior(instance.getBehavior()); @@ -37,156 +32,81 @@ public V2HorizontalPodAutoscalerSpecFluentImpl(V2HorizontalPodAutoscalerSpec ins this.withMinReplicas(instance.getMinReplicas()); this.withScaleTargetRef(instance.getScaleTargetRef()); - } + } private V2HorizontalPodAutoscalerBehaviorBuilder behavior; private Integer maxReplicas; private ArrayList metrics; private Integer minReplicas; private V2CrossVersionObjectReferenceBuilder scaleTargetRef; - + /** * This method has been deprecated, please use method buildBehavior instead. - * * @return The buildable object. */ @Deprecated public V2HorizontalPodAutoscalerBehavior getBehavior() { - return this.behavior != null ? this.behavior.build() : null; + return this.behavior!=null ?this.behavior.build():null; } - public V2HorizontalPodAutoscalerBehavior buildBehavior() { - return this.behavior != null ? this.behavior.build() : null; + return this.behavior!=null ?this.behavior.build():null; } - public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { _visitables.get("behavior").remove(this.behavior); - if (behavior != null) { - this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); - _visitables.get("behavior").add(this.behavior); - } else { - this.behavior = null; - _visitables.get("behavior").remove(this.behavior); - } - return (A) this; + if (behavior!=null){ this.behavior= new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); _visitables.get("behavior").add(this.behavior);} else { this.behavior = null; _visitables.get("behavior").remove(this.behavior); } return (A) this; } - public Boolean hasBehavior() { return this.behavior != null; } - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior() { return new V2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(); } - - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( - V2HorizontalPodAutoscalerBehavior item) { + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { return new V2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(item); } - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior() { return withNewBehaviorLike(getBehavior()); } - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior() { - return withNewBehaviorLike( - getBehavior() != null - ? getBehavior() - : new V2HorizontalPodAutoscalerBehaviorBuilder().build()); + return withNewBehaviorLike(getBehavior() != null ? getBehavior(): new V2HorizontalPodAutoscalerBehaviorBuilder().build()); } - - public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( - V2HorizontalPodAutoscalerBehavior item) { - return withNewBehaviorLike(getBehavior() != null ? getBehavior() : item); + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { + return withNewBehaviorLike(getBehavior() != null ? getBehavior(): item); } - public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; + this.maxReplicas=maxReplicas; return (A) this; } - public Boolean hasMaxReplicas() { return this.maxReplicas != null; } - - public A addToMetrics(Integer index, V2MetricSpec item) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder); - this.metrics.add(index >= 0 ? index : metrics.size(), builder); - return (A) this; + public A addToMetrics(Integer index,V2MetricSpec item) { + if (this.metrics == null) {this.metrics = new ArrayList();} + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder);this.metrics.add(index >= 0 ? index : metrics.size(), builder); return (A)this; } - - public A setToMetrics(Integer index, V2MetricSpec item) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } + public A setToMetrics(Integer index,V2MetricSpec item) { + if (this.metrics == null) {this.metrics = new ArrayList();} V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= _visitables.get("metrics").size()) { - _visitables.get("metrics").add(builder); - } else { - _visitables.get("metrics").set(index, builder); - } - if (index < 0 || index >= metrics.size()) { - metrics.add(builder); - } else { - metrics.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("metrics").size()) { _visitables.get("metrics").add(builder); } else { _visitables.get("metrics").set(index, builder);} + if (index < 0 || index >= metrics.size()) { metrics.add(builder); } else { metrics.set(index, builder);} + return (A)this; } - public A addToMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); - this.metrics.add(builder); - } - return (A) this; + if (this.metrics == null) {this.metrics = new ArrayList();} + for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; } - public A addAllToMetrics(Collection items) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); - this.metrics.add(builder); - } - return (A) this; + if (this.metrics == null) {this.metrics = new ArrayList();} + for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; } - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - if (this.metrics != null) { - this.metrics.remove(builder); - } - } - return (A) this; + for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder);if (this.metrics != null) {this.metrics.remove(builder);}} return (A)this; } - public A removeAllFromMetrics(Collection items) { - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - if (this.metrics != null) { - this.metrics.remove(builder); - } - } - return (A) this; + for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder);if (this.metrics != null) {this.metrics.remove(builder);}} return (A)this; } - public A removeMatchingFromMetrics(Predicate predicate) { if (metrics == null) return (A) this; final Iterator each = metrics.iterator(); @@ -198,312 +118,194 @@ public A removeMatchingFromMetrics(Predicate predicate) { each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildMetrics instead. - * * @return The buildable object. */ @Deprecated public List getMetrics() { return metrics != null ? build(metrics) : null; } - public List buildMetrics() { return metrics != null ? build(metrics) : null; } - public V2MetricSpec buildMetric(Integer index) { return this.metrics.get(index).build(); } - public V2MetricSpec buildFirstMetric() { return this.metrics.get(0).build(); } - public V2MetricSpec buildLastMetric() { return this.metrics.get(metrics.size() - 1).build(); } - public V2MetricSpec buildMatchingMetric(Predicate predicate) { - for (V2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V2MetricSpecBuilder item: metrics) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingMetric(Predicate predicate) { - for (V2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2MetricSpecBuilder item: metrics) { if(predicate.test(item)){ return true;} } return false; } - public A withMetrics(List metrics) { - if (this.metrics != null) { - _visitables.get("metrics").removeAll(this.metrics); - } - if (metrics != null) { - this.metrics = new ArrayList(); - for (V2MetricSpec item : metrics) { - this.addToMetrics(item); - } - } else { - this.metrics = null; - } - return (A) this; + if (this.metrics != null) { _visitables.get("metrics").removeAll(this.metrics);} + if (metrics != null) {this.metrics = new ArrayList(); for (V2MetricSpec item : metrics){this.addToMetrics(item);}} else { this.metrics = null;} return (A) this; } - public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics) { - if (this.metrics != null) { - this.metrics.clear(); - } - if (metrics != null) { - for (V2MetricSpec item : metrics) { - this.addToMetrics(item); - } - } - return (A) this; + if (this.metrics != null) {this.metrics.clear();} + if (metrics != null) {for (V2MetricSpec item :metrics){ this.addToMetrics(item);}} return (A) this; } - public Boolean hasMetrics() { return metrics != null && !metrics.isEmpty(); } - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() { return new V2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(); } - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike(V2MetricSpec item) { return new V2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(-1, item); } - - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( - Integer index, V2MetricSpec item) { + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike(Integer index,V2MetricSpec item) { return new V2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(index, item); } - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index) { - if (metrics.size() <= index) - throw new RuntimeException("Can't edit metrics. Index exceeds size."); + if (metrics.size() <= index) throw new RuntimeException("Can't edit metrics. Index exceeds size."); return setNewMetricLike(index, buildMetric(index)); } - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric() { - if (metrics.size() == 0) - throw new RuntimeException("Can't edit first metrics. The list is empty."); + if (metrics.size() == 0) throw new RuntimeException("Can't edit first metrics. The list is empty."); return setNewMetricLike(0, buildMetric(0)); } - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editLastMetric() { int index = metrics.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last metrics. The list is empty."); return setNewMetricLike(index, buildMetric(index)); } - - public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( - Predicate predicate) { + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric(Predicate predicate) { int index = -1; - for (int i = 0; i < metrics.size(); i++) { - if (predicate.test(metrics.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewScaleTargetRef() { return new V2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); } - - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( - V2CrossVersionObjectReference item) { + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item) { return new V2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(item); } - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef() { return withNewScaleTargetRefLike(getScaleTargetRef()); } - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike( - getScaleTargetRef() != null - ? getScaleTargetRef() - : new V2CrossVersionObjectReferenceBuilder().build()); + return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef(): new V2CrossVersionObjectReferenceBuilder().build()); } - - public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( - V2CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike(V2CrossVersionObjectReference item) { + return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2HorizontalPodAutoscalerSpecFluentImpl that = (V2HorizontalPodAutoscalerSpecFluentImpl) o; - if (behavior != null ? !behavior.equals(that.behavior) : that.behavior != null) return false; - if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) : that.maxReplicas != null) - return false; - if (metrics != null ? !metrics.equals(that.metrics) : that.metrics != null) return false; - if (minReplicas != null ? !minReplicas.equals(that.minReplicas) : that.minReplicas != null) - return false; - if (scaleTargetRef != null - ? !scaleTargetRef.equals(that.scaleTargetRef) - : that.scaleTargetRef != null) return false; + if (behavior != null ? !behavior.equals(that.behavior) :that.behavior != null) return false; + if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) :that.maxReplicas != null) return false; + if (metrics != null ? !metrics.equals(that.metrics) :that.metrics != null) return false; + if (minReplicas != null ? !minReplicas.equals(that.minReplicas) :that.minReplicas != null) return false; + if (scaleTargetRef != null ? !scaleTargetRef.equals(that.scaleTargetRef) :that.scaleTargetRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - behavior, maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); + return java.util.Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (behavior != null) { - sb.append("behavior:"); - sb.append(behavior + ","); - } - if (maxReplicas != null) { - sb.append("maxReplicas:"); - sb.append(maxReplicas + ","); - } - if (metrics != null && !metrics.isEmpty()) { - sb.append("metrics:"); - sb.append(metrics + ","); - } - if (minReplicas != null) { - sb.append("minReplicas:"); - sb.append(minReplicas + ","); - } - if (scaleTargetRef != null) { - sb.append("scaleTargetRef:"); - sb.append(scaleTargetRef); - } + if (behavior != null) { sb.append("behavior:"); sb.append(behavior + ","); } + if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } + if (metrics != null && !metrics.isEmpty()) { sb.append("metrics:"); sb.append(metrics + ","); } + if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } + if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef); } sb.append("}"); return sb.toString(); } - - class BehaviorNestedImpl - extends V2HorizontalPodAutoscalerBehaviorFluentImpl< - V2HorizontalPodAutoscalerSpecFluent.BehaviorNested> - implements V2HorizontalPodAutoscalerSpecFluent.BehaviorNested, Nested { + class BehaviorNestedImpl extends V2HorizontalPodAutoscalerBehaviorFluentImpl> implements V2HorizontalPodAutoscalerSpecFluent.BehaviorNested,Nested{ BehaviorNestedImpl(V2HorizontalPodAutoscalerBehavior item) { this.builder = new V2HorizontalPodAutoscalerBehaviorBuilder(this, item); } - BehaviorNestedImpl() { this.builder = new V2HorizontalPodAutoscalerBehaviorBuilder(this); } - V2HorizontalPodAutoscalerBehaviorBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.withBehavior(builder.build()); } - public N endBehavior() { return and(); } + } - - class MetricsNestedImpl - extends V2MetricSpecFluentImpl> - implements V2HorizontalPodAutoscalerSpecFluent.MetricsNested, Nested { - MetricsNestedImpl(Integer index, V2MetricSpec item) { + class MetricsNestedImpl extends V2MetricSpecFluentImpl> implements V2HorizontalPodAutoscalerSpecFluent.MetricsNested,Nested{ + MetricsNestedImpl(Integer index,V2MetricSpec item) { this.index = index; this.builder = new V2MetricSpecBuilder(this, item); } - MetricsNestedImpl() { this.index = -1; this.builder = new V2MetricSpecBuilder(this); } - V2MetricSpecBuilder builder; Integer index; - public N and() { - return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.setToMetrics(index, builder.build()); + return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.setToMetrics(index,builder.build()); } - public N endMetric() { return and(); } + } - - class ScaleTargetRefNestedImpl - extends V2CrossVersionObjectReferenceFluentImpl< - V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested, Nested { + class ScaleTargetRefNestedImpl extends V2CrossVersionObjectReferenceFluentImpl> implements V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested,Nested{ ScaleTargetRefNestedImpl(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - ScaleTargetRefNestedImpl() { this.builder = new V2CrossVersionObjectReferenceBuilder(this); } - V2CrossVersionObjectReferenceBuilder builder; - public N and() { return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); } - public N endScaleTargetRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java index a0d6b20830..6de8d6ffca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2HorizontalPodAutoscalerStatusBuilder - extends V2HorizontalPodAutoscalerStatusFluentImpl - implements VisitableBuilder< - V2HorizontalPodAutoscalerStatus, V2HorizontalPodAutoscalerStatusBuilder> { +import java.lang.Boolean; +public class V2HorizontalPodAutoscalerStatusBuilder extends V2HorizontalPodAutoscalerStatusFluentImpl implements VisitableBuilder{ public V2HorizontalPodAutoscalerStatusBuilder() { this(false); } - public V2HorizontalPodAutoscalerStatusBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscalerStatus(), validationEnabled); } - public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent) { this(fluent, false); } - - public V2HorizontalPodAutoscalerStatusBuilder( - V2HorizontalPodAutoscalerStatusFluent fluent, Boolean validationEnabled) { + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerStatus(), validationEnabled); } - - public V2HorizontalPodAutoscalerStatusBuilder( - V2HorizontalPodAutoscalerStatusFluent fluent, V2HorizontalPodAutoscalerStatus instance) { + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,V2HorizontalPodAutoscalerStatus instance) { this(fluent, instance, false); } - - public V2HorizontalPodAutoscalerStatusBuilder( - V2HorizontalPodAutoscalerStatusFluent fluent, - V2HorizontalPodAutoscalerStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,V2HorizontalPodAutoscalerStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); fluent.withCurrentMetrics(instance.getCurrentMetrics()); @@ -57,16 +32,13 @@ public V2HorizontalPodAutoscalerStatusBuilder( fluent.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatus instance) { - this(instance, false); + this(instance,false); } - - public V2HorizontalPodAutoscalerStatusBuilder( - V2HorizontalPodAutoscalerStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); this.withCurrentMetrics(instance.getCurrentMetrics()); @@ -79,12 +51,10 @@ public V2HorizontalPodAutoscalerStatusBuilder( this.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2HorizontalPodAutoscalerStatusFluent fluent; Boolean validationEnabled; - public V2HorizontalPodAutoscalerStatus build() { V2HorizontalPodAutoscalerStatus buildable = new V2HorizontalPodAutoscalerStatus(); buildable.setConditions(fluent.getConditions()); @@ -95,4 +65,5 @@ public V2HorizontalPodAutoscalerStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java index 3e32806b19..659efbf453 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java @@ -1,187 +1,104 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2HorizontalPodAutoscalerStatusFluent< - A extends V2HorizontalPodAutoscalerStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V2HorizontalPodAutoscalerCondition item); - - public A setToConditions(Integer index, V2HorizontalPodAutoscalerCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2HorizontalPodAutoscalerStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V2HorizontalPodAutoscalerCondition item); + public A setToConditions(Integer index,V2HorizontalPodAutoscalerCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V2HorizontalPodAutoscalerCondition buildCondition(Integer index); - public V2HorizontalPodAutoscalerCondition buildFirstCondition(); - public V2HorizontalPodAutoscalerCondition buildLastCondition(); - - public V2HorizontalPodAutoscalerCondition buildMatchingCondition( - Predicate predicate); - - public Boolean hasMatchingCondition( - Predicate predicate); - + public V2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate); + public Boolean hasMatchingCondition(Predicate predicate); public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions); public Boolean hasConditions(); - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition(); - - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( - V2HorizontalPodAutoscalerCondition item); - - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V2HorizontalPodAutoscalerCondition item); - + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike(Integer index,V2HorizontalPodAutoscalerCondition item); public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition(Integer index); - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition(); - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editLastCondition(); - - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public A addToCurrentMetrics(Integer index, V2MetricStatus item); - - public A setToCurrentMetrics(Integer index, V2MetricStatus item); - + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public A addToCurrentMetrics(Integer index,V2MetricStatus item); + public A setToCurrentMetrics(Integer index,V2MetricStatus item); public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items); - public A addAllToCurrentMetrics(Collection items); - public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items); - public A removeAllFromCurrentMetrics(Collection items); - public A removeMatchingFromCurrentMetrics(Predicate predicate); - + /** * This method has been deprecated, please use method buildCurrentMetrics instead. - * * @return The buildable object. */ @Deprecated public List getCurrentMetrics(); - public List buildCurrentMetrics(); - public V2MetricStatus buildCurrentMetric(Integer index); - public V2MetricStatus buildFirstCurrentMetric(); - public V2MetricStatus buildLastCurrentMetric(); - public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate); - public Boolean hasMatchingCurrentMetric(Predicate predicate); - public A withCurrentMetrics(List currentMetrics); - public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... currentMetrics); - public Boolean hasCurrentMetrics(); - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric(); - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( - V2MetricStatus item); - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( - Integer index, V2MetricStatus item); - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( - Integer index); - + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike(Integer index,V2MetricStatus item); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric(Integer index); public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric(); - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editLastCurrentMetric(); - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric( - Predicate predicate); - + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate); public Integer getCurrentReplicas(); - public A withCurrentReplicas(Integer currentReplicas); - public Boolean hasCurrentReplicas(); - public Integer getDesiredReplicas(); - public A withDesiredReplicas(Integer desiredReplicas); - public Boolean hasDesiredReplicas(); - public OffsetDateTime getLastScaleTime(); - public A withLastScaleTime(OffsetDateTime lastScaleTime); - public Boolean hasLastScaleTime(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - - public interface ConditionsNested - extends Nested, - V2HorizontalPodAutoscalerConditionFluent< - V2HorizontalPodAutoscalerStatusFluent.ConditionsNested> { + public interface ConditionsNested extends Nested,V2HorizontalPodAutoscalerConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface CurrentMetricsNested - extends Nested, - V2MetricStatusFluent> { + public interface CurrentMetricsNested extends Nested,V2MetricStatusFluent>{ public N and(); - public N endCurrentMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java index dd5e6d9694..f7f87adbea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java @@ -1,33 +1,29 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2HorizontalPodAutoscalerStatusFluentImpl< - A extends V2HorizontalPodAutoscalerStatusFluent> - extends BaseFluent implements V2HorizontalPodAutoscalerStatusFluent { - public V2HorizontalPodAutoscalerStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2HorizontalPodAutoscalerStatusFluentImpl> extends BaseFluent implements V2HorizontalPodAutoscalerStatusFluent{ + public V2HorizontalPodAutoscalerStatusFluentImpl() { + } public V2HorizontalPodAutoscalerStatusFluentImpl(V2HorizontalPodAutoscalerStatus instance) { this.withConditions(instance.getConditions()); @@ -40,101 +36,40 @@ public V2HorizontalPodAutoscalerStatusFluentImpl(V2HorizontalPodAutoscalerStatus this.withLastScaleTime(instance.getLastScaleTime()); this.withObservedGeneration(instance.getObservedGeneration()); - } + } private ArrayList conditions; private ArrayList currentMetrics; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - - public A addToConditions(Integer index, V2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V2HorizontalPodAutoscalerConditionBuilder builder = - new V2HorizontalPodAutoscalerConditionBuilder(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 addToConditions(Integer index,V2HorizontalPodAutoscalerCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(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(Integer index, V2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V2HorizontalPodAutoscalerConditionBuilder builder = - new V2HorizontalPodAutoscalerConditionBuilder(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 setToConditions(Integer index,V2HorizontalPodAutoscalerCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(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.V2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = - new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(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 ArrayList(); - } - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = - new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = - new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { + for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = - new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -145,208 +80,101 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V2HorizontalPodAutoscalerCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V2HorizontalPodAutoscalerCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V2HorizontalPodAutoscalerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V2HorizontalPodAutoscalerCondition buildMatchingCondition( - Predicate predicate) { - for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate) { + for (V2HorizontalPodAutoscalerConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V2HorizontalPodAutoscalerConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V2HorizontalPodAutoscalerCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V2HorizontalPodAutoscalerCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition() { return new V2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(); } - - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( - V2HorizontalPodAutoscalerCondition item) { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item) { return new V2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V2HorizontalPodAutoscalerCondition item) { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike(Integer index,V2HorizontalPodAutoscalerCondition item) { return new V2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(index, item); } - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition(Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V2HorizontalPodAutoscalerStatusFluent.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 V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables - .get("currentMetrics") - .add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder); - this.currentMetrics.add(index >= 0 ? index : currentMetrics.size(), builder); - return (A) this; + public A addToCurrentMetrics(Integer index,V2MetricStatus item) { + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder);this.currentMetrics.add(index >= 0 ? index : currentMetrics.size(), builder); return (A)this; } - - public A setToCurrentMetrics(Integer index, V2MetricStatus item) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); - } + public A setToCurrentMetrics(Integer index,V2MetricStatus item) { + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= _visitables.get("currentMetrics").size()) { - _visitables.get("currentMetrics").add(builder); - } else { - _visitables.get("currentMetrics").set(index, builder); - } - if (index < 0 || index >= currentMetrics.size()) { - currentMetrics.add(builder); - } else { - currentMetrics.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("currentMetrics").size()) { _visitables.get("currentMetrics").add(builder); } else { _visitables.get("currentMetrics").set(index, builder);} + if (index < 0 || index >= currentMetrics.size()) { currentMetrics.add(builder); } else { currentMetrics.set(index, builder);} + return (A)this; } - public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); - } - for (V2MetricStatus item : items) { - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); - } - return (A) this; + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; } - public A addAllToCurrentMetrics(Collection items) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); - } - for (V2MetricStatus item : items) { - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); - } - return (A) this; + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; } - public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - for (V2MetricStatus item : items) { - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - if (this.currentMetrics != null) { - this.currentMetrics.remove(builder); - } - } - return (A) this; + for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder);if (this.currentMetrics != null) {this.currentMetrics.remove(builder);}} return (A)this; } - public A removeAllFromCurrentMetrics(Collection items) { - for (V2MetricStatus item : items) { - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - if (this.currentMetrics != null) { - this.currentMetrics.remove(builder); - } - } - return (A) this; + for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder);if (this.currentMetrics != null) {this.currentMetrics.remove(builder);}} return (A)this; } - public A removeMatchingFromCurrentMetrics(Predicate predicate) { if (currentMetrics == null) return (A) this; final Iterator each = currentMetrics.iterator(); @@ -358,302 +186,176 @@ public A removeMatchingFromCurrentMetrics(Predicate predi each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildCurrentMetrics instead. - * * @return The buildable object. */ @Deprecated public List getCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public List buildCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public V2MetricStatus buildCurrentMetric(Integer index) { return this.currentMetrics.get(index).build(); } - public V2MetricStatus buildFirstCurrentMetric() { return this.currentMetrics.get(0).build(); } - public V2MetricStatus buildLastCurrentMetric() { return this.currentMetrics.get(currentMetrics.size() - 1).build(); } - public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { - for (V2MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V2MetricStatusBuilder item: currentMetrics) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCurrentMetric(Predicate predicate) { - for (V2MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2MetricStatusBuilder item: currentMetrics) { if(predicate.test(item)){ return true;} } return false; } - public A withCurrentMetrics(List currentMetrics) { - if (this.currentMetrics != null) { - _visitables.get("currentMetrics").removeAll(this.currentMetrics); - } - if (currentMetrics != null) { - this.currentMetrics = new ArrayList(); - for (V2MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } else { - this.currentMetrics = null; - } - return (A) this; + if (this.currentMetrics != null) { _visitables.get("currentMetrics").removeAll(this.currentMetrics);} + if (currentMetrics != null) {this.currentMetrics = new ArrayList(); for (V2MetricStatus item : currentMetrics){this.addToCurrentMetrics(item);}} else { this.currentMetrics = null;} return (A) this; } - - public A withCurrentMetrics( - io.kubernetes.client.openapi.models.V2MetricStatus... currentMetrics) { - if (this.currentMetrics != null) { - this.currentMetrics.clear(); - } - if (currentMetrics != null) { - for (V2MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } - return (A) this; + public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... currentMetrics) { + if (this.currentMetrics != null) {this.currentMetrics.clear();} + if (currentMetrics != null) {for (V2MetricStatus item :currentMetrics){ this.addToCurrentMetrics(item);}} return (A) this; } - public Boolean hasCurrentMetrics() { return currentMetrics != null && !currentMetrics.isEmpty(); } - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric() { return new V2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(); } - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( - V2MetricStatus item) { + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item) { return new V2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(-1, item); } - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( - Integer index, V2MetricStatus item) { + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike(Integer index,V2MetricStatus item) { return new V2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(index, item); } - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( - Integer index) { - if (currentMetrics.size() <= index) - throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric(Integer index) { + if (currentMetrics.size() <= index) throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric() { - if (currentMetrics.size() == 0) - throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); + if (currentMetrics.size() == 0) throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); return setNewCurrentMetricLike(0, buildCurrentMetric(0)); } - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editLastCurrentMetric() { int index = currentMetrics.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last currentMetrics. The list is empty."); return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - - public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric( - Predicate predicate) { + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate) { int index = -1; - for (int i = 0; i < currentMetrics.size(); i++) { - if (predicate.test(currentMetrics.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching currentMetrics. No match found."); + for (int i=0;i - extends V2HorizontalPodAutoscalerConditionFluentImpl< - V2HorizontalPodAutoscalerStatusFluent.ConditionsNested> - implements V2HorizontalPodAutoscalerStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V2HorizontalPodAutoscalerCondition item) { + class ConditionsNestedImpl extends V2HorizontalPodAutoscalerConditionFluentImpl> implements V2HorizontalPodAutoscalerStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V2HorizontalPodAutoscalerCondition item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V2HorizontalPodAutoscalerConditionBuilder(this); } - V2HorizontalPodAutoscalerConditionBuilder builder; Integer index; - public N and() { - return (N) - V2HorizontalPodAutoscalerStatusFluentImpl.this.setToConditions(index, builder.build()); + return (N) V2HorizontalPodAutoscalerStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class CurrentMetricsNestedImpl - extends V2MetricStatusFluentImpl< - V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> - implements V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested, Nested { - CurrentMetricsNestedImpl(Integer index, V2MetricStatus item) { + class CurrentMetricsNestedImpl extends V2MetricStatusFluentImpl> implements V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested,Nested{ + CurrentMetricsNestedImpl(Integer index,V2MetricStatus item) { this.index = index; this.builder = new V2MetricStatusBuilder(this, item); } - CurrentMetricsNestedImpl() { this.index = -1; this.builder = new V2MetricStatusBuilder(this); } - V2MetricStatusBuilder builder; Integer index; - public N and() { - return (N) - V2HorizontalPodAutoscalerStatusFluentImpl.this.setToCurrentMetrics( - index, builder.build()); + return (N) V2HorizontalPodAutoscalerStatusFluentImpl.this.setToCurrentMetrics(index,builder.build()); } - public N endCurrentMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java index 16a7faf148..49f8ec20c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java @@ -1,73 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2MetricIdentifierBuilder - extends V2MetricIdentifierFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2MetricIdentifierBuilder extends V2MetricIdentifierFluentImpl implements VisitableBuilder{ public V2MetricIdentifierBuilder() { this(false); } - public V2MetricIdentifierBuilder(Boolean validationEnabled) { this(new V2MetricIdentifier(), validationEnabled); } - public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent) { this(fluent, false); } - - public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent, Boolean validationEnabled) { + public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,Boolean validationEnabled) { this(fluent, new V2MetricIdentifier(), validationEnabled); } - - public V2MetricIdentifierBuilder( - V2MetricIdentifierFluent fluent, V2MetricIdentifier instance) { + public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,V2MetricIdentifier instance) { this(fluent, instance, false); } - - public V2MetricIdentifierBuilder( - V2MetricIdentifierFluent fluent, V2MetricIdentifier instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,V2MetricIdentifier instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2MetricIdentifierBuilder(V2MetricIdentifier instance) { - this(instance, false); + this(instance,false); } - - public V2MetricIdentifierBuilder(V2MetricIdentifier instance, Boolean validationEnabled) { - this.fluent = this; + public V2MetricIdentifierBuilder(V2MetricIdentifier instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2MetricIdentifierFluent fluent; Boolean validationEnabled; - public V2MetricIdentifier build() { V2MetricIdentifier buildable = new V2MetricIdentifier(); buildable.setName(fluent.getName()); buildable.setSelector(fluent.getSelector()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java index a86993dc69..b04b4cf071 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java @@ -1,56 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2MetricIdentifierFluent> extends Fluent { + /** + * Generated + */ +public interface V2MetricIdentifierFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V2MetricIdentifierFluent.SelectorNested withNewSelector(); - public V2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V2MetricIdentifierFluent.SelectorNested editSelector(); - public V2MetricIdentifierFluent.SelectorNested editOrNewSelector(); - public V2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java index 815ccf0ed7..818af3d1d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java @@ -1,146 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2MetricIdentifierFluentImpl> - extends BaseFluent implements V2MetricIdentifierFluent { - public V2MetricIdentifierFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2MetricIdentifierFluentImpl> extends BaseFluent implements V2MetricIdentifierFluent{ + public V2MetricIdentifierFluentImpl() { + } public V2MetricIdentifierFluentImpl(V2MetricIdentifier instance) { this.withName(instance.getName()); this.withSelector(instance.getSelector()); - } + } private String name; private V1LabelSelectorBuilder selector; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V2MetricIdentifierFluent.SelectorNested withNewSelector() { return new V2MetricIdentifierFluentImpl.SelectorNestedImpl(); } - public V2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V2MetricIdentifierFluentImpl.SelectorNestedImpl(item); } - public V2MetricIdentifierFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V2MetricIdentifierFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - public V2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2MetricIdentifierFluentImpl that = (V2MetricIdentifierFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, selector, super.hashCode()); + return java.util.Objects.hash(name, selector, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector); } sb.append("}"); return sb.toString(); } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V2MetricIdentifierFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V2MetricIdentifierFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V2MetricIdentifierFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java index b3c9116749..55ed2ab1e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2MetricSpecBuilder extends V2MetricSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2MetricSpecBuilder extends V2MetricSpecFluentImpl implements VisitableBuilder{ public V2MetricSpecBuilder() { this(false); } - public V2MetricSpecBuilder(Boolean validationEnabled) { this(new V2MetricSpec(), validationEnabled); } - public V2MetricSpecBuilder(V2MetricSpecFluent fluent) { this(fluent, false); } - - public V2MetricSpecBuilder(V2MetricSpecFluent fluent, Boolean validationEnabled) { + public V2MetricSpecBuilder(V2MetricSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V2MetricSpec(), validationEnabled); } - - public V2MetricSpecBuilder(V2MetricSpecFluent fluent, V2MetricSpec instance) { + public V2MetricSpecBuilder(V2MetricSpecFluent fluent,V2MetricSpec instance) { this(fluent, instance, false); } - - public V2MetricSpecBuilder( - V2MetricSpecFluent fluent, V2MetricSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2MetricSpecBuilder(V2MetricSpecFluent fluent,V2MetricSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); fluent.withExternal(instance.getExternal()); @@ -51,15 +32,13 @@ public V2MetricSpecBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2MetricSpecBuilder(V2MetricSpec instance) { - this(instance, false); + this(instance,false); } - - public V2MetricSpecBuilder(V2MetricSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V2MetricSpecBuilder(V2MetricSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -72,12 +51,10 @@ public V2MetricSpecBuilder(V2MetricSpec instance, Boolean validationEnabled) { this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2MetricSpecFluent fluent; Boolean validationEnabled; - public V2MetricSpec build() { V2MetricSpec buildable = new V2MetricSpec(); buildable.setContainerResource(fluent.getContainerResource()); @@ -88,4 +65,5 @@ public V2MetricSpec build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java index 0a438382b0..953e3b948a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java @@ -1,184 +1,117 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2MetricSpecFluent> extends Fluent { - +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2MetricSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2ContainerResourceMetricSource getContainerResource(); - public V2ContainerResourceMetricSource buildContainerResource(); - public A withContainerResource(V2ContainerResourceMetricSource containerResource); - public Boolean hasContainerResource(); - public V2MetricSpecFluent.ContainerResourceNested withNewContainerResource(); - - public V2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( - V2ContainerResourceMetricSource item); - + public V2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item); public V2MetricSpecFluent.ContainerResourceNested editContainerResource(); - public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource(); - - public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2ContainerResourceMetricSource item); - + public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricSource item); + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2ExternalMetricSource getExternal(); - public V2ExternalMetricSource buildExternal(); - public A withExternal(V2ExternalMetricSource external); - public Boolean hasExternal(); - public V2MetricSpecFluent.ExternalNested withNewExternal(); - public V2MetricSpecFluent.ExternalNested withNewExternalLike(V2ExternalMetricSource item); - public V2MetricSpecFluent.ExternalNested editExternal(); - public V2MetricSpecFluent.ExternalNested editOrNewExternal(); - public V2MetricSpecFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricSource item); - + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2ObjectMetricSource getObject(); - public V2ObjectMetricSource buildObject(); - public A withObject(V2ObjectMetricSource _object); - public Boolean hasObject(); - public V2MetricSpecFluent.ObjectNested withNewObject(); - public V2MetricSpecFluent.ObjectNested withNewObjectLike(V2ObjectMetricSource item); - public V2MetricSpecFluent.ObjectNested editObject(); - public V2MetricSpecFluent.ObjectNested editOrNewObject(); - public V2MetricSpecFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricSource item); - + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2PodsMetricSource getPods(); - public V2PodsMetricSource buildPods(); - public A withPods(V2PodsMetricSource pods); - public Boolean hasPods(); - public V2MetricSpecFluent.PodsNested withNewPods(); - public V2MetricSpecFluent.PodsNested withNewPodsLike(V2PodsMetricSource item); - public V2MetricSpecFluent.PodsNested editPods(); - public V2MetricSpecFluent.PodsNested editOrNewPods(); - public V2MetricSpecFluent.PodsNested editOrNewPodsLike(V2PodsMetricSource item); - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2ResourceMetricSource getResource(); - public V2ResourceMetricSource buildResource(); - public A withResource(V2ResourceMetricSource resource); - public Boolean hasResource(); - public V2MetricSpecFluent.ResourceNested withNewResource(); - public V2MetricSpecFluent.ResourceNested withNewResourceLike(V2ResourceMetricSource item); - public V2MetricSpecFluent.ResourceNested editResource(); - public V2MetricSpecFluent.ResourceNested editOrNewResource(); - public V2MetricSpecFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricSource item); - public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface ContainerResourceNested - extends Nested, - V2ContainerResourceMetricSourceFluent> { + public interface ContainerResourceNested extends Nested,V2ContainerResourceMetricSourceFluent>{ public N and(); - public N endContainerResource(); + } - - public interface ExternalNested - extends Nested, V2ExternalMetricSourceFluent> { + public interface ExternalNested extends Nested,V2ExternalMetricSourceFluent>{ public N and(); - public N endExternal(); + } - - public interface ObjectNested - extends Nested, V2ObjectMetricSourceFluent> { + public interface ObjectNested extends Nested,V2ObjectMetricSourceFluent>{ public N and(); - public N endObject(); + } - - public interface PodsNested - extends Nested, V2PodsMetricSourceFluent> { + public interface PodsNested extends Nested,V2PodsMetricSourceFluent>{ public N and(); - public N endPods(); + } - - public interface ResourceNested - extends Nested, V2ResourceMetricSourceFluent> { + public interface ResourceNested extends Nested,V2ResourceMetricSourceFluent>{ public N and(); - public N endResource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java index 87a6355b78..75c882c177 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2MetricSpecFluentImpl> extends BaseFluent - implements V2MetricSpecFluent { - public V2MetricSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2MetricSpecFluentImpl> extends BaseFluent implements V2MetricSpecFluent{ + public V2MetricSpecFluentImpl() { + } public V2MetricSpecFluentImpl(V2MetricSpec instance) { this.withContainerResource(instance.getContainerResource()); @@ -33,445 +27,299 @@ public V2MetricSpecFluentImpl(V2MetricSpec instance) { this.withResource(instance.getResource()); this.withType(instance.getType()); - } + } private V2ContainerResourceMetricSourceBuilder containerResource; private V2ExternalMetricSourceBuilder external; private V2ObjectMetricSourceBuilder _object; private V2PodsMetricSourceBuilder pods; private V2ResourceMetricSourceBuilder resource; private String type; - + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2ContainerResourceMetricSource getContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public V2ContainerResourceMetricSource buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public A withContainerResource(V2ContainerResourceMetricSource containerResource) { _visitables.get("containerResource").remove(this.containerResource); - if (containerResource != null) { - this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); - _visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - _visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; + if (containerResource!=null){ this.containerResource= new V2ContainerResourceMetricSourceBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource);} else { this.containerResource = null; _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } - public Boolean hasContainerResource() { return this.containerResource != null; } - public V2MetricSpecFluent.ContainerResourceNested withNewContainerResource() { return new V2MetricSpecFluentImpl.ContainerResourceNestedImpl(); } - - public V2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( - V2ContainerResourceMetricSource item) { + public V2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item) { return new V2MetricSpecFluentImpl.ContainerResourceNestedImpl(item); } - public V2MetricSpecFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike( - getContainerResource() != null - ? getContainerResource() - : new V2ContainerResourceMetricSourceBuilder().build()); + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): new V2ContainerResourceMetricSourceBuilder().build()); } - - public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2ContainerResourceMetricSource item) { - return withNewContainerResourceLike( - getContainerResource() != null ? getContainerResource() : item); + public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricSource item) { + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): item); } - + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2ExternalMetricSource getExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public V2ExternalMetricSource buildExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public A withExternal(V2ExternalMetricSource external) { _visitables.get("external").remove(this.external); - if (external != null) { - this.external = new V2ExternalMetricSourceBuilder(external); - _visitables.get("external").add(this.external); - } else { - this.external = null; - _visitables.get("external").remove(this.external); - } - return (A) this; + if (external!=null){ this.external= new V2ExternalMetricSourceBuilder(external); _visitables.get("external").add(this.external);} else { this.external = null; _visitables.get("external").remove(this.external); } return (A) this; } - public Boolean hasExternal() { return this.external != null; } - public V2MetricSpecFluent.ExternalNested withNewExternal() { return new V2MetricSpecFluentImpl.ExternalNestedImpl(); } - public V2MetricSpecFluent.ExternalNested withNewExternalLike(V2ExternalMetricSource item) { return new V2MetricSpecFluentImpl.ExternalNestedImpl(item); } - public V2MetricSpecFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public V2MetricSpecFluent.ExternalNested editOrNewExternal() { - return withNewExternalLike( - getExternal() != null ? getExternal() : new V2ExternalMetricSourceBuilder().build()); + return withNewExternalLike(getExternal() != null ? getExternal(): new V2ExternalMetricSourceBuilder().build()); } - public V2MetricSpecFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricSource item) { - return withNewExternalLike(getExternal() != null ? getExternal() : item); + return withNewExternalLike(getExternal() != null ? getExternal(): item); } - + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2ObjectMetricSource getObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public V2ObjectMetricSource buildObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public A withObject(V2ObjectMetricSource _object) { _visitables.get("_object").remove(this._object); - if (_object != null) { - this._object = new V2ObjectMetricSourceBuilder(_object); - _visitables.get("_object").add(this._object); - } else { - this._object = null; - _visitables.get("_object").remove(this._object); - } - return (A) this; + if (_object!=null){ this._object= new V2ObjectMetricSourceBuilder(_object); _visitables.get("_object").add(this._object);} else { this._object = null; _visitables.get("_object").remove(this._object); } return (A) this; } - public Boolean hasObject() { return this._object != null; } - public V2MetricSpecFluent.ObjectNested withNewObject() { return new V2MetricSpecFluentImpl.ObjectNestedImpl(); } - public V2MetricSpecFluent.ObjectNested withNewObjectLike(V2ObjectMetricSource item) { return new V2MetricSpecFluentImpl.ObjectNestedImpl(item); } - public V2MetricSpecFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public V2MetricSpecFluent.ObjectNested editOrNewObject() { - return withNewObjectLike( - getObject() != null ? getObject() : new V2ObjectMetricSourceBuilder().build()); + return withNewObjectLike(getObject() != null ? getObject(): new V2ObjectMetricSourceBuilder().build()); } - public V2MetricSpecFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricSource item) { - return withNewObjectLike(getObject() != null ? getObject() : item); + return withNewObjectLike(getObject() != null ? getObject(): item); } - + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2PodsMetricSource getPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public V2PodsMetricSource buildPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public A withPods(V2PodsMetricSource pods) { _visitables.get("pods").remove(this.pods); - if (pods != null) { - this.pods = new V2PodsMetricSourceBuilder(pods); - _visitables.get("pods").add(this.pods); - } else { - this.pods = null; - _visitables.get("pods").remove(this.pods); - } - return (A) this; + if (pods!=null){ this.pods= new V2PodsMetricSourceBuilder(pods); _visitables.get("pods").add(this.pods);} else { this.pods = null; _visitables.get("pods").remove(this.pods); } return (A) this; } - public Boolean hasPods() { return this.pods != null; } - public V2MetricSpecFluent.PodsNested withNewPods() { return new V2MetricSpecFluentImpl.PodsNestedImpl(); } - public V2MetricSpecFluent.PodsNested withNewPodsLike(V2PodsMetricSource item) { return new V2MetricSpecFluentImpl.PodsNestedImpl(item); } - public V2MetricSpecFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public V2MetricSpecFluent.PodsNested editOrNewPods() { - return withNewPodsLike(getPods() != null ? getPods() : new V2PodsMetricSourceBuilder().build()); + return withNewPodsLike(getPods() != null ? getPods(): new V2PodsMetricSourceBuilder().build()); } - public V2MetricSpecFluent.PodsNested editOrNewPodsLike(V2PodsMetricSource item) { - return withNewPodsLike(getPods() != null ? getPods() : item); + return withNewPodsLike(getPods() != null ? getPods(): item); } - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2ResourceMetricSource getResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public V2ResourceMetricSource buildResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public A withResource(V2ResourceMetricSource resource) { _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = new V2ResourceMetricSourceBuilder(resource); - _visitables.get("resource").add(this.resource); - } else { - this.resource = null; - _visitables.get("resource").remove(this.resource); - } - return (A) this; + if (resource!=null){ this.resource= new V2ResourceMetricSourceBuilder(resource); _visitables.get("resource").add(this.resource);} else { this.resource = null; _visitables.get("resource").remove(this.resource); } return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public V2MetricSpecFluent.ResourceNested withNewResource() { return new V2MetricSpecFluentImpl.ResourceNestedImpl(); } - public V2MetricSpecFluent.ResourceNested withNewResourceLike(V2ResourceMetricSource item) { return new V2MetricSpecFluentImpl.ResourceNestedImpl(item); } - public V2MetricSpecFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public V2MetricSpecFluent.ResourceNested editOrNewResource() { - return withNewResourceLike( - getResource() != null ? getResource() : new V2ResourceMetricSourceBuilder().build()); + return withNewResourceLike(getResource() != null ? getResource(): new V2ResourceMetricSourceBuilder().build()); } - public V2MetricSpecFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricSource item) { - return withNewResourceLike(getResource() != null ? getResource() : item); + return withNewResourceLike(getResource() != null ? getResource(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2MetricSpecFluentImpl that = (V2MetricSpecFluentImpl) o; - if (containerResource != null - ? !containerResource.equals(that.containerResource) - : that.containerResource != null) return false; - if (external != null ? !external.equals(that.external) : that.external != null) return false; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (pods != null ? !pods.equals(that.pods) : that.pods != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (containerResource != null ? !containerResource.equals(that.containerResource) :that.containerResource != null) return false; + if (external != null ? !external.equals(that.external) :that.external != null) return false; + if (_object != null ? !_object.equals(that._object) :that._object != null) return false; + if (pods != null ? !pods.equals(that.pods) :that.pods != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerResource, external, _object, pods, resource, type, super.hashCode()); + return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerResource != null) { - sb.append("containerResource:"); - sb.append(containerResource + ","); - } - if (external != null) { - sb.append("external:"); - sb.append(external + ","); - } - if (_object != null) { - sb.append("_object:"); - sb.append(_object + ","); - } - if (pods != null) { - sb.append("pods:"); - sb.append(pods + ","); - } - if (resource != null) { - sb.append("resource:"); - sb.append(resource + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } + if (external != null) { sb.append("external:"); sb.append(external + ","); } + if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } + if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class ContainerResourceNestedImpl - extends V2ContainerResourceMetricSourceFluentImpl< - V2MetricSpecFluent.ContainerResourceNested> - implements V2MetricSpecFluent.ContainerResourceNested, Nested { + class ContainerResourceNestedImpl extends V2ContainerResourceMetricSourceFluentImpl> implements V2MetricSpecFluent.ContainerResourceNested,Nested{ ContainerResourceNestedImpl(V2ContainerResourceMetricSource item) { this.builder = new V2ContainerResourceMetricSourceBuilder(this, item); } - ContainerResourceNestedImpl() { this.builder = new V2ContainerResourceMetricSourceBuilder(this); } - V2ContainerResourceMetricSourceBuilder builder; - public N and() { return (N) V2MetricSpecFluentImpl.this.withContainerResource(builder.build()); } - public N endContainerResource() { return and(); } + } - - class ExternalNestedImpl - extends V2ExternalMetricSourceFluentImpl> - implements V2MetricSpecFluent.ExternalNested, Nested { + class ExternalNestedImpl extends V2ExternalMetricSourceFluentImpl> implements V2MetricSpecFluent.ExternalNested,Nested{ ExternalNestedImpl(V2ExternalMetricSource item) { this.builder = new V2ExternalMetricSourceBuilder(this, item); } - ExternalNestedImpl() { this.builder = new V2ExternalMetricSourceBuilder(this); } - V2ExternalMetricSourceBuilder builder; - public N and() { return (N) V2MetricSpecFluentImpl.this.withExternal(builder.build()); } - public N endExternal() { return and(); } + } - - class ObjectNestedImpl - extends V2ObjectMetricSourceFluentImpl> - implements V2MetricSpecFluent.ObjectNested, Nested { + class ObjectNestedImpl extends V2ObjectMetricSourceFluentImpl> implements V2MetricSpecFluent.ObjectNested,Nested{ ObjectNestedImpl(V2ObjectMetricSource item) { this.builder = new V2ObjectMetricSourceBuilder(this, item); } - ObjectNestedImpl() { this.builder = new V2ObjectMetricSourceBuilder(this); } - V2ObjectMetricSourceBuilder builder; - public N and() { return (N) V2MetricSpecFluentImpl.this.withObject(builder.build()); } - public N endObject() { return and(); } + } - - class PodsNestedImpl extends V2PodsMetricSourceFluentImpl> - implements V2MetricSpecFluent.PodsNested, Nested { + class PodsNestedImpl extends V2PodsMetricSourceFluentImpl> implements V2MetricSpecFluent.PodsNested,Nested{ PodsNestedImpl(V2PodsMetricSource item) { this.builder = new V2PodsMetricSourceBuilder(this, item); } - PodsNestedImpl() { this.builder = new V2PodsMetricSourceBuilder(this); } - V2PodsMetricSourceBuilder builder; - public N and() { return (N) V2MetricSpecFluentImpl.this.withPods(builder.build()); } - public N endPods() { return and(); } + } - - class ResourceNestedImpl - extends V2ResourceMetricSourceFluentImpl> - implements V2MetricSpecFluent.ResourceNested, Nested { + class ResourceNestedImpl extends V2ResourceMetricSourceFluentImpl> implements V2MetricSpecFluent.ResourceNested,Nested{ ResourceNestedImpl(V2ResourceMetricSource item) { this.builder = new V2ResourceMetricSourceBuilder(this, item); } - ResourceNestedImpl() { this.builder = new V2ResourceMetricSourceBuilder(this); } - V2ResourceMetricSourceBuilder builder; - public N and() { return (N) V2MetricSpecFluentImpl.this.withResource(builder.build()); } - public N endResource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java index 720464eaa0..cc76dbb69a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2MetricStatusBuilder extends V2MetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2MetricStatusBuilder extends V2MetricStatusFluentImpl implements VisitableBuilder{ public V2MetricStatusBuilder() { this(false); } - public V2MetricStatusBuilder(Boolean validationEnabled) { this(new V2MetricStatus(), validationEnabled); } - public V2MetricStatusBuilder(V2MetricStatusFluent fluent) { this(fluent, false); } - - public V2MetricStatusBuilder(V2MetricStatusFluent fluent, Boolean validationEnabled) { + public V2MetricStatusBuilder(V2MetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2MetricStatus(), validationEnabled); } - - public V2MetricStatusBuilder(V2MetricStatusFluent fluent, V2MetricStatus instance) { + public V2MetricStatusBuilder(V2MetricStatusFluent fluent,V2MetricStatus instance) { this(fluent, instance, false); } - - public V2MetricStatusBuilder( - V2MetricStatusFluent fluent, V2MetricStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2MetricStatusBuilder(V2MetricStatusFluent fluent,V2MetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); fluent.withExternal(instance.getExternal()); @@ -51,15 +32,13 @@ public V2MetricStatusBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2MetricStatusBuilder(V2MetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2MetricStatusBuilder(V2MetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2MetricStatusBuilder(V2MetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -72,12 +51,10 @@ public V2MetricStatusBuilder(V2MetricStatus instance, Boolean validationEnabled) this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2MetricStatusFluent fluent; Boolean validationEnabled; - public V2MetricStatus build() { V2MetricStatus buildable = new V2MetricStatus(); buildable.setContainerResource(fluent.getContainerResource()); @@ -88,4 +65,5 @@ public V2MetricStatus build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java index e2a328ee2c..89cdb61085 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java @@ -1,184 +1,117 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2MetricStatusFluent> extends Fluent { - +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2MetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2ContainerResourceMetricStatus getContainerResource(); - public V2ContainerResourceMetricStatus buildContainerResource(); - public A withContainerResource(V2ContainerResourceMetricStatus containerResource); - public Boolean hasContainerResource(); - public V2MetricStatusFluent.ContainerResourceNested withNewContainerResource(); - - public V2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( - V2ContainerResourceMetricStatus item); - + public V2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item); public V2MetricStatusFluent.ContainerResourceNested editContainerResource(); - public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource(); - - public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2ContainerResourceMetricStatus item); - + public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricStatus item); + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2ExternalMetricStatus getExternal(); - public V2ExternalMetricStatus buildExternal(); - public A withExternal(V2ExternalMetricStatus external); - public Boolean hasExternal(); - public V2MetricStatusFluent.ExternalNested withNewExternal(); - public V2MetricStatusFluent.ExternalNested withNewExternalLike(V2ExternalMetricStatus item); - public V2MetricStatusFluent.ExternalNested editExternal(); - public V2MetricStatusFluent.ExternalNested editOrNewExternal(); - public V2MetricStatusFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item); - + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2ObjectMetricStatus getObject(); - public V2ObjectMetricStatus buildObject(); - public A withObject(V2ObjectMetricStatus _object); - public Boolean hasObject(); - public V2MetricStatusFluent.ObjectNested withNewObject(); - public V2MetricStatusFluent.ObjectNested withNewObjectLike(V2ObjectMetricStatus item); - public V2MetricStatusFluent.ObjectNested editObject(); - public V2MetricStatusFluent.ObjectNested editOrNewObject(); - public V2MetricStatusFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item); - + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2PodsMetricStatus getPods(); - public V2PodsMetricStatus buildPods(); - public A withPods(V2PodsMetricStatus pods); - public Boolean hasPods(); - public V2MetricStatusFluent.PodsNested withNewPods(); - public V2MetricStatusFluent.PodsNested withNewPodsLike(V2PodsMetricStatus item); - public V2MetricStatusFluent.PodsNested editPods(); - public V2MetricStatusFluent.PodsNested editOrNewPods(); - public V2MetricStatusFluent.PodsNested editOrNewPodsLike(V2PodsMetricStatus item); - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2ResourceMetricStatus getResource(); - public V2ResourceMetricStatus buildResource(); - public A withResource(V2ResourceMetricStatus resource); - public Boolean hasResource(); - public V2MetricStatusFluent.ResourceNested withNewResource(); - public V2MetricStatusFluent.ResourceNested withNewResourceLike(V2ResourceMetricStatus item); - public V2MetricStatusFluent.ResourceNested editResource(); - public V2MetricStatusFluent.ResourceNested editOrNewResource(); - public V2MetricStatusFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item); - public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface ContainerResourceNested - extends Nested, - V2ContainerResourceMetricStatusFluent> { + public interface ContainerResourceNested extends Nested,V2ContainerResourceMetricStatusFluent>{ public N and(); - public N endContainerResource(); + } - - public interface ExternalNested - extends Nested, V2ExternalMetricStatusFluent> { + public interface ExternalNested extends Nested,V2ExternalMetricStatusFluent>{ public N and(); - public N endExternal(); + } - - public interface ObjectNested - extends Nested, V2ObjectMetricStatusFluent> { + public interface ObjectNested extends Nested,V2ObjectMetricStatusFluent>{ public N and(); - public N endObject(); + } - - public interface PodsNested - extends Nested, V2PodsMetricStatusFluent> { + public interface PodsNested extends Nested,V2PodsMetricStatusFluent>{ public N and(); - public N endPods(); + } - - public interface ResourceNested - extends Nested, V2ResourceMetricStatusFluent> { + public interface ResourceNested extends Nested,V2ResourceMetricStatusFluent>{ public N and(); - public N endResource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java index 218a9a1b75..37b43086f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2MetricStatusFluentImpl> extends BaseFluent - implements V2MetricStatusFluent { - public V2MetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2MetricStatusFluentImpl> extends BaseFluent implements V2MetricStatusFluent{ + public V2MetricStatusFluentImpl() { + } public V2MetricStatusFluentImpl(V2MetricStatus instance) { this.withContainerResource(instance.getContainerResource()); @@ -33,445 +27,299 @@ public V2MetricStatusFluentImpl(V2MetricStatus instance) { this.withResource(instance.getResource()); this.withType(instance.getType()); - } + } private V2ContainerResourceMetricStatusBuilder containerResource; private V2ExternalMetricStatusBuilder external; private V2ObjectMetricStatusBuilder _object; private V2PodsMetricStatusBuilder pods; private V2ResourceMetricStatusBuilder resource; private String type; - + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2ContainerResourceMetricStatus getContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public V2ContainerResourceMetricStatus buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public A withContainerResource(V2ContainerResourceMetricStatus containerResource) { _visitables.get("containerResource").remove(this.containerResource); - if (containerResource != null) { - this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); - _visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - _visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; + if (containerResource!=null){ this.containerResource= new V2ContainerResourceMetricStatusBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource);} else { this.containerResource = null; _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } - public Boolean hasContainerResource() { return this.containerResource != null; } - public V2MetricStatusFluent.ContainerResourceNested withNewContainerResource() { return new V2MetricStatusFluentImpl.ContainerResourceNestedImpl(); } - - public V2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( - V2ContainerResourceMetricStatus item) { + public V2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item) { return new V2MetricStatusFluentImpl.ContainerResourceNestedImpl(item); } - public V2MetricStatusFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike( - getContainerResource() != null - ? getContainerResource() - : new V2ContainerResourceMetricStatusBuilder().build()); + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): new V2ContainerResourceMetricStatusBuilder().build()); } - - public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2ContainerResourceMetricStatus item) { - return withNewContainerResourceLike( - getContainerResource() != null ? getContainerResource() : item); + public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricStatus item) { + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): item); } - + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2ExternalMetricStatus getExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public V2ExternalMetricStatus buildExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public A withExternal(V2ExternalMetricStatus external) { _visitables.get("external").remove(this.external); - if (external != null) { - this.external = new V2ExternalMetricStatusBuilder(external); - _visitables.get("external").add(this.external); - } else { - this.external = null; - _visitables.get("external").remove(this.external); - } - return (A) this; + if (external!=null){ this.external= new V2ExternalMetricStatusBuilder(external); _visitables.get("external").add(this.external);} else { this.external = null; _visitables.get("external").remove(this.external); } return (A) this; } - public Boolean hasExternal() { return this.external != null; } - public V2MetricStatusFluent.ExternalNested withNewExternal() { return new V2MetricStatusFluentImpl.ExternalNestedImpl(); } - public V2MetricStatusFluent.ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { return new V2MetricStatusFluentImpl.ExternalNestedImpl(item); } - public V2MetricStatusFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public V2MetricStatusFluent.ExternalNested editOrNewExternal() { - return withNewExternalLike( - getExternal() != null ? getExternal() : new V2ExternalMetricStatusBuilder().build()); + return withNewExternalLike(getExternal() != null ? getExternal(): new V2ExternalMetricStatusBuilder().build()); } - public V2MetricStatusFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item) { - return withNewExternalLike(getExternal() != null ? getExternal() : item); + return withNewExternalLike(getExternal() != null ? getExternal(): item); } - + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2ObjectMetricStatus getObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public V2ObjectMetricStatus buildObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public A withObject(V2ObjectMetricStatus _object) { _visitables.get("_object").remove(this._object); - if (_object != null) { - this._object = new V2ObjectMetricStatusBuilder(_object); - _visitables.get("_object").add(this._object); - } else { - this._object = null; - _visitables.get("_object").remove(this._object); - } - return (A) this; + if (_object!=null){ this._object= new V2ObjectMetricStatusBuilder(_object); _visitables.get("_object").add(this._object);} else { this._object = null; _visitables.get("_object").remove(this._object); } return (A) this; } - public Boolean hasObject() { return this._object != null; } - public V2MetricStatusFluent.ObjectNested withNewObject() { return new V2MetricStatusFluentImpl.ObjectNestedImpl(); } - public V2MetricStatusFluent.ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { return new V2MetricStatusFluentImpl.ObjectNestedImpl(item); } - public V2MetricStatusFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public V2MetricStatusFluent.ObjectNested editOrNewObject() { - return withNewObjectLike( - getObject() != null ? getObject() : new V2ObjectMetricStatusBuilder().build()); + return withNewObjectLike(getObject() != null ? getObject(): new V2ObjectMetricStatusBuilder().build()); } - public V2MetricStatusFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item) { - return withNewObjectLike(getObject() != null ? getObject() : item); + return withNewObjectLike(getObject() != null ? getObject(): item); } - + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2PodsMetricStatus getPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public V2PodsMetricStatus buildPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public A withPods(V2PodsMetricStatus pods) { _visitables.get("pods").remove(this.pods); - if (pods != null) { - this.pods = new V2PodsMetricStatusBuilder(pods); - _visitables.get("pods").add(this.pods); - } else { - this.pods = null; - _visitables.get("pods").remove(this.pods); - } - return (A) this; + if (pods!=null){ this.pods= new V2PodsMetricStatusBuilder(pods); _visitables.get("pods").add(this.pods);} else { this.pods = null; _visitables.get("pods").remove(this.pods); } return (A) this; } - public Boolean hasPods() { return this.pods != null; } - public V2MetricStatusFluent.PodsNested withNewPods() { return new V2MetricStatusFluentImpl.PodsNestedImpl(); } - public V2MetricStatusFluent.PodsNested withNewPodsLike(V2PodsMetricStatus item) { return new V2MetricStatusFluentImpl.PodsNestedImpl(item); } - public V2MetricStatusFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public V2MetricStatusFluent.PodsNested editOrNewPods() { - return withNewPodsLike(getPods() != null ? getPods() : new V2PodsMetricStatusBuilder().build()); + return withNewPodsLike(getPods() != null ? getPods(): new V2PodsMetricStatusBuilder().build()); } - public V2MetricStatusFluent.PodsNested editOrNewPodsLike(V2PodsMetricStatus item) { - return withNewPodsLike(getPods() != null ? getPods() : item); + return withNewPodsLike(getPods() != null ? getPods(): item); } - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2ResourceMetricStatus getResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public V2ResourceMetricStatus buildResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public A withResource(V2ResourceMetricStatus resource) { _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = new V2ResourceMetricStatusBuilder(resource); - _visitables.get("resource").add(this.resource); - } else { - this.resource = null; - _visitables.get("resource").remove(this.resource); - } - return (A) this; + if (resource!=null){ this.resource= new V2ResourceMetricStatusBuilder(resource); _visitables.get("resource").add(this.resource);} else { this.resource = null; _visitables.get("resource").remove(this.resource); } return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public V2MetricStatusFluent.ResourceNested withNewResource() { return new V2MetricStatusFluentImpl.ResourceNestedImpl(); } - public V2MetricStatusFluent.ResourceNested withNewResourceLike(V2ResourceMetricStatus item) { return new V2MetricStatusFluentImpl.ResourceNestedImpl(item); } - public V2MetricStatusFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public V2MetricStatusFluent.ResourceNested editOrNewResource() { - return withNewResourceLike( - getResource() != null ? getResource() : new V2ResourceMetricStatusBuilder().build()); + return withNewResourceLike(getResource() != null ? getResource(): new V2ResourceMetricStatusBuilder().build()); } - public V2MetricStatusFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item) { - return withNewResourceLike(getResource() != null ? getResource() : item); + return withNewResourceLike(getResource() != null ? getResource(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2MetricStatusFluentImpl that = (V2MetricStatusFluentImpl) o; - if (containerResource != null - ? !containerResource.equals(that.containerResource) - : that.containerResource != null) return false; - if (external != null ? !external.equals(that.external) : that.external != null) return false; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (pods != null ? !pods.equals(that.pods) : that.pods != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (containerResource != null ? !containerResource.equals(that.containerResource) :that.containerResource != null) return false; + if (external != null ? !external.equals(that.external) :that.external != null) return false; + if (_object != null ? !_object.equals(that._object) :that._object != null) return false; + if (pods != null ? !pods.equals(that.pods) :that.pods != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerResource, external, _object, pods, resource, type, super.hashCode()); + return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerResource != null) { - sb.append("containerResource:"); - sb.append(containerResource + ","); - } - if (external != null) { - sb.append("external:"); - sb.append(external + ","); - } - if (_object != null) { - sb.append("_object:"); - sb.append(_object + ","); - } - if (pods != null) { - sb.append("pods:"); - sb.append(pods + ","); - } - if (resource != null) { - sb.append("resource:"); - sb.append(resource + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } + if (external != null) { sb.append("external:"); sb.append(external + ","); } + if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } + if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class ContainerResourceNestedImpl - extends V2ContainerResourceMetricStatusFluentImpl< - V2MetricStatusFluent.ContainerResourceNested> - implements V2MetricStatusFluent.ContainerResourceNested, Nested { + class ContainerResourceNestedImpl extends V2ContainerResourceMetricStatusFluentImpl> implements V2MetricStatusFluent.ContainerResourceNested,Nested{ ContainerResourceNestedImpl(V2ContainerResourceMetricStatus item) { this.builder = new V2ContainerResourceMetricStatusBuilder(this, item); } - ContainerResourceNestedImpl() { this.builder = new V2ContainerResourceMetricStatusBuilder(this); } - V2ContainerResourceMetricStatusBuilder builder; - public N and() { return (N) V2MetricStatusFluentImpl.this.withContainerResource(builder.build()); } - public N endContainerResource() { return and(); } + } - - class ExternalNestedImpl - extends V2ExternalMetricStatusFluentImpl> - implements V2MetricStatusFluent.ExternalNested, Nested { + class ExternalNestedImpl extends V2ExternalMetricStatusFluentImpl> implements V2MetricStatusFluent.ExternalNested,Nested{ ExternalNestedImpl(V2ExternalMetricStatus item) { this.builder = new V2ExternalMetricStatusBuilder(this, item); } - ExternalNestedImpl() { this.builder = new V2ExternalMetricStatusBuilder(this); } - V2ExternalMetricStatusBuilder builder; - public N and() { return (N) V2MetricStatusFluentImpl.this.withExternal(builder.build()); } - public N endExternal() { return and(); } + } - - class ObjectNestedImpl - extends V2ObjectMetricStatusFluentImpl> - implements V2MetricStatusFluent.ObjectNested, Nested { + class ObjectNestedImpl extends V2ObjectMetricStatusFluentImpl> implements V2MetricStatusFluent.ObjectNested,Nested{ ObjectNestedImpl(V2ObjectMetricStatus item) { this.builder = new V2ObjectMetricStatusBuilder(this, item); } - ObjectNestedImpl() { this.builder = new V2ObjectMetricStatusBuilder(this); } - V2ObjectMetricStatusBuilder builder; - public N and() { return (N) V2MetricStatusFluentImpl.this.withObject(builder.build()); } - public N endObject() { return and(); } + } - - class PodsNestedImpl extends V2PodsMetricStatusFluentImpl> - implements V2MetricStatusFluent.PodsNested, Nested { + class PodsNestedImpl extends V2PodsMetricStatusFluentImpl> implements V2MetricStatusFluent.PodsNested,Nested{ PodsNestedImpl(V2PodsMetricStatus item) { this.builder = new V2PodsMetricStatusBuilder(this, item); } - PodsNestedImpl() { this.builder = new V2PodsMetricStatusBuilder(this); } - V2PodsMetricStatusBuilder builder; - public N and() { return (N) V2MetricStatusFluentImpl.this.withPods(builder.build()); } - public N endPods() { return and(); } + } - - class ResourceNestedImpl - extends V2ResourceMetricStatusFluentImpl> - implements V2MetricStatusFluent.ResourceNested, Nested { + class ResourceNestedImpl extends V2ResourceMetricStatusFluentImpl> implements V2MetricStatusFluent.ResourceNested,Nested{ ResourceNestedImpl(V2ResourceMetricStatus item) { this.builder = new V2ResourceMetricStatusBuilder(this, item); } - ResourceNestedImpl() { this.builder = new V2ResourceMetricStatusBuilder(this); } - V2ResourceMetricStatusBuilder builder; - public N and() { return (N) V2MetricStatusFluentImpl.this.withResource(builder.build()); } - public N endResource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java index 6f23105730..b02eb57761 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2MetricTargetBuilder extends V2MetricTargetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2MetricTargetBuilder extends V2MetricTargetFluentImpl implements VisitableBuilder{ public V2MetricTargetBuilder() { this(false); } - public V2MetricTargetBuilder(Boolean validationEnabled) { this(new V2MetricTarget(), validationEnabled); } - public V2MetricTargetBuilder(V2MetricTargetFluent fluent) { this(fluent, false); } - - public V2MetricTargetBuilder(V2MetricTargetFluent fluent, Boolean validationEnabled) { + public V2MetricTargetBuilder(V2MetricTargetFluent fluent,Boolean validationEnabled) { this(fluent, new V2MetricTarget(), validationEnabled); } - - public V2MetricTargetBuilder(V2MetricTargetFluent fluent, V2MetricTarget instance) { + public V2MetricTargetBuilder(V2MetricTargetFluent fluent,V2MetricTarget instance) { this(fluent, instance, false); } - - public V2MetricTargetBuilder( - V2MetricTargetFluent fluent, V2MetricTarget instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2MetricTargetBuilder(V2MetricTargetFluent fluent,V2MetricTarget instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); fluent.withAverageValue(instance.getAverageValue()); @@ -47,15 +28,13 @@ public V2MetricTargetBuilder( fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2MetricTargetBuilder(V2MetricTarget instance) { - this(instance, false); + this(instance,false); } - - public V2MetricTargetBuilder(V2MetricTarget instance, Boolean validationEnabled) { - this.fluent = this; + public V2MetricTargetBuilder(V2MetricTarget instance,Boolean validationEnabled) { + this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); @@ -64,12 +43,10 @@ public V2MetricTargetBuilder(V2MetricTarget instance, Boolean validationEnabled) this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2MetricTargetFluent fluent; Boolean validationEnabled; - public V2MetricTarget build() { V2MetricTarget buildable = new V2MetricTarget(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -78,4 +55,5 @@ public V2MetricTarget build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java index 5ed9267510..697406945a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java @@ -1,47 +1,28 @@ -/* -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.custom.Quantity; +import java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2MetricTargetFluent> extends Fluent { + /** + * Generated + */ +public interface V2MetricTargetFluent> extends Fluent{ public Integer getAverageUtilization(); - public A withAverageUtilization(Integer averageUtilization); - public Boolean hasAverageUtilization(); - public Quantity getAverageValue(); - public A withAverageValue(Quantity averageValue); - public Boolean hasAverageValue(); - public A withNewAverageValue(String value); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public Quantity getValue(); - public A withValue(Quantity value); - public Boolean hasValue(); - public A withNewValue(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java index 21abfe7e99..1491637860 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java @@ -1,26 +1,20 @@ -/* -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.custom.Quantity; +import java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2MetricTargetFluentImpl> extends BaseFluent - implements V2MetricTargetFluent { - public V2MetricTargetFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2MetricTargetFluentImpl> extends BaseFluent implements V2MetricTargetFluent{ + public V2MetricTargetFluentImpl() { + } public V2MetricTargetFluentImpl(V2MetricTarget instance) { this.withAverageUtilization(instance.getAverageUtilization()); @@ -29,111 +23,76 @@ public V2MetricTargetFluentImpl(V2MetricTarget instance) { this.withType(instance.getType()); this.withValue(instance.getValue()); - } + } private Integer averageUtilization; private Quantity averageValue; private String type; private Quantity value; - public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; + this.averageUtilization=averageUtilization; return (A) this; } - public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; + this.averageValue=averageValue; return (A) this; } - public Boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(String value) { - return (A) withAverageValue(new Quantity(value)); + return (A)withAverageValue(new Quantity(value)); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public Quantity getValue() { return this.value; } - public A withValue(Quantity value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public A withNewValue(String value) { - return (A) withValue(new Quantity(value)); + return (A)withValue(new Quantity(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2MetricTargetFluentImpl that = (V2MetricTargetFluentImpl) o; - if (averageUtilization != null - ? !averageUtilization.equals(that.averageUtilization) - : that.averageUtilization != null) return false; - if (averageValue != null ? !averageValue.equals(that.averageValue) : that.averageValue != null) - return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (averageUtilization != null ? !averageUtilization.equals(that.averageUtilization) :that.averageUtilization != null) return false; + if (averageValue != null ? !averageValue.equals(that.averageValue) :that.averageValue != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); + return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (averageUtilization != null) { - sb.append("averageUtilization:"); - sb.append(averageUtilization + ","); - } - if (averageValue != null) { - sb.append("averageValue:"); - sb.append(averageValue + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } + if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } + if (type != null) { sb.append("type:"); sb.append(type + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java index a37ef6718b..9980e0e55b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2MetricValueStatusBuilder - extends V2MetricValueStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2MetricValueStatusBuilder extends V2MetricValueStatusFluentImpl implements VisitableBuilder{ public V2MetricValueStatusBuilder() { this(false); } - public V2MetricValueStatusBuilder(Boolean validationEnabled) { this(new V2MetricValueStatus(), validationEnabled); } - public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent) { this(fluent, false); } - - public V2MetricValueStatusBuilder( - V2MetricValueStatusFluent fluent, Boolean validationEnabled) { + public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2MetricValueStatus(), validationEnabled); } - - public V2MetricValueStatusBuilder( - V2MetricValueStatusFluent fluent, V2MetricValueStatus instance) { + public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,V2MetricValueStatus instance) { this(fluent, instance, false); } - - public V2MetricValueStatusBuilder( - V2MetricValueStatusFluent fluent, - V2MetricValueStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,V2MetricValueStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); fluent.withAverageValue(instance.getAverageValue()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2MetricValueStatusBuilder(V2MetricValueStatus instance) { - this(instance, false); + this(instance,false); } - - public V2MetricValueStatusBuilder(V2MetricValueStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2MetricValueStatusBuilder(V2MetricValueStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2MetricValueStatusFluent fluent; Boolean validationEnabled; - public V2MetricValueStatus build() { V2MetricValueStatus buildable = new V2MetricValueStatus(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -78,4 +50,5 @@ public V2MetricValueStatus build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java index 99f75c1e81..d9bbf80303 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java @@ -1,42 +1,25 @@ -/* -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.custom.Quantity; +import java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2MetricValueStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V2MetricValueStatusFluent> extends Fluent{ public Integer getAverageUtilization(); - public A withAverageUtilization(Integer averageUtilization); - public Boolean hasAverageUtilization(); - public Quantity getAverageValue(); - public A withAverageValue(Quantity averageValue); - public Boolean hasAverageValue(); - public A withNewAverageValue(String value); - public Quantity getValue(); - public A withValue(Quantity value); - public Boolean hasValue(); - public A withNewValue(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java index a8d1400244..734cf1ebd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java @@ -1,118 +1,84 @@ -/* -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.custom.Quantity; +import java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2MetricValueStatusFluentImpl> - extends BaseFluent implements V2MetricValueStatusFluent { - public V2MetricValueStatusFluentImpl() {} - +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2MetricValueStatusFluentImpl> extends BaseFluent implements V2MetricValueStatusFluent{ + public V2MetricValueStatusFluentImpl() { + } public V2MetricValueStatusFluentImpl(V2MetricValueStatus instance) { this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); this.withValue(instance.getValue()); - } + } private Integer averageUtilization; private Quantity averageValue; private Quantity value; - public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; + this.averageUtilization=averageUtilization; return (A) this; } - public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; + this.averageValue=averageValue; return (A) this; } - public Boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(String value) { - return (A) withAverageValue(new Quantity(value)); + return (A)withAverageValue(new Quantity(value)); } - public Quantity getValue() { return this.value; } - public A withValue(Quantity value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public A withNewValue(String value) { - return (A) withValue(new Quantity(value)); + return (A)withValue(new Quantity(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2MetricValueStatusFluentImpl that = (V2MetricValueStatusFluentImpl) o; - if (averageUtilization != null - ? !averageUtilization.equals(that.averageUtilization) - : that.averageUtilization != null) return false; - if (averageValue != null ? !averageValue.equals(that.averageValue) : that.averageValue != null) - return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (averageUtilization != null ? !averageUtilization.equals(that.averageUtilization) :that.averageUtilization != null) return false; + if (averageValue != null ? !averageValue.equals(that.averageValue) :that.averageValue != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); + return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (averageUtilization != null) { - sb.append("averageUtilization:"); - sb.append(averageUtilization + ","); - } - if (averageValue != null) { - sb.append("averageValue:"); - sb.append(averageValue + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } + if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java index 4a99b3f60e..0cbd980200 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2ObjectMetricSourceBuilder - extends V2ObjectMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2ObjectMetricSourceBuilder extends V2ObjectMetricSourceFluentImpl implements VisitableBuilder{ public V2ObjectMetricSourceBuilder() { this(false); } - public V2ObjectMetricSourceBuilder(Boolean validationEnabled) { this(new V2ObjectMetricSource(), validationEnabled); } - public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent) { this(fluent, false); } - - public V2ObjectMetricSourceBuilder( - V2ObjectMetricSourceFluent fluent, Boolean validationEnabled) { + public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2ObjectMetricSource(), validationEnabled); } - - public V2ObjectMetricSourceBuilder( - V2ObjectMetricSourceFluent fluent, V2ObjectMetricSource instance) { + public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,V2ObjectMetricSource instance) { this(fluent, instance, false); } - - public V2ObjectMetricSourceBuilder( - V2ObjectMetricSourceFluent fluent, - V2ObjectMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,V2ObjectMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDescribedObject(instance.getDescribedObject()); fluent.withMetric(instance.getMetric()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ObjectMetricSourceFluent fluent; Boolean validationEnabled; - public V2ObjectMetricSource build() { V2ObjectMetricSource buildable = new V2ObjectMetricSource(); buildable.setDescribedObject(fluent.getDescribedObject()); @@ -78,4 +50,5 @@ public V2ObjectMetricSource build() { buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java index e01a424ab5..49da1f0280 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java @@ -1,117 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2ObjectMetricSourceFluent> - extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2ObjectMetricSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2CrossVersionObjectReference getDescribedObject(); - public V2CrossVersionObjectReference buildDescribedObject(); - public A withDescribedObject(V2CrossVersionObjectReference describedObject); - public Boolean hasDescribedObject(); - public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObject(); - - public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( - V2CrossVersionObjectReference item); - + public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item); public V2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject(); - public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject(); - - public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2CrossVersionObjectReference item); - + public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric(); - public V2MetricIdentifier buildMetric(); - public A withMetric(V2MetricIdentifier metric); - public Boolean hasMetric(); - public V2ObjectMetricSourceFluent.MetricNested withNewMetric(); - public V2ObjectMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public V2ObjectMetricSourceFluent.MetricNested editMetric(); - public V2ObjectMetricSourceFluent.MetricNested editOrNewMetric(); - public V2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget(); - public V2MetricTarget buildTarget(); - public A withTarget(V2MetricTarget target); - public Boolean hasTarget(); - public V2ObjectMetricSourceFluent.TargetNested withNewTarget(); - public V2ObjectMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public V2ObjectMetricSourceFluent.TargetNested editTarget(); - public V2ObjectMetricSourceFluent.TargetNested editOrNewTarget(); - public V2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); - - public interface DescribedObjectNested - extends Nested, - V2CrossVersionObjectReferenceFluent> { + public interface DescribedObjectNested extends Nested,V2CrossVersionObjectReferenceFluent>{ public N and(); - public N endDescribedObject(); + } - - public interface MetricNested - extends Nested, V2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } - - public interface TargetNested - extends Nested, V2MetricTargetFluent> { + public interface TargetNested extends Nested,V2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java index b1360c0782..066602fb21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java @@ -1,294 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ObjectMetricSourceFluentImpl> - extends BaseFluent implements V2ObjectMetricSourceFluent { - public V2ObjectMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ObjectMetricSourceFluentImpl> extends BaseFluent implements V2ObjectMetricSourceFluent{ + public V2ObjectMetricSourceFluentImpl() { + } public V2ObjectMetricSourceFluentImpl(V2ObjectMetricSource instance) { this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - } + } private V2CrossVersionObjectReferenceBuilder describedObject; private V2MetricIdentifierBuilder metric; private V2MetricTargetBuilder target; - + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2CrossVersionObjectReference getDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public V2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public A withDescribedObject(V2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); - if (describedObject != null) { - this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); - _visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - _visitables.get("describedObject").remove(this.describedObject); - } - return (A) this; + if (describedObject!=null){ this.describedObject= new V2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject);} else { this.describedObject = null; _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } - public Boolean hasDescribedObject() { return this.describedObject != null; } - public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObject() { return new V2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(); } - - public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( - V2CrossVersionObjectReference item) { + public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { return new V2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(item); } - public V2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike( - getDescribedObject() != null - ? getDescribedObject() - : new V2CrossVersionObjectReferenceBuilder().build()); + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): new V2CrossVersionObjectReferenceBuilder().build()); } - - public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); + public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2ObjectMetricSourceFluent.MetricNested withNewMetric() { return new V2ObjectMetricSourceFluentImpl.MetricNestedImpl(); } - public V2ObjectMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2ObjectMetricSourceFluentImpl.MetricNestedImpl(item); } - public V2ObjectMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2ObjectMetricSourceFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2MetricIdentifierBuilder().build()); } - public V2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2ObjectMetricSourceFluent.TargetNested withNewTarget() { return new V2ObjectMetricSourceFluentImpl.TargetNestedImpl(); } - public V2ObjectMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { return new V2ObjectMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2ObjectMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2ObjectMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2MetricTargetBuilder().build()); } - public V2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ObjectMetricSourceFluentImpl that = (V2ObjectMetricSourceFluentImpl) o; - if (describedObject != null - ? !describedObject.equals(that.describedObject) - : that.describedObject != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (describedObject != null ? !describedObject.equals(that.describedObject) :that.describedObject != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(describedObject, metric, target, super.hashCode()); + return java.util.Objects.hash(describedObject, metric, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (describedObject != null) { - sb.append("describedObject:"); - sb.append(describedObject + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class DescribedObjectNestedImpl - extends V2CrossVersionObjectReferenceFluentImpl< - V2ObjectMetricSourceFluent.DescribedObjectNested> - implements V2ObjectMetricSourceFluent.DescribedObjectNested, Nested { + class DescribedObjectNestedImpl extends V2CrossVersionObjectReferenceFluentImpl> implements V2ObjectMetricSourceFluent.DescribedObjectNested,Nested{ DescribedObjectNestedImpl(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - DescribedObjectNestedImpl() { this.builder = new V2CrossVersionObjectReferenceBuilder(this); } - V2CrossVersionObjectReferenceBuilder builder; - public N and() { return (N) V2ObjectMetricSourceFluentImpl.this.withDescribedObject(builder.build()); } - public N endDescribedObject() { return and(); } + } - - class MetricNestedImpl - extends V2MetricIdentifierFluentImpl> - implements V2ObjectMetricSourceFluent.MetricNested, Nested { + class MetricNestedImpl extends V2MetricIdentifierFluentImpl> implements V2ObjectMetricSourceFluent.MetricNested,Nested{ MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2MetricIdentifierBuilder(this); } - V2MetricIdentifierBuilder builder; - public N and() { return (N) V2ObjectMetricSourceFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } - - class TargetNestedImpl - extends V2MetricTargetFluentImpl> - implements V2ObjectMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2MetricTargetFluentImpl> implements V2ObjectMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2MetricTargetBuilder(this); } - V2MetricTargetBuilder builder; - public N and() { return (N) V2ObjectMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java index a85f55acc2..941321773d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2ObjectMetricStatusBuilder - extends V2ObjectMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2ObjectMetricStatusBuilder extends V2ObjectMetricStatusFluentImpl implements VisitableBuilder{ public V2ObjectMetricStatusBuilder() { this(false); } - public V2ObjectMetricStatusBuilder(Boolean validationEnabled) { this(new V2ObjectMetricStatus(), validationEnabled); } - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent) { this(fluent, false); } - - public V2ObjectMetricStatusBuilder( - V2ObjectMetricStatusFluent fluent, Boolean validationEnabled) { + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2ObjectMetricStatus(), validationEnabled); } - - public V2ObjectMetricStatusBuilder( - V2ObjectMetricStatusFluent fluent, V2ObjectMetricStatus instance) { + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,V2ObjectMetricStatus instance) { this(fluent, instance, false); } - - public V2ObjectMetricStatusBuilder( - V2ObjectMetricStatusFluent fluent, - V2ObjectMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,V2ObjectMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withDescribedObject(instance.getDescribedObject()); fluent.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ObjectMetricStatusFluent fluent; Boolean validationEnabled; - public V2ObjectMetricStatus build() { V2ObjectMetricStatus buildable = new V2ObjectMetricStatus(); buildable.setCurrent(fluent.getCurrent()); @@ -78,4 +50,5 @@ public V2ObjectMetricStatus build() { buildable.setMetric(fluent.getMetric()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java index 48170274c0..b0715280b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java @@ -1,117 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2ObjectMetricStatusFluent> - extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2ObjectMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent(); - public V2MetricValueStatus buildCurrent(); - public A withCurrent(V2MetricValueStatus current); - public Boolean hasCurrent(); - public V2ObjectMetricStatusFluent.CurrentNested withNewCurrent(); - public V2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public V2ObjectMetricStatusFluent.CurrentNested editCurrent(); - public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent(); - public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); - + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2CrossVersionObjectReference getDescribedObject(); - public V2CrossVersionObjectReference buildDescribedObject(); - public A withDescribedObject(V2CrossVersionObjectReference describedObject); - public Boolean hasDescribedObject(); - public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObject(); - - public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( - V2CrossVersionObjectReference item); - + public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item); public V2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject(); - public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject(); - - public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2CrossVersionObjectReference item); - + public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric(); - public V2MetricIdentifier buildMetric(); - public A withMetric(V2MetricIdentifier metric); - public Boolean hasMetric(); - public V2ObjectMetricStatusFluent.MetricNested withNewMetric(); - public V2ObjectMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public V2ObjectMetricStatusFluent.MetricNested editMetric(); - public V2ObjectMetricStatusFluent.MetricNested editOrNewMetric(); - public V2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); - - public interface CurrentNested - extends Nested, V2MetricValueStatusFluent> { + public interface CurrentNested extends Nested,V2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } - - public interface DescribedObjectNested - extends Nested, - V2CrossVersionObjectReferenceFluent> { + public interface DescribedObjectNested extends Nested,V2CrossVersionObjectReferenceFluent>{ public N and(); - public N endDescribedObject(); + } - - public interface MetricNested - extends Nested, V2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java index 917d75be29..95a4274973 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java @@ -1,295 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ObjectMetricStatusFluentImpl> - extends BaseFluent implements V2ObjectMetricStatusFluent { - public V2ObjectMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ObjectMetricStatusFluentImpl> extends BaseFluent implements V2ObjectMetricStatusFluent{ + public V2ObjectMetricStatusFluentImpl() { + } public V2ObjectMetricStatusFluentImpl(V2ObjectMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); - } + } private V2MetricValueStatusBuilder current; private V2CrossVersionObjectReferenceBuilder describedObject; private V2MetricIdentifierBuilder metric; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2ObjectMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ObjectMetricStatusFluentImpl.CurrentNestedImpl(); } - public V2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2ObjectMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2ObjectMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2MetricValueStatusBuilder().build()); } - - public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2CrossVersionObjectReference getDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public V2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public A withDescribedObject(V2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); - if (describedObject != null) { - this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); - _visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - _visitables.get("describedObject").remove(this.describedObject); - } - return (A) this; + if (describedObject!=null){ this.describedObject= new V2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject);} else { this.describedObject = null; _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } - public Boolean hasDescribedObject() { return this.describedObject != null; } - public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObject() { return new V2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(); } - - public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( - V2CrossVersionObjectReference item) { + public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { return new V2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(item); } - public V2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike( - getDescribedObject() != null - ? getDescribedObject() - : new V2CrossVersionObjectReferenceBuilder().build()); + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): new V2CrossVersionObjectReferenceBuilder().build()); } - - public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); + public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2ObjectMetricStatusFluent.MetricNested withNewMetric() { return new V2ObjectMetricStatusFluentImpl.MetricNestedImpl(); } - public V2ObjectMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2ObjectMetricStatusFluentImpl.MetricNestedImpl(item); } - public V2ObjectMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2ObjectMetricStatusFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2MetricIdentifierBuilder().build()); } - public V2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ObjectMetricStatusFluentImpl that = (V2ObjectMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (describedObject != null - ? !describedObject.equals(that.describedObject) - : that.describedObject != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (describedObject != null ? !describedObject.equals(that.describedObject) :that.describedObject != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, describedObject, metric, super.hashCode()); + return java.util.Objects.hash(current, describedObject, metric, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (describedObject != null) { - sb.append("describedObject:"); - sb.append(describedObject + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2MetricValueStatusFluentImpl> - implements V2ObjectMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> implements V2ObjectMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2MetricValueStatusBuilder(this); } - V2MetricValueStatusBuilder builder; - public N and() { return (N) V2ObjectMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } - - class DescribedObjectNestedImpl - extends V2CrossVersionObjectReferenceFluentImpl< - V2ObjectMetricStatusFluent.DescribedObjectNested> - implements V2ObjectMetricStatusFluent.DescribedObjectNested, Nested { + class DescribedObjectNestedImpl extends V2CrossVersionObjectReferenceFluentImpl> implements V2ObjectMetricStatusFluent.DescribedObjectNested,Nested{ DescribedObjectNestedImpl(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - DescribedObjectNestedImpl() { this.builder = new V2CrossVersionObjectReferenceBuilder(this); } - V2CrossVersionObjectReferenceBuilder builder; - public N and() { return (N) V2ObjectMetricStatusFluentImpl.this.withDescribedObject(builder.build()); } - public N endDescribedObject() { return and(); } + } - - class MetricNestedImpl - extends V2MetricIdentifierFluentImpl> - implements V2ObjectMetricStatusFluent.MetricNested, Nested { + class MetricNestedImpl extends V2MetricIdentifierFluentImpl> implements V2ObjectMetricStatusFluent.MetricNested,Nested{ MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2MetricIdentifierBuilder(this); } - V2MetricIdentifierBuilder builder; - public N and() { return (N) V2ObjectMetricStatusFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java index 1620e968d6..7354ded48c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java @@ -1,73 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2PodsMetricSourceBuilder - extends V2PodsMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2PodsMetricSourceBuilder extends V2PodsMetricSourceFluentImpl implements VisitableBuilder{ public V2PodsMetricSourceBuilder() { this(false); } - public V2PodsMetricSourceBuilder(Boolean validationEnabled) { this(new V2PodsMetricSource(), validationEnabled); } - public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent) { this(fluent, false); } - - public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent, Boolean validationEnabled) { + public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2PodsMetricSource(), validationEnabled); } - - public V2PodsMetricSourceBuilder( - V2PodsMetricSourceFluent fluent, V2PodsMetricSource instance) { + public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,V2PodsMetricSource instance) { this(fluent, instance, false); } - - public V2PodsMetricSourceBuilder( - V2PodsMetricSourceFluent fluent, V2PodsMetricSource instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,V2PodsMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetric(instance.getMetric()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2PodsMetricSourceBuilder(V2PodsMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2PodsMetricSourceBuilder(V2PodsMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2PodsMetricSourceBuilder(V2PodsMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2PodsMetricSourceFluent fluent; Boolean validationEnabled; - public V2PodsMetricSource build() { V2PodsMetricSource buildable = new V2PodsMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java index d6c973c268..8846c8de7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java @@ -1,82 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2PodsMetricSourceFluent> extends Fluent { - + /** + * Generated + */ +public interface V2PodsMetricSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric(); - public V2MetricIdentifier buildMetric(); - public A withMetric(V2MetricIdentifier metric); - public Boolean hasMetric(); - public V2PodsMetricSourceFluent.MetricNested withNewMetric(); - public V2PodsMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public V2PodsMetricSourceFluent.MetricNested editMetric(); - public V2PodsMetricSourceFluent.MetricNested editOrNewMetric(); - public V2PodsMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget(); - public V2MetricTarget buildTarget(); - public A withTarget(V2MetricTarget target); - public Boolean hasTarget(); - public V2PodsMetricSourceFluent.TargetNested withNewTarget(); - public V2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public V2PodsMetricSourceFluent.TargetNested editTarget(); - public V2PodsMetricSourceFluent.TargetNested editOrNewTarget(); - public V2PodsMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); - - public interface MetricNested - extends Nested, V2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } - - public interface TargetNested - extends Nested, V2MetricTargetFluent> { + public interface TargetNested extends Nested,V2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java index 8d37c48919..47a09729cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java @@ -1,206 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2PodsMetricSourceFluentImpl> - extends BaseFluent implements V2PodsMetricSourceFluent { - public V2PodsMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2PodsMetricSourceFluentImpl> extends BaseFluent implements V2PodsMetricSourceFluent{ + public V2PodsMetricSourceFluentImpl() { + } public V2PodsMetricSourceFluentImpl(V2PodsMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - } + } private V2MetricIdentifierBuilder metric; private V2MetricTargetBuilder target; - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2PodsMetricSourceFluent.MetricNested withNewMetric() { return new V2PodsMetricSourceFluentImpl.MetricNestedImpl(); } - public V2PodsMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2PodsMetricSourceFluentImpl.MetricNestedImpl(item); } - public V2PodsMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2PodsMetricSourceFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2MetricIdentifierBuilder().build()); } - public V2PodsMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2PodsMetricSourceFluent.TargetNested withNewTarget() { return new V2PodsMetricSourceFluentImpl.TargetNestedImpl(); } - public V2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { return new V2PodsMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2PodsMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2PodsMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2MetricTargetBuilder().build()); } - public V2PodsMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2PodsMetricSourceFluentImpl that = (V2PodsMetricSourceFluentImpl) o; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); + return java.util.Objects.hash(metric, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metric != null) { - sb.append("metric:"); - sb.append(metric + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class MetricNestedImpl - extends V2MetricIdentifierFluentImpl> - implements V2PodsMetricSourceFluent.MetricNested, Nested { + class MetricNestedImpl extends V2MetricIdentifierFluentImpl> implements V2PodsMetricSourceFluent.MetricNested,Nested{ MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2MetricIdentifierBuilder(this); } - V2MetricIdentifierBuilder builder; - public N and() { return (N) V2PodsMetricSourceFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } - - class TargetNestedImpl - extends V2MetricTargetFluentImpl> - implements V2PodsMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2MetricTargetFluentImpl> implements V2PodsMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2MetricTargetBuilder(this); } - V2MetricTargetBuilder builder; - public N and() { return (N) V2PodsMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java index 1171176141..112180c69a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java @@ -1,73 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2PodsMetricStatusBuilder - extends V2PodsMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2PodsMetricStatusBuilder extends V2PodsMetricStatusFluentImpl implements VisitableBuilder{ public V2PodsMetricStatusBuilder() { this(false); } - public V2PodsMetricStatusBuilder(Boolean validationEnabled) { this(new V2PodsMetricStatus(), validationEnabled); } - public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent) { this(fluent, false); } - - public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent, Boolean validationEnabled) { + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2PodsMetricStatus(), validationEnabled); } - - public V2PodsMetricStatusBuilder( - V2PodsMetricStatusFluent fluent, V2PodsMetricStatus instance) { + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,V2PodsMetricStatus instance) { this(fluent, instance, false); } - - public V2PodsMetricStatusBuilder( - V2PodsMetricStatusFluent fluent, V2PodsMetricStatus instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,V2PodsMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2PodsMetricStatusFluent fluent; Boolean validationEnabled; - public V2PodsMetricStatus build() { V2PodsMetricStatus buildable = new V2PodsMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java index cc75d96d56..76298bb9d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java @@ -1,82 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2PodsMetricStatusFluent> extends Fluent { - + /** + * Generated + */ +public interface V2PodsMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent(); - public V2MetricValueStatus buildCurrent(); - public A withCurrent(V2MetricValueStatus current); - public Boolean hasCurrent(); - public V2PodsMetricStatusFluent.CurrentNested withNewCurrent(); - public V2PodsMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public V2PodsMetricStatusFluent.CurrentNested editCurrent(); - public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrent(); - public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric(); - public V2MetricIdentifier buildMetric(); - public A withMetric(V2MetricIdentifier metric); - public Boolean hasMetric(); - public V2PodsMetricStatusFluent.MetricNested withNewMetric(); - public V2PodsMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public V2PodsMetricStatusFluent.MetricNested editMetric(); - public V2PodsMetricStatusFluent.MetricNested editOrNewMetric(); - public V2PodsMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); - - public interface CurrentNested - extends Nested, V2MetricValueStatusFluent> { + public interface CurrentNested extends Nested,V2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } - - public interface MetricNested - extends Nested, V2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java index 1fd865a9f6..665fc02b90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java @@ -1,206 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2PodsMetricStatusFluentImpl> - extends BaseFluent implements V2PodsMetricStatusFluent { - public V2PodsMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2PodsMetricStatusFluentImpl> extends BaseFluent implements V2PodsMetricStatusFluent{ + public V2PodsMetricStatusFluentImpl() { + } public V2PodsMetricStatusFluentImpl(V2PodsMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - } + } private V2MetricValueStatusBuilder current; private V2MetricIdentifierBuilder metric; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2PodsMetricStatusFluent.CurrentNested withNewCurrent() { return new V2PodsMetricStatusFluentImpl.CurrentNestedImpl(); } - public V2PodsMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2PodsMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2PodsMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2MetricValueStatusBuilder().build()); } - public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2PodsMetricStatusFluent.MetricNested withNewMetric() { return new V2PodsMetricStatusFluentImpl.MetricNestedImpl(); } - public V2PodsMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2PodsMetricStatusFluentImpl.MetricNestedImpl(item); } - public V2PodsMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2PodsMetricStatusFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2MetricIdentifierBuilder().build()); } - public V2PodsMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2PodsMetricStatusFluentImpl that = (V2PodsMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); + return java.util.Objects.hash(current, metric, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2MetricValueStatusFluentImpl> - implements V2PodsMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> implements V2PodsMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2MetricValueStatusBuilder(this); } - V2MetricValueStatusBuilder builder; - public N and() { return (N) V2PodsMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } - - class MetricNestedImpl - extends V2MetricIdentifierFluentImpl> - implements V2PodsMetricStatusFluent.MetricNested, Nested { + class MetricNestedImpl extends V2MetricIdentifierFluentImpl> implements V2PodsMetricStatusFluent.MetricNested,Nested{ MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2MetricIdentifierBuilder(this); } - V2MetricIdentifierBuilder builder; - public N and() { return (N) V2PodsMetricStatusFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java index 4051bb28cc..84d87bf490 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2ResourceMetricSourceBuilder - extends V2ResourceMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluentImpl implements VisitableBuilder{ public V2ResourceMetricSourceBuilder() { this(false); } - public V2ResourceMetricSourceBuilder(Boolean validationEnabled) { this(new V2ResourceMetricSource(), validationEnabled); } - public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent) { this(fluent, false); } - - public V2ResourceMetricSourceBuilder( - V2ResourceMetricSourceFluent fluent, Boolean validationEnabled) { + public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2ResourceMetricSource(), validationEnabled); } - - public V2ResourceMetricSourceBuilder( - V2ResourceMetricSourceFluent fluent, V2ResourceMetricSource instance) { + public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance) { this(fluent, instance, false); } - - public V2ResourceMetricSourceBuilder( - V2ResourceMetricSourceFluent fluent, - V2ResourceMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ResourceMetricSourceFluent fluent; Boolean validationEnabled; - public V2ResourceMetricSource build() { V2ResourceMetricSource buildable = new V2ResourceMetricSource(); buildable.setName(fluent.getName()); buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java index 822758ab21..5b24e45102 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java @@ -1,57 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2ResourceMetricSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V2ResourceMetricSourceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget(); - public V2MetricTarget buildTarget(); - public A withTarget(V2MetricTarget target); - public Boolean hasTarget(); - public V2ResourceMetricSourceFluent.TargetNested withNewTarget(); - public V2ResourceMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public V2ResourceMetricSourceFluent.TargetNested editTarget(); - public V2ResourceMetricSourceFluent.TargetNested editOrNewTarget(); - public V2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); - - public interface TargetNested - extends Nested, V2MetricTargetFluent> { + public interface TargetNested extends Nested,V2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java index f2d2184fb0..ef69c85015 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java @@ -1,146 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ResourceMetricSourceFluentImpl> - extends BaseFluent implements V2ResourceMetricSourceFluent { - public V2ResourceMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ResourceMetricSourceFluentImpl> extends BaseFluent implements V2ResourceMetricSourceFluent{ + public V2ResourceMetricSourceFluentImpl() { + } public V2ResourceMetricSourceFluentImpl(V2ResourceMetricSource instance) { this.withName(instance.getName()); this.withTarget(instance.getTarget()); - } + } private String name; private V2MetricTargetBuilder target; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2ResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2ResourceMetricSourceFluentImpl.TargetNestedImpl(); } - public V2ResourceMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { return new V2ResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2ResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2ResourceMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2MetricTargetBuilder().build()); } - public V2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ResourceMetricSourceFluentImpl that = (V2ResourceMetricSourceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, target, super.hashCode()); + return java.util.Objects.hash(name, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class TargetNestedImpl - extends V2MetricTargetFluentImpl> - implements V2ResourceMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2MetricTargetFluentImpl> implements V2ResourceMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2MetricTargetBuilder(this); } - V2MetricTargetBuilder builder; - public N and() { return (N) V2ResourceMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java index fe4ef307b1..1a91f65fe4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java @@ -1,76 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2ResourceMetricStatusBuilder - extends V2ResourceMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2ResourceMetricStatusBuilder extends V2ResourceMetricStatusFluentImpl implements VisitableBuilder{ public V2ResourceMetricStatusBuilder() { this(false); } - public V2ResourceMetricStatusBuilder(Boolean validationEnabled) { this(new V2ResourceMetricStatus(), validationEnabled); } - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent) { this(fluent, false); } - - public V2ResourceMetricStatusBuilder( - V2ResourceMetricStatusFluent fluent, Boolean validationEnabled) { + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2ResourceMetricStatus(), validationEnabled); } - - public V2ResourceMetricStatusBuilder( - V2ResourceMetricStatusFluent fluent, V2ResourceMetricStatus instance) { + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,V2ResourceMetricStatus instance) { this(fluent, instance, false); } - - public V2ResourceMetricStatusBuilder( - V2ResourceMetricStatusFluent fluent, - V2ResourceMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,V2ResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2ResourceMetricStatusFluent fluent; Boolean validationEnabled; - public V2ResourceMetricStatus build() { V2ResourceMetricStatus buildable = new V2ResourceMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java index c6a6f6496b..9cbcb10497 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java @@ -1,59 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2ResourceMetricStatusFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2ResourceMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent(); - public V2MetricValueStatus buildCurrent(); - public A withCurrent(V2MetricValueStatus current); - public Boolean hasCurrent(); - public V2ResourceMetricStatusFluent.CurrentNested withNewCurrent(); - public V2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public V2ResourceMetricStatusFluent.CurrentNested editCurrent(); - public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item); - + public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); public String getName(); - public A withName(String name); - public Boolean hasName(); - - public interface CurrentNested - extends Nested, V2MetricValueStatusFluent> { + public interface CurrentNested extends Nested,V2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java index 9675d5da0f..79d7dbc709 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java @@ -1,148 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2ResourceMetricStatusFluentImpl> - extends BaseFluent implements V2ResourceMetricStatusFluent { - public V2ResourceMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2ResourceMetricStatusFluentImpl> extends BaseFluent implements V2ResourceMetricStatusFluent{ + public V2ResourceMetricStatusFluentImpl() { + } public V2ResourceMetricStatusFluentImpl(V2ResourceMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - } + } private V2MetricValueStatusBuilder current; private String name; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2ResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2MetricValueStatus item) { + public V2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2ResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2ResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2MetricValueStatusBuilder().build()); } - - public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2ResourceMetricStatusFluentImpl that = (V2ResourceMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, name, super.hashCode()); + return java.util.Objects.hash(current, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2MetricValueStatusFluentImpl> - implements V2ResourceMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> implements V2ResourceMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2MetricValueStatusBuilder(this); } - V2MetricValueStatusBuilder builder; - public N and() { return (N) V2ResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java index c97d1ebc2f..2ed4a8ff04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java @@ -1,82 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2ContainerResourceMetricSourceBuilder - extends V2beta2ContainerResourceMetricSourceFluentImpl< - V2beta2ContainerResourceMetricSourceBuilder> - implements VisitableBuilder< - V2beta2ContainerResourceMetricSource, V2beta2ContainerResourceMetricSourceBuilder> { +import java.lang.Boolean; +public class V2beta2ContainerResourceMetricSourceBuilder extends V2beta2ContainerResourceMetricSourceFluentImpl implements VisitableBuilder{ public V2beta2ContainerResourceMetricSourceBuilder() { this(false); } - public V2beta2ContainerResourceMetricSourceBuilder(Boolean validationEnabled) { this(new V2beta2ContainerResourceMetricSource(), validationEnabled); } - - public V2beta2ContainerResourceMetricSourceBuilder( - V2beta2ContainerResourceMetricSourceFluent fluent) { + public V2beta2ContainerResourceMetricSourceBuilder(V2beta2ContainerResourceMetricSourceFluent fluent) { this(fluent, false); } - - public V2beta2ContainerResourceMetricSourceBuilder( - V2beta2ContainerResourceMetricSourceFluent fluent, Boolean validationEnabled) { + public V2beta2ContainerResourceMetricSourceBuilder(V2beta2ContainerResourceMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ContainerResourceMetricSource(), validationEnabled); } - - public V2beta2ContainerResourceMetricSourceBuilder( - V2beta2ContainerResourceMetricSourceFluent fluent, - V2beta2ContainerResourceMetricSource instance) { + public V2beta2ContainerResourceMetricSourceBuilder(V2beta2ContainerResourceMetricSourceFluent fluent,V2beta2ContainerResourceMetricSource instance) { this(fluent, instance, false); } - - public V2beta2ContainerResourceMetricSourceBuilder( - V2beta2ContainerResourceMetricSourceFluent fluent, - V2beta2ContainerResourceMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ContainerResourceMetricSourceBuilder(V2beta2ContainerResourceMetricSourceFluent fluent,V2beta2ContainerResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainer(instance.getContainer()); fluent.withName(instance.getName()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V2beta2ContainerResourceMetricSourceBuilder( - V2beta2ContainerResourceMetricSource instance) { - this(instance, false); + public V2beta2ContainerResourceMetricSourceBuilder(V2beta2ContainerResourceMetricSource instance) { + this(instance,false); } - - public V2beta2ContainerResourceMetricSourceBuilder( - V2beta2ContainerResourceMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ContainerResourceMetricSourceBuilder(V2beta2ContainerResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withContainer(instance.getContainer()); this.withName(instance.getName()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ContainerResourceMetricSourceFluent fluent; Boolean validationEnabled; - public V2beta2ContainerResourceMetricSource build() { V2beta2ContainerResourceMetricSource buildable = new V2beta2ContainerResourceMetricSource(); buildable.setContainer(fluent.getContainer()); @@ -84,4 +50,5 @@ public V2beta2ContainerResourceMetricSource build() { buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java index 85f8f2a4b1..c3316cfcb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java @@ -1,67 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2ContainerResourceMetricSourceFluent< - A extends V2beta2ContainerResourceMetricSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2ContainerResourceMetricSourceFluent> extends Fluent{ public String getContainer(); - public A withContainer(String container); - public Boolean hasContainer(); - public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget(); - public V2beta2MetricTarget buildTarget(); - public A withTarget(V2beta2MetricTarget target); - public Boolean hasTarget(); - public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTarget(); - - public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item); - + public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item); public V2beta2ContainerResourceMetricSourceFluent.TargetNested editTarget(); - public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget(); - - public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item); - - public interface TargetNested - extends Nested, - V2beta2MetricTargetFluent> { + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item); + public interface TargetNested extends Nested,V2beta2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java index c4b07b3c26..eb3ac67e72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java @@ -1,174 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ContainerResourceMetricSourceFluentImpl< - A extends V2beta2ContainerResourceMetricSourceFluent> - extends BaseFluent implements V2beta2ContainerResourceMetricSourceFluent { - public V2beta2ContainerResourceMetricSourceFluentImpl() {} - - public V2beta2ContainerResourceMetricSourceFluentImpl( - V2beta2ContainerResourceMetricSource instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ContainerResourceMetricSourceFluentImpl> extends BaseFluent implements V2beta2ContainerResourceMetricSourceFluent{ + public V2beta2ContainerResourceMetricSourceFluentImpl() { + } + public V2beta2ContainerResourceMetricSourceFluentImpl(V2beta2ContainerResourceMetricSource instance) { this.withContainer(instance.getContainer()); this.withName(instance.getName()); this.withTarget(instance.getTarget()); - } + } private String container; private String name; private V2beta2MetricTargetBuilder target; - public String getContainer() { return this.container; } - public A withContainer(String container) { - this.container = container; - return (A) this; + this.container=container; return (A) this; } - public Boolean hasContainer() { return this.container != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2beta2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2beta2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(); } - - public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item) { + public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item) { return new V2beta2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2beta2ContainerResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2beta2MetricTargetBuilder().build()); } - - public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item) { + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2ContainerResourceMetricSourceFluentImpl that = - (V2beta2ContainerResourceMetricSourceFluentImpl) o; - if (container != null ? !container.equals(that.container) : that.container != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + V2beta2ContainerResourceMetricSourceFluentImpl that = (V2beta2ContainerResourceMetricSourceFluentImpl) o; + if (container != null ? !container.equals(that.container) :that.container != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(container, name, target, super.hashCode()); + return java.util.Objects.hash(container, name, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (container != null) { - sb.append("container:"); - sb.append(container + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (container != null) { sb.append("container:"); sb.append(container + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class TargetNestedImpl - extends V2beta2MetricTargetFluentImpl< - V2beta2ContainerResourceMetricSourceFluent.TargetNested> - implements V2beta2ContainerResourceMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> implements V2beta2ContainerResourceMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2beta2MetricTargetBuilder(this); } - V2beta2MetricTargetBuilder builder; - public N and() { return (N) V2beta2ContainerResourceMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java index 2bbf804af9..4e49bfed2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java @@ -1,82 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2ContainerResourceMetricStatusBuilder - extends V2beta2ContainerResourceMetricStatusFluentImpl< - V2beta2ContainerResourceMetricStatusBuilder> - implements VisitableBuilder< - V2beta2ContainerResourceMetricStatus, V2beta2ContainerResourceMetricStatusBuilder> { +import java.lang.Boolean; +public class V2beta2ContainerResourceMetricStatusBuilder extends V2beta2ContainerResourceMetricStatusFluentImpl implements VisitableBuilder{ public V2beta2ContainerResourceMetricStatusBuilder() { this(false); } - public V2beta2ContainerResourceMetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2ContainerResourceMetricStatus(), validationEnabled); } - - public V2beta2ContainerResourceMetricStatusBuilder( - V2beta2ContainerResourceMetricStatusFluent fluent) { + public V2beta2ContainerResourceMetricStatusBuilder(V2beta2ContainerResourceMetricStatusFluent fluent) { this(fluent, false); } - - public V2beta2ContainerResourceMetricStatusBuilder( - V2beta2ContainerResourceMetricStatusFluent fluent, Boolean validationEnabled) { + public V2beta2ContainerResourceMetricStatusBuilder(V2beta2ContainerResourceMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ContainerResourceMetricStatus(), validationEnabled); } - - public V2beta2ContainerResourceMetricStatusBuilder( - V2beta2ContainerResourceMetricStatusFluent fluent, - V2beta2ContainerResourceMetricStatus instance) { + public V2beta2ContainerResourceMetricStatusBuilder(V2beta2ContainerResourceMetricStatusFluent fluent,V2beta2ContainerResourceMetricStatus instance) { this(fluent, instance, false); } - - public V2beta2ContainerResourceMetricStatusBuilder( - V2beta2ContainerResourceMetricStatusFluent fluent, - V2beta2ContainerResourceMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ContainerResourceMetricStatusBuilder(V2beta2ContainerResourceMetricStatusFluent fluent,V2beta2ContainerResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainer(instance.getContainer()); fluent.withCurrent(instance.getCurrent()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V2beta2ContainerResourceMetricStatusBuilder( - V2beta2ContainerResourceMetricStatus instance) { - this(instance, false); + public V2beta2ContainerResourceMetricStatusBuilder(V2beta2ContainerResourceMetricStatus instance) { + this(instance,false); } - - public V2beta2ContainerResourceMetricStatusBuilder( - V2beta2ContainerResourceMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ContainerResourceMetricStatusBuilder(V2beta2ContainerResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withContainer(instance.getContainer()); this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ContainerResourceMetricStatusFluent fluent; Boolean validationEnabled; - public V2beta2ContainerResourceMetricStatus build() { V2beta2ContainerResourceMetricStatus buildable = new V2beta2ContainerResourceMetricStatus(); buildable.setContainer(fluent.getContainer()); @@ -84,4 +50,5 @@ public V2beta2ContainerResourceMetricStatus build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java index 4cfce1621f..cc9027d006 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java @@ -1,68 +1,40 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2ContainerResourceMetricStatusFluent< - A extends V2beta2ContainerResourceMetricStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2ContainerResourceMetricStatusFluent> extends Fluent{ public String getContainer(); - public A withContainer(String container); - public Boolean hasContainer(); - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent(); - public V2beta2MetricValueStatus buildCurrent(); - public A withCurrent(V2beta2MetricValueStatus current); - public Boolean hasCurrent(); - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent(); - - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item); public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editCurrent(); - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item); public String getName(); - public A withName(String name); - public Boolean hasName(); - - public interface CurrentNested - extends Nested, - V2beta2MetricValueStatusFluent< - V2beta2ContainerResourceMetricStatusFluent.CurrentNested> { + public interface CurrentNested extends Nested,V2beta2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java index 1d9de7b446..1b12bb994b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java @@ -1,174 +1,119 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ContainerResourceMetricStatusFluentImpl< - A extends V2beta2ContainerResourceMetricStatusFluent> - extends BaseFluent implements V2beta2ContainerResourceMetricStatusFluent { - public V2beta2ContainerResourceMetricStatusFluentImpl() {} - - public V2beta2ContainerResourceMetricStatusFluentImpl( - V2beta2ContainerResourceMetricStatus instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ContainerResourceMetricStatusFluentImpl> extends BaseFluent implements V2beta2ContainerResourceMetricStatusFluent{ + public V2beta2ContainerResourceMetricStatusFluentImpl() { + } + public V2beta2ContainerResourceMetricStatusFluentImpl(V2beta2ContainerResourceMetricStatus instance) { this.withContainer(instance.getContainer()); this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - } + } private String container; private V2beta2MetricValueStatusBuilder current; private String name; - public String getContainer() { return this.container; } - public A withContainer(String container) { - this.container = container; - return (A) this; + this.container=container; return (A) this; } - public Boolean hasContainer() { return this.container != null; } - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2beta2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2beta2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item) { + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item) { return new V2beta2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2beta2MetricValueStatusBuilder().build()); } - - public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2ContainerResourceMetricStatusFluentImpl that = - (V2beta2ContainerResourceMetricStatusFluentImpl) o; - if (container != null ? !container.equals(that.container) : that.container != null) - return false; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + V2beta2ContainerResourceMetricStatusFluentImpl that = (V2beta2ContainerResourceMetricStatusFluentImpl) o; + if (container != null ? !container.equals(that.container) :that.container != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(container, current, name, super.hashCode()); + return java.util.Objects.hash(container, current, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (container != null) { - sb.append("container:"); - sb.append(container + ","); - } - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (container != null) { sb.append("container:"); sb.append(container + ","); } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2beta2MetricValueStatusFluentImpl< - V2beta2ContainerResourceMetricStatusFluent.CurrentNested> - implements V2beta2ContainerResourceMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> implements V2beta2ContainerResourceMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2beta2MetricValueStatusBuilder(this); } - V2beta2MetricValueStatusBuilder builder; - public N and() { return (N) V2beta2ContainerResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java index 8bc3aaa616..2ffe78ee3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java @@ -1,80 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2CrossVersionObjectReferenceBuilder - extends V2beta2CrossVersionObjectReferenceFluentImpl - implements VisitableBuilder< - V2beta2CrossVersionObjectReference, V2beta2CrossVersionObjectReferenceBuilder> { +import java.lang.Boolean; +public class V2beta2CrossVersionObjectReferenceBuilder extends V2beta2CrossVersionObjectReferenceFluentImpl implements VisitableBuilder{ public V2beta2CrossVersionObjectReferenceBuilder() { this(false); } - public V2beta2CrossVersionObjectReferenceBuilder(Boolean validationEnabled) { this(new V2beta2CrossVersionObjectReference(), validationEnabled); } - - public V2beta2CrossVersionObjectReferenceBuilder( - V2beta2CrossVersionObjectReferenceFluent fluent) { + public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReferenceFluent fluent) { this(fluent, false); } - - public V2beta2CrossVersionObjectReferenceBuilder( - V2beta2CrossVersionObjectReferenceFluent fluent, Boolean validationEnabled) { + public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReferenceFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2CrossVersionObjectReference(), validationEnabled); } - - public V2beta2CrossVersionObjectReferenceBuilder( - V2beta2CrossVersionObjectReferenceFluent fluent, - V2beta2CrossVersionObjectReference instance) { + public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReferenceFluent fluent,V2beta2CrossVersionObjectReference instance) { this(fluent, instance, false); } - - public V2beta2CrossVersionObjectReferenceBuilder( - V2beta2CrossVersionObjectReferenceFluent fluent, - V2beta2CrossVersionObjectReference instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReferenceFluent fluent,V2beta2CrossVersionObjectReference instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReference instance) { - this(instance, false); + this(instance,false); } - - public V2beta2CrossVersionObjectReferenceBuilder( - V2beta2CrossVersionObjectReference instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReference instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2CrossVersionObjectReferenceFluent fluent; Boolean validationEnabled; - public V2beta2CrossVersionObjectReference build() { V2beta2CrossVersionObjectReference buildable = new V2beta2CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -82,4 +50,5 @@ public V2beta2CrossVersionObjectReference build() { buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java index 6632845da9..061ccdedd8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java @@ -1,38 +1,21 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2CrossVersionObjectReferenceFluent< - A extends V2beta2CrossVersionObjectReferenceFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2CrossVersionObjectReferenceFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - public String getName(); - public A withName(String name); - public Boolean hasName(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java index 59acbce76a..416b833804 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java @@ -1,109 +1,76 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2CrossVersionObjectReferenceFluentImpl< - A extends V2beta2CrossVersionObjectReferenceFluent> - extends BaseFluent implements V2beta2CrossVersionObjectReferenceFluent { - public V2beta2CrossVersionObjectReferenceFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2CrossVersionObjectReferenceFluentImpl> extends BaseFluent implements V2beta2CrossVersionObjectReferenceFluent{ + public V2beta2CrossVersionObjectReferenceFluentImpl() { + } public V2beta2CrossVersionObjectReferenceFluentImpl(V2beta2CrossVersionObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withName(instance.getName()); - } + } private String apiVersion; private String kind; private String name; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2CrossVersionObjectReferenceFluentImpl that = - (V2beta2CrossVersionObjectReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + V2beta2CrossVersionObjectReferenceFluentImpl that = (V2beta2CrossVersionObjectReferenceFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java index 5ac0c3fe58..1b08bb019e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2ExternalMetricSourceBuilder - extends V2beta2ExternalMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2ExternalMetricSourceBuilder extends V2beta2ExternalMetricSourceFluentImpl implements VisitableBuilder{ public V2beta2ExternalMetricSourceBuilder() { this(false); } - public V2beta2ExternalMetricSourceBuilder(Boolean validationEnabled) { this(new V2beta2ExternalMetricSource(), validationEnabled); } - public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSourceFluent fluent) { this(fluent, false); } - - public V2beta2ExternalMetricSourceBuilder( - V2beta2ExternalMetricSourceFluent fluent, Boolean validationEnabled) { + public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ExternalMetricSource(), validationEnabled); } - - public V2beta2ExternalMetricSourceBuilder( - V2beta2ExternalMetricSourceFluent fluent, V2beta2ExternalMetricSource instance) { + public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSourceFluent fluent,V2beta2ExternalMetricSource instance) { this(fluent, instance, false); } - - public V2beta2ExternalMetricSourceBuilder( - V2beta2ExternalMetricSourceFluent fluent, - V2beta2ExternalMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSourceFluent fluent,V2beta2ExternalMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetric(instance.getMetric()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2beta2ExternalMetricSourceBuilder( - V2beta2ExternalMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ExternalMetricSourceFluent fluent; Boolean validationEnabled; - public V2beta2ExternalMetricSource build() { V2beta2ExternalMetricSource buildable = new V2beta2ExternalMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java index 3dcf14cb0f..5dde8f0d4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java @@ -1,89 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2ExternalMetricSourceFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2beta2ExternalMetricSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric(); - public V2beta2MetricIdentifier buildMetric(); - public A withMetric(V2beta2MetricIdentifier metric); - public Boolean hasMetric(); - public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetric(); - - public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item); public V2beta2ExternalMetricSourceFluent.MetricNested editMetric(); - public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetric(); - - public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item); + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget(); - public V2beta2MetricTarget buildTarget(); - public A withTarget(V2beta2MetricTarget target); - public Boolean hasTarget(); - public V2beta2ExternalMetricSourceFluent.TargetNested withNewTarget(); - - public V2beta2ExternalMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item); - + public V2beta2ExternalMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item); public V2beta2ExternalMetricSourceFluent.TargetNested editTarget(); - public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTarget(); - - public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item); - - public interface MetricNested - extends Nested, - V2beta2MetricIdentifierFluent> { + public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item); + public interface MetricNested extends Nested,V2beta2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } - - public interface TargetNested - extends Nested, - V2beta2MetricTargetFluent> { + public interface TargetNested extends Nested,V2beta2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java index 09e9099a91..72f94f5e81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java @@ -1,210 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ExternalMetricSourceFluentImpl> - extends BaseFluent implements V2beta2ExternalMetricSourceFluent { - public V2beta2ExternalMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ExternalMetricSourceFluentImpl> extends BaseFluent implements V2beta2ExternalMetricSourceFluent{ + public V2beta2ExternalMetricSourceFluentImpl() { + } public V2beta2ExternalMetricSourceFluentImpl(V2beta2ExternalMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - } + } private V2beta2MetricIdentifierBuilder metric; private V2beta2MetricTargetBuilder target; - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2beta2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2beta2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetric() { return new V2beta2ExternalMetricSourceFluentImpl.MetricNestedImpl(); } - - public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item) { + public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item) { return new V2beta2ExternalMetricSourceFluentImpl.MetricNestedImpl(item); } - public V2beta2ExternalMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2beta2MetricIdentifierBuilder().build()); } - - public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item) { + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2beta2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2beta2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2beta2ExternalMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ExternalMetricSourceFluentImpl.TargetNestedImpl(); } - - public V2beta2ExternalMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item) { + public V2beta2ExternalMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item) { return new V2beta2ExternalMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2beta2ExternalMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2beta2MetricTargetBuilder().build()); } - - public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item) { + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2ExternalMetricSourceFluentImpl that = (V2beta2ExternalMetricSourceFluentImpl) o; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); + return java.util.Objects.hash(metric, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metric != null) { - sb.append("metric:"); - sb.append(metric + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class MetricNestedImpl - extends V2beta2MetricIdentifierFluentImpl> - implements V2beta2ExternalMetricSourceFluent.MetricNested, Nested { + class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> implements V2beta2ExternalMetricSourceFluent.MetricNested,Nested{ MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2beta2MetricIdentifierBuilder(this); } - V2beta2MetricIdentifierBuilder builder; - public N and() { return (N) V2beta2ExternalMetricSourceFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } - - class TargetNestedImpl - extends V2beta2MetricTargetFluentImpl> - implements V2beta2ExternalMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> implements V2beta2ExternalMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2beta2MetricTargetBuilder(this); } - V2beta2MetricTargetBuilder builder; - public N and() { return (N) V2beta2ExternalMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java index fe1b9f69ac..d49d32da63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2ExternalMetricStatusBuilder - extends V2beta2ExternalMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2ExternalMetricStatusBuilder extends V2beta2ExternalMetricStatusFluentImpl implements VisitableBuilder{ public V2beta2ExternalMetricStatusBuilder() { this(false); } - public V2beta2ExternalMetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2ExternalMetricStatus(), validationEnabled); } - public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatusFluent fluent) { this(fluent, false); } - - public V2beta2ExternalMetricStatusBuilder( - V2beta2ExternalMetricStatusFluent fluent, Boolean validationEnabled) { + public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ExternalMetricStatus(), validationEnabled); } - - public V2beta2ExternalMetricStatusBuilder( - V2beta2ExternalMetricStatusFluent fluent, V2beta2ExternalMetricStatus instance) { + public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatusFluent fluent,V2beta2ExternalMetricStatus instance) { this(fluent, instance, false); } - - public V2beta2ExternalMetricStatusBuilder( - V2beta2ExternalMetricStatusFluent fluent, - V2beta2ExternalMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatusFluent fluent,V2beta2ExternalMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2beta2ExternalMetricStatusBuilder( - V2beta2ExternalMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ExternalMetricStatusFluent fluent; Boolean validationEnabled; - public V2beta2ExternalMetricStatus build() { V2beta2ExternalMetricStatus buildable = new V2beta2ExternalMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java index ad5a55efe0..ff87130863 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java @@ -1,89 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2ExternalMetricStatusFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2beta2ExternalMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent(); - public V2beta2MetricValueStatus buildCurrent(); - public A withCurrent(V2beta2MetricValueStatus current); - public Boolean hasCurrent(); - public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrent(); - - public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item); public V2beta2ExternalMetricStatusFluent.CurrentNested editCurrent(); - public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric(); - public V2beta2MetricIdentifier buildMetric(); - public A withMetric(V2beta2MetricIdentifier metric); - public Boolean hasMetric(); - public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetric(); - - public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item); public V2beta2ExternalMetricStatusFluent.MetricNested editMetric(); - public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetric(); - - public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item); - - public interface CurrentNested - extends Nested, - V2beta2MetricValueStatusFluent> { + public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item); + public interface CurrentNested extends Nested,V2beta2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } - - public interface MetricNested - extends Nested, - V2beta2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2beta2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java index 38739762a2..ec194a35b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java @@ -1,210 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ExternalMetricStatusFluentImpl> - extends BaseFluent implements V2beta2ExternalMetricStatusFluent { - public V2beta2ExternalMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ExternalMetricStatusFluentImpl> extends BaseFluent implements V2beta2ExternalMetricStatusFluent{ + public V2beta2ExternalMetricStatusFluentImpl() { + } public V2beta2ExternalMetricStatusFluentImpl(V2beta2ExternalMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - } + } private V2beta2MetricValueStatusBuilder current; private V2beta2MetricIdentifierBuilder metric; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2beta2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2beta2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ExternalMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item) { + public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item) { return new V2beta2ExternalMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2beta2ExternalMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2beta2MetricValueStatusBuilder().build()); } - - public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2beta2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2beta2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetric() { return new V2beta2ExternalMetricStatusFluentImpl.MetricNestedImpl(); } - - public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item) { + public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item) { return new V2beta2ExternalMetricStatusFluentImpl.MetricNestedImpl(item); } - public V2beta2ExternalMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2beta2MetricIdentifierBuilder().build()); } - - public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item) { + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2ExternalMetricStatusFluentImpl that = (V2beta2ExternalMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); + return java.util.Objects.hash(current, metric, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2beta2MetricValueStatusFluentImpl> - implements V2beta2ExternalMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> implements V2beta2ExternalMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2beta2MetricValueStatusBuilder(this); } - V2beta2MetricValueStatusBuilder builder; - public N and() { return (N) V2beta2ExternalMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } - - class MetricNestedImpl - extends V2beta2MetricIdentifierFluentImpl> - implements V2beta2ExternalMetricStatusFluent.MetricNested, Nested { + class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> implements V2beta2ExternalMetricStatusFluent.MetricNested,Nested{ MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2beta2MetricIdentifierBuilder(this); } - V2beta2MetricIdentifierBuilder builder; - public N and() { return (N) V2beta2ExternalMetricStatusFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java index 986c51e0e5..46eb25e69e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2HPAScalingPolicyBuilder - extends V2beta2HPAScalingPolicyFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2HPAScalingPolicyBuilder extends V2beta2HPAScalingPolicyFluentImpl implements VisitableBuilder{ public V2beta2HPAScalingPolicyBuilder() { this(false); } - public V2beta2HPAScalingPolicyBuilder(Boolean validationEnabled) { this(new V2beta2HPAScalingPolicy(), validationEnabled); } - public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicyFluent fluent) { this(fluent, false); } - - public V2beta2HPAScalingPolicyBuilder( - V2beta2HPAScalingPolicyFluent fluent, Boolean validationEnabled) { + public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicyFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HPAScalingPolicy(), validationEnabled); } - - public V2beta2HPAScalingPolicyBuilder( - V2beta2HPAScalingPolicyFluent fluent, V2beta2HPAScalingPolicy instance) { + public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicyFluent fluent,V2beta2HPAScalingPolicy instance) { this(fluent, instance, false); } - - public V2beta2HPAScalingPolicyBuilder( - V2beta2HPAScalingPolicyFluent fluent, - V2beta2HPAScalingPolicy instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicyFluent fluent,V2beta2HPAScalingPolicy instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPeriodSeconds(instance.getPeriodSeconds()); fluent.withType(instance.getType()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicy instance) { - this(instance, false); + this(instance,false); } - - public V2beta2HPAScalingPolicyBuilder( - V2beta2HPAScalingPolicy instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicy instance,Boolean validationEnabled) { + this.fluent = this; this.withPeriodSeconds(instance.getPeriodSeconds()); this.withType(instance.getType()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HPAScalingPolicyFluent fluent; Boolean validationEnabled; - public V2beta2HPAScalingPolicy build() { V2beta2HPAScalingPolicy buildable = new V2beta2HPAScalingPolicy(); buildable.setPeriodSeconds(fluent.getPeriodSeconds()); @@ -79,4 +50,5 @@ public V2beta2HPAScalingPolicy build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java index 1665d0a793..fbbb360824 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java @@ -1,37 +1,22 @@ -/* -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 java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2HPAScalingPolicyFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2HPAScalingPolicyFluent> extends Fluent{ public Integer getPeriodSeconds(); - public A withPeriodSeconds(Integer periodSeconds); - public Boolean hasPeriodSeconds(); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public Integer getValue(); - public A withValue(Integer value); - public Boolean hasValue(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java index 74a621bcbb..ff5c5cd211 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java @@ -1,108 +1,77 @@ -/* -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 java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HPAScalingPolicyFluentImpl> - extends BaseFluent implements V2beta2HPAScalingPolicyFluent { - public V2beta2HPAScalingPolicyFluentImpl() {} - +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HPAScalingPolicyFluentImpl> extends BaseFluent implements V2beta2HPAScalingPolicyFluent{ + public V2beta2HPAScalingPolicyFluentImpl() { + } public V2beta2HPAScalingPolicyFluentImpl(V2beta2HPAScalingPolicy instance) { this.withPeriodSeconds(instance.getPeriodSeconds()); this.withType(instance.getType()); this.withValue(instance.getValue()); - } + } private Integer periodSeconds; private String type; private Integer value; - public Integer getPeriodSeconds() { return this.periodSeconds; } - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; + this.periodSeconds=periodSeconds; return (A) this; } - public Boolean hasPeriodSeconds() { return this.periodSeconds != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public Integer getValue() { return this.value; } - public A withValue(Integer value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2HPAScalingPolicyFluentImpl that = (V2beta2HPAScalingPolicyFluentImpl) o; - if (periodSeconds != null - ? !periodSeconds.equals(that.periodSeconds) - : that.periodSeconds != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (periodSeconds != null ? !periodSeconds.equals(that.periodSeconds) :that.periodSeconds != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); + return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (periodSeconds != null) { - sb.append("periodSeconds:"); - sb.append(periodSeconds + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } + if (type != null) { sb.append("type:"); sb.append(type + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java index c145f701d0..eb3cbfbdbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java @@ -1,76 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2HPAScalingRulesBuilder - extends V2beta2HPAScalingRulesFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2HPAScalingRulesBuilder extends V2beta2HPAScalingRulesFluentImpl implements VisitableBuilder{ public V2beta2HPAScalingRulesBuilder() { this(false); } - public V2beta2HPAScalingRulesBuilder(Boolean validationEnabled) { this(new V2beta2HPAScalingRules(), validationEnabled); } - public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRulesFluent fluent) { this(fluent, false); } - - public V2beta2HPAScalingRulesBuilder( - V2beta2HPAScalingRulesFluent fluent, Boolean validationEnabled) { + public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRulesFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HPAScalingRules(), validationEnabled); } - - public V2beta2HPAScalingRulesBuilder( - V2beta2HPAScalingRulesFluent fluent, V2beta2HPAScalingRules instance) { + public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRulesFluent fluent,V2beta2HPAScalingRules instance) { this(fluent, instance, false); } - - public V2beta2HPAScalingRulesBuilder( - V2beta2HPAScalingRulesFluent fluent, - V2beta2HPAScalingRules instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRulesFluent fluent,V2beta2HPAScalingRules instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withPolicies(instance.getPolicies()); fluent.withSelectPolicy(instance.getSelectPolicy()); fluent.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRules instance) { - this(instance, false); + this(instance,false); } - - public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRules instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRules instance,Boolean validationEnabled) { + this.fluent = this; this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HPAScalingRulesFluent fluent; Boolean validationEnabled; - public V2beta2HPAScalingRules build() { V2beta2HPAScalingRules buildable = new V2beta2HPAScalingRules(); buildable.setPolicies(fluent.getPolicies()); @@ -78,4 +50,5 @@ public V2beta2HPAScalingRules build() { buildable.setStabilizationWindowSeconds(fluent.getStabilizationWindowSeconds()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java index ad986e2fc0..2f8b8950ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java @@ -1,101 +1,62 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2beta2HPAScalingRulesFluent> - extends Fluent { - public A addToPolicies(Integer index, V2beta2HPAScalingPolicy item); - - public A setToPolicies(Integer index, V2beta2HPAScalingPolicy item); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2HPAScalingRulesFluent> extends Fluent{ + public A addToPolicies(Integer index,V2beta2HPAScalingPolicy item); + public A setToPolicies(Integer index,V2beta2HPAScalingPolicy item); public A addToPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items); - public A addAllToPolicies(Collection items); - public A removeFromPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items); - public A removeAllFromPolicies(Collection items); - public A removeMatchingFromPolicies(Predicate predicate); - + /** * This method has been deprecated, please use method buildPolicies instead. - * * @return The buildable object. */ @Deprecated public List getPolicies(); - public List buildPolicies(); - public V2beta2HPAScalingPolicy buildPolicy(Integer index); - public V2beta2HPAScalingPolicy buildFirstPolicy(); - public V2beta2HPAScalingPolicy buildLastPolicy(); - - public V2beta2HPAScalingPolicy buildMatchingPolicy( - Predicate predicate); - + public V2beta2HPAScalingPolicy buildMatchingPolicy(Predicate predicate); public Boolean hasMatchingPolicy(Predicate predicate); - public A withPolicies(List policies); - public A withPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... policies); - public Boolean hasPolicies(); - public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicy(); - - public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike( - V2beta2HPAScalingPolicy item); - - public V2beta2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( - Integer index, V2beta2HPAScalingPolicy item); - + public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike(V2beta2HPAScalingPolicy item); + public V2beta2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike(Integer index,V2beta2HPAScalingPolicy item); public V2beta2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index); - public V2beta2HPAScalingRulesFluent.PoliciesNested editFirstPolicy(); - public V2beta2HPAScalingRulesFluent.PoliciesNested editLastPolicy(); - - public V2beta2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( - Predicate predicate); - + public V2beta2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy(Predicate predicate); public String getSelectPolicy(); - public A withSelectPolicy(String selectPolicy); - public Boolean hasSelectPolicy(); - public Integer getStabilizationWindowSeconds(); - public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds); - public Boolean hasStabilizationWindowSeconds(); - - public interface PoliciesNested - extends Nested, - V2beta2HPAScalingPolicyFluent> { + public interface PoliciesNested extends Nested,V2beta2HPAScalingPolicyFluent>{ public N and(); - public N endPolicy(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java index daeb9ed0d5..d713e32b08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java @@ -1,120 +1,63 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HPAScalingRulesFluentImpl> - extends BaseFluent implements V2beta2HPAScalingRulesFluent { - public V2beta2HPAScalingRulesFluentImpl() {} +import java.lang.Boolean; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HPAScalingRulesFluentImpl> extends BaseFluent implements V2beta2HPAScalingRulesFluent{ + public V2beta2HPAScalingRulesFluentImpl() { + } public V2beta2HPAScalingRulesFluentImpl(V2beta2HPAScalingRules instance) { this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - } + } private ArrayList policies; private String selectPolicy; private Integer stabilizationWindowSeconds; - - public A addToPolicies(Integer index, V2beta2HPAScalingPolicy item) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); - _visitables - .get("policies") - .add(index >= 0 ? index : _visitables.get("policies").size(), builder); - this.policies.add(index >= 0 ? index : policies.size(), builder); - return (A) this; + public A addToPolicies(Integer index,V2beta2HPAScalingPolicy item) { + if (this.policies == null) {this.policies = new ArrayList();} + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(index >= 0 ? index : _visitables.get("policies").size(), builder);this.policies.add(index >= 0 ? index : policies.size(), builder); return (A)this; } - - public A setToPolicies(Integer index, V2beta2HPAScalingPolicy item) { - if (this.policies == null) { - this.policies = new ArrayList(); - } + public A setToPolicies(Integer index,V2beta2HPAScalingPolicy item) { + if (this.policies == null) {this.policies = new ArrayList();} V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= _visitables.get("policies").size()) { - _visitables.get("policies").add(builder); - } else { - _visitables.get("policies").set(index, builder); - } - if (index < 0 || index >= policies.size()) { - policies.add(builder); - } else { - policies.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("policies").size()) { _visitables.get("policies").add(builder); } else { _visitables.get("policies").set(index, builder);} + if (index < 0 || index >= policies.size()) { policies.add(builder); } else { policies.set(index, builder);} + return (A)this; } - public A addToPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - for (V2beta2HPAScalingPolicy item : items) { - V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); - _visitables.get("policies").add(builder); - this.policies.add(builder); - } - return (A) this; + if (this.policies == null) {this.policies = new ArrayList();} + for (V2beta2HPAScalingPolicy item : items) {V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; } - public A addAllToPolicies(Collection items) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - for (V2beta2HPAScalingPolicy item : items) { - V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); - _visitables.get("policies").add(builder); - this.policies.add(builder); - } - return (A) this; + if (this.policies == null) {this.policies = new ArrayList();} + for (V2beta2HPAScalingPolicy item : items) {V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; } - - public A removeFromPolicies( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items) { - for (V2beta2HPAScalingPolicy item : items) { - V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); - _visitables.get("policies").remove(builder); - if (this.policies != null) { - this.policies.remove(builder); - } - } - return (A) this; + public A removeFromPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items) { + for (V2beta2HPAScalingPolicy item : items) {V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder);if (this.policies != null) {this.policies.remove(builder);}} return (A)this; } - public A removeAllFromPolicies(Collection items) { - for (V2beta2HPAScalingPolicy item : items) { - V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); - _visitables.get("policies").remove(builder); - if (this.policies != null) { - this.policies.remove(builder); - } - } - return (A) this; + for (V2beta2HPAScalingPolicy item : items) {V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder);if (this.policies != null) {this.policies.remove(builder);}} return (A)this; } - public A removeMatchingFromPolicies(Predicate predicate) { if (policies == null) return (A) this; final Iterator each = policies.iterator(); @@ -126,215 +69,133 @@ public A removeMatchingFromPolicies(Predicate pr each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildPolicies instead. - * * @return The buildable object. */ @Deprecated public List getPolicies() { return policies != null ? build(policies) : null; } - public List buildPolicies() { return policies != null ? build(policies) : null; } - public V2beta2HPAScalingPolicy buildPolicy(Integer index) { return this.policies.get(index).build(); } - public V2beta2HPAScalingPolicy buildFirstPolicy() { return this.policies.get(0).build(); } - public V2beta2HPAScalingPolicy buildLastPolicy() { return this.policies.get(policies.size() - 1).build(); } - - public V2beta2HPAScalingPolicy buildMatchingPolicy( - Predicate predicate) { - for (V2beta2HPAScalingPolicyBuilder item : policies) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V2beta2HPAScalingPolicy buildMatchingPolicy(Predicate predicate) { + for (V2beta2HPAScalingPolicyBuilder item: policies) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingPolicy(Predicate predicate) { - for (V2beta2HPAScalingPolicyBuilder item : policies) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2beta2HPAScalingPolicyBuilder item: policies) { if(predicate.test(item)){ return true;} } return false; } - public A withPolicies(List policies) { - if (this.policies != null) { - _visitables.get("policies").removeAll(this.policies); - } - if (policies != null) { - this.policies = new ArrayList(); - for (V2beta2HPAScalingPolicy item : policies) { - this.addToPolicies(item); - } - } else { - this.policies = null; - } - return (A) this; + if (this.policies != null) { _visitables.get("policies").removeAll(this.policies);} + if (policies != null) {this.policies = new ArrayList(); for (V2beta2HPAScalingPolicy item : policies){this.addToPolicies(item);}} else { this.policies = null;} return (A) this; } - public A withPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... policies) { - if (this.policies != null) { - this.policies.clear(); - } - if (policies != null) { - for (V2beta2HPAScalingPolicy item : policies) { - this.addToPolicies(item); - } - } - return (A) this; + if (this.policies != null) {this.policies.clear();} + if (policies != null) {for (V2beta2HPAScalingPolicy item :policies){ this.addToPolicies(item);}} return (A) this; } - public Boolean hasPolicies() { return policies != null && !policies.isEmpty(); } - public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicy() { return new V2beta2HPAScalingRulesFluentImpl.PoliciesNestedImpl(); } - - public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike( - V2beta2HPAScalingPolicy item) { + public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike(V2beta2HPAScalingPolicy item) { return new V2beta2HPAScalingRulesFluentImpl.PoliciesNestedImpl(-1, item); } - - public V2beta2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( - Integer index, V2beta2HPAScalingPolicy item) { + public V2beta2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike(Integer index,V2beta2HPAScalingPolicy item) { return new V2beta2HPAScalingRulesFluentImpl.PoliciesNestedImpl(index, item); } - public V2beta2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index) { - if (policies.size() <= index) - throw new RuntimeException("Can't edit policies. Index exceeds size."); + if (policies.size() <= index) throw new RuntimeException("Can't edit policies. Index exceeds size."); return setNewPolicyLike(index, buildPolicy(index)); } - public V2beta2HPAScalingRulesFluent.PoliciesNested editFirstPolicy() { - if (policies.size() == 0) - throw new RuntimeException("Can't edit first policies. The list is empty."); + if (policies.size() == 0) throw new RuntimeException("Can't edit first policies. The list is empty."); return setNewPolicyLike(0, buildPolicy(0)); } - public V2beta2HPAScalingRulesFluent.PoliciesNested editLastPolicy() { int index = policies.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last policies. The list is empty."); return setNewPolicyLike(index, buildPolicy(index)); } - - public V2beta2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( - Predicate predicate) { + public V2beta2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy(Predicate predicate) { int index = -1; - for (int i = 0; i < policies.size(); i++) { - if (predicate.test(policies.get(i))) { - index = i; - break; - } - } + for (int i=0;i - extends V2beta2HPAScalingPolicyFluentImpl> - implements V2beta2HPAScalingRulesFluent.PoliciesNested, Nested { - PoliciesNestedImpl(Integer index, V2beta2HPAScalingPolicy item) { + class PoliciesNestedImpl extends V2beta2HPAScalingPolicyFluentImpl> implements V2beta2HPAScalingRulesFluent.PoliciesNested,Nested{ + PoliciesNestedImpl(Integer index,V2beta2HPAScalingPolicy item) { this.index = index; this.builder = new V2beta2HPAScalingPolicyBuilder(this, item); } - PoliciesNestedImpl() { this.index = -1; this.builder = new V2beta2HPAScalingPolicyBuilder(this); } - V2beta2HPAScalingPolicyBuilder builder; Integer index; - public N and() { - return (N) V2beta2HPAScalingRulesFluentImpl.this.setToPolicies(index, builder.build()); + return (N) V2beta2HPAScalingRulesFluentImpl.this.setToPolicies(index,builder.build()); } - public N endPolicy() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java index 470f5b0af3..f8da37520d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java @@ -1,82 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2HorizontalPodAutoscalerBehaviorBuilder - extends V2beta2HorizontalPodAutoscalerBehaviorFluentImpl< - V2beta2HorizontalPodAutoscalerBehaviorBuilder> - implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerBehavior, V2beta2HorizontalPodAutoscalerBehaviorBuilder> { +import java.lang.Boolean; +public class V2beta2HorizontalPodAutoscalerBehaviorBuilder extends V2beta2HorizontalPodAutoscalerBehaviorFluentImpl implements VisitableBuilder{ public V2beta2HorizontalPodAutoscalerBehaviorBuilder() { this(false); } - public V2beta2HorizontalPodAutoscalerBehaviorBuilder(Boolean validationEnabled) { this(new V2beta2HorizontalPodAutoscalerBehavior(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - V2beta2HorizontalPodAutoscalerBehaviorFluent fluent) { + public V2beta2HorizontalPodAutoscalerBehaviorBuilder(V2beta2HorizontalPodAutoscalerBehaviorFluent fluent) { this(fluent, false); } - - public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, Boolean validationEnabled) { + public V2beta2HorizontalPodAutoscalerBehaviorBuilder(V2beta2HorizontalPodAutoscalerBehaviorFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerBehavior(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, - V2beta2HorizontalPodAutoscalerBehavior instance) { + public V2beta2HorizontalPodAutoscalerBehaviorBuilder(V2beta2HorizontalPodAutoscalerBehaviorFluent fluent,V2beta2HorizontalPodAutoscalerBehavior instance) { this(fluent, instance, false); } - - public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, - V2beta2HorizontalPodAutoscalerBehavior instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HorizontalPodAutoscalerBehaviorBuilder(V2beta2HorizontalPodAutoscalerBehaviorFluent fluent,V2beta2HorizontalPodAutoscalerBehavior instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withScaleDown(instance.getScaleDown()); fluent.withScaleUp(instance.getScaleUp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - V2beta2HorizontalPodAutoscalerBehavior instance) { - this(instance, false); + public V2beta2HorizontalPodAutoscalerBehaviorBuilder(V2beta2HorizontalPodAutoscalerBehavior instance) { + this(instance,false); } - - public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - V2beta2HorizontalPodAutoscalerBehavior instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HorizontalPodAutoscalerBehaviorBuilder(V2beta2HorizontalPodAutoscalerBehavior instance,Boolean validationEnabled) { + this.fluent = this; this.withScaleDown(instance.getScaleDown()); this.withScaleUp(instance.getScaleUp()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HorizontalPodAutoscalerBehaviorFluent fluent; Boolean validationEnabled; - public V2beta2HorizontalPodAutoscalerBehavior build() { V2beta2HorizontalPodAutoscalerBehavior buildable = new V2beta2HorizontalPodAutoscalerBehavior(); buildable.setScaleDown(fluent.getScaleDown()); buildable.setScaleUp(fluent.getScaleUp()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java index 79c0e7442c..a46cd039ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java @@ -1,92 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2HorizontalPodAutoscalerBehaviorFluent< - A extends V2beta2HorizontalPodAutoscalerBehaviorFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2beta2HorizontalPodAutoscalerBehaviorFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildScaleDown instead. - * * @return The buildable object. */ @Deprecated public V2beta2HPAScalingRules getScaleDown(); - public V2beta2HPAScalingRules buildScaleDown(); - public A withScaleDown(V2beta2HPAScalingRules scaleDown); - public Boolean hasScaleDown(); - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDown(); - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( - V2beta2HPAScalingRules item); - + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike(V2beta2HPAScalingRules item); public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown(); - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown(); - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( - V2beta2HPAScalingRules item); - + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike(V2beta2HPAScalingRules item); + /** * This method has been deprecated, please use method buildScaleUp instead. - * * @return The buildable object. */ @Deprecated public V2beta2HPAScalingRules getScaleUp(); - public V2beta2HPAScalingRules buildScaleUp(); - public A withScaleUp(V2beta2HPAScalingRules scaleUp); - public Boolean hasScaleUp(); - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp(); - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( - V2beta2HPAScalingRules item); - + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike(V2beta2HPAScalingRules item); public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp(); - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp(); - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( - V2beta2HPAScalingRules item); - - public interface ScaleDownNested - extends Nested, - V2beta2HPAScalingRulesFluent< - V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested> { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike(V2beta2HPAScalingRules item); + public interface ScaleDownNested extends Nested,V2beta2HPAScalingRulesFluent>{ public N and(); - public N endScaleDown(); + } - - public interface ScaleUpNested - extends Nested, - V2beta2HPAScalingRulesFluent< - V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested> { + public interface ScaleUpNested extends Nested,V2beta2HPAScalingRulesFluent>{ public N and(); - public N endScaleUp(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java index bee6f02a25..3592ecb112 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java @@ -1,217 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HorizontalPodAutoscalerBehaviorFluentImpl< - A extends V2beta2HorizontalPodAutoscalerBehaviorFluent> - extends BaseFluent implements V2beta2HorizontalPodAutoscalerBehaviorFluent { - public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl() {} - - public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl( - V2beta2HorizontalPodAutoscalerBehavior instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HorizontalPodAutoscalerBehaviorFluentImpl> extends BaseFluent implements V2beta2HorizontalPodAutoscalerBehaviorFluent{ + public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl() { + } + public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl(V2beta2HorizontalPodAutoscalerBehavior instance) { this.withScaleDown(instance.getScaleDown()); this.withScaleUp(instance.getScaleUp()); - } + } private V2beta2HPAScalingRulesBuilder scaleDown; private V2beta2HPAScalingRulesBuilder scaleUp; - + /** * This method has been deprecated, please use method buildScaleDown instead. - * * @return The buildable object. */ @Deprecated public V2beta2HPAScalingRules getScaleDown() { - return this.scaleDown != null ? this.scaleDown.build() : null; + return this.scaleDown!=null ?this.scaleDown.build():null; } - public V2beta2HPAScalingRules buildScaleDown() { - return this.scaleDown != null ? this.scaleDown.build() : null; + return this.scaleDown!=null ?this.scaleDown.build():null; } - public A withScaleDown(V2beta2HPAScalingRules scaleDown) { _visitables.get("scaleDown").remove(this.scaleDown); - if (scaleDown != null) { - this.scaleDown = new V2beta2HPAScalingRulesBuilder(scaleDown); - _visitables.get("scaleDown").add(this.scaleDown); - } else { - this.scaleDown = null; - _visitables.get("scaleDown").remove(this.scaleDown); - } - return (A) this; + if (scaleDown!=null){ this.scaleDown= new V2beta2HPAScalingRulesBuilder(scaleDown); _visitables.get("scaleDown").add(this.scaleDown);} else { this.scaleDown = null; _visitables.get("scaleDown").remove(this.scaleDown); } return (A) this; } - public Boolean hasScaleDown() { return this.scaleDown != null; } - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDown() { return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( - V2beta2HPAScalingRules item) { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike(V2beta2HPAScalingRules item) { return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown() { return withNewScaleDownLike(getScaleDown()); } - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown() { - return withNewScaleDownLike( - getScaleDown() != null ? getScaleDown() : new V2beta2HPAScalingRulesBuilder().build()); + return withNewScaleDownLike(getScaleDown() != null ? getScaleDown(): new V2beta2HPAScalingRulesBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( - V2beta2HPAScalingRules item) { - return withNewScaleDownLike(getScaleDown() != null ? getScaleDown() : item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike(V2beta2HPAScalingRules item) { + return withNewScaleDownLike(getScaleDown() != null ? getScaleDown(): item); } - + /** * This method has been deprecated, please use method buildScaleUp instead. - * * @return The buildable object. */ @Deprecated public V2beta2HPAScalingRules getScaleUp() { - return this.scaleUp != null ? this.scaleUp.build() : null; + return this.scaleUp!=null ?this.scaleUp.build():null; } - public V2beta2HPAScalingRules buildScaleUp() { - return this.scaleUp != null ? this.scaleUp.build() : null; + return this.scaleUp!=null ?this.scaleUp.build():null; } - public A withScaleUp(V2beta2HPAScalingRules scaleUp) { _visitables.get("scaleUp").remove(this.scaleUp); - if (scaleUp != null) { - this.scaleUp = new V2beta2HPAScalingRulesBuilder(scaleUp); - _visitables.get("scaleUp").add(this.scaleUp); - } else { - this.scaleUp = null; - _visitables.get("scaleUp").remove(this.scaleUp); - } - return (A) this; + if (scaleUp!=null){ this.scaleUp= new V2beta2HPAScalingRulesBuilder(scaleUp); _visitables.get("scaleUp").add(this.scaleUp);} else { this.scaleUp = null; _visitables.get("scaleUp").remove(this.scaleUp); } return (A) this; } - public Boolean hasScaleUp() { return this.scaleUp != null; } - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp() { return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( - V2beta2HPAScalingRules item) { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike(V2beta2HPAScalingRules item) { return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp() { return withNewScaleUpLike(getScaleUp()); } - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp() { - return withNewScaleUpLike( - getScaleUp() != null ? getScaleUp() : new V2beta2HPAScalingRulesBuilder().build()); + return withNewScaleUpLike(getScaleUp() != null ? getScaleUp(): new V2beta2HPAScalingRulesBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( - V2beta2HPAScalingRules item) { - return withNewScaleUpLike(getScaleUp() != null ? getScaleUp() : item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike(V2beta2HPAScalingRules item) { + return withNewScaleUpLike(getScaleUp() != null ? getScaleUp(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2HorizontalPodAutoscalerBehaviorFluentImpl that = - (V2beta2HorizontalPodAutoscalerBehaviorFluentImpl) o; - if (scaleDown != null ? !scaleDown.equals(that.scaleDown) : that.scaleDown != null) - return false; - if (scaleUp != null ? !scaleUp.equals(that.scaleUp) : that.scaleUp != null) return false; + V2beta2HorizontalPodAutoscalerBehaviorFluentImpl that = (V2beta2HorizontalPodAutoscalerBehaviorFluentImpl) o; + if (scaleDown != null ? !scaleDown.equals(that.scaleDown) :that.scaleDown != null) return false; + if (scaleUp != null ? !scaleUp.equals(that.scaleUp) :that.scaleUp != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(scaleDown, scaleUp, super.hashCode()); + return java.util.Objects.hash(scaleDown, scaleUp, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (scaleDown != null) { - sb.append("scaleDown:"); - sb.append(scaleDown + ","); - } - if (scaleUp != null) { - sb.append("scaleUp:"); - sb.append(scaleUp); - } + if (scaleDown != null) { sb.append("scaleDown:"); sb.append(scaleDown + ","); } + if (scaleUp != null) { sb.append("scaleUp:"); sb.append(scaleUp); } sb.append("}"); return sb.toString(); } - - class ScaleDownNestedImpl - extends V2beta2HPAScalingRulesFluentImpl< - V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested> - implements V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested, Nested { + class ScaleDownNestedImpl extends V2beta2HPAScalingRulesFluentImpl> implements V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested,Nested{ ScaleDownNestedImpl(V2beta2HPAScalingRules item) { this.builder = new V2beta2HPAScalingRulesBuilder(this, item); } - ScaleDownNestedImpl() { this.builder = new V2beta2HPAScalingRulesBuilder(this); } - V2beta2HPAScalingRulesBuilder builder; - public N and() { - return (N) - V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleDown(builder.build()); + return (N) V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleDown(builder.build()); } - public N endScaleDown() { return and(); } + } - - class ScaleUpNestedImpl - extends V2beta2HPAScalingRulesFluentImpl< - V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested> - implements V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested, Nested { + class ScaleUpNestedImpl extends V2beta2HPAScalingRulesFluentImpl> implements V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested,Nested{ ScaleUpNestedImpl(V2beta2HPAScalingRules item) { this.builder = new V2beta2HPAScalingRulesBuilder(this, item); } - ScaleUpNestedImpl() { this.builder = new V2beta2HPAScalingRulesBuilder(this); } - V2beta2HPAScalingRulesBuilder builder; - public N and() { return (N) V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleUp(builder.build()); } - public N endScaleUp() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java index f89542fb81..217f99892a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java @@ -1,50 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2HorizontalPodAutoscalerBuilder - extends V2beta2HorizontalPodAutoscalerFluentImpl - implements VisitableBuilder< - V2beta2HorizontalPodAutoscaler, V2beta2HorizontalPodAutoscalerBuilder> { +import java.lang.Boolean; +public class V2beta2HorizontalPodAutoscalerBuilder extends V2beta2HorizontalPodAutoscalerFluentImpl implements VisitableBuilder{ public V2beta2HorizontalPodAutoscalerBuilder() { this(false); } - public V2beta2HorizontalPodAutoscalerBuilder(Boolean validationEnabled) { this(new V2beta2HorizontalPodAutoscaler(), validationEnabled); } - public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscalerFluent fluent) { this(fluent, false); } - - public V2beta2HorizontalPodAutoscalerBuilder( - V2beta2HorizontalPodAutoscalerFluent fluent, Boolean validationEnabled) { + public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscalerFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscaler(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerBuilder( - V2beta2HorizontalPodAutoscalerFluent fluent, V2beta2HorizontalPodAutoscaler instance) { + public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscalerFluent fluent,V2beta2HorizontalPodAutoscaler instance) { this(fluent, instance, false); } - - public V2beta2HorizontalPodAutoscalerBuilder( - V2beta2HorizontalPodAutoscalerFluent fluent, - V2beta2HorizontalPodAutoscaler instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscalerFluent fluent,V2beta2HorizontalPodAutoscaler instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); @@ -55,16 +30,13 @@ public V2beta2HorizontalPodAutoscalerBuilder( fluent.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscaler instance) { - this(instance, false); + this(instance,false); } - - public V2beta2HorizontalPodAutoscalerBuilder( - V2beta2HorizontalPodAutoscaler instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscaler instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -75,12 +47,10 @@ public V2beta2HorizontalPodAutoscalerBuilder( this.withStatus(instance.getStatus()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HorizontalPodAutoscalerFluent fluent; Boolean validationEnabled; - public V2beta2HorizontalPodAutoscaler build() { V2beta2HorizontalPodAutoscaler buildable = new V2beta2HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -90,4 +60,5 @@ public V2beta2HorizontalPodAutoscaler build() { buildable.setStatus(fluent.getStatus()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java index f2f1c6c54b..4d97452d6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2HorizontalPodAutoscalerConditionBuilder - extends V2beta2HorizontalPodAutoscalerConditionFluentImpl< - V2beta2HorizontalPodAutoscalerConditionBuilder> - implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerCondition, V2beta2HorizontalPodAutoscalerConditionBuilder> { +import java.lang.Boolean; +public class V2beta2HorizontalPodAutoscalerConditionBuilder extends V2beta2HorizontalPodAutoscalerConditionFluentImpl implements VisitableBuilder{ public V2beta2HorizontalPodAutoscalerConditionBuilder() { this(false); } - public V2beta2HorizontalPodAutoscalerConditionBuilder(Boolean validationEnabled) { this(new V2beta2HorizontalPodAutoscalerCondition(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerConditionBuilder( - V2beta2HorizontalPodAutoscalerConditionFluent fluent) { + public V2beta2HorizontalPodAutoscalerConditionBuilder(V2beta2HorizontalPodAutoscalerConditionFluent fluent) { this(fluent, false); } - - public V2beta2HorizontalPodAutoscalerConditionBuilder( - V2beta2HorizontalPodAutoscalerConditionFluent fluent, Boolean validationEnabled) { + public V2beta2HorizontalPodAutoscalerConditionBuilder(V2beta2HorizontalPodAutoscalerConditionFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerCondition(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerConditionBuilder( - V2beta2HorizontalPodAutoscalerConditionFluent fluent, - V2beta2HorizontalPodAutoscalerCondition instance) { + public V2beta2HorizontalPodAutoscalerConditionBuilder(V2beta2HorizontalPodAutoscalerConditionFluent fluent,V2beta2HorizontalPodAutoscalerCondition instance) { this(fluent, instance, false); } - - public V2beta2HorizontalPodAutoscalerConditionBuilder( - V2beta2HorizontalPodAutoscalerConditionFluent fluent, - V2beta2HorizontalPodAutoscalerCondition instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HorizontalPodAutoscalerConditionBuilder(V2beta2HorizontalPodAutoscalerConditionFluent fluent,V2beta2HorizontalPodAutoscalerCondition instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); fluent.withMessage(instance.getMessage()); @@ -58,17 +30,13 @@ public V2beta2HorizontalPodAutoscalerConditionBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V2beta2HorizontalPodAutoscalerConditionBuilder( - V2beta2HorizontalPodAutoscalerCondition instance) { - this(instance, false); + public V2beta2HorizontalPodAutoscalerConditionBuilder(V2beta2HorizontalPodAutoscalerCondition instance) { + this(instance,false); } - - public V2beta2HorizontalPodAutoscalerConditionBuilder( - V2beta2HorizontalPodAutoscalerCondition instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HorizontalPodAutoscalerConditionBuilder(V2beta2HorizontalPodAutoscalerCondition instance,Boolean validationEnabled) { + this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -79,15 +47,12 @@ public V2beta2HorizontalPodAutoscalerConditionBuilder( this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HorizontalPodAutoscalerConditionFluent fluent; Boolean validationEnabled; - public V2beta2HorizontalPodAutoscalerCondition build() { - V2beta2HorizontalPodAutoscalerCondition buildable = - new V2beta2HorizontalPodAutoscalerCondition(); + V2beta2HorizontalPodAutoscalerCondition buildable = new V2beta2HorizontalPodAutoscalerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); buildable.setReason(fluent.getReason()); @@ -95,4 +60,5 @@ public V2beta2HorizontalPodAutoscalerCondition build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java index 014b163b75..d6c5dc4f38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java @@ -1,51 +1,28 @@ -/* -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.Fluent; import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2HorizontalPodAutoscalerConditionFluent< - A extends V2beta2HorizontalPodAutoscalerConditionFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2HorizontalPodAutoscalerConditionFluent> extends Fluent{ public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public Boolean hasLastTransitionTime(); - public String getMessage(); - public A withMessage(String message); - public Boolean hasMessage(); - public String getReason(); - public A withReason(String reason); - public Boolean hasReason(); - public String getStatus(); - public A withStatus(String status); - public Boolean hasStatus(); - public String getType(); - public A withType(String type); - public Boolean hasType(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java index da0b7cde2d..301d3b0148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java @@ -1,29 +1,20 @@ -/* -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 java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HorizontalPodAutoscalerConditionFluentImpl< - A extends V2beta2HorizontalPodAutoscalerConditionFluent> - extends BaseFluent implements V2beta2HorizontalPodAutoscalerConditionFluent { - public V2beta2HorizontalPodAutoscalerConditionFluentImpl() {} - - public V2beta2HorizontalPodAutoscalerConditionFluentImpl( - V2beta2HorizontalPodAutoscalerCondition instance) { +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HorizontalPodAutoscalerConditionFluentImpl> extends BaseFluent implements V2beta2HorizontalPodAutoscalerConditionFluent{ + public V2beta2HorizontalPodAutoscalerConditionFluentImpl() { + } + public V2beta2HorizontalPodAutoscalerConditionFluentImpl(V2beta2HorizontalPodAutoscalerCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -33,123 +24,82 @@ public V2beta2HorizontalPodAutoscalerConditionFluentImpl( this.withStatus(instance.getStatus()); this.withType(instance.getType()); - } + } private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; - public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + this.lastTransitionTime=lastTransitionTime; return (A) this; } - public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + this.message=message; return (A) this; } - public Boolean hasMessage() { return this.message != null; } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + this.reason=reason; return (A) this; } - public Boolean hasReason() { return this.reason != null; } - public String getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + this.status=status; return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2HorizontalPodAutoscalerConditionFluentImpl that = - (V2beta2HorizontalPodAutoscalerConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + V2beta2HorizontalPodAutoscalerConditionFluentImpl that = (V2beta2HorizontalPodAutoscalerConditionFluentImpl) o; + if (lastTransitionTime != null ? !lastTransitionTime.equals(that.lastTransitionTime) :that.lastTransitionTime != null) return false; + if (message != null ? !message.equals(that.message) :that.message != null) return false; + if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { - sb.append("lastTransitionTime:"); - sb.append(lastTransitionTime + ","); - } - if (message != null) { - sb.append("message:"); - sb.append(message + ","); - } - if (reason != null) { - sb.append("reason:"); - sb.append(reason + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java index 98730ee60a..e91f93b3d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java @@ -1,137 +1,80 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta2HorizontalPodAutoscalerFluent< - A extends V2beta2HorizontalPodAutoscalerFluent> - extends Fluent { +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2HorizontalPodAutoscalerFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata(); - public V1ObjectMeta buildMetadata(); - public A withMetadata(V1ObjectMeta metadata); - public Boolean hasMetadata(); - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata(); - - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item); - + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editMetadata(); - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata(); - - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item); - + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V2beta2HorizontalPodAutoscalerSpec getSpec(); - public V2beta2HorizontalPodAutoscalerSpec buildSpec(); - public A withSpec(V2beta2HorizontalPodAutoscalerSpec spec); - public Boolean hasSpec(); - public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - - public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( - V2beta2HorizontalPodAutoscalerSpec item); - + public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike(V2beta2HorizontalPodAutoscalerSpec item); public V2beta2HorizontalPodAutoscalerFluent.SpecNested editSpec(); - public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec(); - - public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( - V2beta2HorizontalPodAutoscalerSpec item); - + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike(V2beta2HorizontalPodAutoscalerSpec item); + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V2beta2HorizontalPodAutoscalerStatus getStatus(); - public V2beta2HorizontalPodAutoscalerStatus buildStatus(); - public A withStatus(V2beta2HorizontalPodAutoscalerStatus status); - public Boolean hasStatus(); - public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - - public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( - V2beta2HorizontalPodAutoscalerStatus item); - + public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike(V2beta2HorizontalPodAutoscalerStatus item); public V2beta2HorizontalPodAutoscalerFluent.StatusNested editStatus(); - public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus(); - - public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( - V2beta2HorizontalPodAutoscalerStatus item); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike(V2beta2HorizontalPodAutoscalerStatus item); + public interface MetadataNested extends Nested,V1ObjectMetaFluent>{ public N and(); - public N endMetadata(); + } - - public interface SpecNested - extends Nested, - V2beta2HorizontalPodAutoscalerSpecFluent< - V2beta2HorizontalPodAutoscalerFluent.SpecNested> { + public interface SpecNested extends Nested,V2beta2HorizontalPodAutoscalerSpecFluent>{ public N and(); - public N endSpec(); + } - - public interface StatusNested - extends Nested, - V2beta2HorizontalPodAutoscalerStatusFluent< - V2beta2HorizontalPodAutoscalerFluent.StatusNested> { + public interface StatusNested extends Nested,V2beta2HorizontalPodAutoscalerStatusFluent>{ public N and(); - public N endStatus(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java index 3ae26e7d25..065ea603be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java @@ -1,27 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HorizontalPodAutoscalerFluentImpl< - A extends V2beta2HorizontalPodAutoscalerFluent> - extends BaseFluent implements V2beta2HorizontalPodAutoscalerFluent { - public V2beta2HorizontalPodAutoscalerFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HorizontalPodAutoscalerFluentImpl> extends BaseFluent implements V2beta2HorizontalPodAutoscalerFluent{ + public V2beta2HorizontalPodAutoscalerFluentImpl() { + } public V2beta2HorizontalPodAutoscalerFluentImpl(V2beta2HorizontalPodAutoscaler instance) { this.withApiVersion(instance.getApiVersion()); @@ -32,310 +25,205 @@ public V2beta2HorizontalPodAutoscalerFluentImpl(V2beta2HorizontalPodAutoscaler i this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); - } + } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V2beta2HorizontalPodAutoscalerSpecBuilder spec; private V2beta2HorizontalPodAutoscalerStatusBuilder status; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + this.kind=kind; return (A) this; } - public Boolean hasKind() { return this.kind != null; } - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + return this.metadata!=null ?this.metadata.build():null; } - public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - _visitables.get("metadata").remove(this.metadata); - } - return (A) this; + if (metadata!=null){ this.metadata= new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} else { this.metadata = null; _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public Boolean hasMetadata() { return this.metadata != null; } - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { return new V2beta2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike( - V1ObjectMeta item) { + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V2beta2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ObjectMetaBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( - V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - + /** * This method has been deprecated, please use method buildSpec instead. - * * @return The buildable object. */ @Deprecated public V2beta2HorizontalPodAutoscalerSpec getSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public V2beta2HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + return this.spec!=null ?this.spec.build():null; } - public A withSpec(V2beta2HorizontalPodAutoscalerSpec spec) { _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V2beta2HorizontalPodAutoscalerSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } else { - this.spec = null; - _visitables.get("spec").remove(this.spec); - } - return (A) this; + if (spec!=null){ this.spec= new V2beta2HorizontalPodAutoscalerSpecBuilder(spec); _visitables.get("spec").add(this.spec);} else { this.spec = null; _visitables.get("spec").remove(this.spec); } return (A) this; } - public Boolean hasSpec() { return this.spec != null; } - public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { return new V2beta2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( - V2beta2HorizontalPodAutoscalerSpec item) { + public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike(V2beta2HorizontalPodAutoscalerSpec item) { return new V2beta2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null ? getSpec() : new V2beta2HorizontalPodAutoscalerSpecBuilder().build()); + return withNewSpecLike(getSpec() != null ? getSpec(): new V2beta2HorizontalPodAutoscalerSpecBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( - V2beta2HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike(V2beta2HorizontalPodAutoscalerSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec(): item); } - + /** * This method has been deprecated, please use method buildStatus instead. - * * @return The buildable object. */ @Deprecated public V2beta2HorizontalPodAutoscalerStatus getStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public V2beta2HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; + return this.status!=null ?this.status.build():null; } - public A withStatus(V2beta2HorizontalPodAutoscalerStatus status) { _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V2beta2HorizontalPodAutoscalerStatusBuilder(status); - _visitables.get("status").add(this.status); - } else { - this.status = null; - _visitables.get("status").remove(this.status); - } - return (A) this; + if (status!=null){ this.status= new V2beta2HorizontalPodAutoscalerStatusBuilder(status); _visitables.get("status").add(this.status);} else { this.status = null; _visitables.get("status").remove(this.status); } return (A) this; } - public Boolean hasStatus() { return this.status != null; } - public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { return new V2beta2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( - V2beta2HorizontalPodAutoscalerStatus item) { + public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike(V2beta2HorizontalPodAutoscalerStatus item) { return new V2beta2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new V2beta2HorizontalPodAutoscalerStatusBuilder().build()); + return withNewStatusLike(getStatus() != null ? getStatus(): new V2beta2HorizontalPodAutoscalerStatusBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( - V2beta2HorizontalPodAutoscalerStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike(V2beta2HorizontalPodAutoscalerStatus item) { + return withNewStatusLike(getStatus() != null ? getStatus(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2HorizontalPodAutoscalerFluentImpl that = (V2beta2HorizontalPodAutoscalerFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; + if (status != null ? !status.equals(that.status) :that.status != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec + ","); - } - if (status != null) { - sb.append("status:"); - sb.append(status); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } sb.append("}"); return sb.toString(); } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements V2beta2HorizontalPodAutoscalerFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ObjectMetaFluentImpl> implements V2beta2HorizontalPodAutoscalerFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ObjectMetaBuilder(this); } - V1ObjectMetaBuilder builder; - public N and() { return (N) V2beta2HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } - - class SpecNestedImpl - extends V2beta2HorizontalPodAutoscalerSpecFluentImpl< - V2beta2HorizontalPodAutoscalerFluent.SpecNested> - implements V2beta2HorizontalPodAutoscalerFluent.SpecNested, Nested { + class SpecNestedImpl extends V2beta2HorizontalPodAutoscalerSpecFluentImpl> implements V2beta2HorizontalPodAutoscalerFluent.SpecNested,Nested{ SpecNestedImpl(V2beta2HorizontalPodAutoscalerSpec item) { this.builder = new V2beta2HorizontalPodAutoscalerSpecBuilder(this, item); } - SpecNestedImpl() { this.builder = new V2beta2HorizontalPodAutoscalerSpecBuilder(this); } - V2beta2HorizontalPodAutoscalerSpecBuilder builder; - public N and() { return (N) V2beta2HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); } - public N endSpec() { return and(); } + } - - class StatusNestedImpl - extends V2beta2HorizontalPodAutoscalerStatusFluentImpl< - V2beta2HorizontalPodAutoscalerFluent.StatusNested> - implements V2beta2HorizontalPodAutoscalerFluent.StatusNested, Nested { + class StatusNestedImpl extends V2beta2HorizontalPodAutoscalerStatusFluentImpl> implements V2beta2HorizontalPodAutoscalerFluent.StatusNested,Nested{ StatusNestedImpl(V2beta2HorizontalPodAutoscalerStatus item) { this.builder = new V2beta2HorizontalPodAutoscalerStatusBuilder(this, item); } - StatusNestedImpl() { this.builder = new V2beta2HorizontalPodAutoscalerStatusBuilder(this); } - V2beta2HorizontalPodAutoscalerStatusBuilder builder; - public N and() { return (N) V2beta2HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); } - public N endStatus() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java index 4e519879d9..154914f8f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2HorizontalPodAutoscalerListBuilder - extends V2beta2HorizontalPodAutoscalerListFluentImpl - implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerList, V2beta2HorizontalPodAutoscalerListBuilder> { +import java.lang.Boolean; +public class V2beta2HorizontalPodAutoscalerListBuilder extends V2beta2HorizontalPodAutoscalerListFluentImpl implements VisitableBuilder{ public V2beta2HorizontalPodAutoscalerListBuilder() { this(false); } - public V2beta2HorizontalPodAutoscalerListBuilder(Boolean validationEnabled) { this(new V2beta2HorizontalPodAutoscalerList(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerListBuilder( - V2beta2HorizontalPodAutoscalerListFluent fluent) { + public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerListFluent fluent) { this(fluent, false); } - - public V2beta2HorizontalPodAutoscalerListBuilder( - V2beta2HorizontalPodAutoscalerListFluent fluent, Boolean validationEnabled) { + public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerListFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerList(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerListBuilder( - V2beta2HorizontalPodAutoscalerListFluent fluent, - V2beta2HorizontalPodAutoscalerList instance) { + public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerListFluent fluent,V2beta2HorizontalPodAutoscalerList instance) { this(fluent, instance, false); } - - public V2beta2HorizontalPodAutoscalerListBuilder( - V2beta2HorizontalPodAutoscalerListFluent fluent, - V2beta2HorizontalPodAutoscalerList instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerListFluent fluent,V2beta2HorizontalPodAutoscalerList instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withItems(instance.getItems()); @@ -55,16 +28,13 @@ public V2beta2HorizontalPodAutoscalerListBuilder( fluent.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerList instance) { - this(instance, false); + this(instance,false); } - - public V2beta2HorizontalPodAutoscalerListBuilder( - V2beta2HorizontalPodAutoscalerList instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerList instance,Boolean validationEnabled) { + this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -73,12 +43,10 @@ public V2beta2HorizontalPodAutoscalerListBuilder( this.withMetadata(instance.getMetadata()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HorizontalPodAutoscalerListFluent fluent; Boolean validationEnabled; - public V2beta2HorizontalPodAutoscalerList build() { V2beta2HorizontalPodAutoscalerList buildable = new V2beta2HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -87,4 +55,5 @@ public V2beta2HorizontalPodAutoscalerList build() { buildable.setMetadata(fluent.getMetadata()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java index d270af3931..abcb9cd0f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java @@ -1,138 +1,82 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2HorizontalPodAutoscalerListFluent< - A extends V2beta2HorizontalPodAutoscalerListFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2HorizontalPodAutoscalerListFluent> extends Fluent{ public String getApiVersion(); - public A withApiVersion(String apiVersion); - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V2beta2HorizontalPodAutoscaler item); - - public A setToItems(Integer index, V2beta2HorizontalPodAutoscaler item); - + public A addToItems(Integer index,V2beta2HorizontalPodAutoscaler item); + public A setToItems(Integer index,V2beta2HorizontalPodAutoscaler item); public A addToItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); - public A addAllToItems(Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); - + public A removeFromItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); public A removeAllFromItems(Collection items); - public A removeMatchingFromItems(Predicate predicate); - + /** * This method has been deprecated, please use method buildItems instead. - * * @return The buildable object. */ @Deprecated public List getItems(); - public List buildItems(); - public V2beta2HorizontalPodAutoscaler buildItem(Integer index); - public V2beta2HorizontalPodAutoscaler buildFirstItem(); - public V2beta2HorizontalPodAutoscaler buildLastItem(); - - public V2beta2HorizontalPodAutoscaler buildMatchingItem( - Predicate predicate); - + public V2beta2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate); public Boolean hasMatchingItem(Predicate predicate); - public A withItems(List items); - public A withItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); - public Boolean hasItems(); - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); - - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - V2beta2HorizontalPodAutoscaler item); - - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( - Integer index, V2beta2HorizontalPodAutoscaler item); - + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike(V2beta2HorizontalPodAutoscaler item); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike(Integer index,V2beta2HorizontalPodAutoscaler item); public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index); - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem(); - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editLastItem(); - - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( - Predicate predicate); - + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem(Predicate predicate); public String getKind(); - public A withKind(String kind); - public Boolean hasKind(); - + /** * This method has been deprecated, please use method buildMetadata instead. - * * @return The buildable object. */ @Deprecated public V1ListMeta getMetadata(); - public V1ListMeta buildMetadata(); - public A withMetadata(V1ListMeta metadata); - public Boolean hasMetadata(); - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item); - + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata(); - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata(); - - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item); - - public interface ItemsNested - extends Nested, - V2beta2HorizontalPodAutoscalerFluent< - V2beta2HorizontalPodAutoscalerListFluent.ItemsNested> { + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + public interface ItemsNested extends Nested,V2beta2HorizontalPodAutoscalerFluent>{ public N and(); - public N endItem(); + } - - public interface MetadataNested - extends Nested, - V1ListMetaFluent> { + public interface MetadataNested extends Nested,V1ListMetaFluent>{ public N and(); - public N endMetadata(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java index c48cf41b08..fc13d1ab1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HorizontalPodAutoscalerListFluentImpl< - A extends V2beta2HorizontalPodAutoscalerListFluent> - extends BaseFluent implements V2beta2HorizontalPodAutoscalerListFluent { - public V2beta2HorizontalPodAutoscalerListFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HorizontalPodAutoscalerListFluentImpl> extends BaseFluent implements V2beta2HorizontalPodAutoscalerListFluent{ + public V2beta2HorizontalPodAutoscalerListFluentImpl() { + } public V2beta2HorizontalPodAutoscalerListFluentImpl(V2beta2HorizontalPodAutoscalerList instance) { this.withApiVersion(instance.getApiVersion()); @@ -35,105 +30,46 @@ public V2beta2HorizontalPodAutoscalerListFluentImpl(V2beta2HorizontalPodAutoscal this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); - } + } private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + this.apiVersion=apiVersion; return (A) this; } - public Boolean hasApiVersion() { return this.apiVersion != null; } - - public A addToItems(Integer index, V2beta2HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; + public A addToItems(Integer index,V2beta2HorizontalPodAutoscaler item) { + if (this.items == null) {this.items = new ArrayList();} + V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this; } - - public A setToItems(Integer index, V2beta2HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } + public A setToItems(Integer index,V2beta2HorizontalPodAutoscaler item) { + if (this.items == null) {this.items = new ArrayList();} V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { _visitables.get("items").set(index, builder);} + if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);} + return (A)this; } - public A addToItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V2beta2HorizontalPodAutoscaler item : items) { - V2beta2HorizontalPodAutoscalerBuilder builder = - new V2beta2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V2beta2HorizontalPodAutoscaler item : items) {V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V2beta2HorizontalPodAutoscaler item : items) { - V2beta2HorizontalPodAutoscalerBuilder builder = - new V2beta2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; + if (this.items == null) {this.items = new ArrayList();} + for (V2beta2HorizontalPodAutoscaler item : items) {V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items) { - for (V2beta2HorizontalPodAutoscaler item : items) { - V2beta2HorizontalPodAutoscalerBuilder builder = - new V2beta2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + public A removeFromItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items) { + for (V2beta2HorizontalPodAutoscaler item : items) {V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeAllFromItems(Collection items) { - for (V2beta2HorizontalPodAutoscaler item : items) { - V2beta2HorizontalPodAutoscalerBuilder builder = - new V2beta2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; + for (V2beta2HorizontalPodAutoscaler item : items) {V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder);if (this.items != null) {this.items.remove(builder);}} return (A)this; } - public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; final Iterator each = items.iterator(); @@ -145,280 +81,176 @@ public A removeMatchingFromItems(Predicate getItems() { return items != null ? build(items) : null; } - public List buildItems() { return items != null ? build(items) : null; } - public V2beta2HorizontalPodAutoscaler buildItem(Integer index) { return this.items.get(index).build(); } - public V2beta2HorizontalPodAutoscaler buildFirstItem() { return this.items.get(0).build(); } - public V2beta2HorizontalPodAutoscaler buildLastItem() { return this.items.get(items.size() - 1).build(); } - - public V2beta2HorizontalPodAutoscaler buildMatchingItem( - Predicate predicate) { - for (V2beta2HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V2beta2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerBuilder item: items) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingItem(Predicate predicate) { - for (V2beta2HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2beta2HorizontalPodAutoscalerBuilder item: items) { if(predicate.test(item)){ return true;} } return false; } - public A withItems(List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new ArrayList(); - for (V2beta2HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; + if (this.items != null) { _visitables.get("items").removeAll(this.items);} + if (items != null) {this.items = new ArrayList(); for (V2beta2HorizontalPodAutoscaler item : items){this.addToItems(item);}} else { this.items = null;} return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (V2beta2HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } - return (A) this; + if (this.items != null) {this.items.clear();} + if (items != null) {for (V2beta2HorizontalPodAutoscaler item :items){ this.addToItems(item);}} return (A) this; } - public Boolean hasItems() { return items != null && !items.isEmpty(); } - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return new V2beta2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - V2beta2HorizontalPodAutoscaler item) { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike(V2beta2HorizontalPodAutoscaler item) { return new V2beta2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); } - - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( - Integer index, V2beta2HorizontalPodAutoscaler item) { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike(Integer index,V2beta2HorizontalPodAutoscaler item) { return new V2beta2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(index, item); } - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); return setNewItemLike(index, buildItem(index)); } - - public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( - Predicate predicate) { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; - for (int i = 0; i < items.size(); i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewMetadata() { return new V2beta2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( - V1ListMeta item) { + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { return new V2beta2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + return withNewMetadataLike(getMetadata() != null ? getMetadata(): new V1ListMetaBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( - V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2HorizontalPodAutoscalerListFluentImpl that = - (V2beta2HorizontalPodAutoscalerListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + V2beta2HorizontalPodAutoscalerListFluentImpl that = (V2beta2HorizontalPodAutoscalerListFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; + if (items != null ? !items.equals(that.items) :that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (items != null && !items.isEmpty()) { - sb.append("items:"); - sb.append(items + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata); - } + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } sb.append("}"); return sb.toString(); } - - class ItemsNestedImpl - extends V2beta2HorizontalPodAutoscalerFluentImpl< - V2beta2HorizontalPodAutoscalerListFluent.ItemsNested> - implements V2beta2HorizontalPodAutoscalerListFluent.ItemsNested, Nested { - ItemsNestedImpl(Integer index, V2beta2HorizontalPodAutoscaler item) { + class ItemsNestedImpl extends V2beta2HorizontalPodAutoscalerFluentImpl> implements V2beta2HorizontalPodAutoscalerListFluent.ItemsNested,Nested{ + ItemsNestedImpl(Integer index,V2beta2HorizontalPodAutoscaler item) { this.index = index; this.builder = new V2beta2HorizontalPodAutoscalerBuilder(this, item); } - ItemsNestedImpl() { this.index = -1; this.builder = new V2beta2HorizontalPodAutoscalerBuilder(this); } - V2beta2HorizontalPodAutoscalerBuilder builder; Integer index; - public N and() { - return (N) - V2beta2HorizontalPodAutoscalerListFluentImpl.this.setToItems(index, builder.build()); + return (N) V2beta2HorizontalPodAutoscalerListFluentImpl.this.setToItems(index,builder.build()); } - public N endItem() { return and(); } + } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements V2beta2HorizontalPodAutoscalerListFluent.MetadataNested, Nested { + class MetadataNestedImpl extends V1ListMetaFluentImpl> implements V2beta2HorizontalPodAutoscalerListFluent.MetadataNested,Nested{ MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - MetadataNestedImpl() { this.builder = new V1ListMetaBuilder(this); } - V1ListMetaBuilder builder; - public N and() { return (N) V2beta2HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); } - public N endMetadata() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java index 36c44678a2..0cb16a4ad0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java @@ -1,52 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2HorizontalPodAutoscalerSpecBuilder - extends V2beta2HorizontalPodAutoscalerSpecFluentImpl - implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerSpec, V2beta2HorizontalPodAutoscalerSpecBuilder> { +import java.lang.Boolean; +public class V2beta2HorizontalPodAutoscalerSpecBuilder extends V2beta2HorizontalPodAutoscalerSpecFluentImpl implements VisitableBuilder{ public V2beta2HorizontalPodAutoscalerSpecBuilder() { this(false); } - public V2beta2HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { this(new V2beta2HorizontalPodAutoscalerSpec(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerSpecBuilder( - V2beta2HorizontalPodAutoscalerSpecFluent fluent) { + public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpecFluent fluent) { this(fluent, false); } - - public V2beta2HorizontalPodAutoscalerSpecBuilder( - V2beta2HorizontalPodAutoscalerSpecFluent fluent, Boolean validationEnabled) { + public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerSpec(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerSpecBuilder( - V2beta2HorizontalPodAutoscalerSpecFluent fluent, - V2beta2HorizontalPodAutoscalerSpec instance) { + public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpecFluent fluent,V2beta2HorizontalPodAutoscalerSpec instance) { this(fluent, instance, false); } - - public V2beta2HorizontalPodAutoscalerSpecBuilder( - V2beta2HorizontalPodAutoscalerSpecFluent fluent, - V2beta2HorizontalPodAutoscalerSpec instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpecFluent fluent,V2beta2HorizontalPodAutoscalerSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withBehavior(instance.getBehavior()); fluent.withMaxReplicas(instance.getMaxReplicas()); @@ -57,16 +30,13 @@ public V2beta2HorizontalPodAutoscalerSpecBuilder( fluent.withScaleTargetRef(instance.getScaleTargetRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpec instance) { - this(instance, false); + this(instance,false); } - - public V2beta2HorizontalPodAutoscalerSpecBuilder( - V2beta2HorizontalPodAutoscalerSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withBehavior(instance.getBehavior()); this.withMaxReplicas(instance.getMaxReplicas()); @@ -77,12 +47,10 @@ public V2beta2HorizontalPodAutoscalerSpecBuilder( this.withScaleTargetRef(instance.getScaleTargetRef()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HorizontalPodAutoscalerSpecFluent fluent; Boolean validationEnabled; - public V2beta2HorizontalPodAutoscalerSpec build() { V2beta2HorizontalPodAutoscalerSpec buildable = new V2beta2HorizontalPodAutoscalerSpec(); buildable.setBehavior(fluent.getBehavior()); @@ -92,4 +60,5 @@ public V2beta2HorizontalPodAutoscalerSpec build() { buildable.setScaleTargetRef(fluent.getScaleTargetRef()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java index f51e07f40a..1805dbe001 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java @@ -1,172 +1,101 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2beta2HorizontalPodAutoscalerSpecFluent< - A extends V2beta2HorizontalPodAutoscalerSpecFluent> - extends Fluent { +import java.lang.Boolean; + /** + * Generated + */ +public interface V2beta2HorizontalPodAutoscalerSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildBehavior instead. - * * @return The buildable object. */ @Deprecated public V2beta2HorizontalPodAutoscalerBehavior getBehavior(); - public V2beta2HorizontalPodAutoscalerBehavior buildBehavior(); - public A withBehavior(V2beta2HorizontalPodAutoscalerBehavior behavior); - public Boolean hasBehavior(); - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior(); - - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( - V2beta2HorizontalPodAutoscalerBehavior item); - + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike(V2beta2HorizontalPodAutoscalerBehavior item); public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior(); - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior(); - - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( - V2beta2HorizontalPodAutoscalerBehavior item); - + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike(V2beta2HorizontalPodAutoscalerBehavior item); public Integer getMaxReplicas(); - public A withMaxReplicas(Integer maxReplicas); - public Boolean hasMaxReplicas(); - - public A addToMetrics(Integer index, V2beta2MetricSpec item); - - public A setToMetrics(Integer index, V2beta2MetricSpec item); - + public A addToMetrics(Integer index,V2beta2MetricSpec item); + public A setToMetrics(Integer index,V2beta2MetricSpec item); public A addToMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items); - public A addAllToMetrics(Collection items); - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items); - public A removeAllFromMetrics(Collection items); - public A removeMatchingFromMetrics(Predicate predicate); - + /** * This method has been deprecated, please use method buildMetrics instead. - * * @return The buildable object. */ @Deprecated public List getMetrics(); - public List buildMetrics(); - public V2beta2MetricSpec buildMetric(Integer index); - public V2beta2MetricSpec buildFirstMetric(); - public V2beta2MetricSpec buildLastMetric(); - public V2beta2MetricSpec buildMatchingMetric(Predicate predicate); - public Boolean hasMatchingMetric(Predicate predicate); - public A withMetrics(List metrics); - public A withMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... metrics); - public Boolean hasMetrics(); - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric(); - - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike( - V2beta2MetricSpec item); - - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( - Integer index, V2beta2MetricSpec item); - + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike(V2beta2MetricSpec item); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike(Integer index,V2beta2MetricSpec item); public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index); - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric(); - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editLastMetric(); - - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( - Predicate predicate); - + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric(Predicate predicate); public Integer getMinReplicas(); - public A withMinReplicas(Integer minReplicas); - public Boolean hasMinReplicas(); - + /** * This method has been deprecated, please use method buildScaleTargetRef instead. - * * @return The buildable object. */ @Deprecated public V2beta2CrossVersionObjectReference getScaleTargetRef(); - public V2beta2CrossVersionObjectReference buildScaleTargetRef(); - public A withScaleTargetRef(V2beta2CrossVersionObjectReference scaleTargetRef); - public Boolean hasScaleTargetRef(); - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( - V2beta2CrossVersionObjectReference item); - + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item); public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef(); - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef(); - - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested - editOrNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item); - - public interface BehaviorNested - extends Nested, - V2beta2HorizontalPodAutoscalerBehaviorFluent< - V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested> { + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item); + public interface BehaviorNested extends Nested,V2beta2HorizontalPodAutoscalerBehaviorFluent>{ public N and(); - public N endBehavior(); + } - - public interface MetricsNested - extends Nested, - V2beta2MetricSpecFluent> { + public interface MetricsNested extends Nested,V2beta2MetricSpecFluent>{ public N and(); - public N endMetric(); + } - - public interface ScaleTargetRefNested - extends Nested, - V2beta2CrossVersionObjectReferenceFluent< - V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> { + public interface ScaleTargetRefNested extends Nested,V2beta2CrossVersionObjectReferenceFluent>{ public N and(); - public N endScaleTargetRef(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java index 9917b32093..e2309f170b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java @@ -1,32 +1,27 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HorizontalPodAutoscalerSpecFluentImpl< - A extends V2beta2HorizontalPodAutoscalerSpecFluent> - extends BaseFluent implements V2beta2HorizontalPodAutoscalerSpecFluent { - public V2beta2HorizontalPodAutoscalerSpecFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HorizontalPodAutoscalerSpecFluentImpl> extends BaseFluent implements V2beta2HorizontalPodAutoscalerSpecFluent{ + public V2beta2HorizontalPodAutoscalerSpecFluentImpl() { + } public V2beta2HorizontalPodAutoscalerSpecFluentImpl(V2beta2HorizontalPodAutoscalerSpec instance) { this.withBehavior(instance.getBehavior()); @@ -37,156 +32,81 @@ public V2beta2HorizontalPodAutoscalerSpecFluentImpl(V2beta2HorizontalPodAutoscal this.withMinReplicas(instance.getMinReplicas()); this.withScaleTargetRef(instance.getScaleTargetRef()); - } + } private V2beta2HorizontalPodAutoscalerBehaviorBuilder behavior; private Integer maxReplicas; private ArrayList metrics; private Integer minReplicas; private V2beta2CrossVersionObjectReferenceBuilder scaleTargetRef; - + /** * This method has been deprecated, please use method buildBehavior instead. - * * @return The buildable object. */ @Deprecated public V2beta2HorizontalPodAutoscalerBehavior getBehavior() { - return this.behavior != null ? this.behavior.build() : null; + return this.behavior!=null ?this.behavior.build():null; } - public V2beta2HorizontalPodAutoscalerBehavior buildBehavior() { - return this.behavior != null ? this.behavior.build() : null; + return this.behavior!=null ?this.behavior.build():null; } - public A withBehavior(V2beta2HorizontalPodAutoscalerBehavior behavior) { _visitables.get("behavior").remove(this.behavior); - if (behavior != null) { - this.behavior = new V2beta2HorizontalPodAutoscalerBehaviorBuilder(behavior); - _visitables.get("behavior").add(this.behavior); - } else { - this.behavior = null; - _visitables.get("behavior").remove(this.behavior); - } - return (A) this; + if (behavior!=null){ this.behavior= new V2beta2HorizontalPodAutoscalerBehaviorBuilder(behavior); _visitables.get("behavior").add(this.behavior);} else { this.behavior = null; _visitables.get("behavior").remove(this.behavior); } return (A) this; } - public Boolean hasBehavior() { return this.behavior != null; } - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior() { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( - V2beta2HorizontalPodAutoscalerBehavior item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike(V2beta2HorizontalPodAutoscalerBehavior item) { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior() { return withNewBehaviorLike(getBehavior()); } - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior() { - return withNewBehaviorLike( - getBehavior() != null - ? getBehavior() - : new V2beta2HorizontalPodAutoscalerBehaviorBuilder().build()); + return withNewBehaviorLike(getBehavior() != null ? getBehavior(): new V2beta2HorizontalPodAutoscalerBehaviorBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( - V2beta2HorizontalPodAutoscalerBehavior item) { - return withNewBehaviorLike(getBehavior() != null ? getBehavior() : item); + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike(V2beta2HorizontalPodAutoscalerBehavior item) { + return withNewBehaviorLike(getBehavior() != null ? getBehavior(): item); } - public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; + this.maxReplicas=maxReplicas; return (A) this; } - public Boolean hasMaxReplicas() { return this.maxReplicas != null; } - - public A addToMetrics(Integer index, V2beta2MetricSpec item) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); - _visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder); - this.metrics.add(index >= 0 ? index : metrics.size(), builder); - return (A) this; + public A addToMetrics(Integer index,V2beta2MetricSpec item) { + if (this.metrics == null) {this.metrics = new ArrayList();} + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item);_visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder);this.metrics.add(index >= 0 ? index : metrics.size(), builder); return (A)this; } - - public A setToMetrics(Integer index, V2beta2MetricSpec item) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } + public A setToMetrics(Integer index,V2beta2MetricSpec item) { + if (this.metrics == null) {this.metrics = new ArrayList();} V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); - if (index < 0 || index >= _visitables.get("metrics").size()) { - _visitables.get("metrics").add(builder); - } else { - _visitables.get("metrics").set(index, builder); - } - if (index < 0 || index >= metrics.size()) { - metrics.add(builder); - } else { - metrics.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("metrics").size()) { _visitables.get("metrics").add(builder); } else { _visitables.get("metrics").set(index, builder);} + if (index < 0 || index >= metrics.size()) { metrics.add(builder); } else { metrics.set(index, builder);} + return (A)this; } - public A addToMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - for (V2beta2MetricSpec item : items) { - V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); - this.metrics.add(builder); - } - return (A) this; + if (this.metrics == null) {this.metrics = new ArrayList();} + for (V2beta2MetricSpec item : items) {V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; } - public A addAllToMetrics(Collection items) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - for (V2beta2MetricSpec item : items) { - V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); - this.metrics.add(builder); - } - return (A) this; + if (this.metrics == null) {this.metrics = new ArrayList();} + for (V2beta2MetricSpec item : items) {V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; } - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items) { - for (V2beta2MetricSpec item : items) { - V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - if (this.metrics != null) { - this.metrics.remove(builder); - } - } - return (A) this; + for (V2beta2MetricSpec item : items) {V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder);if (this.metrics != null) {this.metrics.remove(builder);}} return (A)this; } - public A removeAllFromMetrics(Collection items) { - for (V2beta2MetricSpec item : items) { - V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - if (this.metrics != null) { - this.metrics.remove(builder); - } - } - return (A) this; + for (V2beta2MetricSpec item : items) {V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder);if (this.metrics != null) {this.metrics.remove(builder);}} return (A)this; } - public A removeMatchingFromMetrics(Predicate predicate) { if (metrics == null) return (A) this; final Iterator each = metrics.iterator(); @@ -198,317 +118,194 @@ public A removeMatchingFromMetrics(Predicate predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildMetrics instead. - * * @return The buildable object. */ @Deprecated public List getMetrics() { return metrics != null ? build(metrics) : null; } - public List buildMetrics() { return metrics != null ? build(metrics) : null; } - public V2beta2MetricSpec buildMetric(Integer index) { return this.metrics.get(index).build(); } - public V2beta2MetricSpec buildFirstMetric() { return this.metrics.get(0).build(); } - public V2beta2MetricSpec buildLastMetric() { return this.metrics.get(metrics.size() - 1).build(); } - public V2beta2MetricSpec buildMatchingMetric(Predicate predicate) { - for (V2beta2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + for (V2beta2MetricSpecBuilder item: metrics) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingMetric(Predicate predicate) { - for (V2beta2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2beta2MetricSpecBuilder item: metrics) { if(predicate.test(item)){ return true;} } return false; } - public A withMetrics(List metrics) { - if (this.metrics != null) { - _visitables.get("metrics").removeAll(this.metrics); - } - if (metrics != null) { - this.metrics = new ArrayList(); - for (V2beta2MetricSpec item : metrics) { - this.addToMetrics(item); - } - } else { - this.metrics = null; - } - return (A) this; + if (this.metrics != null) { _visitables.get("metrics").removeAll(this.metrics);} + if (metrics != null) {this.metrics = new ArrayList(); for (V2beta2MetricSpec item : metrics){this.addToMetrics(item);}} else { this.metrics = null;} return (A) this; } - public A withMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... metrics) { - if (this.metrics != null) { - this.metrics.clear(); - } - if (metrics != null) { - for (V2beta2MetricSpec item : metrics) { - this.addToMetrics(item); - } - } - return (A) this; + if (this.metrics != null) {this.metrics.clear();} + if (metrics != null) {for (V2beta2MetricSpec item :metrics){ this.addToMetrics(item);}} return (A) this; } - public Boolean hasMetrics() { return metrics != null && !metrics.isEmpty(); } - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike( - V2beta2MetricSpec item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike(V2beta2MetricSpec item) { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(-1, item); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( - Integer index, V2beta2MetricSpec item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike(Integer index,V2beta2MetricSpec item) { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(index, item); } - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index) { - if (metrics.size() <= index) - throw new RuntimeException("Can't edit metrics. Index exceeds size."); + if (metrics.size() <= index) throw new RuntimeException("Can't edit metrics. Index exceeds size."); return setNewMetricLike(index, buildMetric(index)); } - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric() { - if (metrics.size() == 0) - throw new RuntimeException("Can't edit first metrics. The list is empty."); + if (metrics.size() == 0) throw new RuntimeException("Can't edit first metrics. The list is empty."); return setNewMetricLike(0, buildMetric(0)); } - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editLastMetric() { int index = metrics.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last metrics. The list is empty."); return setNewMetricLike(index, buildMetric(index)); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( - Predicate predicate) { + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric(Predicate predicate) { int index = -1; - for (int i = 0; i < metrics.size(); i++) { - if (predicate.test(metrics.get(i))) { - index = i; - break; - } - } + for (int i=0;i withNewScaleTargetRef() { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( - V2beta2CrossVersionObjectReference item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item) { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(item); } - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef() { return withNewScaleTargetRefLike(getScaleTargetRef()); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested - editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike( - getScaleTargetRef() != null - ? getScaleTargetRef() - : new V2beta2CrossVersionObjectReferenceBuilder().build()); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef() { + return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef(): new V2beta2CrossVersionObjectReferenceBuilder().build()); } - - public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested - editOrNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item) { + return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - V2beta2HorizontalPodAutoscalerSpecFluentImpl that = - (V2beta2HorizontalPodAutoscalerSpecFluentImpl) o; - if (behavior != null ? !behavior.equals(that.behavior) : that.behavior != null) return false; - if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) : that.maxReplicas != null) - return false; - if (metrics != null ? !metrics.equals(that.metrics) : that.metrics != null) return false; - if (minReplicas != null ? !minReplicas.equals(that.minReplicas) : that.minReplicas != null) - return false; - if (scaleTargetRef != null - ? !scaleTargetRef.equals(that.scaleTargetRef) - : that.scaleTargetRef != null) return false; + V2beta2HorizontalPodAutoscalerSpecFluentImpl that = (V2beta2HorizontalPodAutoscalerSpecFluentImpl) o; + if (behavior != null ? !behavior.equals(that.behavior) :that.behavior != null) return false; + if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) :that.maxReplicas != null) return false; + if (metrics != null ? !metrics.equals(that.metrics) :that.metrics != null) return false; + if (minReplicas != null ? !minReplicas.equals(that.minReplicas) :that.minReplicas != null) return false; + if (scaleTargetRef != null ? !scaleTargetRef.equals(that.scaleTargetRef) :that.scaleTargetRef != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - behavior, maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); + return java.util.Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (behavior != null) { - sb.append("behavior:"); - sb.append(behavior + ","); - } - if (maxReplicas != null) { - sb.append("maxReplicas:"); - sb.append(maxReplicas + ","); - } - if (metrics != null && !metrics.isEmpty()) { - sb.append("metrics:"); - sb.append(metrics + ","); - } - if (minReplicas != null) { - sb.append("minReplicas:"); - sb.append(minReplicas + ","); - } - if (scaleTargetRef != null) { - sb.append("scaleTargetRef:"); - sb.append(scaleTargetRef); - } + if (behavior != null) { sb.append("behavior:"); sb.append(behavior + ","); } + if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } + if (metrics != null && !metrics.isEmpty()) { sb.append("metrics:"); sb.append(metrics + ","); } + if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } + if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef); } sb.append("}"); return sb.toString(); } - - class BehaviorNestedImpl - extends V2beta2HorizontalPodAutoscalerBehaviorFluentImpl< - V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested> - implements V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested, Nested { + class BehaviorNestedImpl extends V2beta2HorizontalPodAutoscalerBehaviorFluentImpl> implements V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested,Nested{ BehaviorNestedImpl(V2beta2HorizontalPodAutoscalerBehavior item) { this.builder = new V2beta2HorizontalPodAutoscalerBehaviorBuilder(this, item); } - BehaviorNestedImpl() { this.builder = new V2beta2HorizontalPodAutoscalerBehaviorBuilder(this); } - V2beta2HorizontalPodAutoscalerBehaviorBuilder builder; - public N and() { return (N) V2beta2HorizontalPodAutoscalerSpecFluentImpl.this.withBehavior(builder.build()); } - public N endBehavior() { return and(); } + } - - class MetricsNestedImpl - extends V2beta2MetricSpecFluentImpl> - implements V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested, Nested { - MetricsNestedImpl(Integer index, V2beta2MetricSpec item) { + class MetricsNestedImpl extends V2beta2MetricSpecFluentImpl> implements V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested,Nested{ + MetricsNestedImpl(Integer index,V2beta2MetricSpec item) { this.index = index; this.builder = new V2beta2MetricSpecBuilder(this, item); } - MetricsNestedImpl() { this.index = -1; this.builder = new V2beta2MetricSpecBuilder(this); } - V2beta2MetricSpecBuilder builder; Integer index; - public N and() { - return (N) - V2beta2HorizontalPodAutoscalerSpecFluentImpl.this.setToMetrics(index, builder.build()); + return (N) V2beta2HorizontalPodAutoscalerSpecFluentImpl.this.setToMetrics(index,builder.build()); } - public N endMetric() { return and(); } + } - - class ScaleTargetRefNestedImpl - extends V2beta2CrossVersionObjectReferenceFluentImpl< - V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested, Nested { + class ScaleTargetRefNestedImpl extends V2beta2CrossVersionObjectReferenceFluentImpl> implements V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested,Nested{ ScaleTargetRefNestedImpl(V2beta2CrossVersionObjectReference item) { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this, item); } - ScaleTargetRefNestedImpl() { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this); } - V2beta2CrossVersionObjectReferenceBuilder builder; - public N and() { - return (N) - V2beta2HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); + return (N) V2beta2HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); } - public N endScaleTargetRef() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java index a1cb2c20b7..9b01e120ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java @@ -1,53 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2HorizontalPodAutoscalerStatusBuilder - extends V2beta2HorizontalPodAutoscalerStatusFluentImpl< - V2beta2HorizontalPodAutoscalerStatusBuilder> - implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerStatus, V2beta2HorizontalPodAutoscalerStatusBuilder> { +import java.lang.Boolean; +public class V2beta2HorizontalPodAutoscalerStatusBuilder extends V2beta2HorizontalPodAutoscalerStatusFluentImpl implements VisitableBuilder{ public V2beta2HorizontalPodAutoscalerStatusBuilder() { this(false); } - public V2beta2HorizontalPodAutoscalerStatusBuilder(Boolean validationEnabled) { this(new V2beta2HorizontalPodAutoscalerStatus(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerStatusBuilder( - V2beta2HorizontalPodAutoscalerStatusFluent fluent) { + public V2beta2HorizontalPodAutoscalerStatusBuilder(V2beta2HorizontalPodAutoscalerStatusFluent fluent) { this(fluent, false); } - - public V2beta2HorizontalPodAutoscalerStatusBuilder( - V2beta2HorizontalPodAutoscalerStatusFluent fluent, Boolean validationEnabled) { + public V2beta2HorizontalPodAutoscalerStatusBuilder(V2beta2HorizontalPodAutoscalerStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerStatus(), validationEnabled); } - - public V2beta2HorizontalPodAutoscalerStatusBuilder( - V2beta2HorizontalPodAutoscalerStatusFluent fluent, - V2beta2HorizontalPodAutoscalerStatus instance) { + public V2beta2HorizontalPodAutoscalerStatusBuilder(V2beta2HorizontalPodAutoscalerStatusFluent fluent,V2beta2HorizontalPodAutoscalerStatus instance) { this(fluent, instance, false); } - - public V2beta2HorizontalPodAutoscalerStatusBuilder( - V2beta2HorizontalPodAutoscalerStatusFluent fluent, - V2beta2HorizontalPodAutoscalerStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2HorizontalPodAutoscalerStatusBuilder(V2beta2HorizontalPodAutoscalerStatusFluent fluent,V2beta2HorizontalPodAutoscalerStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withConditions(instance.getConditions()); fluent.withCurrentMetrics(instance.getCurrentMetrics()); @@ -60,17 +32,13 @@ public V2beta2HorizontalPodAutoscalerStatusBuilder( fluent.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - - public V2beta2HorizontalPodAutoscalerStatusBuilder( - V2beta2HorizontalPodAutoscalerStatus instance) { - this(instance, false); + public V2beta2HorizontalPodAutoscalerStatusBuilder(V2beta2HorizontalPodAutoscalerStatus instance) { + this(instance,false); } - - public V2beta2HorizontalPodAutoscalerStatusBuilder( - V2beta2HorizontalPodAutoscalerStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2HorizontalPodAutoscalerStatusBuilder(V2beta2HorizontalPodAutoscalerStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withConditions(instance.getConditions()); this.withCurrentMetrics(instance.getCurrentMetrics()); @@ -83,12 +51,10 @@ public V2beta2HorizontalPodAutoscalerStatusBuilder( this.withObservedGeneration(instance.getObservedGeneration()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2HorizontalPodAutoscalerStatusFluent fluent; Boolean validationEnabled; - public V2beta2HorizontalPodAutoscalerStatus build() { V2beta2HorizontalPodAutoscalerStatus buildable = new V2beta2HorizontalPodAutoscalerStatus(); buildable.setConditions(fluent.getConditions()); @@ -99,4 +65,5 @@ public V2beta2HorizontalPodAutoscalerStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java index 9e7fdb67ae..45e799289a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java @@ -1,193 +1,104 @@ -/* -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.VisitableBuilder; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.function.Predicate; +import java.lang.Integer; +import java.lang.Deprecated; import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Iterator; import java.util.Collection; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2beta2HorizontalPodAutoscalerStatusFluent< - A extends V2beta2HorizontalPodAutoscalerStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item); - - public A setToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items); - +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2HorizontalPodAutoscalerStatusFluent> extends Fluent{ + public A addToConditions(Integer index,V2beta2HorizontalPodAutoscalerCondition item); + public A setToConditions(Integer index,V2beta2HorizontalPodAutoscalerCondition item); + public A addToConditions(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items); public A addAllToConditions(Collection items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items); - + public A removeFromConditions(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items); public A removeAllFromConditions(Collection items); - - public A removeMatchingFromConditions( - Predicate predicate); - + public A removeMatchingFromConditions(Predicate predicate); + /** * This method has been deprecated, please use method buildConditions instead. - * * @return The buildable object. */ @Deprecated public List getConditions(); - public List buildConditions(); - public V2beta2HorizontalPodAutoscalerCondition buildCondition(Integer index); - public V2beta2HorizontalPodAutoscalerCondition buildFirstCondition(); - public V2beta2HorizontalPodAutoscalerCondition buildLastCondition(); - - public V2beta2HorizontalPodAutoscalerCondition buildMatchingCondition( - Predicate predicate); - - public Boolean hasMatchingCondition( - Predicate predicate); - + public V2beta2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate); + public Boolean hasMatchingCondition(Predicate predicate); public A withConditions(List conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... conditions); - + public A withConditions(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... conditions); public Boolean hasConditions(); - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition(); - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( - V2beta2HorizontalPodAutoscalerCondition item); - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V2beta2HorizontalPodAutoscalerCondition item); - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition( - Integer index); - + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike(V2beta2HorizontalPodAutoscalerCondition item); + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike(Integer index,V2beta2HorizontalPodAutoscalerCondition item); + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition(Integer index); public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition(); - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editLastCondition(); - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate); - - public A addToCurrentMetrics(Integer index, V2beta2MetricStatus item); - - public A setToCurrentMetrics(Integer index, V2beta2MetricStatus item); - + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate); + public A addToCurrentMetrics(Integer index,V2beta2MetricStatus item); + public A setToCurrentMetrics(Integer index,V2beta2MetricStatus item); public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... items); - public A addAllToCurrentMetrics(Collection items); - - public A removeFromCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta2MetricStatus... items); - + public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... items); public A removeAllFromCurrentMetrics(Collection items); - public A removeMatchingFromCurrentMetrics(Predicate predicate); - + /** * This method has been deprecated, please use method buildCurrentMetrics instead. - * * @return The buildable object. */ @Deprecated public List getCurrentMetrics(); - public List buildCurrentMetrics(); - public V2beta2MetricStatus buildCurrentMetric(Integer index); - public V2beta2MetricStatus buildFirstCurrentMetric(); - public V2beta2MetricStatus buildLastCurrentMetric(); - - public V2beta2MetricStatus buildMatchingCurrentMetric( - Predicate predicate); - + public V2beta2MetricStatus buildMatchingCurrentMetric(Predicate predicate); public Boolean hasMatchingCurrentMetric(Predicate predicate); - public A withCurrentMetrics(List currentMetrics); - - public A withCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta2MetricStatus... currentMetrics); - + public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... currentMetrics); public Boolean hasCurrentMetrics(); - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric(); - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( - V2beta2MetricStatus item); - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( - Integer index, V2beta2MetricStatus item); - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( - Integer index); - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested - editFirstCurrentMetric(); - + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike(V2beta2MetricStatus item); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike(Integer index,V2beta2MetricStatus item); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric(Integer index); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric(); public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editLastCurrentMetric(); - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested - editMatchingCurrentMetric(Predicate predicate); - + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate); public Integer getCurrentReplicas(); - public A withCurrentReplicas(Integer currentReplicas); - public Boolean hasCurrentReplicas(); - public Integer getDesiredReplicas(); - public A withDesiredReplicas(Integer desiredReplicas); - public Boolean hasDesiredReplicas(); - public OffsetDateTime getLastScaleTime(); - public A withLastScaleTime(OffsetDateTime lastScaleTime); - public Boolean hasLastScaleTime(); - public Long getObservedGeneration(); - public A withObservedGeneration(Long observedGeneration); - public Boolean hasObservedGeneration(); - - public interface ConditionsNested - extends Nested, - V2beta2HorizontalPodAutoscalerConditionFluent< - V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested> { + public interface ConditionsNested extends Nested,V2beta2HorizontalPodAutoscalerConditionFluent>{ public N and(); - public N endCondition(); + } - - public interface CurrentMetricsNested - extends Nested, - V2beta2MetricStatusFluent< - V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> { + public interface CurrentMetricsNested extends Nested,V2beta2MetricStatusFluent>{ public N and(); - public N endCurrentMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java index 94c94d14fc..8fd594348a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java @@ -1,35 +1,30 @@ -/* -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.VisitableBuilder; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Collection; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2HorizontalPodAutoscalerStatusFluentImpl< - A extends V2beta2HorizontalPodAutoscalerStatusFluent> - extends BaseFluent implements V2beta2HorizontalPodAutoscalerStatusFluent { - public V2beta2HorizontalPodAutoscalerStatusFluentImpl() {} +import java.lang.Boolean; +import java.lang.Integer; +import java.time.OffsetDateTime; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; - public V2beta2HorizontalPodAutoscalerStatusFluentImpl( - V2beta2HorizontalPodAutoscalerStatus instance) { + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2HorizontalPodAutoscalerStatusFluentImpl> extends BaseFluent implements V2beta2HorizontalPodAutoscalerStatusFluent{ + public V2beta2HorizontalPodAutoscalerStatusFluentImpl() { + } + public V2beta2HorizontalPodAutoscalerStatusFluentImpl(V2beta2HorizontalPodAutoscalerStatus instance) { this.withConditions(instance.getConditions()); this.withCurrentMetrics(instance.getCurrentMetrics()); @@ -41,101 +36,40 @@ public V2beta2HorizontalPodAutoscalerStatusFluentImpl( this.withLastScaleTime(instance.getLastScaleTime()); this.withObservedGeneration(instance.getObservedGeneration()); - } + } private ArrayList conditions; private ArrayList currentMetrics; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - - public A addToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new V2beta2HorizontalPodAutoscalerConditionBuilder(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 addToConditions(Integer index,V2beta2HorizontalPodAutoscalerCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V2beta2HorizontalPodAutoscalerConditionBuilder builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(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(Integer index, V2beta2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new V2beta2HorizontalPodAutoscalerConditionBuilder(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 setToConditions(Integer index,V2beta2HorizontalPodAutoscalerCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V2beta2HorizontalPodAutoscalerConditionBuilder builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(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.V2beta2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V2beta2HorizontalPodAutoscalerCondition item : items) { - V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new V2beta2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public A addToConditions(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V2beta2HorizontalPodAutoscalerCondition item : items) {V2beta2HorizontalPodAutoscalerConditionBuilder builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(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 ArrayList(); - } - for (V2beta2HorizontalPodAutoscalerCondition item : items) { - V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new V2beta2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V2beta2HorizontalPodAutoscalerCondition item : items) {V2beta2HorizontalPodAutoscalerConditionBuilder builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items) { - for (V2beta2HorizontalPodAutoscalerCondition item : items) { - V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new V2beta2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + public A removeFromConditions(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items) { + for (V2beta2HorizontalPodAutoscalerCondition item : items) {V2beta2HorizontalPodAutoscalerConditionBuilder builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - public A removeAllFromConditions(Collection items) { - for (V2beta2HorizontalPodAutoscalerCondition item : items) { - V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new V2beta2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; + for (V2beta2HorizontalPodAutoscalerCondition item : items) {V2beta2HorizontalPodAutoscalerConditionBuilder builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder);if (this.conditions != null) {this.conditions.remove(builder);}} return (A)this; } - - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); @@ -146,210 +80,101 @@ public A removeMatchingFromConditions( each.remove(); } } - return (A) this; + 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 List buildConditions() { return conditions != null ? build(conditions) : null; } - public V2beta2HorizontalPodAutoscalerCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public V2beta2HorizontalPodAutoscalerCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public V2beta2HorizontalPodAutoscalerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - - public V2beta2HorizontalPodAutoscalerCondition buildMatchingCondition( - Predicate predicate) { - for (V2beta2HorizontalPodAutoscalerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V2beta2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerConditionBuilder item: conditions) { if(predicate.test(item)){ return item.build();} } return null; } - - public Boolean hasMatchingCondition( - Predicate predicate) { - for (V2beta2HorizontalPodAutoscalerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean hasMatchingCondition(Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerConditionBuilder item: conditions) { if(predicate.test(item)){ return true;} } return false; } - public A withConditions(List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V2beta2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions);} + if (conditions != null) {this.conditions = new ArrayList(); for (V2beta2HorizontalPodAutoscalerCondition item : conditions){this.addToConditions(item);}} else { this.conditions = null;} return (A) this; } - - public A withConditions( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (V2beta2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public A withConditions(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... conditions) { + if (this.conditions != null) {this.conditions.clear();} + if (conditions != null) {for (V2beta2HorizontalPodAutoscalerCondition item :conditions){ this.addToConditions(item);}} return (A) this; } - public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition() { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( - V2beta2HorizontalPodAutoscalerCondition item) { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike(V2beta2HorizontalPodAutoscalerCondition item) { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(-1, item); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( - Integer index, V2beta2HorizontalPodAutoscalerCondition item) { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike(Integer index,V2beta2HorizontalPodAutoscalerCondition item) { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(index, item); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition( - Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition(Integer index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public V2beta2HorizontalPodAutoscalerStatusFluent.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 V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( - Predicate predicate) { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i = 0; i < conditions.size(); i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } + for (int i=0;i(); - } - V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); - _visitables - .get("currentMetrics") - .add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder); - this.currentMetrics.add(index >= 0 ? index : currentMetrics.size(), builder); - return (A) this; + public A addToCurrentMetrics(Integer index,V2beta2MetricStatus item) { + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder);this.currentMetrics.add(index >= 0 ? index : currentMetrics.size(), builder); return (A)this; } - - public A setToCurrentMetrics(Integer index, V2beta2MetricStatus item) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); - } + public A setToCurrentMetrics(Integer index,V2beta2MetricStatus item) { + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); - if (index < 0 || index >= _visitables.get("currentMetrics").size()) { - _visitables.get("currentMetrics").add(builder); - } else { - _visitables.get("currentMetrics").set(index, builder); - } - if (index < 0 || index >= currentMetrics.size()) { - currentMetrics.add(builder); - } else { - currentMetrics.set(index, builder); - } - return (A) this; + if (index < 0 || index >= _visitables.get("currentMetrics").size()) { _visitables.get("currentMetrics").add(builder); } else { _visitables.get("currentMetrics").set(index, builder);} + if (index < 0 || index >= currentMetrics.size()) { currentMetrics.add(builder); } else { currentMetrics.set(index, builder);} + return (A)this; } - public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... items) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); - } - for (V2beta2MetricStatus item : items) { - V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); - } - return (A) this; + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + for (V2beta2MetricStatus item : items) {V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; } - public A addAllToCurrentMetrics(Collection items) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); - } - for (V2beta2MetricStatus item : items) { - V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); - } - return (A) this; + if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + for (V2beta2MetricStatus item : items) {V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; } - - public A removeFromCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta2MetricStatus... items) { - for (V2beta2MetricStatus item : items) { - V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - if (this.currentMetrics != null) { - this.currentMetrics.remove(builder); - } - } - return (A) this; + public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... items) { + for (V2beta2MetricStatus item : items) {V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder);if (this.currentMetrics != null) {this.currentMetrics.remove(builder);}} return (A)this; } - public A removeAllFromCurrentMetrics(Collection items) { - for (V2beta2MetricStatus item : items) { - V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - if (this.currentMetrics != null) { - this.currentMetrics.remove(builder); - } - } - return (A) this; + for (V2beta2MetricStatus item : items) {V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder);if (this.currentMetrics != null) {this.currentMetrics.remove(builder);}} return (A)this; } - public A removeMatchingFromCurrentMetrics(Predicate predicate) { if (currentMetrics == null) return (A) this; final Iterator each = currentMetrics.iterator(); @@ -361,307 +186,176 @@ public A removeMatchingFromCurrentMetrics(Predicate each.remove(); } } - return (A) this; + return (A)this; } - + /** * This method has been deprecated, please use method buildCurrentMetrics instead. - * * @return The buildable object. */ @Deprecated public List getCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public List buildCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public V2beta2MetricStatus buildCurrentMetric(Integer index) { return this.currentMetrics.get(index).build(); } - public V2beta2MetricStatus buildFirstCurrentMetric() { return this.currentMetrics.get(0).build(); } - public V2beta2MetricStatus buildLastCurrentMetric() { return this.currentMetrics.get(currentMetrics.size() - 1).build(); } - - public V2beta2MetricStatus buildMatchingCurrentMetric( - Predicate predicate) { - for (V2beta2MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V2beta2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { + for (V2beta2MetricStatusBuilder item: currentMetrics) { if(predicate.test(item)){ return item.build();} } return null; } - public Boolean hasMatchingCurrentMetric(Predicate predicate) { - for (V2beta2MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return true; - } - } - return false; + for (V2beta2MetricStatusBuilder item: currentMetrics) { if(predicate.test(item)){ return true;} } return false; } - public A withCurrentMetrics(List currentMetrics) { - if (this.currentMetrics != null) { - _visitables.get("currentMetrics").removeAll(this.currentMetrics); - } - if (currentMetrics != null) { - this.currentMetrics = new ArrayList(); - for (V2beta2MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } else { - this.currentMetrics = null; - } - return (A) this; + if (this.currentMetrics != null) { _visitables.get("currentMetrics").removeAll(this.currentMetrics);} + if (currentMetrics != null) {this.currentMetrics = new ArrayList(); for (V2beta2MetricStatus item : currentMetrics){this.addToCurrentMetrics(item);}} else { this.currentMetrics = null;} return (A) this; } - - public A withCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta2MetricStatus... currentMetrics) { - if (this.currentMetrics != null) { - this.currentMetrics.clear(); - } - if (currentMetrics != null) { - for (V2beta2MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } - return (A) this; + public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... currentMetrics) { + if (this.currentMetrics != null) {this.currentMetrics.clear();} + if (currentMetrics != null) {for (V2beta2MetricStatus item :currentMetrics){ this.addToCurrentMetrics(item);}} return (A) this; } - public Boolean hasCurrentMetrics() { return currentMetrics != null && !currentMetrics.isEmpty(); } - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric() { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( - V2beta2MetricStatus item) { + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike(V2beta2MetricStatus item) { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(-1, item); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( - Integer index, V2beta2MetricStatus item) { + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike(Integer index,V2beta2MetricStatus item) { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(index, item); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( - Integer index) { - if (currentMetrics.size() <= index) - throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric(Integer index) { + if (currentMetrics.size() <= index) throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested - editFirstCurrentMetric() { - if (currentMetrics.size() == 0) - throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric() { + if (currentMetrics.size() == 0) throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); return setNewCurrentMetricLike(0, buildCurrentMetric(0)); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested - editLastCurrentMetric() { + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editLastCurrentMetric() { int index = currentMetrics.size() - 1; if (index < 0) throw new RuntimeException("Can't edit last currentMetrics. The list is empty."); return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - - public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested - editMatchingCurrentMetric(Predicate predicate) { + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate) { int index = -1; - for (int i = 0; i < currentMetrics.size(); i++) { - if (predicate.test(currentMetrics.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching currentMetrics. No match found."); + for (int i=0;i - extends V2beta2HorizontalPodAutoscalerConditionFluentImpl< - V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested> - implements V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested, Nested { - ConditionsNestedImpl(Integer index, V2beta2HorizontalPodAutoscalerCondition item) { + class ConditionsNestedImpl extends V2beta2HorizontalPodAutoscalerConditionFluentImpl> implements V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested,Nested{ + ConditionsNestedImpl(Integer index,V2beta2HorizontalPodAutoscalerCondition item) { this.index = index; this.builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(this, item); } - ConditionsNestedImpl() { this.index = -1; this.builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(this); } - V2beta2HorizontalPodAutoscalerConditionBuilder builder; Integer index; - public N and() { - return (N) - V2beta2HorizontalPodAutoscalerStatusFluentImpl.this.setToConditions( - index, builder.build()); + return (N) V2beta2HorizontalPodAutoscalerStatusFluentImpl.this.setToConditions(index,builder.build()); } - public N endCondition() { return and(); } + } - - class CurrentMetricsNestedImpl - extends V2beta2MetricStatusFluentImpl< - V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> - implements V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested, Nested { - CurrentMetricsNestedImpl(Integer index, V2beta2MetricStatus item) { + class CurrentMetricsNestedImpl extends V2beta2MetricStatusFluentImpl> implements V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested,Nested{ + CurrentMetricsNestedImpl(Integer index,V2beta2MetricStatus item) { this.index = index; this.builder = new V2beta2MetricStatusBuilder(this, item); } - CurrentMetricsNestedImpl() { this.index = -1; this.builder = new V2beta2MetricStatusBuilder(this); } - V2beta2MetricStatusBuilder builder; Integer index; - public N and() { - return (N) - V2beta2HorizontalPodAutoscalerStatusFluentImpl.this.setToCurrentMetrics( - index, builder.build()); + return (N) V2beta2HorizontalPodAutoscalerStatusFluentImpl.this.setToCurrentMetrics(index,builder.build()); } - public N endCurrentMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java index 997455c0ea..b07a4c9407 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2MetricIdentifierBuilder - extends V2beta2MetricIdentifierFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2MetricIdentifierBuilder extends V2beta2MetricIdentifierFluentImpl implements VisitableBuilder{ public V2beta2MetricIdentifierBuilder() { this(false); } - public V2beta2MetricIdentifierBuilder(Boolean validationEnabled) { this(new V2beta2MetricIdentifier(), validationEnabled); } - public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifierFluent fluent) { this(fluent, false); } - - public V2beta2MetricIdentifierBuilder( - V2beta2MetricIdentifierFluent fluent, Boolean validationEnabled) { + public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifierFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2MetricIdentifier(), validationEnabled); } - - public V2beta2MetricIdentifierBuilder( - V2beta2MetricIdentifierFluent fluent, V2beta2MetricIdentifier instance) { + public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifierFluent fluent,V2beta2MetricIdentifier instance) { this(fluent, instance, false); } - - public V2beta2MetricIdentifierBuilder( - V2beta2MetricIdentifierFluent fluent, - V2beta2MetricIdentifier instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifierFluent fluent,V2beta2MetricIdentifier instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifier instance) { - this(instance, false); + this(instance,false); } - - public V2beta2MetricIdentifierBuilder( - V2beta2MetricIdentifier instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifier instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withSelector(instance.getSelector()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2MetricIdentifierFluent fluent; Boolean validationEnabled; - public V2beta2MetricIdentifier build() { V2beta2MetricIdentifier buildable = new V2beta2MetricIdentifier(); buildable.setName(fluent.getName()); buildable.setSelector(fluent.getSelector()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java index 8f8e422d56..f49f479367 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java @@ -1,58 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2MetricIdentifierFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2MetricIdentifierFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector(); - public V1LabelSelector buildSelector(); - public A withSelector(V1LabelSelector selector); - public Boolean hasSelector(); - public V2beta2MetricIdentifierFluent.SelectorNested withNewSelector(); - public V2beta2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public V2beta2MetricIdentifierFluent.SelectorNested editSelector(); - public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelector(); - - public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike( - V1LabelSelector item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { + public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); + public interface SelectorNested extends Nested,V1LabelSelectorFluent>{ public N and(); - public N endSelector(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java index a984f192f2..797c3c9e4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java @@ -1,147 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2MetricIdentifierFluentImpl> - extends BaseFluent implements V2beta2MetricIdentifierFluent { - public V2beta2MetricIdentifierFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2MetricIdentifierFluentImpl> extends BaseFluent implements V2beta2MetricIdentifierFluent{ + public V2beta2MetricIdentifierFluentImpl() { + } public V2beta2MetricIdentifierFluentImpl(V2beta2MetricIdentifier instance) { this.withName(instance.getName()); this.withSelector(instance.getSelector()); - } + } private String name; private V1LabelSelectorBuilder selector; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildSelector instead. - * * @return The buildable object. */ @Deprecated public V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + return this.selector!=null ?this.selector.build():null; } - public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } else { - this.selector = null; - _visitables.get("selector").remove(this.selector); - } - return (A) this; + if (selector!=null){ this.selector= new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector);} else { this.selector = null; _visitables.get("selector").remove(this.selector); } return (A) this; } - public Boolean hasSelector() { return this.selector != null; } - public V2beta2MetricIdentifierFluent.SelectorNested withNewSelector() { return new V2beta2MetricIdentifierFluentImpl.SelectorNestedImpl(); } - public V2beta2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V2beta2MetricIdentifierFluentImpl.SelectorNestedImpl(item); } - public V2beta2MetricIdentifierFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); + return withNewSelectorLike(getSelector() != null ? getSelector(): new V1LabelSelectorBuilder().build()); } - - public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike( - V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); + public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return withNewSelectorLike(getSelector() != null ? getSelector(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2MetricIdentifierFluentImpl that = (V2beta2MetricIdentifierFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, selector, super.hashCode()); + return java.util.Objects.hash(name, selector, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector); } sb.append("}"); return sb.toString(); } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements V2beta2MetricIdentifierFluent.SelectorNested, Nested { + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> implements V2beta2MetricIdentifierFluent.SelectorNested,Nested{ SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - SelectorNestedImpl() { this.builder = new V1LabelSelectorBuilder(this); } - V1LabelSelectorBuilder builder; - public N and() { return (N) V2beta2MetricIdentifierFluentImpl.this.withSelector(builder.build()); } - public N endSelector() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java index 067025f3ef..d4374d0d4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2MetricSpecBuilder extends V2beta2MetricSpecFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2MetricSpecBuilder extends V2beta2MetricSpecFluentImpl implements VisitableBuilder{ public V2beta2MetricSpecBuilder() { this(false); } - public V2beta2MetricSpecBuilder(Boolean validationEnabled) { this(new V2beta2MetricSpec(), validationEnabled); } - public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent) { this(fluent, false); } - - public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent, Boolean validationEnabled) { + public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2MetricSpec(), validationEnabled); } - - public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent, V2beta2MetricSpec instance) { + public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent,V2beta2MetricSpec instance) { this(fluent, instance, false); } - - public V2beta2MetricSpecBuilder( - V2beta2MetricSpecFluent fluent, V2beta2MetricSpec instance, Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent,V2beta2MetricSpec instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); fluent.withExternal(instance.getExternal()); @@ -51,15 +32,13 @@ public V2beta2MetricSpecBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2MetricSpecBuilder(V2beta2MetricSpec instance) { - this(instance, false); + this(instance,false); } - - public V2beta2MetricSpecBuilder(V2beta2MetricSpec instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2MetricSpecBuilder(V2beta2MetricSpec instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -72,12 +51,10 @@ public V2beta2MetricSpecBuilder(V2beta2MetricSpec instance, Boolean validationEn this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2MetricSpecFluent fluent; Boolean validationEnabled; - public V2beta2MetricSpec build() { V2beta2MetricSpec buildable = new V2beta2MetricSpec(); buildable.setContainerResource(fluent.getContainerResource()); @@ -88,4 +65,5 @@ public V2beta2MetricSpec build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java index 46c704d2df..18a3857393 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java @@ -1,192 +1,117 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta2MetricSpecFluent> extends Fluent { - +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2MetricSpecFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ContainerResourceMetricSource getContainerResource(); - public V2beta2ContainerResourceMetricSource buildContainerResource(); - public A withContainerResource(V2beta2ContainerResourceMetricSource containerResource); - public Boolean hasContainerResource(); - public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResource(); - - public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( - V2beta2ContainerResourceMetricSource item); - + public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike(V2beta2ContainerResourceMetricSource item); public V2beta2MetricSpecFluent.ContainerResourceNested editContainerResource(); - public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource(); - - public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2beta2ContainerResourceMetricSource item); - + public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike(V2beta2ContainerResourceMetricSource item); + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2beta2ExternalMetricSource getExternal(); - public V2beta2ExternalMetricSource buildExternal(); - public A withExternal(V2beta2ExternalMetricSource external); - public Boolean hasExternal(); - public V2beta2MetricSpecFluent.ExternalNested withNewExternal(); - - public V2beta2MetricSpecFluent.ExternalNested withNewExternalLike( - V2beta2ExternalMetricSource item); - + public V2beta2MetricSpecFluent.ExternalNested withNewExternalLike(V2beta2ExternalMetricSource item); public V2beta2MetricSpecFluent.ExternalNested editExternal(); - public V2beta2MetricSpecFluent.ExternalNested editOrNewExternal(); - - public V2beta2MetricSpecFluent.ExternalNested editOrNewExternalLike( - V2beta2ExternalMetricSource item); - + public V2beta2MetricSpecFluent.ExternalNested editOrNewExternalLike(V2beta2ExternalMetricSource item); + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2ObjectMetricSource getObject(); - public V2beta2ObjectMetricSource buildObject(); - public A withObject(V2beta2ObjectMetricSource _object); - public Boolean hasObject(); - public V2beta2MetricSpecFluent.ObjectNested withNewObject(); - public V2beta2MetricSpecFluent.ObjectNested withNewObjectLike(V2beta2ObjectMetricSource item); - public V2beta2MetricSpecFluent.ObjectNested editObject(); - public V2beta2MetricSpecFluent.ObjectNested editOrNewObject(); - - public V2beta2MetricSpecFluent.ObjectNested editOrNewObjectLike( - V2beta2ObjectMetricSource item); - + public V2beta2MetricSpecFluent.ObjectNested editOrNewObjectLike(V2beta2ObjectMetricSource item); + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2beta2PodsMetricSource getPods(); - public V2beta2PodsMetricSource buildPods(); - public A withPods(V2beta2PodsMetricSource pods); - public Boolean hasPods(); - public V2beta2MetricSpecFluent.PodsNested withNewPods(); - public V2beta2MetricSpecFluent.PodsNested withNewPodsLike(V2beta2PodsMetricSource item); - public V2beta2MetricSpecFluent.PodsNested editPods(); - public V2beta2MetricSpecFluent.PodsNested editOrNewPods(); - public V2beta2MetricSpecFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricSource item); - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ResourceMetricSource getResource(); - public V2beta2ResourceMetricSource buildResource(); - public A withResource(V2beta2ResourceMetricSource resource); - public Boolean hasResource(); - public V2beta2MetricSpecFluent.ResourceNested withNewResource(); - - public V2beta2MetricSpecFluent.ResourceNested withNewResourceLike( - V2beta2ResourceMetricSource item); - + public V2beta2MetricSpecFluent.ResourceNested withNewResourceLike(V2beta2ResourceMetricSource item); public V2beta2MetricSpecFluent.ResourceNested editResource(); - public V2beta2MetricSpecFluent.ResourceNested editOrNewResource(); - - public V2beta2MetricSpecFluent.ResourceNested editOrNewResourceLike( - V2beta2ResourceMetricSource item); - + public V2beta2MetricSpecFluent.ResourceNested editOrNewResourceLike(V2beta2ResourceMetricSource item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface ContainerResourceNested - extends Nested, - V2beta2ContainerResourceMetricSourceFluent< - V2beta2MetricSpecFluent.ContainerResourceNested> { + public interface ContainerResourceNested extends Nested,V2beta2ContainerResourceMetricSourceFluent>{ public N and(); - public N endContainerResource(); + } - - public interface ExternalNested - extends Nested, - V2beta2ExternalMetricSourceFluent> { + public interface ExternalNested extends Nested,V2beta2ExternalMetricSourceFluent>{ public N and(); - public N endExternal(); + } - - public interface ObjectNested - extends Nested, V2beta2ObjectMetricSourceFluent> { + public interface ObjectNested extends Nested,V2beta2ObjectMetricSourceFluent>{ public N and(); - public N endObject(); + } - - public interface PodsNested - extends Nested, V2beta2PodsMetricSourceFluent> { + public interface PodsNested extends Nested,V2beta2PodsMetricSourceFluent>{ public N and(); - public N endPods(); + } - - public interface ResourceNested - extends Nested, - V2beta2ResourceMetricSourceFluent> { + public interface ResourceNested extends Nested,V2beta2ResourceMetricSourceFluent>{ public N and(); - public N endResource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java index ffcd3041f5..873d2625f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2MetricSpecFluentImpl> extends BaseFluent - implements V2beta2MetricSpecFluent { - public V2beta2MetricSpecFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2MetricSpecFluentImpl> extends BaseFluent implements V2beta2MetricSpecFluent{ + public V2beta2MetricSpecFluentImpl() { + } public V2beta2MetricSpecFluentImpl(V2beta2MetricSpec instance) { this.withContainerResource(instance.getContainerResource()); @@ -33,452 +27,299 @@ public V2beta2MetricSpecFluentImpl(V2beta2MetricSpec instance) { this.withResource(instance.getResource()); this.withType(instance.getType()); - } + } private V2beta2ContainerResourceMetricSourceBuilder containerResource; private V2beta2ExternalMetricSourceBuilder external; private V2beta2ObjectMetricSourceBuilder _object; private V2beta2PodsMetricSourceBuilder pods; private V2beta2ResourceMetricSourceBuilder resource; private String type; - + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ContainerResourceMetricSource getContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public V2beta2ContainerResourceMetricSource buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public A withContainerResource(V2beta2ContainerResourceMetricSource containerResource) { _visitables.get("containerResource").remove(this.containerResource); - if (containerResource != null) { - this.containerResource = new V2beta2ContainerResourceMetricSourceBuilder(containerResource); - _visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - _visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; + if (containerResource!=null){ this.containerResource= new V2beta2ContainerResourceMetricSourceBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource);} else { this.containerResource = null; _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } - public Boolean hasContainerResource() { return this.containerResource != null; } - public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResource() { return new V2beta2MetricSpecFluentImpl.ContainerResourceNestedImpl(); } - - public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( - V2beta2ContainerResourceMetricSource item) { + public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike(V2beta2ContainerResourceMetricSource item) { return new V2beta2MetricSpecFluentImpl.ContainerResourceNestedImpl(item); } - public V2beta2MetricSpecFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike( - getContainerResource() != null - ? getContainerResource() - : new V2beta2ContainerResourceMetricSourceBuilder().build()); + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): new V2beta2ContainerResourceMetricSourceBuilder().build()); } - - public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2beta2ContainerResourceMetricSource item) { - return withNewContainerResourceLike( - getContainerResource() != null ? getContainerResource() : item); + public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike(V2beta2ContainerResourceMetricSource item) { + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): item); } - + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2beta2ExternalMetricSource getExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public V2beta2ExternalMetricSource buildExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public A withExternal(V2beta2ExternalMetricSource external) { _visitables.get("external").remove(this.external); - if (external != null) { - this.external = new V2beta2ExternalMetricSourceBuilder(external); - _visitables.get("external").add(this.external); - } else { - this.external = null; - _visitables.get("external").remove(this.external); - } - return (A) this; + if (external!=null){ this.external= new V2beta2ExternalMetricSourceBuilder(external); _visitables.get("external").add(this.external);} else { this.external = null; _visitables.get("external").remove(this.external); } return (A) this; } - public Boolean hasExternal() { return this.external != null; } - public V2beta2MetricSpecFluent.ExternalNested withNewExternal() { return new V2beta2MetricSpecFluentImpl.ExternalNestedImpl(); } - - public V2beta2MetricSpecFluent.ExternalNested withNewExternalLike( - V2beta2ExternalMetricSource item) { + public V2beta2MetricSpecFluent.ExternalNested withNewExternalLike(V2beta2ExternalMetricSource item) { return new V2beta2MetricSpecFluentImpl.ExternalNestedImpl(item); } - public V2beta2MetricSpecFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public V2beta2MetricSpecFluent.ExternalNested editOrNewExternal() { - return withNewExternalLike( - getExternal() != null ? getExternal() : new V2beta2ExternalMetricSourceBuilder().build()); + return withNewExternalLike(getExternal() != null ? getExternal(): new V2beta2ExternalMetricSourceBuilder().build()); } - - public V2beta2MetricSpecFluent.ExternalNested editOrNewExternalLike( - V2beta2ExternalMetricSource item) { - return withNewExternalLike(getExternal() != null ? getExternal() : item); + public V2beta2MetricSpecFluent.ExternalNested editOrNewExternalLike(V2beta2ExternalMetricSource item) { + return withNewExternalLike(getExternal() != null ? getExternal(): item); } - + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2ObjectMetricSource getObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public V2beta2ObjectMetricSource buildObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public A withObject(V2beta2ObjectMetricSource _object) { _visitables.get("_object").remove(this._object); - if (_object != null) { - this._object = new V2beta2ObjectMetricSourceBuilder(_object); - _visitables.get("_object").add(this._object); - } else { - this._object = null; - _visitables.get("_object").remove(this._object); - } - return (A) this; + if (_object!=null){ this._object= new V2beta2ObjectMetricSourceBuilder(_object); _visitables.get("_object").add(this._object);} else { this._object = null; _visitables.get("_object").remove(this._object); } return (A) this; } - public Boolean hasObject() { return this._object != null; } - public V2beta2MetricSpecFluent.ObjectNested withNewObject() { return new V2beta2MetricSpecFluentImpl.ObjectNestedImpl(); } - public V2beta2MetricSpecFluent.ObjectNested withNewObjectLike(V2beta2ObjectMetricSource item) { return new V2beta2MetricSpecFluentImpl.ObjectNestedImpl(item); } - public V2beta2MetricSpecFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public V2beta2MetricSpecFluent.ObjectNested editOrNewObject() { - return withNewObjectLike( - getObject() != null ? getObject() : new V2beta2ObjectMetricSourceBuilder().build()); + return withNewObjectLike(getObject() != null ? getObject(): new V2beta2ObjectMetricSourceBuilder().build()); } - - public V2beta2MetricSpecFluent.ObjectNested editOrNewObjectLike( - V2beta2ObjectMetricSource item) { - return withNewObjectLike(getObject() != null ? getObject() : item); + public V2beta2MetricSpecFluent.ObjectNested editOrNewObjectLike(V2beta2ObjectMetricSource item) { + return withNewObjectLike(getObject() != null ? getObject(): item); } - + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2beta2PodsMetricSource getPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public V2beta2PodsMetricSource buildPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public A withPods(V2beta2PodsMetricSource pods) { _visitables.get("pods").remove(this.pods); - if (pods != null) { - this.pods = new V2beta2PodsMetricSourceBuilder(pods); - _visitables.get("pods").add(this.pods); - } else { - this.pods = null; - _visitables.get("pods").remove(this.pods); - } - return (A) this; + if (pods!=null){ this.pods= new V2beta2PodsMetricSourceBuilder(pods); _visitables.get("pods").add(this.pods);} else { this.pods = null; _visitables.get("pods").remove(this.pods); } return (A) this; } - public Boolean hasPods() { return this.pods != null; } - public V2beta2MetricSpecFluent.PodsNested withNewPods() { return new V2beta2MetricSpecFluentImpl.PodsNestedImpl(); } - public V2beta2MetricSpecFluent.PodsNested withNewPodsLike(V2beta2PodsMetricSource item) { return new V2beta2MetricSpecFluentImpl.PodsNestedImpl(item); } - public V2beta2MetricSpecFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public V2beta2MetricSpecFluent.PodsNested editOrNewPods() { - return withNewPodsLike( - getPods() != null ? getPods() : new V2beta2PodsMetricSourceBuilder().build()); + return withNewPodsLike(getPods() != null ? getPods(): new V2beta2PodsMetricSourceBuilder().build()); } - public V2beta2MetricSpecFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricSource item) { - return withNewPodsLike(getPods() != null ? getPods() : item); + return withNewPodsLike(getPods() != null ? getPods(): item); } - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ResourceMetricSource getResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public V2beta2ResourceMetricSource buildResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public A withResource(V2beta2ResourceMetricSource resource) { _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = new V2beta2ResourceMetricSourceBuilder(resource); - _visitables.get("resource").add(this.resource); - } else { - this.resource = null; - _visitables.get("resource").remove(this.resource); - } - return (A) this; + if (resource!=null){ this.resource= new V2beta2ResourceMetricSourceBuilder(resource); _visitables.get("resource").add(this.resource);} else { this.resource = null; _visitables.get("resource").remove(this.resource); } return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public V2beta2MetricSpecFluent.ResourceNested withNewResource() { return new V2beta2MetricSpecFluentImpl.ResourceNestedImpl(); } - - public V2beta2MetricSpecFluent.ResourceNested withNewResourceLike( - V2beta2ResourceMetricSource item) { + public V2beta2MetricSpecFluent.ResourceNested withNewResourceLike(V2beta2ResourceMetricSource item) { return new V2beta2MetricSpecFluentImpl.ResourceNestedImpl(item); } - public V2beta2MetricSpecFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public V2beta2MetricSpecFluent.ResourceNested editOrNewResource() { - return withNewResourceLike( - getResource() != null ? getResource() : new V2beta2ResourceMetricSourceBuilder().build()); + return withNewResourceLike(getResource() != null ? getResource(): new V2beta2ResourceMetricSourceBuilder().build()); } - - public V2beta2MetricSpecFluent.ResourceNested editOrNewResourceLike( - V2beta2ResourceMetricSource item) { - return withNewResourceLike(getResource() != null ? getResource() : item); + public V2beta2MetricSpecFluent.ResourceNested editOrNewResourceLike(V2beta2ResourceMetricSource item) { + return withNewResourceLike(getResource() != null ? getResource(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2MetricSpecFluentImpl that = (V2beta2MetricSpecFluentImpl) o; - if (containerResource != null - ? !containerResource.equals(that.containerResource) - : that.containerResource != null) return false; - if (external != null ? !external.equals(that.external) : that.external != null) return false; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (pods != null ? !pods.equals(that.pods) : that.pods != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (containerResource != null ? !containerResource.equals(that.containerResource) :that.containerResource != null) return false; + if (external != null ? !external.equals(that.external) :that.external != null) return false; + if (_object != null ? !_object.equals(that._object) :that._object != null) return false; + if (pods != null ? !pods.equals(that.pods) :that.pods != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerResource, external, _object, pods, resource, type, super.hashCode()); + return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerResource != null) { - sb.append("containerResource:"); - sb.append(containerResource + ","); - } - if (external != null) { - sb.append("external:"); - sb.append(external + ","); - } - if (_object != null) { - sb.append("_object:"); - sb.append(_object + ","); - } - if (pods != null) { - sb.append("pods:"); - sb.append(pods + ","); - } - if (resource != null) { - sb.append("resource:"); - sb.append(resource + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } + if (external != null) { sb.append("external:"); sb.append(external + ","); } + if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } + if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class ContainerResourceNestedImpl - extends V2beta2ContainerResourceMetricSourceFluentImpl< - V2beta2MetricSpecFluent.ContainerResourceNested> - implements V2beta2MetricSpecFluent.ContainerResourceNested, Nested { + class ContainerResourceNestedImpl extends V2beta2ContainerResourceMetricSourceFluentImpl> implements V2beta2MetricSpecFluent.ContainerResourceNested,Nested{ ContainerResourceNestedImpl(V2beta2ContainerResourceMetricSource item) { this.builder = new V2beta2ContainerResourceMetricSourceBuilder(this, item); } - ContainerResourceNestedImpl() { this.builder = new V2beta2ContainerResourceMetricSourceBuilder(this); } - V2beta2ContainerResourceMetricSourceBuilder builder; - public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withContainerResource(builder.build()); } - public N endContainerResource() { return and(); } + } - - class ExternalNestedImpl - extends V2beta2ExternalMetricSourceFluentImpl> - implements V2beta2MetricSpecFluent.ExternalNested, Nested { + class ExternalNestedImpl extends V2beta2ExternalMetricSourceFluentImpl> implements V2beta2MetricSpecFluent.ExternalNested,Nested{ ExternalNestedImpl(V2beta2ExternalMetricSource item) { this.builder = new V2beta2ExternalMetricSourceBuilder(this, item); } - ExternalNestedImpl() { this.builder = new V2beta2ExternalMetricSourceBuilder(this); } - V2beta2ExternalMetricSourceBuilder builder; - public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withExternal(builder.build()); } - public N endExternal() { return and(); } + } - - class ObjectNestedImpl - extends V2beta2ObjectMetricSourceFluentImpl> - implements V2beta2MetricSpecFluent.ObjectNested, Nested { + class ObjectNestedImpl extends V2beta2ObjectMetricSourceFluentImpl> implements V2beta2MetricSpecFluent.ObjectNested,Nested{ ObjectNestedImpl(V2beta2ObjectMetricSource item) { this.builder = new V2beta2ObjectMetricSourceBuilder(this, item); } - ObjectNestedImpl() { this.builder = new V2beta2ObjectMetricSourceBuilder(this); } - V2beta2ObjectMetricSourceBuilder builder; - public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withObject(builder.build()); } - public N endObject() { return and(); } + } - - class PodsNestedImpl - extends V2beta2PodsMetricSourceFluentImpl> - implements V2beta2MetricSpecFluent.PodsNested, Nested { + class PodsNestedImpl extends V2beta2PodsMetricSourceFluentImpl> implements V2beta2MetricSpecFluent.PodsNested,Nested{ PodsNestedImpl(V2beta2PodsMetricSource item) { this.builder = new V2beta2PodsMetricSourceBuilder(this, item); } - PodsNestedImpl() { this.builder = new V2beta2PodsMetricSourceBuilder(this); } - V2beta2PodsMetricSourceBuilder builder; - public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withPods(builder.build()); } - public N endPods() { return and(); } + } - - class ResourceNestedImpl - extends V2beta2ResourceMetricSourceFluentImpl> - implements V2beta2MetricSpecFluent.ResourceNested, Nested { + class ResourceNestedImpl extends V2beta2ResourceMetricSourceFluentImpl> implements V2beta2MetricSpecFluent.ResourceNested,Nested{ ResourceNestedImpl(V2beta2ResourceMetricSource item) { this.builder = new V2beta2ResourceMetricSourceBuilder(this, item); } - ResourceNestedImpl() { this.builder = new V2beta2ResourceMetricSourceBuilder(this); } - V2beta2ResourceMetricSourceBuilder builder; - public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withResource(builder.build()); } - public N endResource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java index c9c0e1404e..e87352f271 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2MetricStatusBuilder - extends V2beta2MetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2MetricStatusBuilder extends V2beta2MetricStatusFluentImpl implements VisitableBuilder{ public V2beta2MetricStatusBuilder() { this(false); } - public V2beta2MetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2MetricStatus(), validationEnabled); } - public V2beta2MetricStatusBuilder(V2beta2MetricStatusFluent fluent) { this(fluent, false); } - - public V2beta2MetricStatusBuilder( - V2beta2MetricStatusFluent fluent, Boolean validationEnabled) { + public V2beta2MetricStatusBuilder(V2beta2MetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2MetricStatus(), validationEnabled); } - - public V2beta2MetricStatusBuilder( - V2beta2MetricStatusFluent fluent, V2beta2MetricStatus instance) { + public V2beta2MetricStatusBuilder(V2beta2MetricStatusFluent fluent,V2beta2MetricStatus instance) { this(fluent, instance, false); } - - public V2beta2MetricStatusBuilder( - V2beta2MetricStatusFluent fluent, - V2beta2MetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2MetricStatusBuilder(V2beta2MetricStatusFluent fluent,V2beta2MetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); fluent.withExternal(instance.getExternal()); @@ -56,15 +32,13 @@ public V2beta2MetricStatusBuilder( fluent.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2MetricStatusBuilder(V2beta2MetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2beta2MetricStatusBuilder(V2beta2MetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2MetricStatusBuilder(V2beta2MetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -77,12 +51,10 @@ public V2beta2MetricStatusBuilder(V2beta2MetricStatus instance, Boolean validati this.withType(instance.getType()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2MetricStatusFluent fluent; Boolean validationEnabled; - public V2beta2MetricStatus build() { V2beta2MetricStatus buildable = new V2beta2MetricStatus(); buildable.setContainerResource(fluent.getContainerResource()); @@ -93,4 +65,5 @@ public V2beta2MetricStatus build() { buildable.setType(fluent.getType()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java index 26b7cf8aa6..c3fc51de9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java @@ -1,195 +1,117 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta2MetricStatusFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2MetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ContainerResourceMetricStatus getContainerResource(); - public V2beta2ContainerResourceMetricStatus buildContainerResource(); - public A withContainerResource(V2beta2ContainerResourceMetricStatus containerResource); - public Boolean hasContainerResource(); - public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResource(); - - public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( - V2beta2ContainerResourceMetricStatus item); - + public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike(V2beta2ContainerResourceMetricStatus item); public V2beta2MetricStatusFluent.ContainerResourceNested editContainerResource(); - public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource(); - - public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2beta2ContainerResourceMetricStatus item); - + public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike(V2beta2ContainerResourceMetricStatus item); + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2beta2ExternalMetricStatus getExternal(); - public V2beta2ExternalMetricStatus buildExternal(); - public A withExternal(V2beta2ExternalMetricStatus external); - public Boolean hasExternal(); - public V2beta2MetricStatusFluent.ExternalNested withNewExternal(); - - public V2beta2MetricStatusFluent.ExternalNested withNewExternalLike( - V2beta2ExternalMetricStatus item); - + public V2beta2MetricStatusFluent.ExternalNested withNewExternalLike(V2beta2ExternalMetricStatus item); public V2beta2MetricStatusFluent.ExternalNested editExternal(); - public V2beta2MetricStatusFluent.ExternalNested editOrNewExternal(); - - public V2beta2MetricStatusFluent.ExternalNested editOrNewExternalLike( - V2beta2ExternalMetricStatus item); - + public V2beta2MetricStatusFluent.ExternalNested editOrNewExternalLike(V2beta2ExternalMetricStatus item); + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2ObjectMetricStatus getObject(); - public V2beta2ObjectMetricStatus buildObject(); - public A withObject(V2beta2ObjectMetricStatus _object); - public Boolean hasObject(); - public V2beta2MetricStatusFluent.ObjectNested withNewObject(); - - public V2beta2MetricStatusFluent.ObjectNested withNewObjectLike( - V2beta2ObjectMetricStatus item); - + public V2beta2MetricStatusFluent.ObjectNested withNewObjectLike(V2beta2ObjectMetricStatus item); public V2beta2MetricStatusFluent.ObjectNested editObject(); - public V2beta2MetricStatusFluent.ObjectNested editOrNewObject(); - - public V2beta2MetricStatusFluent.ObjectNested editOrNewObjectLike( - V2beta2ObjectMetricStatus item); - + public V2beta2MetricStatusFluent.ObjectNested editOrNewObjectLike(V2beta2ObjectMetricStatus item); + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2beta2PodsMetricStatus getPods(); - public V2beta2PodsMetricStatus buildPods(); - public A withPods(V2beta2PodsMetricStatus pods); - public Boolean hasPods(); - public V2beta2MetricStatusFluent.PodsNested withNewPods(); - public V2beta2MetricStatusFluent.PodsNested withNewPodsLike(V2beta2PodsMetricStatus item); - public V2beta2MetricStatusFluent.PodsNested editPods(); - public V2beta2MetricStatusFluent.PodsNested editOrNewPods(); - public V2beta2MetricStatusFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricStatus item); - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ResourceMetricStatus getResource(); - public V2beta2ResourceMetricStatus buildResource(); - public A withResource(V2beta2ResourceMetricStatus resource); - public Boolean hasResource(); - public V2beta2MetricStatusFluent.ResourceNested withNewResource(); - - public V2beta2MetricStatusFluent.ResourceNested withNewResourceLike( - V2beta2ResourceMetricStatus item); - + public V2beta2MetricStatusFluent.ResourceNested withNewResourceLike(V2beta2ResourceMetricStatus item); public V2beta2MetricStatusFluent.ResourceNested editResource(); - public V2beta2MetricStatusFluent.ResourceNested editOrNewResource(); - - public V2beta2MetricStatusFluent.ResourceNested editOrNewResourceLike( - V2beta2ResourceMetricStatus item); - + public V2beta2MetricStatusFluent.ResourceNested editOrNewResourceLike(V2beta2ResourceMetricStatus item); public String getType(); - public A withType(String type); - public Boolean hasType(); - - public interface ContainerResourceNested - extends Nested, - V2beta2ContainerResourceMetricStatusFluent< - V2beta2MetricStatusFluent.ContainerResourceNested> { + public interface ContainerResourceNested extends Nested,V2beta2ContainerResourceMetricStatusFluent>{ public N and(); - public N endContainerResource(); + } - - public interface ExternalNested - extends Nested, - V2beta2ExternalMetricStatusFluent> { + public interface ExternalNested extends Nested,V2beta2ExternalMetricStatusFluent>{ public N and(); - public N endExternal(); + } - - public interface ObjectNested - extends Nested, - V2beta2ObjectMetricStatusFluent> { + public interface ObjectNested extends Nested,V2beta2ObjectMetricStatusFluent>{ public N and(); - public N endObject(); + } - - public interface PodsNested - extends Nested, V2beta2PodsMetricStatusFluent> { + public interface PodsNested extends Nested,V2beta2PodsMetricStatusFluent>{ public N and(); - public N endPods(); + } - - public interface ResourceNested - extends Nested, - V2beta2ResourceMetricStatusFluent> { + public interface ResourceNested extends Nested,V2beta2ResourceMetricStatusFluent>{ public N and(); - public N endResource(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java index 7f9ac56c96..c20637cf9f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java @@ -1,26 +1,20 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2MetricStatusFluentImpl> - extends BaseFluent implements V2beta2MetricStatusFluent { - public V2beta2MetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2MetricStatusFluentImpl> extends BaseFluent implements V2beta2MetricStatusFluent{ + public V2beta2MetricStatusFluentImpl() { + } public V2beta2MetricStatusFluentImpl(V2beta2MetricStatus instance) { this.withContainerResource(instance.getContainerResource()); @@ -33,453 +27,299 @@ public V2beta2MetricStatusFluentImpl(V2beta2MetricStatus instance) { this.withResource(instance.getResource()); this.withType(instance.getType()); - } + } private V2beta2ContainerResourceMetricStatusBuilder containerResource; private V2beta2ExternalMetricStatusBuilder external; private V2beta2ObjectMetricStatusBuilder _object; private V2beta2PodsMetricStatusBuilder pods; private V2beta2ResourceMetricStatusBuilder resource; private String type; - + /** * This method has been deprecated, please use method buildContainerResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ContainerResourceMetricStatus getContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public V2beta2ContainerResourceMetricStatus buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; + return this.containerResource!=null ?this.containerResource.build():null; } - public A withContainerResource(V2beta2ContainerResourceMetricStatus containerResource) { _visitables.get("containerResource").remove(this.containerResource); - if (containerResource != null) { - this.containerResource = new V2beta2ContainerResourceMetricStatusBuilder(containerResource); - _visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - _visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; + if (containerResource!=null){ this.containerResource= new V2beta2ContainerResourceMetricStatusBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource);} else { this.containerResource = null; _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } - public Boolean hasContainerResource() { return this.containerResource != null; } - public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResource() { return new V2beta2MetricStatusFluentImpl.ContainerResourceNestedImpl(); } - - public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( - V2beta2ContainerResourceMetricStatus item) { + public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike(V2beta2ContainerResourceMetricStatus item) { return new V2beta2MetricStatusFluentImpl.ContainerResourceNestedImpl(item); } - public V2beta2MetricStatusFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike( - getContainerResource() != null - ? getContainerResource() - : new V2beta2ContainerResourceMetricStatusBuilder().build()); + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): new V2beta2ContainerResourceMetricStatusBuilder().build()); } - - public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( - V2beta2ContainerResourceMetricStatus item) { - return withNewContainerResourceLike( - getContainerResource() != null ? getContainerResource() : item); + public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike(V2beta2ContainerResourceMetricStatus item) { + return withNewContainerResourceLike(getContainerResource() != null ? getContainerResource(): item); } - + /** * This method has been deprecated, please use method buildExternal instead. - * * @return The buildable object. */ @Deprecated public V2beta2ExternalMetricStatus getExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public V2beta2ExternalMetricStatus buildExternal() { - return this.external != null ? this.external.build() : null; + return this.external!=null ?this.external.build():null; } - public A withExternal(V2beta2ExternalMetricStatus external) { _visitables.get("external").remove(this.external); - if (external != null) { - this.external = new V2beta2ExternalMetricStatusBuilder(external); - _visitables.get("external").add(this.external); - } else { - this.external = null; - _visitables.get("external").remove(this.external); - } - return (A) this; + if (external!=null){ this.external= new V2beta2ExternalMetricStatusBuilder(external); _visitables.get("external").add(this.external);} else { this.external = null; _visitables.get("external").remove(this.external); } return (A) this; } - public Boolean hasExternal() { return this.external != null; } - public V2beta2MetricStatusFluent.ExternalNested withNewExternal() { return new V2beta2MetricStatusFluentImpl.ExternalNestedImpl(); } - - public V2beta2MetricStatusFluent.ExternalNested withNewExternalLike( - V2beta2ExternalMetricStatus item) { + public V2beta2MetricStatusFluent.ExternalNested withNewExternalLike(V2beta2ExternalMetricStatus item) { return new V2beta2MetricStatusFluentImpl.ExternalNestedImpl(item); } - public V2beta2MetricStatusFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public V2beta2MetricStatusFluent.ExternalNested editOrNewExternal() { - return withNewExternalLike( - getExternal() != null ? getExternal() : new V2beta2ExternalMetricStatusBuilder().build()); + return withNewExternalLike(getExternal() != null ? getExternal(): new V2beta2ExternalMetricStatusBuilder().build()); } - - public V2beta2MetricStatusFluent.ExternalNested editOrNewExternalLike( - V2beta2ExternalMetricStatus item) { - return withNewExternalLike(getExternal() != null ? getExternal() : item); + public V2beta2MetricStatusFluent.ExternalNested editOrNewExternalLike(V2beta2ExternalMetricStatus item) { + return withNewExternalLike(getExternal() != null ? getExternal(): item); } - + /** * This method has been deprecated, please use method buildObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2ObjectMetricStatus getObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public V2beta2ObjectMetricStatus buildObject() { - return this._object != null ? this._object.build() : null; + return this._object!=null ?this._object.build():null; } - public A withObject(V2beta2ObjectMetricStatus _object) { _visitables.get("_object").remove(this._object); - if (_object != null) { - this._object = new V2beta2ObjectMetricStatusBuilder(_object); - _visitables.get("_object").add(this._object); - } else { - this._object = null; - _visitables.get("_object").remove(this._object); - } - return (A) this; + if (_object!=null){ this._object= new V2beta2ObjectMetricStatusBuilder(_object); _visitables.get("_object").add(this._object);} else { this._object = null; _visitables.get("_object").remove(this._object); } return (A) this; } - public Boolean hasObject() { return this._object != null; } - public V2beta2MetricStatusFluent.ObjectNested withNewObject() { return new V2beta2MetricStatusFluentImpl.ObjectNestedImpl(); } - - public V2beta2MetricStatusFluent.ObjectNested withNewObjectLike( - V2beta2ObjectMetricStatus item) { + public V2beta2MetricStatusFluent.ObjectNested withNewObjectLike(V2beta2ObjectMetricStatus item) { return new V2beta2MetricStatusFluentImpl.ObjectNestedImpl(item); } - public V2beta2MetricStatusFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public V2beta2MetricStatusFluent.ObjectNested editOrNewObject() { - return withNewObjectLike( - getObject() != null ? getObject() : new V2beta2ObjectMetricStatusBuilder().build()); + return withNewObjectLike(getObject() != null ? getObject(): new V2beta2ObjectMetricStatusBuilder().build()); } - - public V2beta2MetricStatusFluent.ObjectNested editOrNewObjectLike( - V2beta2ObjectMetricStatus item) { - return withNewObjectLike(getObject() != null ? getObject() : item); + public V2beta2MetricStatusFluent.ObjectNested editOrNewObjectLike(V2beta2ObjectMetricStatus item) { + return withNewObjectLike(getObject() != null ? getObject(): item); } - + /** * This method has been deprecated, please use method buildPods instead. - * * @return The buildable object. */ @Deprecated public V2beta2PodsMetricStatus getPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public V2beta2PodsMetricStatus buildPods() { - return this.pods != null ? this.pods.build() : null; + return this.pods!=null ?this.pods.build():null; } - public A withPods(V2beta2PodsMetricStatus pods) { _visitables.get("pods").remove(this.pods); - if (pods != null) { - this.pods = new V2beta2PodsMetricStatusBuilder(pods); - _visitables.get("pods").add(this.pods); - } else { - this.pods = null; - _visitables.get("pods").remove(this.pods); - } - return (A) this; + if (pods!=null){ this.pods= new V2beta2PodsMetricStatusBuilder(pods); _visitables.get("pods").add(this.pods);} else { this.pods = null; _visitables.get("pods").remove(this.pods); } return (A) this; } - public Boolean hasPods() { return this.pods != null; } - public V2beta2MetricStatusFluent.PodsNested withNewPods() { return new V2beta2MetricStatusFluentImpl.PodsNestedImpl(); } - public V2beta2MetricStatusFluent.PodsNested withNewPodsLike(V2beta2PodsMetricStatus item) { return new V2beta2MetricStatusFluentImpl.PodsNestedImpl(item); } - public V2beta2MetricStatusFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public V2beta2MetricStatusFluent.PodsNested editOrNewPods() { - return withNewPodsLike( - getPods() != null ? getPods() : new V2beta2PodsMetricStatusBuilder().build()); + return withNewPodsLike(getPods() != null ? getPods(): new V2beta2PodsMetricStatusBuilder().build()); } - public V2beta2MetricStatusFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricStatus item) { - return withNewPodsLike(getPods() != null ? getPods() : item); + return withNewPodsLike(getPods() != null ? getPods(): item); } - + /** * This method has been deprecated, please use method buildResource instead. - * * @return The buildable object. */ @Deprecated public V2beta2ResourceMetricStatus getResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public V2beta2ResourceMetricStatus buildResource() { - return this.resource != null ? this.resource.build() : null; + return this.resource!=null ?this.resource.build():null; } - public A withResource(V2beta2ResourceMetricStatus resource) { _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = new V2beta2ResourceMetricStatusBuilder(resource); - _visitables.get("resource").add(this.resource); - } else { - this.resource = null; - _visitables.get("resource").remove(this.resource); - } - return (A) this; + if (resource!=null){ this.resource= new V2beta2ResourceMetricStatusBuilder(resource); _visitables.get("resource").add(this.resource);} else { this.resource = null; _visitables.get("resource").remove(this.resource); } return (A) this; } - public Boolean hasResource() { return this.resource != null; } - public V2beta2MetricStatusFluent.ResourceNested withNewResource() { return new V2beta2MetricStatusFluentImpl.ResourceNestedImpl(); } - - public V2beta2MetricStatusFluent.ResourceNested withNewResourceLike( - V2beta2ResourceMetricStatus item) { + public V2beta2MetricStatusFluent.ResourceNested withNewResourceLike(V2beta2ResourceMetricStatus item) { return new V2beta2MetricStatusFluentImpl.ResourceNestedImpl(item); } - public V2beta2MetricStatusFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public V2beta2MetricStatusFluent.ResourceNested editOrNewResource() { - return withNewResourceLike( - getResource() != null ? getResource() : new V2beta2ResourceMetricStatusBuilder().build()); + return withNewResourceLike(getResource() != null ? getResource(): new V2beta2ResourceMetricStatusBuilder().build()); } - - public V2beta2MetricStatusFluent.ResourceNested editOrNewResourceLike( - V2beta2ResourceMetricStatus item) { - return withNewResourceLike(getResource() != null ? getResource() : item); + public V2beta2MetricStatusFluent.ResourceNested editOrNewResourceLike(V2beta2ResourceMetricStatus item) { + return withNewResourceLike(getResource() != null ? getResource(): item); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2MetricStatusFluentImpl that = (V2beta2MetricStatusFluentImpl) o; - if (containerResource != null - ? !containerResource.equals(that.containerResource) - : that.containerResource != null) return false; - if (external != null ? !external.equals(that.external) : that.external != null) return false; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (pods != null ? !pods.equals(that.pods) : that.pods != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (containerResource != null ? !containerResource.equals(that.containerResource) :that.containerResource != null) return false; + if (external != null ? !external.equals(that.external) :that.external != null) return false; + if (_object != null ? !_object.equals(that._object) :that._object != null) return false; + if (pods != null ? !pods.equals(that.pods) :that.pods != null) return false; + if (resource != null ? !resource.equals(that.resource) :that.resource != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - containerResource, external, _object, pods, resource, type, super.hashCode()); + return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerResource != null) { - sb.append("containerResource:"); - sb.append(containerResource + ","); - } - if (external != null) { - sb.append("external:"); - sb.append(external + ","); - } - if (_object != null) { - sb.append("_object:"); - sb.append(_object + ","); - } - if (pods != null) { - sb.append("pods:"); - sb.append(pods + ","); - } - if (resource != null) { - sb.append("resource:"); - sb.append(resource + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type); - } + if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } + if (external != null) { sb.append("external:"); sb.append(external + ","); } + if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } + if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); } - - class ContainerResourceNestedImpl - extends V2beta2ContainerResourceMetricStatusFluentImpl< - V2beta2MetricStatusFluent.ContainerResourceNested> - implements V2beta2MetricStatusFluent.ContainerResourceNested, Nested { + class ContainerResourceNestedImpl extends V2beta2ContainerResourceMetricStatusFluentImpl> implements V2beta2MetricStatusFluent.ContainerResourceNested,Nested{ ContainerResourceNestedImpl(V2beta2ContainerResourceMetricStatus item) { this.builder = new V2beta2ContainerResourceMetricStatusBuilder(this, item); } - ContainerResourceNestedImpl() { this.builder = new V2beta2ContainerResourceMetricStatusBuilder(this); } - V2beta2ContainerResourceMetricStatusBuilder builder; - public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withContainerResource(builder.build()); } - public N endContainerResource() { return and(); } + } - - class ExternalNestedImpl - extends V2beta2ExternalMetricStatusFluentImpl> - implements V2beta2MetricStatusFluent.ExternalNested, Nested { + class ExternalNestedImpl extends V2beta2ExternalMetricStatusFluentImpl> implements V2beta2MetricStatusFluent.ExternalNested,Nested{ ExternalNestedImpl(V2beta2ExternalMetricStatus item) { this.builder = new V2beta2ExternalMetricStatusBuilder(this, item); } - ExternalNestedImpl() { this.builder = new V2beta2ExternalMetricStatusBuilder(this); } - V2beta2ExternalMetricStatusBuilder builder; - public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withExternal(builder.build()); } - public N endExternal() { return and(); } + } - - class ObjectNestedImpl - extends V2beta2ObjectMetricStatusFluentImpl> - implements V2beta2MetricStatusFluent.ObjectNested, Nested { + class ObjectNestedImpl extends V2beta2ObjectMetricStatusFluentImpl> implements V2beta2MetricStatusFluent.ObjectNested,Nested{ ObjectNestedImpl(V2beta2ObjectMetricStatus item) { this.builder = new V2beta2ObjectMetricStatusBuilder(this, item); } - ObjectNestedImpl() { this.builder = new V2beta2ObjectMetricStatusBuilder(this); } - V2beta2ObjectMetricStatusBuilder builder; - public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withObject(builder.build()); } - public N endObject() { return and(); } + } - - class PodsNestedImpl - extends V2beta2PodsMetricStatusFluentImpl> - implements V2beta2MetricStatusFluent.PodsNested, Nested { + class PodsNestedImpl extends V2beta2PodsMetricStatusFluentImpl> implements V2beta2MetricStatusFluent.PodsNested,Nested{ PodsNestedImpl(V2beta2PodsMetricStatus item) { this.builder = new V2beta2PodsMetricStatusBuilder(this, item); } - PodsNestedImpl() { this.builder = new V2beta2PodsMetricStatusBuilder(this); } - V2beta2PodsMetricStatusBuilder builder; - public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withPods(builder.build()); } - public N endPods() { return and(); } + } - - class ResourceNestedImpl - extends V2beta2ResourceMetricStatusFluentImpl> - implements V2beta2MetricStatusFluent.ResourceNested, Nested { + class ResourceNestedImpl extends V2beta2ResourceMetricStatusFluentImpl> implements V2beta2MetricStatusFluent.ResourceNested,Nested{ ResourceNestedImpl(V2beta2ResourceMetricStatus item) { this.builder = new V2beta2ResourceMetricStatusBuilder(this, item); } - ResourceNestedImpl() { this.builder = new V2beta2ResourceMetricStatusBuilder(this); } - V2beta2ResourceMetricStatusBuilder builder; - public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withResource(builder.build()); } - public N endResource() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java index 6126281194..5ebbb2ba70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java @@ -1,49 +1,25 @@ -/* -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.VisitableBuilder; - -public class V2beta2MetricTargetBuilder - extends V2beta2MetricTargetFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2MetricTargetBuilder extends V2beta2MetricTargetFluentImpl implements VisitableBuilder{ public V2beta2MetricTargetBuilder() { this(false); } - public V2beta2MetricTargetBuilder(Boolean validationEnabled) { this(new V2beta2MetricTarget(), validationEnabled); } - public V2beta2MetricTargetBuilder(V2beta2MetricTargetFluent fluent) { this(fluent, false); } - - public V2beta2MetricTargetBuilder( - V2beta2MetricTargetFluent fluent, Boolean validationEnabled) { + public V2beta2MetricTargetBuilder(V2beta2MetricTargetFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2MetricTarget(), validationEnabled); } - - public V2beta2MetricTargetBuilder( - V2beta2MetricTargetFluent fluent, V2beta2MetricTarget instance) { + public V2beta2MetricTargetBuilder(V2beta2MetricTargetFluent fluent,V2beta2MetricTarget instance) { this(fluent, instance, false); } - - public V2beta2MetricTargetBuilder( - V2beta2MetricTargetFluent fluent, - V2beta2MetricTarget instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2MetricTargetBuilder(V2beta2MetricTargetFluent fluent,V2beta2MetricTarget instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); fluent.withAverageValue(instance.getAverageValue()); @@ -52,15 +28,13 @@ public V2beta2MetricTargetBuilder( fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2MetricTargetBuilder(V2beta2MetricTarget instance) { - this(instance, false); + this(instance,false); } - - public V2beta2MetricTargetBuilder(V2beta2MetricTarget instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2MetricTargetBuilder(V2beta2MetricTarget instance,Boolean validationEnabled) { + this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); @@ -69,12 +43,10 @@ public V2beta2MetricTargetBuilder(V2beta2MetricTarget instance, Boolean validati this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2MetricTargetFluent fluent; Boolean validationEnabled; - public V2beta2MetricTarget build() { V2beta2MetricTarget buildable = new V2beta2MetricTarget(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -83,4 +55,5 @@ public V2beta2MetricTarget build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java index b2b23b9f44..cb806d1985 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java @@ -1,48 +1,28 @@ -/* -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.custom.Quantity; +import java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2MetricTargetFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2MetricTargetFluent> extends Fluent{ public Integer getAverageUtilization(); - public A withAverageUtilization(Integer averageUtilization); - public Boolean hasAverageUtilization(); - public Quantity getAverageValue(); - public A withAverageValue(Quantity averageValue); - public Boolean hasAverageValue(); - public A withNewAverageValue(String value); - public String getType(); - public A withType(String type); - public Boolean hasType(); - public Quantity getValue(); - public A withValue(Quantity value); - public Boolean hasValue(); - public A withNewValue(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java index fe6b4fa22a..e4682c87ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java @@ -1,26 +1,20 @@ -/* -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.custom.Quantity; +import java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2MetricTargetFluentImpl> - extends BaseFluent implements V2beta2MetricTargetFluent { - public V2beta2MetricTargetFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2MetricTargetFluentImpl> extends BaseFluent implements V2beta2MetricTargetFluent{ + public V2beta2MetricTargetFluentImpl() { + } public V2beta2MetricTargetFluentImpl(V2beta2MetricTarget instance) { this.withAverageUtilization(instance.getAverageUtilization()); @@ -29,111 +23,76 @@ public V2beta2MetricTargetFluentImpl(V2beta2MetricTarget instance) { this.withType(instance.getType()); this.withValue(instance.getValue()); - } + } private Integer averageUtilization; private Quantity averageValue; private String type; private Quantity value; - public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; + this.averageUtilization=averageUtilization; return (A) this; } - public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; + this.averageValue=averageValue; return (A) this; } - public Boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(String value) { - return (A) withAverageValue(new Quantity(value)); + return (A)withAverageValue(new Quantity(value)); } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + this.type=type; return (A) this; } - public Boolean hasType() { return this.type != null; } - public Quantity getValue() { return this.value; } - public A withValue(Quantity value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public A withNewValue(String value) { - return (A) withValue(new Quantity(value)); + return (A)withValue(new Quantity(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2MetricTargetFluentImpl that = (V2beta2MetricTargetFluentImpl) o; - if (averageUtilization != null - ? !averageUtilization.equals(that.averageUtilization) - : that.averageUtilization != null) return false; - if (averageValue != null ? !averageValue.equals(that.averageValue) : that.averageValue != null) - return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (averageUtilization != null ? !averageUtilization.equals(that.averageUtilization) :that.averageUtilization != null) return false; + if (averageValue != null ? !averageValue.equals(that.averageValue) :that.averageValue != null) return false; + if (type != null ? !type.equals(that.type) :that.type != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); + return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (averageUtilization != null) { - sb.append("averageUtilization:"); - sb.append(averageUtilization + ","); - } - if (averageValue != null) { - sb.append("averageValue:"); - sb.append(averageValue + ","); - } - if (type != null) { - sb.append("type:"); - sb.append(type + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } + if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } + if (type != null) { sb.append("type:"); sb.append(type + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java index accf7f6b88..9709657549 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2MetricValueStatusBuilder - extends V2beta2MetricValueStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2MetricValueStatusBuilder extends V2beta2MetricValueStatusFluentImpl implements VisitableBuilder{ public V2beta2MetricValueStatusBuilder() { this(false); } - public V2beta2MetricValueStatusBuilder(Boolean validationEnabled) { this(new V2beta2MetricValueStatus(), validationEnabled); } - public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatusFluent fluent) { this(fluent, false); } - - public V2beta2MetricValueStatusBuilder( - V2beta2MetricValueStatusFluent fluent, Boolean validationEnabled) { + public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2MetricValueStatus(), validationEnabled); } - - public V2beta2MetricValueStatusBuilder( - V2beta2MetricValueStatusFluent fluent, V2beta2MetricValueStatus instance) { + public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatusFluent fluent,V2beta2MetricValueStatus instance) { this(fluent, instance, false); } - - public V2beta2MetricValueStatusBuilder( - V2beta2MetricValueStatusFluent fluent, - V2beta2MetricValueStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatusFluent fluent,V2beta2MetricValueStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); fluent.withAverageValue(instance.getAverageValue()); fluent.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatus instance) { - this(instance, false); + this(instance,false); } - - public V2beta2MetricValueStatusBuilder( - V2beta2MetricValueStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); this.withValue(instance.getValue()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2MetricValueStatusFluent fluent; Boolean validationEnabled; - public V2beta2MetricValueStatus build() { V2beta2MetricValueStatus buildable = new V2beta2MetricValueStatus(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -79,4 +50,5 @@ public V2beta2MetricValueStatus build() { buildable.setValue(fluent.getValue()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java index 12c473ca38..08d675641c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java @@ -1,42 +1,25 @@ -/* -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.custom.Quantity; +import java.lang.Integer; import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2MetricValueStatusFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2MetricValueStatusFluent> extends Fluent{ public Integer getAverageUtilization(); - public A withAverageUtilization(Integer averageUtilization); - public Boolean hasAverageUtilization(); - public Quantity getAverageValue(); - public A withAverageValue(Quantity averageValue); - public Boolean hasAverageValue(); - public A withNewAverageValue(String value); - public Quantity getValue(); - public A withValue(Quantity value); - public Boolean hasValue(); - public A withNewValue(String value); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java index 475e8d2fcf..c602cb1f0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java @@ -1,118 +1,84 @@ -/* -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.custom.Quantity; +import java.lang.Integer; +import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2MetricValueStatusFluentImpl> - extends BaseFluent implements V2beta2MetricValueStatusFluent { - public V2beta2MetricValueStatusFluentImpl() {} - +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2MetricValueStatusFluentImpl> extends BaseFluent implements V2beta2MetricValueStatusFluent{ + public V2beta2MetricValueStatusFluentImpl() { + } public V2beta2MetricValueStatusFluentImpl(V2beta2MetricValueStatus instance) { this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); this.withValue(instance.getValue()); - } + } private Integer averageUtilization; private Quantity averageValue; private Quantity value; - public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; + this.averageUtilization=averageUtilization; return (A) this; } - public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; + this.averageValue=averageValue; return (A) this; } - public Boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(String value) { - return (A) withAverageValue(new Quantity(value)); + return (A)withAverageValue(new Quantity(value)); } - public Quantity getValue() { return this.value; } - public A withValue(Quantity value) { - this.value = value; - return (A) this; + this.value=value; return (A) this; } - public Boolean hasValue() { return this.value != null; } - public A withNewValue(String value) { - return (A) withValue(new Quantity(value)); + return (A)withValue(new Quantity(value)); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2MetricValueStatusFluentImpl that = (V2beta2MetricValueStatusFluentImpl) o; - if (averageUtilization != null - ? !averageUtilization.equals(that.averageUtilization) - : that.averageUtilization != null) return false; - if (averageValue != null ? !averageValue.equals(that.averageValue) : that.averageValue != null) - return false; - if (value != null ? !value.equals(that.value) : that.value != null) return false; + if (averageUtilization != null ? !averageUtilization.equals(that.averageUtilization) :that.averageUtilization != null) return false; + if (averageValue != null ? !averageValue.equals(that.averageValue) :that.averageValue != null) return false; + if (value != null ? !value.equals(that.value) :that.value != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); + return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (averageUtilization != null) { - sb.append("averageUtilization:"); - sb.append(averageUtilization + ","); - } - if (averageValue != null) { - sb.append("averageValue:"); - sb.append(averageValue + ","); - } - if (value != null) { - sb.append("value:"); - sb.append(value); - } + if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } + if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java index 91cc7a0d3a..3527442a7f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2ObjectMetricSourceBuilder - extends V2beta2ObjectMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2ObjectMetricSourceBuilder extends V2beta2ObjectMetricSourceFluentImpl implements VisitableBuilder{ public V2beta2ObjectMetricSourceBuilder() { this(false); } - public V2beta2ObjectMetricSourceBuilder(Boolean validationEnabled) { this(new V2beta2ObjectMetricSource(), validationEnabled); } - public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSourceFluent fluent) { this(fluent, false); } - - public V2beta2ObjectMetricSourceBuilder( - V2beta2ObjectMetricSourceFluent fluent, Boolean validationEnabled) { + public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ObjectMetricSource(), validationEnabled); } - - public V2beta2ObjectMetricSourceBuilder( - V2beta2ObjectMetricSourceFluent fluent, V2beta2ObjectMetricSource instance) { + public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSourceFluent fluent,V2beta2ObjectMetricSource instance) { this(fluent, instance, false); } - - public V2beta2ObjectMetricSourceBuilder( - V2beta2ObjectMetricSourceFluent fluent, - V2beta2ObjectMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSourceFluent fluent,V2beta2ObjectMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withDescribedObject(instance.getDescribedObject()); fluent.withMetric(instance.getMetric()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2beta2ObjectMetricSourceBuilder( - V2beta2ObjectMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ObjectMetricSourceFluent fluent; Boolean validationEnabled; - public V2beta2ObjectMetricSource build() { V2beta2ObjectMetricSource buildable = new V2beta2ObjectMetricSource(); buildable.setDescribedObject(fluent.getDescribedObject()); @@ -79,4 +50,5 @@ public V2beta2ObjectMetricSource build() { buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java index f139b53d4c..39abbc95c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java @@ -1,124 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta2ObjectMetricSourceFluent> - extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2ObjectMetricSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2CrossVersionObjectReference getDescribedObject(); - public V2beta2CrossVersionObjectReference buildDescribedObject(); - public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject); - public Boolean hasDescribedObject(); - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObject(); - - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item); - + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike(V2beta2CrossVersionObjectReference item); public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject(); - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject(); - - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item); - + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2beta2CrossVersionObjectReference item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric(); - public V2beta2MetricIdentifier buildMetric(); - public A withMetric(V2beta2MetricIdentifier metric); - public Boolean hasMetric(); - public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetric(); - - public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item); public V2beta2ObjectMetricSourceFluent.MetricNested editMetric(); - public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetric(); - - public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item); + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget(); - public V2beta2MetricTarget buildTarget(); - public A withTarget(V2beta2MetricTarget target); - public Boolean hasTarget(); - public V2beta2ObjectMetricSourceFluent.TargetNested withNewTarget(); - - public V2beta2ObjectMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item); - + public V2beta2ObjectMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item); public V2beta2ObjectMetricSourceFluent.TargetNested editTarget(); - public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTarget(); - - public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item); - - public interface DescribedObjectNested - extends Nested, - V2beta2CrossVersionObjectReferenceFluent< - V2beta2ObjectMetricSourceFluent.DescribedObjectNested> { + public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item); + public interface DescribedObjectNested extends Nested,V2beta2CrossVersionObjectReferenceFluent>{ public N and(); - public N endDescribedObject(); + } - - public interface MetricNested - extends Nested, - V2beta2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2beta2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } - - public interface TargetNested - extends Nested, - V2beta2MetricTargetFluent> { + public interface TargetNested extends Nested,V2beta2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java index 7eca0058ad..d37e0c9443 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java @@ -1,298 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ObjectMetricSourceFluentImpl> - extends BaseFluent implements V2beta2ObjectMetricSourceFluent { - public V2beta2ObjectMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ObjectMetricSourceFluentImpl> extends BaseFluent implements V2beta2ObjectMetricSourceFluent{ + public V2beta2ObjectMetricSourceFluentImpl() { + } public V2beta2ObjectMetricSourceFluentImpl(V2beta2ObjectMetricSource instance) { this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - } + } private V2beta2CrossVersionObjectReferenceBuilder describedObject; private V2beta2MetricIdentifierBuilder metric; private V2beta2MetricTargetBuilder target; - + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2CrossVersionObjectReference getDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public V2beta2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); - if (describedObject != null) { - this.describedObject = new V2beta2CrossVersionObjectReferenceBuilder(describedObject); - _visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - _visitables.get("describedObject").remove(this.describedObject); - } - return (A) this; + if (describedObject!=null){ this.describedObject= new V2beta2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject);} else { this.describedObject = null; _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } - public Boolean hasDescribedObject() { return this.describedObject != null; } - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObject() { return new V2beta2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(); } - - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item) { + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike(V2beta2CrossVersionObjectReference item) { return new V2beta2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(item); } - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike( - getDescribedObject() != null - ? getDescribedObject() - : new V2beta2CrossVersionObjectReferenceBuilder().build()); + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): new V2beta2CrossVersionObjectReferenceBuilder().build()); } - - public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2beta2CrossVersionObjectReference item) { + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2beta2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2beta2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetric() { return new V2beta2ObjectMetricSourceFluentImpl.MetricNestedImpl(); } - - public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item) { + public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item) { return new V2beta2ObjectMetricSourceFluentImpl.MetricNestedImpl(item); } - public V2beta2ObjectMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2beta2MetricIdentifierBuilder().build()); } - - public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item) { + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2beta2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2beta2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2beta2ObjectMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ObjectMetricSourceFluentImpl.TargetNestedImpl(); } - - public V2beta2ObjectMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item) { + public V2beta2ObjectMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item) { return new V2beta2ObjectMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2beta2ObjectMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2beta2MetricTargetBuilder().build()); } - - public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item) { + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2ObjectMetricSourceFluentImpl that = (V2beta2ObjectMetricSourceFluentImpl) o; - if (describedObject != null - ? !describedObject.equals(that.describedObject) - : that.describedObject != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (describedObject != null ? !describedObject.equals(that.describedObject) :that.describedObject != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(describedObject, metric, target, super.hashCode()); + return java.util.Objects.hash(describedObject, metric, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (describedObject != null) { - sb.append("describedObject:"); - sb.append(describedObject + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class DescribedObjectNestedImpl - extends V2beta2CrossVersionObjectReferenceFluentImpl< - V2beta2ObjectMetricSourceFluent.DescribedObjectNested> - implements V2beta2ObjectMetricSourceFluent.DescribedObjectNested, Nested { + class DescribedObjectNestedImpl extends V2beta2CrossVersionObjectReferenceFluentImpl> implements V2beta2ObjectMetricSourceFluent.DescribedObjectNested,Nested{ DescribedObjectNestedImpl(V2beta2CrossVersionObjectReference item) { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this, item); } - DescribedObjectNestedImpl() { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this); } - V2beta2CrossVersionObjectReferenceBuilder builder; - public N and() { return (N) V2beta2ObjectMetricSourceFluentImpl.this.withDescribedObject(builder.build()); } - public N endDescribedObject() { return and(); } + } - - class MetricNestedImpl - extends V2beta2MetricIdentifierFluentImpl> - implements V2beta2ObjectMetricSourceFluent.MetricNested, Nested { + class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> implements V2beta2ObjectMetricSourceFluent.MetricNested,Nested{ MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2beta2MetricIdentifierBuilder(this); } - V2beta2MetricIdentifierBuilder builder; - public N and() { return (N) V2beta2ObjectMetricSourceFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } - - class TargetNestedImpl - extends V2beta2MetricTargetFluentImpl> - implements V2beta2ObjectMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> implements V2beta2ObjectMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2beta2MetricTargetBuilder(this); } - V2beta2MetricTargetBuilder builder; - public N and() { return (N) V2beta2ObjectMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java index df8139e61c..a07cc9d220 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java @@ -1,77 +1,48 @@ -/* -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.VisitableBuilder; - -public class V2beta2ObjectMetricStatusBuilder - extends V2beta2ObjectMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2ObjectMetricStatusBuilder extends V2beta2ObjectMetricStatusFluentImpl implements VisitableBuilder{ public V2beta2ObjectMetricStatusBuilder() { this(false); } - public V2beta2ObjectMetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2ObjectMetricStatus(), validationEnabled); } - public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatusFluent fluent) { this(fluent, false); } - - public V2beta2ObjectMetricStatusBuilder( - V2beta2ObjectMetricStatusFluent fluent, Boolean validationEnabled) { + public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ObjectMetricStatus(), validationEnabled); } - - public V2beta2ObjectMetricStatusBuilder( - V2beta2ObjectMetricStatusFluent fluent, V2beta2ObjectMetricStatus instance) { + public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatusFluent fluent,V2beta2ObjectMetricStatus instance) { this(fluent, instance, false); } - - public V2beta2ObjectMetricStatusBuilder( - V2beta2ObjectMetricStatusFluent fluent, - V2beta2ObjectMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatusFluent fluent,V2beta2ObjectMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withDescribedObject(instance.getDescribedObject()); fluent.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2beta2ObjectMetricStatusBuilder( - V2beta2ObjectMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ObjectMetricStatusFluent fluent; Boolean validationEnabled; - public V2beta2ObjectMetricStatus build() { V2beta2ObjectMetricStatus buildable = new V2beta2ObjectMetricStatus(); buildable.setCurrent(fluent.getCurrent()); @@ -79,4 +50,5 @@ public V2beta2ObjectMetricStatus build() { buildable.setMetric(fluent.getMetric()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java index 6c9f687514..a9bdb5aca0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java @@ -1,124 +1,73 @@ -/* -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.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta2ObjectMetricStatusFluent> - extends Fluent { - +import java.lang.Deprecated; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2ObjectMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent(); - public V2beta2MetricValueStatus buildCurrent(); - public A withCurrent(V2beta2MetricValueStatus current); - public Boolean hasCurrent(); - public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrent(); - - public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item); public V2beta2ObjectMetricStatusFluent.CurrentNested editCurrent(); - public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item); + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2CrossVersionObjectReference getDescribedObject(); - public V2beta2CrossVersionObjectReference buildDescribedObject(); - public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject); - public Boolean hasDescribedObject(); - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObject(); - - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item); - + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike(V2beta2CrossVersionObjectReference item); public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject(); - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject(); - - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item); - + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2beta2CrossVersionObjectReference item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric(); - public V2beta2MetricIdentifier buildMetric(); - public A withMetric(V2beta2MetricIdentifier metric); - public Boolean hasMetric(); - public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetric(); - - public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item); public V2beta2ObjectMetricStatusFluent.MetricNested editMetric(); - public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetric(); - - public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item); - - public interface CurrentNested - extends Nested, - V2beta2MetricValueStatusFluent> { + public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item); + public interface CurrentNested extends Nested,V2beta2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } - - public interface DescribedObjectNested - extends Nested, - V2beta2CrossVersionObjectReferenceFluent< - V2beta2ObjectMetricStatusFluent.DescribedObjectNested> { + public interface DescribedObjectNested extends Nested,V2beta2CrossVersionObjectReferenceFluent>{ public N and(); - public N endDescribedObject(); + } - - public interface MetricNested - extends Nested, - V2beta2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2beta2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java index 6b63556165..f162256d1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java @@ -1,298 +1,201 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ObjectMetricStatusFluentImpl> - extends BaseFluent implements V2beta2ObjectMetricStatusFluent { - public V2beta2ObjectMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ObjectMetricStatusFluentImpl> extends BaseFluent implements V2beta2ObjectMetricStatusFluent{ + public V2beta2ObjectMetricStatusFluentImpl() { + } public V2beta2ObjectMetricStatusFluentImpl(V2beta2ObjectMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); - } + } private V2beta2MetricValueStatusBuilder current; private V2beta2CrossVersionObjectReferenceBuilder describedObject; private V2beta2MetricIdentifierBuilder metric; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2beta2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2beta2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ObjectMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item) { + public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item) { return new V2beta2ObjectMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2beta2ObjectMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2beta2MetricValueStatusBuilder().build()); } - - public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - + /** * This method has been deprecated, please use method buildDescribedObject instead. - * * @return The buildable object. */ @Deprecated public V2beta2CrossVersionObjectReference getDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public V2beta2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + return this.describedObject!=null ?this.describedObject.build():null; } - public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); - if (describedObject != null) { - this.describedObject = new V2beta2CrossVersionObjectReferenceBuilder(describedObject); - _visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - _visitables.get("describedObject").remove(this.describedObject); - } - return (A) this; + if (describedObject!=null){ this.describedObject= new V2beta2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject);} else { this.describedObject = null; _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } - public Boolean hasDescribedObject() { return this.describedObject != null; } - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObject() { return new V2beta2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(); } - - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item) { + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike(V2beta2CrossVersionObjectReference item) { return new V2beta2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(item); } - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike( - getDescribedObject() != null - ? getDescribedObject() - : new V2beta2CrossVersionObjectReferenceBuilder().build()); + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): new V2beta2CrossVersionObjectReferenceBuilder().build()); } - - public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( - V2beta2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike(V2beta2CrossVersionObjectReference item) { + return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2beta2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2beta2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetric() { return new V2beta2ObjectMetricStatusFluentImpl.MetricNestedImpl(); } - - public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item) { + public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item) { return new V2beta2ObjectMetricStatusFluentImpl.MetricNestedImpl(item); } - public V2beta2ObjectMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2beta2MetricIdentifierBuilder().build()); } - - public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item) { + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2ObjectMetricStatusFluentImpl that = (V2beta2ObjectMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (describedObject != null - ? !describedObject.equals(that.describedObject) - : that.describedObject != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (describedObject != null ? !describedObject.equals(that.describedObject) :that.describedObject != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, describedObject, metric, super.hashCode()); + return java.util.Objects.hash(current, describedObject, metric, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (describedObject != null) { - sb.append("describedObject:"); - sb.append(describedObject + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2beta2MetricValueStatusFluentImpl> - implements V2beta2ObjectMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> implements V2beta2ObjectMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2beta2MetricValueStatusBuilder(this); } - V2beta2MetricValueStatusBuilder builder; - public N and() { return (N) V2beta2ObjectMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } - - class DescribedObjectNestedImpl - extends V2beta2CrossVersionObjectReferenceFluentImpl< - V2beta2ObjectMetricStatusFluent.DescribedObjectNested> - implements V2beta2ObjectMetricStatusFluent.DescribedObjectNested, Nested { + class DescribedObjectNestedImpl extends V2beta2CrossVersionObjectReferenceFluentImpl> implements V2beta2ObjectMetricStatusFluent.DescribedObjectNested,Nested{ DescribedObjectNestedImpl(V2beta2CrossVersionObjectReference item) { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this, item); } - DescribedObjectNestedImpl() { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this); } - V2beta2CrossVersionObjectReferenceBuilder builder; - public N and() { return (N) V2beta2ObjectMetricStatusFluentImpl.this.withDescribedObject(builder.build()); } - public N endDescribedObject() { return and(); } + } - - class MetricNestedImpl - extends V2beta2MetricIdentifierFluentImpl> - implements V2beta2ObjectMetricStatusFluent.MetricNested, Nested { + class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> implements V2beta2ObjectMetricStatusFluent.MetricNested,Nested{ MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2beta2MetricIdentifierBuilder(this); } - V2beta2MetricIdentifierBuilder builder; - public N and() { return (N) V2beta2ObjectMetricStatusFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java index bbe5a3c68c..9c76c7fc61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2PodsMetricSourceBuilder - extends V2beta2PodsMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2PodsMetricSourceBuilder extends V2beta2PodsMetricSourceFluentImpl implements VisitableBuilder{ public V2beta2PodsMetricSourceBuilder() { this(false); } - public V2beta2PodsMetricSourceBuilder(Boolean validationEnabled) { this(new V2beta2PodsMetricSource(), validationEnabled); } - public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSourceFluent fluent) { this(fluent, false); } - - public V2beta2PodsMetricSourceBuilder( - V2beta2PodsMetricSourceFluent fluent, Boolean validationEnabled) { + public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2PodsMetricSource(), validationEnabled); } - - public V2beta2PodsMetricSourceBuilder( - V2beta2PodsMetricSourceFluent fluent, V2beta2PodsMetricSource instance) { + public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSourceFluent fluent,V2beta2PodsMetricSource instance) { this(fluent, instance, false); } - - public V2beta2PodsMetricSourceBuilder( - V2beta2PodsMetricSourceFluent fluent, - V2beta2PodsMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSourceFluent fluent,V2beta2PodsMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withMetric(instance.getMetric()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2beta2PodsMetricSourceBuilder( - V2beta2PodsMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2PodsMetricSourceFluent fluent; Boolean validationEnabled; - public V2beta2PodsMetricSource build() { V2beta2PodsMetricSource buildable = new V2beta2PodsMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java index f5539ab338..568aec7cbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java @@ -1,87 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2PodsMetricSourceFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2beta2PodsMetricSourceFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric(); - public V2beta2MetricIdentifier buildMetric(); - public A withMetric(V2beta2MetricIdentifier metric); - public Boolean hasMetric(); - public V2beta2PodsMetricSourceFluent.MetricNested withNewMetric(); - - public V2beta2PodsMetricSourceFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2PodsMetricSourceFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item); public V2beta2PodsMetricSourceFluent.MetricNested editMetric(); - public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetric(); - - public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item); + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget(); - public V2beta2MetricTarget buildTarget(); - public A withTarget(V2beta2MetricTarget target); - public Boolean hasTarget(); - public V2beta2PodsMetricSourceFluent.TargetNested withNewTarget(); - public V2beta2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item); - public V2beta2PodsMetricSourceFluent.TargetNested editTarget(); - public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTarget(); - - public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item); - - public interface MetricNested - extends Nested, - V2beta2MetricIdentifierFluent> { + public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item); + public interface MetricNested extends Nested,V2beta2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } - - public interface TargetNested - extends Nested, V2beta2MetricTargetFluent> { + public interface TargetNested extends Nested,V2beta2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java index deeaa07b55..644f639c99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java @@ -1,209 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2PodsMetricSourceFluentImpl> - extends BaseFluent implements V2beta2PodsMetricSourceFluent { - public V2beta2PodsMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2PodsMetricSourceFluentImpl> extends BaseFluent implements V2beta2PodsMetricSourceFluent{ + public V2beta2PodsMetricSourceFluentImpl() { + } public V2beta2PodsMetricSourceFluentImpl(V2beta2PodsMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); - } + } private V2beta2MetricIdentifierBuilder metric; private V2beta2MetricTargetBuilder target; - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2beta2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2beta2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2beta2PodsMetricSourceFluent.MetricNested withNewMetric() { return new V2beta2PodsMetricSourceFluentImpl.MetricNestedImpl(); } - - public V2beta2PodsMetricSourceFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item) { + public V2beta2PodsMetricSourceFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item) { return new V2beta2PodsMetricSourceFluentImpl.MetricNestedImpl(item); } - public V2beta2PodsMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2beta2MetricIdentifierBuilder().build()); } - - public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item) { + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2beta2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2beta2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2beta2PodsMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2PodsMetricSourceFluentImpl.TargetNestedImpl(); } - public V2beta2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item) { return new V2beta2PodsMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2beta2PodsMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2beta2MetricTargetBuilder().build()); } - - public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item) { + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2PodsMetricSourceFluentImpl that = (V2beta2PodsMetricSourceFluentImpl) o; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); + return java.util.Objects.hash(metric, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metric != null) { - sb.append("metric:"); - sb.append(metric + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class MetricNestedImpl - extends V2beta2MetricIdentifierFluentImpl> - implements V2beta2PodsMetricSourceFluent.MetricNested, Nested { + class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> implements V2beta2PodsMetricSourceFluent.MetricNested,Nested{ MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2beta2MetricIdentifierBuilder(this); } - V2beta2MetricIdentifierBuilder builder; - public N and() { return (N) V2beta2PodsMetricSourceFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } - - class TargetNestedImpl - extends V2beta2MetricTargetFluentImpl> - implements V2beta2PodsMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> implements V2beta2PodsMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2beta2MetricTargetBuilder(this); } - V2beta2MetricTargetBuilder builder; - public N and() { return (N) V2beta2PodsMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java index 7835b87591..ba99d4b3fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2PodsMetricStatusBuilder - extends V2beta2PodsMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2PodsMetricStatusBuilder extends V2beta2PodsMetricStatusFluentImpl implements VisitableBuilder{ public V2beta2PodsMetricStatusBuilder() { this(false); } - public V2beta2PodsMetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2PodsMetricStatus(), validationEnabled); } - public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatusFluent fluent) { this(fluent, false); } - - public V2beta2PodsMetricStatusBuilder( - V2beta2PodsMetricStatusFluent fluent, Boolean validationEnabled) { + public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2PodsMetricStatus(), validationEnabled); } - - public V2beta2PodsMetricStatusBuilder( - V2beta2PodsMetricStatusFluent fluent, V2beta2PodsMetricStatus instance) { + public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatusFluent fluent,V2beta2PodsMetricStatus instance) { this(fluent, instance, false); } - - public V2beta2PodsMetricStatusBuilder( - V2beta2PodsMetricStatusFluent fluent, - V2beta2PodsMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatusFluent fluent,V2beta2PodsMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2beta2PodsMetricStatusBuilder( - V2beta2PodsMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2PodsMetricStatusFluent fluent; Boolean validationEnabled; - public V2beta2PodsMetricStatus build() { V2beta2PodsMetricStatus buildable = new V2beta2PodsMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java index 9bb1a1328b..7e33ff9476 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java @@ -1,89 +1,53 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2PodsMetricStatusFluent> - extends Fluent { - + /** + * Generated + */ +public interface V2beta2PodsMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent(); - public V2beta2MetricValueStatus buildCurrent(); - public A withCurrent(V2beta2MetricValueStatus current); - public Boolean hasCurrent(); - public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrent(); - - public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item); public V2beta2PodsMetricStatusFluent.CurrentNested editCurrent(); - public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item); + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric(); - public V2beta2MetricIdentifier buildMetric(); - public A withMetric(V2beta2MetricIdentifier metric); - public Boolean hasMetric(); - public V2beta2PodsMetricStatusFluent.MetricNested withNewMetric(); - - public V2beta2PodsMetricStatusFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item); - + public V2beta2PodsMetricStatusFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item); public V2beta2PodsMetricStatusFluent.MetricNested editMetric(); - public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetric(); - - public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item); - - public interface CurrentNested - extends Nested, - V2beta2MetricValueStatusFluent> { + public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item); + public interface CurrentNested extends Nested,V2beta2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } - - public interface MetricNested - extends Nested, - V2beta2MetricIdentifierFluent> { + public interface MetricNested extends Nested,V2beta2MetricIdentifierFluent>{ public N and(); - public N endMetric(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java index 36223a7b86..ae1e38ea7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java @@ -1,210 +1,146 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2PodsMetricStatusFluentImpl> - extends BaseFluent implements V2beta2PodsMetricStatusFluent { - public V2beta2PodsMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2PodsMetricStatusFluentImpl> extends BaseFluent implements V2beta2PodsMetricStatusFluent{ + public V2beta2PodsMetricStatusFluentImpl() { + } public V2beta2PodsMetricStatusFluentImpl(V2beta2PodsMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); - } + } private V2beta2MetricValueStatusBuilder current; private V2beta2MetricIdentifierBuilder metric; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2beta2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2beta2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2PodsMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item) { + public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item) { return new V2beta2PodsMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2beta2PodsMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2beta2MetricValueStatusBuilder().build()); } - - public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - + /** * This method has been deprecated, please use method buildMetric instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricIdentifier getMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public V2beta2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + return this.metric!=null ?this.metric.build():null; } - public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); - if (metric != null) { - this.metric = new V2beta2MetricIdentifierBuilder(metric); - _visitables.get("metric").add(this.metric); - } else { - this.metric = null; - _visitables.get("metric").remove(this.metric); - } - return (A) this; + if (metric!=null){ this.metric= new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric);} else { this.metric = null; _visitables.get("metric").remove(this.metric); } return (A) this; } - public Boolean hasMetric() { return this.metric != null; } - public V2beta2PodsMetricStatusFluent.MetricNested withNewMetric() { return new V2beta2PodsMetricStatusFluentImpl.MetricNestedImpl(); } - - public V2beta2PodsMetricStatusFluent.MetricNested withNewMetricLike( - V2beta2MetricIdentifier item) { + public V2beta2PodsMetricStatusFluent.MetricNested withNewMetricLike(V2beta2MetricIdentifier item) { return new V2beta2PodsMetricStatusFluentImpl.MetricNestedImpl(item); } - public V2beta2PodsMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetric() { - return withNewMetricLike( - getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); + return withNewMetricLike(getMetric() != null ? getMetric(): new V2beta2MetricIdentifierBuilder().build()); } - - public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetricLike( - V2beta2MetricIdentifier item) { - return withNewMetricLike(getMetric() != null ? getMetric() : item); + public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetricLike(V2beta2MetricIdentifier item) { + return withNewMetricLike(getMetric() != null ? getMetric(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2PodsMetricStatusFluentImpl that = (V2beta2PodsMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (metric != null ? !metric.equals(that.metric) : that.metric != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (metric != null ? !metric.equals(that.metric) :that.metric != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); + return java.util.Objects.hash(current, metric, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (metric != null) { - sb.append("metric:"); - sb.append(metric); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (metric != null) { sb.append("metric:"); sb.append(metric); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2beta2MetricValueStatusFluentImpl> - implements V2beta2PodsMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> implements V2beta2PodsMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2beta2MetricValueStatusBuilder(this); } - V2beta2MetricValueStatusBuilder builder; - public N and() { return (N) V2beta2PodsMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } - - class MetricNestedImpl - extends V2beta2MetricIdentifierFluentImpl> - implements V2beta2PodsMetricStatusFluent.MetricNested, Nested { + class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> implements V2beta2PodsMetricStatusFluent.MetricNested,Nested{ MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } - MetricNestedImpl() { this.builder = new V2beta2MetricIdentifierBuilder(this); } - V2beta2MetricIdentifierBuilder builder; - public N and() { return (N) V2beta2PodsMetricStatusFluentImpl.this.withMetric(builder.build()); } - public N endMetric() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java index e15c47e2bb..a4797fe0c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2ResourceMetricSourceBuilder - extends V2beta2ResourceMetricSourceFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2ResourceMetricSourceBuilder extends V2beta2ResourceMetricSourceFluentImpl implements VisitableBuilder{ public V2beta2ResourceMetricSourceBuilder() { this(false); } - public V2beta2ResourceMetricSourceBuilder(Boolean validationEnabled) { this(new V2beta2ResourceMetricSource(), validationEnabled); } - public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent) { this(fluent, false); } - - public V2beta2ResourceMetricSourceBuilder( - V2beta2ResourceMetricSourceFluent fluent, Boolean validationEnabled) { + public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ResourceMetricSource(), validationEnabled); } - - public V2beta2ResourceMetricSourceBuilder( - V2beta2ResourceMetricSourceFluent fluent, V2beta2ResourceMetricSource instance) { + public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent,V2beta2ResourceMetricSource instance) { this(fluent, instance, false); } - - public V2beta2ResourceMetricSourceBuilder( - V2beta2ResourceMetricSourceFluent fluent, - V2beta2ResourceMetricSource instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent,V2beta2ResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withName(instance.getName()); fluent.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSource instance) { - this(instance, false); + this(instance,false); } - - public V2beta2ResourceMetricSourceBuilder( - V2beta2ResourceMetricSource instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSource instance,Boolean validationEnabled) { + this.fluent = this; this.withName(instance.getName()); this.withTarget(instance.getTarget()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ResourceMetricSourceFluent fluent; Boolean validationEnabled; - public V2beta2ResourceMetricSource build() { V2beta2ResourceMetricSource buildable = new V2beta2ResourceMetricSource(); buildable.setName(fluent.getName()); buildable.setTarget(fluent.getTarget()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java index e866aecd19..b613813e81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java @@ -1,60 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface V2beta2ResourceMetricSourceFluent> - extends Fluent { + /** + * Generated + */ +public interface V2beta2ResourceMetricSourceFluent> extends Fluent{ public String getName(); - public A withName(String name); - public Boolean hasName(); - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget(); - public V2beta2MetricTarget buildTarget(); - public A withTarget(V2beta2MetricTarget target); - public Boolean hasTarget(); - public V2beta2ResourceMetricSourceFluent.TargetNested withNewTarget(); - - public V2beta2ResourceMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item); - + public V2beta2ResourceMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item); public V2beta2ResourceMetricSourceFluent.TargetNested editTarget(); - public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTarget(); - - public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item); - - public interface TargetNested - extends Nested, - V2beta2MetricTargetFluent> { + public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item); + public interface TargetNested extends Nested,V2beta2MetricTargetFluent>{ public N and(); - public N endTarget(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java index a3d5f268c9..d25fad78a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java @@ -1,148 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ResourceMetricSourceFluentImpl> - extends BaseFluent implements V2beta2ResourceMetricSourceFluent { - public V2beta2ResourceMetricSourceFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ResourceMetricSourceFluentImpl> extends BaseFluent implements V2beta2ResourceMetricSourceFluent{ + public V2beta2ResourceMetricSourceFluentImpl() { + } public V2beta2ResourceMetricSourceFluentImpl(V2beta2ResourceMetricSource instance) { this.withName(instance.getName()); this.withTarget(instance.getTarget()); - } + } private String name; private V2beta2MetricTargetBuilder target; - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - + /** * This method has been deprecated, please use method buildTarget instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricTarget getTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public V2beta2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + return this.target!=null ?this.target.build():null; } - public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); - if (target != null) { - this.target = new V2beta2MetricTargetBuilder(target); - _visitables.get("target").add(this.target); - } else { - this.target = null; - _visitables.get("target").remove(this.target); - } - return (A) this; + if (target!=null){ this.target= new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target);} else { this.target = null; _visitables.get("target").remove(this.target); } return (A) this; } - public Boolean hasTarget() { return this.target != null; } - public V2beta2ResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ResourceMetricSourceFluentImpl.TargetNestedImpl(); } - - public V2beta2ResourceMetricSourceFluent.TargetNested withNewTargetLike( - V2beta2MetricTarget item) { + public V2beta2ResourceMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item) { return new V2beta2ResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public V2beta2ResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTarget() { - return withNewTargetLike( - getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); + return withNewTargetLike(getTarget() != null ? getTarget(): new V2beta2MetricTargetBuilder().build()); } - - public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike( - V2beta2MetricTarget item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); + public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2beta2MetricTarget item) { + return withNewTargetLike(getTarget() != null ? getTarget(): item); } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2ResourceMetricSourceFluentImpl that = (V2beta2ResourceMetricSourceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; + if (target != null ? !target.equals(that.target) :that.target != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(name, target, super.hashCode()); + return java.util.Objects.hash(name, target, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (target != null) { sb.append("target:"); sb.append(target); } sb.append("}"); return sb.toString(); } - - class TargetNestedImpl - extends V2beta2MetricTargetFluentImpl> - implements V2beta2ResourceMetricSourceFluent.TargetNested, Nested { + class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> implements V2beta2ResourceMetricSourceFluent.TargetNested,Nested{ TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } - TargetNestedImpl() { this.builder = new V2beta2MetricTargetBuilder(this); } - V2beta2MetricTargetBuilder builder; - public N and() { return (N) V2beta2ResourceMetricSourceFluentImpl.this.withTarget(builder.build()); } - public N endTarget() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java index d09d15b20e..ef9dd76697 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java @@ -1,77 +1,49 @@ -/* -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.VisitableBuilder; - -public class V2beta2ResourceMetricStatusBuilder - extends V2beta2ResourceMetricStatusFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class V2beta2ResourceMetricStatusBuilder extends V2beta2ResourceMetricStatusFluentImpl implements VisitableBuilder{ public V2beta2ResourceMetricStatusBuilder() { this(false); } - public V2beta2ResourceMetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2ResourceMetricStatus(), validationEnabled); } - public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatusFluent fluent) { this(fluent, false); } - - public V2beta2ResourceMetricStatusBuilder( - V2beta2ResourceMetricStatusFluent fluent, Boolean validationEnabled) { + public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatusFluent fluent,Boolean validationEnabled) { this(fluent, new V2beta2ResourceMetricStatus(), validationEnabled); } - - public V2beta2ResourceMetricStatusBuilder( - V2beta2ResourceMetricStatusFluent fluent, V2beta2ResourceMetricStatus instance) { + public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatusFluent fluent,V2beta2ResourceMetricStatus instance) { this(fluent, instance, false); } - - public V2beta2ResourceMetricStatusBuilder( - V2beta2ResourceMetricStatusFluent fluent, - V2beta2ResourceMetricStatus instance, - Boolean validationEnabled) { - this.fluent = fluent; + public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatusFluent fluent,V2beta2ResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); fluent.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatus instance) { - this(instance, false); + this(instance,false); } - - public V2beta2ResourceMetricStatusBuilder( - V2beta2ResourceMetricStatus instance, Boolean validationEnabled) { - this.fluent = this; + public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatus instance,Boolean validationEnabled) { + this.fluent = this; this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - V2beta2ResourceMetricStatusFluent fluent; Boolean validationEnabled; - public V2beta2ResourceMetricStatus build() { V2beta2ResourceMetricStatus buildable = new V2beta2ResourceMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setName(fluent.getName()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java index f0c038a4e0..bf17a6eab6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java @@ -1,61 +1,37 @@ -/* -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 java.lang.Deprecated; import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta2ResourceMetricStatusFluent> - extends Fluent { - +import java.lang.String; +import java.lang.Boolean; + + /** + * Generated + */ +public interface V2beta2ResourceMetricStatusFluent> extends Fluent{ + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent(); - public V2beta2MetricValueStatus buildCurrent(); - public A withCurrent(V2beta2MetricValueStatus current); - public Boolean hasCurrent(); - public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrent(); - - public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item); public V2beta2ResourceMetricStatusFluent.CurrentNested editCurrent(); - public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - - public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item); - + public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item); public String getName(); - public A withName(String name); - public Boolean hasName(); - - public interface CurrentNested - extends Nested, - V2beta2MetricValueStatusFluent> { + public interface CurrentNested extends Nested,V2beta2MetricValueStatusFluent>{ public N and(); - public N endCurrent(); + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java index 25e7110b0c..b7387bc576 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java @@ -1,148 +1,105 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Deprecated; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta2ResourceMetricStatusFluentImpl> - extends BaseFluent implements V2beta2ResourceMetricStatusFluent { - public V2beta2ResourceMetricStatusFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class V2beta2ResourceMetricStatusFluentImpl> extends BaseFluent implements V2beta2ResourceMetricStatusFluent{ + public V2beta2ResourceMetricStatusFluentImpl() { + } public V2beta2ResourceMetricStatusFluentImpl(V2beta2ResourceMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); - } + } private V2beta2MetricValueStatusBuilder current; private String name; - + /** * This method has been deprecated, please use method buildCurrent instead. - * * @return The buildable object. */ @Deprecated public V2beta2MetricValueStatus getCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public V2beta2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + return this.current!=null ?this.current.build():null; } - public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); - if (current != null) { - this.current = new V2beta2MetricValueStatusBuilder(current); - _visitables.get("current").add(this.current); - } else { - this.current = null; - _visitables.get("current").remove(this.current); - } - return (A) this; + if (current!=null){ this.current= new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current);} else { this.current = null; _visitables.get("current").remove(this.current); } return (A) this; } - public Boolean hasCurrent() { return this.current != null; } - public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - - public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike( - V2beta2MetricValueStatus item) { + public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2beta2MetricValueStatus item) { return new V2beta2ResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public V2beta2ResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { - return withNewCurrentLike( - getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); + return withNewCurrentLike(getCurrent() != null ? getCurrent(): new V2beta2MetricValueStatusBuilder().build()); } - - public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( - V2beta2MetricValueStatus item) { - return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); + public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2beta2MetricValueStatus item) { + return withNewCurrentLike(getCurrent() != null ? getCurrent(): item); } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + this.name=name; return (A) this; } - public Boolean hasName() { return this.name != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V2beta2ResourceMetricStatusFluentImpl that = (V2beta2ResourceMetricStatusFluentImpl) o; - if (current != null ? !current.equals(that.current) : that.current != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (current != null ? !current.equals(that.current) :that.current != null) return false; + if (name != null ? !name.equals(that.name) :that.name != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash(current, name, super.hashCode()); + return java.util.Objects.hash(current, name, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { - sb.append("current:"); - sb.append(current + ","); - } - if (name != null) { - sb.append("name:"); - sb.append(name); - } + if (current != null) { sb.append("current:"); sb.append(current + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } sb.append("}"); return sb.toString(); } - - class CurrentNestedImpl - extends V2beta2MetricValueStatusFluentImpl> - implements V2beta2ResourceMetricStatusFluent.CurrentNested, Nested { + class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> implements V2beta2ResourceMetricStatusFluent.CurrentNested,Nested{ CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } - CurrentNestedImpl() { this.builder = new V2beta2MetricValueStatusBuilder(this); } - V2beta2MetricValueStatusBuilder builder; - public N and() { return (N) V2beta2ResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); } - public N endCurrent() { return and(); } + } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java index bf93a3ce1a..8ae7aefe75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java @@ -1,44 +1,25 @@ -/* -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.VisitableBuilder; - -public class VersionInfoBuilder extends VersionInfoFluentImpl - implements VisitableBuilder { +import java.lang.Boolean; +public class VersionInfoBuilder extends VersionInfoFluentImpl implements VisitableBuilder{ public VersionInfoBuilder() { this(false); } - public VersionInfoBuilder(Boolean validationEnabled) { this(new VersionInfo(), validationEnabled); } - public VersionInfoBuilder(VersionInfoFluent fluent) { this(fluent, false); } - - public VersionInfoBuilder(VersionInfoFluent fluent, Boolean validationEnabled) { + public VersionInfoBuilder(VersionInfoFluent fluent,Boolean validationEnabled) { this(fluent, new VersionInfo(), validationEnabled); } - - public VersionInfoBuilder(VersionInfoFluent fluent, VersionInfo instance) { + public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance) { this(fluent, instance, false); } - - public VersionInfoBuilder( - VersionInfoFluent fluent, VersionInfo instance, Boolean validationEnabled) { - this.fluent = fluent; + public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance,Boolean validationEnabled) { + this.fluent = fluent; fluent.withBuildDate(instance.getBuildDate()); fluent.withCompiler(instance.getCompiler()); @@ -57,15 +38,13 @@ public VersionInfoBuilder( fluent.withPlatform(instance.getPlatform()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - public VersionInfoBuilder(VersionInfo instance) { - this(instance, false); + this(instance,false); } - - public VersionInfoBuilder(VersionInfo instance, Boolean validationEnabled) { - this.fluent = this; + public VersionInfoBuilder(VersionInfo instance,Boolean validationEnabled) { + this.fluent = this; this.withBuildDate(instance.getBuildDate()); this.withCompiler(instance.getCompiler()); @@ -84,12 +63,10 @@ public VersionInfoBuilder(VersionInfo instance, Boolean validationEnabled) { this.withPlatform(instance.getPlatform()); - this.validationEnabled = validationEnabled; + this.validationEnabled = validationEnabled; } - VersionInfoFluent fluent; Boolean validationEnabled; - public VersionInfo build() { VersionInfo buildable = new VersionInfo(); buildable.setBuildDate(fluent.getBuildDate()); @@ -103,4 +80,5 @@ public VersionInfo build() { buildable.setPlatform(fluent.getPlatform()); return buildable; } -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java index 909dd51c38..8c9eec8ba6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java @@ -1,72 +1,39 @@ -/* -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.Fluent; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -public interface VersionInfoFluent> extends Fluent { + /** + * Generated + */ +public interface VersionInfoFluent> extends Fluent{ public String getBuildDate(); - public A withBuildDate(String buildDate); - public Boolean hasBuildDate(); - public String getCompiler(); - public A withCompiler(String compiler); - public Boolean hasCompiler(); - public String getGitCommit(); - public A withGitCommit(String gitCommit); - public Boolean hasGitCommit(); - public String getGitTreeState(); - public A withGitTreeState(String gitTreeState); - public Boolean hasGitTreeState(); - public String getGitVersion(); - public A withGitVersion(String gitVersion); - public Boolean hasGitVersion(); - public String getGoVersion(); - public A withGoVersion(String goVersion); - public Boolean hasGoVersion(); - public String getMajor(); - public A withMajor(String major); - public Boolean hasMajor(); - public String getMinor(); - public A withMinor(String minor); - public Boolean hasMinor(); - public String getPlatform(); - public A withPlatform(String platform); - public Boolean hasPlatform(); -} + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java index d7e2d57b73..d6e938c8ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java @@ -1,25 +1,18 @@ -/* -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 java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class VersionInfoFluentImpl> extends BaseFluent - implements VersionInfoFluent { - public VersionInfoFluentImpl() {} - + /** + * Generated + */ + @SuppressWarnings(value = "unchecked") + public class VersionInfoFluentImpl> extends BaseFluent implements VersionInfoFluent{ + public VersionInfoFluentImpl() { + } public VersionInfoFluentImpl(VersionInfo instance) { this.withBuildDate(instance.getBuildDate()); @@ -38,8 +31,8 @@ public VersionInfoFluentImpl(VersionInfo instance) { this.withMinor(instance.getMinor()); this.withPlatform(instance.getPlatform()); - } + } private String buildDate; private String compiler; private String gitCommit; @@ -49,199 +42,119 @@ public VersionInfoFluentImpl(VersionInfo instance) { private String major; private String minor; private String platform; - public String getBuildDate() { return this.buildDate; } - public A withBuildDate(String buildDate) { - this.buildDate = buildDate; - return (A) this; + this.buildDate=buildDate; return (A) this; } - public Boolean hasBuildDate() { return this.buildDate != null; } - public String getCompiler() { return this.compiler; } - public A withCompiler(String compiler) { - this.compiler = compiler; - return (A) this; + this.compiler=compiler; return (A) this; } - public Boolean hasCompiler() { return this.compiler != null; } - public String getGitCommit() { return this.gitCommit; } - public A withGitCommit(String gitCommit) { - this.gitCommit = gitCommit; - return (A) this; + this.gitCommit=gitCommit; return (A) this; } - public Boolean hasGitCommit() { return this.gitCommit != null; } - public String getGitTreeState() { return this.gitTreeState; } - public A withGitTreeState(String gitTreeState) { - this.gitTreeState = gitTreeState; - return (A) this; + this.gitTreeState=gitTreeState; return (A) this; } - public Boolean hasGitTreeState() { return this.gitTreeState != null; } - public String getGitVersion() { return this.gitVersion; } - public A withGitVersion(String gitVersion) { - this.gitVersion = gitVersion; - return (A) this; + this.gitVersion=gitVersion; return (A) this; } - public Boolean hasGitVersion() { return this.gitVersion != null; } - public String getGoVersion() { return this.goVersion; } - public A withGoVersion(String goVersion) { - this.goVersion = goVersion; - return (A) this; + this.goVersion=goVersion; return (A) this; } - public Boolean hasGoVersion() { return this.goVersion != null; } - public String getMajor() { return this.major; } - public A withMajor(String major) { - this.major = major; - return (A) this; + this.major=major; return (A) this; } - public Boolean hasMajor() { return this.major != null; } - public String getMinor() { return this.minor; } - public A withMinor(String minor) { - this.minor = minor; - return (A) this; + this.minor=minor; return (A) this; } - public Boolean hasMinor() { return this.minor != null; } - public String getPlatform() { return this.platform; } - public A withPlatform(String platform) { - this.platform = platform; - return (A) this; + this.platform=platform; return (A) this; } - public Boolean hasPlatform() { return this.platform != null; } - public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VersionInfoFluentImpl that = (VersionInfoFluentImpl) o; - if (buildDate != null ? !buildDate.equals(that.buildDate) : that.buildDate != null) - return false; - if (compiler != null ? !compiler.equals(that.compiler) : that.compiler != null) return false; - if (gitCommit != null ? !gitCommit.equals(that.gitCommit) : that.gitCommit != null) - return false; - if (gitTreeState != null ? !gitTreeState.equals(that.gitTreeState) : that.gitTreeState != null) - return false; - if (gitVersion != null ? !gitVersion.equals(that.gitVersion) : that.gitVersion != null) - return false; - if (goVersion != null ? !goVersion.equals(that.goVersion) : that.goVersion != null) - return false; - if (major != null ? !major.equals(that.major) : that.major != null) return false; - if (minor != null ? !minor.equals(that.minor) : that.minor != null) return false; - if (platform != null ? !platform.equals(that.platform) : that.platform != null) return false; + if (buildDate != null ? !buildDate.equals(that.buildDate) :that.buildDate != null) return false; + if (compiler != null ? !compiler.equals(that.compiler) :that.compiler != null) return false; + if (gitCommit != null ? !gitCommit.equals(that.gitCommit) :that.gitCommit != null) return false; + if (gitTreeState != null ? !gitTreeState.equals(that.gitTreeState) :that.gitTreeState != null) return false; + if (gitVersion != null ? !gitVersion.equals(that.gitVersion) :that.gitVersion != null) return false; + if (goVersion != null ? !goVersion.equals(that.goVersion) :that.goVersion != null) return false; + if (major != null ? !major.equals(that.major) :that.major != null) return false; + if (minor != null ? !minor.equals(that.minor) :that.minor != null) return false; + if (platform != null ? !platform.equals(that.platform) :that.platform != null) return false; return true; } - public int hashCode() { - return java.util.Objects.hash( - buildDate, - compiler, - gitCommit, - gitTreeState, - gitVersion, - goVersion, - major, - minor, - platform, - super.hashCode()); + return java.util.Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform, super.hashCode()); } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (buildDate != null) { - sb.append("buildDate:"); - sb.append(buildDate + ","); - } - if (compiler != null) { - sb.append("compiler:"); - sb.append(compiler + ","); - } - if (gitCommit != null) { - sb.append("gitCommit:"); - sb.append(gitCommit + ","); - } - if (gitTreeState != null) { - sb.append("gitTreeState:"); - sb.append(gitTreeState + ","); - } - if (gitVersion != null) { - sb.append("gitVersion:"); - sb.append(gitVersion + ","); - } - if (goVersion != null) { - sb.append("goVersion:"); - sb.append(goVersion + ","); - } - if (major != null) { - sb.append("major:"); - sb.append(major + ","); - } - if (minor != null) { - sb.append("minor:"); - sb.append(minor + ","); - } - if (platform != null) { - sb.append("platform:"); - sb.append(platform); - } + if (buildDate != null) { sb.append("buildDate:"); sb.append(buildDate + ","); } + if (compiler != null) { sb.append("compiler:"); sb.append(compiler + ","); } + if (gitCommit != null) { sb.append("gitCommit:"); sb.append(gitCommit + ","); } + if (gitTreeState != null) { sb.append("gitTreeState:"); sb.append(gitTreeState + ","); } + if (gitVersion != null) { sb.append("gitVersion:"); sb.append(gitVersion + ","); } + if (goVersion != null) { sb.append("goVersion:"); sb.append(goVersion + ","); } + if (major != null) { sb.append("major:"); sb.append(major + ","); } + if (minor != null) { sb.append("minor:"); sb.append(minor + ","); } + if (platform != null) { sb.append("platform:"); sb.append(platform); } sb.append("}"); return sb.toString(); } -} + +} \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 index 841c7ba04f..d2d88aace1 100644 --- a/kubernetes/.openapi-generator/swagger.json.sha256 +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -1 +1 @@ -7a4590b0c2c613044c378952057099c7100d90de265390d79d32110aef635b73 \ No newline at end of file +f299852ea6ccfdb828385b50db3aeea85c147983785f4c0540c76a8c9d78067e \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index da3e0d0e81..38b83bc801 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -55424,6 +55424,36 @@ paths: tags: - version x-accepts: application/json + /apis/{group}/{version}: + get: + description: get available resources + operationId: getAPIResources + parameters: + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json /apis/{group}/{version}/{plural}: delete: description: Delete collection of cluster scoped custom objects diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index 3cc2fcfe95..e52247f096 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**deleteCollectionClusterCustomObject**](CustomObjectsApi.md#deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | [**deleteCollectionNamespacedCustomObject**](CustomObjectsApi.md#deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | [**deleteNamespacedCustomObject**](CustomObjectsApi.md#deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**getAPIResources**](CustomObjectsApi.md#getAPIResources) | **GET** /apis/{group}/{version} | [**getClusterCustomObject**](CustomObjectsApi.md#getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | [**getClusterCustomObjectScale**](CustomObjectsApi.md#getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | [**getClusterCustomObjectStatus**](CustomObjectsApi.md#getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | @@ -546,6 +547,78 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | + +# **getAPIResources** +> V1APIResourceList getAPIResources(group, version) + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | The custom resource's group name + String version = "version_example"; // String | The custom resource's version + try { + V1APIResourceList result = apiInstance.getAPIResources(group, version); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group** | **String**| The custom resource's group name | + **version** | **String**| The custom resource's version | + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getClusterCustomObject** > Object getClusterCustomObject(group, version, plural, name) diff --git a/kubernetes/docs/V1CrossVersionObjectReference.md b/kubernetes/docs/V1CrossVersionObjectReference.md index 3bf33ca992..36c060c70a 100644 --- a/kubernetes/docs/V1CrossVersionObjectReference.md +++ b/kubernetes/docs/V1CrossVersionObjectReference.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent | [optional] **kind** | **String** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | -**name** | **String** | Name of the referent; More info: https://kubernetes.io/docs/user-guide/identifiers#names | +**name** | **String** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index 121fcb6fbf..54fd16a102 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -7,21 +7,21 @@ ObjectMeta is metadata that all persisted resources must have, which includes al Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **Map<String, String>** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations | [optional] +**annotations** | **Map<String, String>** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **creationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **deletionGracePeriodSeconds** | **Long** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletionTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **List<String>** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. | [optional] **generateName** | **String** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **Long** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**labels** | **Map<String, String>** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/user-guide/labels | [optional] +**labels** | **Map<String, String>** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **managedFields** | [**List<V1ManagedFieldsEntry>**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] -**name** | **String** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**namespace** | **String** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/user-guide/namespaces | [optional] +**name** | **String** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**namespace** | **String** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] **ownerReferences** | [**List<V1OwnerReference>**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] **resourceVersion** | **String** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] **selfLink** | **String** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] -**uid** | **String** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/user-guide/identifiers#uids | [optional] +**uid** | **String** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] diff --git a/kubernetes/docs/V2CrossVersionObjectReference.md b/kubernetes/docs/V2CrossVersionObjectReference.md index f6e57d9132..6e77843dc9 100644 --- a/kubernetes/docs/V2CrossVersionObjectReference.md +++ b/kubernetes/docs/V2CrossVersionObjectReference.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent | [optional] **kind** | **String** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | -**name** | **String** | Name of the referent; More info: https://kubernetes.io/docs/user-guide/identifiers#names | +**name** | **String** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | diff --git a/kubernetes/docs/V2beta2CrossVersionObjectReference.md b/kubernetes/docs/V2beta2CrossVersionObjectReference.md index 4d145ca672..8c64cd5f41 100644 --- a/kubernetes/docs/V2beta2CrossVersionObjectReference.md +++ b/kubernetes/docs/V2beta2CrossVersionObjectReference.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent | [optional] **kind** | **String** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | -**name** | **String** | Name of the referent; More info: https://kubernetes.io/docs/user-guide/identifiers#names | +**name** | **String** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | diff --git a/kubernetes/pom.xml b/kubernetes/pom.xml index 6a4af999eb..ca20d7ca6d 100644 --- a/kubernetes/pom.xml +++ b/kubernetes/pom.xml @@ -13,7 +13,7 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java index bb3be5065d..c6b3bd10b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -103,7 +103,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/16.0.0-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/17.0.0-SNAPSHOT"); authentications = new HashMap(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java index a7a22a24a2..af7002102f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -17,7 +17,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java index a6a1adf220..6951308d12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java index bae06c68e8..02cb22e0f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index 3ac6d24ddb..1f7f621420 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java index da96c5efe1..08eab4cf7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java @@ -19,6 +19,7 @@ import io.kubernetes.client.openapi.ApiResponse; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.models.V1APIResourceList; import io.kubernetes.client.openapi.models.V1DeleteOptions; import java.lang.reflect.Type; import java.util.ArrayList; @@ -1990,6 +1991,149 @@ public okhttp3.Call deleteNamespacedCustomObjectAsync( localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getAPIResources + * + * @param group The custom resource's group name (required) + * @param version The custom resource's version (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(String group, String version, final ApiCallback _callback) + throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/apis/{group}/{version}" + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll( + "\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] {"BearerToken"}; + return localVarApiClient.buildCall( + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall( + String group, String version, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'group' is set + if (group == null) { + throw new ApiException( + "Missing the required parameter 'group' when calling getAPIResources(Async)"); + } + + // verify the required parameter 'version' is set + if (version == null) { + throw new ApiException( + "Missing the required parameter 'version' when calling getAPIResources(Async)"); + } + + okhttp3.Call localVarCall = getAPIResourcesCall(group, version, _callback); + return localVarCall; + } + + /** + * get available resources + * + * @param group The custom resource's group name (required) + * @param version The custom resource's version (required) + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources(String group, String version) throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(group, version); + return localVarResp.getData(); + } + + /** + * get available resources + * + * @param group The custom resource's group name (required) + * @param version The custom resource's version (required) + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo(String group, String version) + throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(group, version, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get available resources + * + * @param group The custom resource's group name (required) + * @param version The custom resource's version (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync( + String group, String version, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(group, version, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getClusterCustomObject * diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java index 90a360085e..ea5d5e4497 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 82fafc6149..2c98b6ee36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index 51fb9d4dc0..6bcc904858 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java index 90dd3d508a..8d22bbb1ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java index f5cd5910db..5f82d0a006 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java index c2fc281984..ed00fc4c3a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java index afe6f3518e..25238e8d46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java index f5589da902..59a43765ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java @@ -21,7 +21,7 @@ @ApiModel(description = "TokenRequest requests a token for a given service account.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java index 30abd2895e..e6229fd351 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointPort is a tuple that describes a single port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java index debf7fd77a..2595e63edf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java @@ -30,7 +30,7 @@ "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java index 29aefa8a67..4a9c791955 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of events.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java index 096cc8df78..c8371e2483 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java @@ -27,7 +27,7 @@ "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java index 9088804374..f10c196621 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java index b03267b6e5..4b75d0ed93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java @@ -30,7 +30,7 @@ "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java index 33757f2077..58b695acc9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of Event objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java index f03b04bfa9..e87e01ed32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java @@ -29,7 +29,7 @@ "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java index ce73a32dab..733ee55604 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java @@ -21,7 +21,7 @@ @ApiModel(description = "TokenRequest contains parameters of a service account token.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java index e393957f12..c79ed5dcad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java @@ -25,7 +25,7 @@ "APIGroup contains the name, the supported versions, and the preferred version of a group.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java index 07cfda51a3..e0918f7c26 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -25,7 +25,7 @@ "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java index e8463e19db..2e15755fd8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java @@ -24,7 +24,7 @@ description = "APIResource specifies the name of a resource and whether it is namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java index 65bd701916..7ce5cb26e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java @@ -28,7 +28,7 @@ "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java index cd95c5575d..612858dc6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java @@ -26,7 +26,7 @@ "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java index 308642fd9d..5ddaf058a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java @@ -23,7 +23,7 @@ description = "APIServiceCondition describes the state of an APIService at a particular point") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java index 021713e0dd..3bd52ddb1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceList is a list of APIService objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java index 421d248e92..59348ff138 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java @@ -27,7 +27,7 @@ "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java index 1aec58c747..7f62f257e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceStatus contains derived information about an API server") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java index d3376e2a85..72e1c3849c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java @@ -28,7 +28,7 @@ "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java index a74d0f7c83..6eb47274fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java @@ -27,7 +27,7 @@ "Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java index 8be3328010..0f747c9bcb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java @@ -21,7 +21,7 @@ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java index fa8a037f1f..96b67628fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java @@ -25,7 +25,7 @@ "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java index a268aef575..7b885170d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java @@ -21,7 +21,7 @@ @ApiModel(description = "AttachedVolume describes a volume attached to a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java index 63b42fc71e..9061a63efc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java @@ -23,7 +23,7 @@ "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java index 5181403e65..07ec801a4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java @@ -23,7 +23,7 @@ "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java index 8fdb9d0d3c..4fbc351ae1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java @@ -23,7 +23,7 @@ "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java index 60baab4c6b..2e541f78f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java @@ -26,7 +26,7 @@ "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java index 5cfa2e1a2b..b4f95afe10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java @@ -22,7 +22,7 @@ description = "BoundObjectReference is a reference to an object that a token is bound to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java index 1f06ff7834..a24f66c59f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java @@ -28,7 +28,7 @@ "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java index f8004bfd67..5870557fc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java index bd7cdd66ad..b861d1356e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java index c28607837b..b48bc8b40a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java @@ -31,7 +31,7 @@ "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java index 2b87324acb..81e8651997 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java @@ -25,7 +25,7 @@ "CSINodeDriver holds information about the specification of one CSI driver installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java index 81145202d1..533554ceb2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java @@ -23,7 +23,7 @@ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java index f1824a051c..0752ed4d8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java @@ -25,7 +25,7 @@ "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java index 03bb1edf80..338d8f1c0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java @@ -25,7 +25,7 @@ "Represents storage that is managed by an external CSI volume driver (Beta feature)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java index 358b1f1536..fb7ffc6501 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java @@ -40,7 +40,7 @@ "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java index 3c8f7c40d9..556ba5a4fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java @@ -23,7 +23,7 @@ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java index 604d777306..486e28dee8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java @@ -25,7 +25,7 @@ "Represents a source location of a volume to mount, managed by an external CSI driver") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java index 10ff7f81fd..35886f8ef0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java @@ -23,7 +23,7 @@ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java index db0f8eb9ba..f5ac490977 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java @@ -28,7 +28,7 @@ "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java index 35946f8bb1..57d1f0894d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java @@ -28,7 +28,7 @@ "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java index 58e2750db3..391b4c0e5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -33,7 +33,7 @@ "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java index c2b3ba8bce..fa8100b400 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java @@ -26,7 +26,7 @@ "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java index c9446d4ae9..c3a28ae588 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java @@ -25,7 +25,7 @@ "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java index 2674b0e048..3ae2eda323 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java @@ -26,7 +26,7 @@ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java index 31778ee8a4..c48e43283e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java @@ -29,7 +29,7 @@ "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java index 5222a7939d..46ded5305f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java @@ -27,7 +27,7 @@ "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java index 2fa4d66698..19edbef736 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java @@ -27,7 +27,7 @@ "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java index 828ec5af44..977f241672 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java @@ -23,7 +23,7 @@ "ClientIPConfig represents the configurations of Client IP based session affinity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java index 24fe94e357..d874a2c868 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java @@ -28,7 +28,7 @@ "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java index 00d1e39da4..ce09310efb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java @@ -28,7 +28,7 @@ "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java index f9c8c7388b..2a4a07eddc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java index 6175a581f9..f4151ed8f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java index 3dd49b725a..cd35dbefa6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java @@ -21,7 +21,7 @@ @ApiModel(description = "Information about the condition of a component.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java index 9b5b8792d6..03dca51749 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java @@ -28,7 +28,7 @@ "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java index ddc438ef1c..50a7284155 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java @@ -28,7 +28,7 @@ "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java index 54b6053c23..470145362b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java @@ -24,7 +24,7 @@ "Condition contains details for one aspect of the current state of this API Resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java index efcd7e1279..acf3ae37b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java @@ -23,7 +23,7 @@ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java index 9053011662..63e53afc13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java @@ -27,7 +27,7 @@ "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java index 4b5148eb2d..8cd2ee6406 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java @@ -21,7 +21,7 @@ @ApiModel(description = "Selects a key from a ConfigMap.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java index 726666935f..a99d0b270f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java index cf8a726ca1..1ed5193c18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java @@ -27,7 +27,7 @@ "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java index b8ddda092e..d87c80fc44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java @@ -30,7 +30,7 @@ "Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java index 4cf73cf75c..9a1b75c3ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java @@ -30,7 +30,7 @@ "Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java index 7aab2a9ef2..a439e29314 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java @@ -23,7 +23,7 @@ @ApiModel(description = "A single application container that you want to run within a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java index 2d8e40556f..a160505d67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java @@ -23,7 +23,7 @@ @ApiModel(description = "Describe a container image") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java index 4b7e67d482..ff7f6357c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java @@ -21,7 +21,7 @@ @ApiModel(description = "ContainerPort represents a network port in a single container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java index c3fa49f8f2..4adef0cb7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java @@ -26,7 +26,7 @@ "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java index a5c5660f2c..01b1674bd8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java @@ -22,7 +22,7 @@ @ApiModel(description = "ContainerStateRunning is a running state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java index 562b113568..39d0fa4b09 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java @@ -22,7 +22,7 @@ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java index 0196831b91..11463a8686 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java @@ -21,7 +21,7 @@ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java index 851ba2a7f2..58082ce31d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java @@ -22,7 +22,7 @@ description = "ContainerStatus contains details for the current status of this container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ContainerStatus { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java index cb2fe64b0f..d3eb485e11 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java @@ -32,7 +32,7 @@ "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java index 6c59b41692..9fb47c27fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java @@ -25,7 +25,7 @@ "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java index e5a5263cbc..a22613142d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java @@ -21,7 +21,7 @@ @ApiModel(description = "CronJob represents the configuration of a single cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java index b202a9abb0..a0d6a51cf2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java @@ -23,7 +23,7 @@ @ApiModel(description = "CronJobList is a collection of cron jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java index 07f33d8b28..eb13d21e38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -23,7 +23,7 @@ "CronJobSpec describes how the job execution will look like and when it will actually run.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java index 5edf5f2355..b1de0125fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java @@ -24,7 +24,7 @@ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java index c89cf75cb0..325b65a3eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java index 0939d155c9..e0813e182f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java @@ -22,7 +22,7 @@ description = "CustomResourceColumnDefinition specifies a column for server side printing.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java index bc5cb09207..10e38d3caa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java @@ -22,7 +22,7 @@ description = "CustomResourceConversion describes how to convert different versions of a CR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java index 37cb02cc94..6dceba7e61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java @@ -26,7 +26,7 @@ "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java index 2b8d1e1ecd..171a1d647e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java @@ -24,7 +24,7 @@ "CustomResourceDefinitionCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java index 3a8e10a766..b26e4ab659 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java @@ -24,7 +24,7 @@ description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java index 572daca7f8..d8594bd8a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java @@ -25,7 +25,7 @@ "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java index b74de5955b..9e0b6db74c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java @@ -25,7 +25,7 @@ "CustomResourceDefinitionSpec describes how a user wants their resource to appear") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java index 62dba41975..b1ca937ef8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java @@ -25,7 +25,7 @@ "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java index 2eec980a14..f9a11b73e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java @@ -23,7 +23,7 @@ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java index 327ed2216d..9bd6b8a86e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java @@ -25,7 +25,7 @@ "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java index fdf4e60d05..aea34dfe10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java @@ -23,7 +23,7 @@ "CustomResourceSubresources defines the status and scale subresources for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java index 2b71bcde61..2c6aa9470e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java @@ -22,7 +22,7 @@ description = "CustomResourceValidation is a list of validation methods for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java index 14081682e6..e4b325a50e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java index 4f678a46e5..4ebeba2235 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java index ffb8ae1393..8e299420c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java index cf8bf1cd40..ca1eaad21f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java @@ -23,7 +23,7 @@ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java index 4584b0b614..0352d29ec9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java index 1f178f4952..5f64c6216c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java index fa18e7a963..ca034d13d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java @@ -23,7 +23,7 @@ "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java index 68406b21d7..7031308cbe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java @@ -23,7 +23,7 @@ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java index f60830adee..ec7cafc7f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java @@ -21,7 +21,7 @@ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java index d0862741a7..246f31e987 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java @@ -23,7 +23,7 @@ description = "DeploymentCondition describes the state of a deployment at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java index ccc51984c8..a4473f91b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java @@ -23,7 +23,7 @@ @ApiModel(description = "DeploymentList is a list of Deployments.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java index 3fbf3559bf..27aa844f58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java @@ -22,7 +22,7 @@ description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java index 8ce5338bf5..1637dbe6b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java index 8163f31052..f5f5de172b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java @@ -21,7 +21,7 @@ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java index 3a1c6ae9eb..a0f501be1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java @@ -28,7 +28,7 @@ "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java index cdbd9a3921..032ab8fb75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java @@ -23,7 +23,7 @@ "DownwardAPIVolumeFile represents information to create the file containing the pod field") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java index 659c9473e7..0a5dc5a242 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -28,7 +28,7 @@ "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java index a867de68c9..707968944b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java @@ -27,7 +27,7 @@ "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java index ffd79036d6..63d77dd497 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java @@ -25,7 +25,7 @@ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java index 9e7d208b15..ff5b631070 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java index 7c44db3c98..3dc03a37a9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java index 2bb87ca4b0..82b9f7e24d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java @@ -24,7 +24,7 @@ description = "EndpointHints provides hints describing how an endpoint should be consumed.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java index 76efeec22d..6ae90e7413 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java @@ -29,7 +29,7 @@ "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java index 3b2a501fc8..e0d93887af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java @@ -23,7 +23,7 @@ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java index c4720710fe..2c63bd33e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java @@ -32,7 +32,7 @@ "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java index c3cc436451..94ed18524b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java @@ -33,7 +33,7 @@ "Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ]") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java index ef13febfe6..27e623136c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java @@ -23,7 +23,7 @@ @ApiModel(description = "EndpointsList is a list of endpoints.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java index 3e84ae63af..05ec1f26e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java index 38cea718a2..b2ababa3da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java @@ -21,7 +21,7 @@ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index b22c613065..acc05d357a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java index bae04a1f2a..380ebcbd68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java @@ -32,7 +32,7 @@ "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java index 4bccd34680..7034cfba25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java @@ -22,7 +22,7 @@ description = "Represents an ephemeral volume that is handled by a normal storage driver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java index bd36e1d887..13912b2c31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "EventSource contains information for an event.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java index a72bdc52ce..dce5a902a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java @@ -27,7 +27,7 @@ "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java index 2bbe57b1ef..e839ebdde2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java @@ -23,7 +23,7 @@ @ApiModel(description = "ExecAction describes a \"run in container\" action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java index dabaf4d30f..4fa15cc018 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java @@ -23,7 +23,7 @@ "ExternalDocumentation allows referencing an external resource for extended documentation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java index 3b17fe94b2..60a5634faf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java @@ -28,7 +28,7 @@ "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java index 843e0fbffe..380c15c9b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java @@ -28,7 +28,7 @@ "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java index 7898d08238..7bb94b4127 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java @@ -28,7 +28,7 @@ "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java index a92c7dda40..96335b3cd0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -27,7 +27,7 @@ "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java index b01c6d8bd9..972a3f35c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java @@ -22,7 +22,7 @@ description = "ForZone provides information about which zones should consume this endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java index 8174d876b9..9a1116f87c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java @@ -28,7 +28,7 @@ "Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java index c9332baec4..961d78b33e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java @@ -19,7 +19,7 @@ /** V1GRPCAction */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java index 923ce3aaab..038cfe9dcc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java @@ -29,7 +29,7 @@ "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java index f6d0a85dd7..702f9de2e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java @@ -26,7 +26,7 @@ "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java index f08af8ca5c..f19f4d1e30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java @@ -26,7 +26,7 @@ "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java index 2bf92fceb7..2a3b72167f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java @@ -26,7 +26,7 @@ "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java index 1022c220ba..24bb524fb1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java @@ -24,7 +24,7 @@ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java index 15c32d3a70..02b1019bb0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java @@ -21,7 +21,7 @@ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java index 16aef59fb2..153d56fdc6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java @@ -26,7 +26,7 @@ "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java index 184a637021..e53dfe2c76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java @@ -30,7 +30,7 @@ "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java index 4f2a0a696f..8626e440c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java @@ -21,7 +21,7 @@ @ApiModel(description = "configuration of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java index 8ca87796ad..acfc051d62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java @@ -23,7 +23,7 @@ @ApiModel(description = "list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java index 19d7b6d4a3..b9c9cbc009 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "specification of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java index 2b46ecc930..ccc7813b9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java @@ -22,7 +22,7 @@ @ApiModel(description = "current status of a horizontal pod autoscaler") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java index 93727fc89a..eafa5b99d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java @@ -28,7 +28,7 @@ "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java index d524bbeed5..e8dc327f70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java @@ -26,7 +26,7 @@ "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java index 38eef4f6e3..a46321b6a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java @@ -30,7 +30,7 @@ "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java index ef9ffd89c2..343a358c23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java @@ -28,7 +28,7 @@ "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java index 9f43f15763..e596daa14b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java @@ -28,7 +28,7 @@ "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java index cbf431323e..8c46d8f41a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java @@ -27,7 +27,7 @@ "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java index 0d8d6d38ae..df88e2d3d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java @@ -21,7 +21,7 @@ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java index ac4ba2b7d5..be146a0c6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -29,7 +29,7 @@ "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java index 6597fc7363..67996f7c03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java @@ -23,7 +23,7 @@ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java index dab1f34c94..44042126e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java @@ -26,7 +26,7 @@ "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java index 5fbede0735..240c6d44ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java index ed1e8e860d..ce8e2ec08d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java @@ -23,7 +23,7 @@ @ApiModel(description = "IngressList is a collection of Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java index 94aa3b6f35..623a065219 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java @@ -27,7 +27,7 @@ "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java index 403eabc236..1ae92f360a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java @@ -21,7 +21,7 @@ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java index c273caab8d..a028af9c04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java index cfde2e4e85..bd14da3177 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java index 4d85c16a48..b2210480d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java @@ -24,7 +24,7 @@ description = "IngressTLS describes the transport layer security associated with an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java index f416230da8..4a6ee48d5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java @@ -27,7 +27,7 @@ "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java index ca9c2fbff0..dac76abcb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java @@ -21,7 +21,7 @@ @ApiModel(description = "Job represents the configuration of a single job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java index 9fd8e36abb..99e43999fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "JobCondition describes current state of a job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java index 97c73b0148..6497c971bc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java @@ -23,7 +23,7 @@ @ApiModel(description = "JobList is a collection of jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java index df0d3d4ca1..f84d5e0acf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "JobSpec describes how the job execution will look like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java index b02d705273..6495f24a63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java @@ -24,7 +24,7 @@ @ApiModel(description = "JobStatus represents the current state of a Job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java index c00af18459..da39e5a706 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java @@ -23,7 +23,7 @@ "JobTemplateSpec describes the data a Job should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java index b90970a238..9bba055b5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java @@ -21,7 +21,7 @@ @ApiModel(description = "Maps a string key to a path within a volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java index ccaa7b862f..fddff8130b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java @@ -31,7 +31,7 @@ "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java index f5a39b5f86..241bb8a787 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java @@ -28,7 +28,7 @@ "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java index 2372ba551f..42c8cf04ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java @@ -21,7 +21,7 @@ @ApiModel(description = "Lease defines a lease concept.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java index f5f46ade6f..2b37561f07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java @@ -23,7 +23,7 @@ @ApiModel(description = "LeaseList is a list of Lease objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java index 82a87bc9ce..dfbd7dde3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java @@ -22,7 +22,7 @@ @ApiModel(description = "LeaseSpec is a specification of a Lease.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java index ab26eca268..22816e8006 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java @@ -28,7 +28,7 @@ "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java index 39b8b6d544..ada1cddbdf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java @@ -26,7 +26,7 @@ "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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java index 4dd7e58e1d..0c9edf0dc4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java @@ -22,7 +22,7 @@ description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java index 369f7b4295..34fb7a95a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java @@ -26,7 +26,7 @@ "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java index 3533fbb13d..666d0019db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java @@ -23,7 +23,7 @@ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java index e99d4cbd1e..1a0d9f5ca8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java @@ -24,7 +24,7 @@ description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java index f10da200e9..779ab03281 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java @@ -26,7 +26,7 @@ "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java index 0c5ac01bb6..84c9bc2b76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java @@ -28,7 +28,7 @@ "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java index ade82b90d0..3c2d69be33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java index 6963aa3633..79ec98078a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java @@ -26,7 +26,7 @@ "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java index cba70d14a9..ece62a3c8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java @@ -27,7 +27,7 @@ "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java index 7473b72d88..5333e8b240 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java @@ -22,7 +22,7 @@ description = "Local represents directly-attached storage with node affinity (Beta feature)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java index 028dd9890e..91fc63fe74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java @@ -27,7 +27,7 @@ "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java index 17b04421bb..421e306b3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java @@ -27,7 +27,7 @@ "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java index 6ea706fe88..8ac6539e48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java @@ -28,7 +28,7 @@ "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java index a6f578c901..24a1f5d654 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java @@ -24,7 +24,7 @@ description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java index 9d6faf39b4..cf0cd30e9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java @@ -26,7 +26,7 @@ "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java index aa550e3790..4d26c77a83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java @@ -22,7 +22,7 @@ description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java index 1bdc9cc383..98a1bf87ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java index 9e32f73684..a5fc4d6e60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceList is a list of Namespaces.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java index 051cf248f5..beeb68f3eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java index 3ae6c2255f..901bc9902c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java index e03ff696ab..aafd327826 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java @@ -21,7 +21,7 @@ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java index 372d4d38e1..d514a94688 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java @@ -29,7 +29,7 @@ "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java index c730dfc93c..6f4ad93602 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -28,7 +28,7 @@ "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java index 2d9c83995e..8b15288afa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java index cfb9d85619..2f5b462505 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java @@ -26,7 +26,7 @@ "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java index 1436a5d575..0e17234df7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java @@ -22,7 +22,7 @@ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java index 55c7c0538e..9f38571191 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java index a97fd86124..f9816844d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicyStatus describe the current state of the NetworkPolicy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NetworkPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java index 0bf9e07839..f09a123c54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java @@ -26,7 +26,7 @@ "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java index 2a66f4dbd0..9500ecf1c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java @@ -21,7 +21,7 @@ @ApiModel(description = "NodeAddress contains information for the node's address.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java index a9cc746e4e..3bc7029e95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java @@ -23,7 +23,7 @@ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java index f363d0c003..b2ec5868f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "NodeCondition contains condition information for a node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java index a542bf9f50..367d671aaf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java @@ -26,7 +26,7 @@ "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java index 455ac0dcba..57fb7bc78c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java @@ -23,7 +23,7 @@ "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java index b4abbf4589..2d74b1dfb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java @@ -21,7 +21,7 @@ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java index 5fa2c1d532..7116be2848 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java @@ -24,7 +24,7 @@ description = "NodeList is the whole list of all Nodes which have been registered with master.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java index cd17390a6a..2792583a12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java @@ -28,7 +28,7 @@ "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java index 54db9cefa5..e9ff6290ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java @@ -28,7 +28,7 @@ "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java index 4b7fad7fd9..7f9b50dc35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java @@ -28,7 +28,7 @@ "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java index 3ee20edf18..d5f54b68aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java index 81581aadeb..55295e0a94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java @@ -26,7 +26,7 @@ @ApiModel(description = "NodeStatus is information about the current status of a node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java index 3da652da73..8477f2e4d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java @@ -21,7 +21,7 @@ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java index cc125926f1..87142eb62c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java @@ -26,7 +26,7 @@ "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java index fb35ea0c78..0cc13532dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java @@ -24,7 +24,7 @@ description = "NonResourceRule holds information that describes a rule for the non-resource") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java index bfcb3c8c1d..75c9cc161f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java @@ -21,7 +21,7 @@ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java index 3661a4a31f..d4e4d78b16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java @@ -31,7 +31,7 @@ "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java index ea9c9d7238..d054e5d2b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java @@ -23,7 +23,7 @@ "ObjectReference contains enough information to let you inspect or modify the referred object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java index 8408343fc3..8642f88827 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java @@ -26,7 +26,7 @@ "Overhead structure represents the resource overhead associated with running a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java index 0fdede6cb9..e9d83bdad3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java @@ -27,7 +27,7 @@ "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java index 46e6ee35b5..308c786d44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java @@ -26,7 +26,7 @@ "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java index 797b29b0b4..6e5ffed27c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java @@ -22,7 +22,7 @@ description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java index 63181620c9..9d5f68b838 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "PersistentVolumeClaimCondition contails details about state of pvc") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java index 81d7197445..2af950ff55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java @@ -23,7 +23,7 @@ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java index 5fbe169dbf..c9694e0511 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java @@ -28,7 +28,7 @@ "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java index e4080d7c51..501f4ed656 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java @@ -27,7 +27,7 @@ description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java index 7dd3954791..cace552985 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java @@ -26,7 +26,7 @@ "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java index 6784936bcc..2ce1d4e8c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java @@ -28,7 +28,7 @@ "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java index 53d0e0ec27..63959db5d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java @@ -23,7 +23,7 @@ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java index b470ae939f..9414a6f821 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java @@ -26,7 +26,7 @@ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java index 7a1930b899..6e6ad3b1bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java index 9292aadf31..cabc282169 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java index 0d80dcfb9a..aa0c426c4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java @@ -26,7 +26,7 @@ "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java index f34ea10f24..456b835b69 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java @@ -23,7 +23,7 @@ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java index 0b21e901a5..156c1d2470 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java @@ -30,7 +30,7 @@ "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java index 8f9806d82a..ae8cddc47e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java @@ -23,7 +23,7 @@ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java index 8fae70335b..13321069ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java index effba1e005..7de0ebf0b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java @@ -27,7 +27,7 @@ "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java index dce6687798..5696875630 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -21,7 +21,7 @@ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java index 1b0e71b4e4..15064e2860 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java @@ -26,7 +26,7 @@ "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java index 3184ea8252..b7664e2fd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java @@ -23,7 +23,7 @@ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java index af76031b0e..0b69aca131 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java @@ -22,7 +22,7 @@ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java index 8c38ea651d..d92e5727d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java @@ -31,7 +31,7 @@ "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java index 490aa892bf..54244bd9b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java @@ -23,7 +23,7 @@ @ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java index c06da94deb..a8d43a9634 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java @@ -31,7 +31,7 @@ "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java index fff6340591..b24aef59f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -26,7 +26,7 @@ "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java index 4f2ea818aa..eb95453dfa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java @@ -28,7 +28,7 @@ "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java index 72f3b17e08..d7aafcbfd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java @@ -26,7 +26,7 @@ "IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java index bf9fc9e31a..b3292574f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java @@ -23,7 +23,7 @@ @ApiModel(description = "PodList is a list of Pods.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java index 5ef55187a6..f745d9e541 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java @@ -21,7 +21,7 @@ @ApiModel(description = "PodOS defines the OS parameters of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java index 74402eb5a4..3d6cca0419 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java @@ -21,7 +21,7 @@ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java index 2c323dbaab..6c7f5f95ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java @@ -29,7 +29,7 @@ "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java index 057e139ca7..bd7491815c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java @@ -26,7 +26,7 @@ @ApiModel(description = "PodSpec is a description of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java index 8ab1ef4c0c..07a1300518 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java @@ -29,7 +29,7 @@ "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java index f1c8a0be55..ed35bb0d6f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java @@ -21,7 +21,7 @@ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java index 304eafb7c5..604857fa7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java @@ -23,7 +23,7 @@ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java index 73875d1304..33e3d1f93f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java @@ -23,7 +23,7 @@ "PodTemplateSpec describes the data a pod should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index ee085798bc..74563f4fca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java @@ -28,7 +28,7 @@ "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java index 5359cc849e..d54475c637 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -19,7 +19,7 @@ /** V1PortStatus */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java index c76648478d..59d0d60a66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java index 0c2e5c7fe9..0f854f6e6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java @@ -23,7 +23,7 @@ "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java index dd2f25765e..9d9d116ce0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java @@ -26,7 +26,7 @@ "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index 22c76e3b68..85489c3fa6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java @@ -26,7 +26,7 @@ "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java index 585285b9cb..c75847ea8a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java @@ -23,7 +23,7 @@ @ApiModel(description = "PriorityClassList is a collection of priority classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java index 73583a0247..46f7499126 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java @@ -26,7 +26,7 @@ "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 70319a1024..fa0fdcab03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java @@ -23,7 +23,7 @@ @ApiModel(description = "Represents a projected volume source") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java index 96cc600b54..1b149e196c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java @@ -26,7 +26,7 @@ "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index 97ff089283..363c7a76da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java @@ -28,7 +28,7 @@ "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java index dc67764f35..d7a30a0992 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java @@ -28,7 +28,7 @@ "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java index ecb93cbdd3..e10333ec20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java @@ -23,7 +23,7 @@ "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java index ae5bd8d1c6..72112962de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java @@ -23,7 +23,7 @@ description = "ReplicaSetCondition describes the state of a replica set at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java index c690160926..2b448e92a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java index 4bec4dc313..c583273f9c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java index 6fe323615e..ddacfd0afa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java index e101af0d86..16af74c67a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java @@ -22,7 +22,7 @@ description = "ReplicationController represents the configuration of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java index 6b971e725f..b6ac4d24e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java @@ -27,7 +27,7 @@ "ReplicationControllerCondition describes the state of a replication controller at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java index a6484b606b..3eca3e1187 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java index 74263375a0..593cc50cc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java @@ -24,7 +24,7 @@ description = "ReplicationControllerSpec is the specification of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java index f5ee044616..179cd8038a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java @@ -25,7 +25,7 @@ "ReplicationControllerStatus represents the current status of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java index 14bc66d476..0bad556138 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java @@ -26,7 +26,7 @@ "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java index 18de6e74f0..b8703ff3f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java @@ -24,7 +24,7 @@ "ResourceFieldSelector represents container resources (cpu, memory) and their output format") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java index b08ce30411..e89719c16f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java @@ -21,7 +21,7 @@ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java index fc3829b060..f0bbd6dac9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java index 894029ccfe..e0c32ce55b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java @@ -26,7 +26,7 @@ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java index aa39ae949f..ba5993ce30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java @@ -24,7 +24,7 @@ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java index a1aaa71c93..113ac679a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java @@ -24,7 +24,7 @@ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java index b8be62de11..63118340d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java @@ -28,7 +28,7 @@ "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java index a598889347..5267d8c62a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java @@ -28,7 +28,7 @@ "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java index 7cd5b55b0e..acaaa03213 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java @@ -30,7 +30,7 @@ "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java index d333df2e84..9417fb7e95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java @@ -23,7 +23,7 @@ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java index 0c18820be5..a183d4a892 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java @@ -23,7 +23,7 @@ @ApiModel(description = "RoleList is a collection of Roles") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java index 12976b3443..9125087945 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java @@ -21,7 +21,7 @@ @ApiModel(description = "RoleRef contains information that points to the role being used") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java index 8e808244f2..74c0b23026 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java @@ -22,7 +22,7 @@ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java index d00dfd3183..116877aacf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java @@ -22,7 +22,7 @@ @ApiModel(description = "Spec to control the desired behavior of rolling update.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java index 4e47b780ba..1af025ad69 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java @@ -27,7 +27,7 @@ "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java index a83be6d830..52d090b631 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java @@ -28,7 +28,7 @@ "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java index ffe2f28b99..847393ac23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java @@ -29,7 +29,7 @@ "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java index 5fb4cb8e10..8f9c85967e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java @@ -23,7 +23,7 @@ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java index dc5423612c..856c9f86ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java @@ -21,7 +21,7 @@ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java index 6d40a2d73e..1a924ce20c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java @@ -21,7 +21,7 @@ @ApiModel(description = "Scale represents a scaling request for a resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java index c6d410b5e7..83c6733cf6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java index 6aff844e12..6940cb3ce9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java index 584c9053ed..7e9de38b0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java index 6efde013c4..43dae6c05a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java index 3b161c9fd0..9f826a06d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java @@ -27,7 +27,7 @@ "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java index 9600f2ad57..db15a86c40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java @@ -28,7 +28,7 @@ "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java index 72464cad19..378d7a162f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java @@ -28,7 +28,7 @@ "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java index ef3994c721..fb547148de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java @@ -26,7 +26,7 @@ "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java index 6d5aab5f82..a165db1164 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java @@ -28,7 +28,7 @@ "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java index 9ac16589c3..018d27b5c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java @@ -26,7 +26,7 @@ "SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java index 29e1ff6461..46418426b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java @@ -21,7 +21,7 @@ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java index 40ae942ea7..7c953ad768 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java @@ -23,7 +23,7 @@ @ApiModel(description = "SecretList is a list of Secret.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java index 65bf33138a..30dbe9683b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java @@ -29,7 +29,7 @@ "Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java index e82b498f04..7d951a4664 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java @@ -26,7 +26,7 @@ "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java index ae04854e31..3b43d63441 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java @@ -29,7 +29,7 @@ "Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java index b983dd3f8e..064c5fcad4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java @@ -27,7 +27,7 @@ "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java index 11f3cf4c34..a21a4cd87b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java @@ -27,7 +27,7 @@ "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java index 16717dfb13..92fc382bcb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java @@ -26,7 +26,7 @@ "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java index 23354d23c8..6c835f1adc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java @@ -31,7 +31,7 @@ "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java index 7bee39d0fd..15f54ff46e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java @@ -23,7 +23,7 @@ "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java index de10d3d504..e562be8a5c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java @@ -26,7 +26,7 @@ "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java index 00898ba5cb..f142b20c73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java @@ -27,7 +27,7 @@ "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java index 036ca26821..4a687ba50b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java @@ -28,7 +28,7 @@ "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java index 6c7ee54fd6..1777ead342 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java index 8e2394c0a0..5f5039da20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java @@ -27,7 +27,7 @@ "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java index 8ae596d6e5..5320faccc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java index 76a0fda43d..b5a79e9b97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceList holds a list of services.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java index 53606930f0..606949d8b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java @@ -22,7 +22,7 @@ @ApiModel(description = "ServicePort contains information on service's port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java index 608d42779e..65cc16772d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -25,7 +25,7 @@ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java index 726f3075f5..4321643d66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceStatus represents the current status of a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java index fbd7a92325..9db2d1c937 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java @@ -21,7 +21,7 @@ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java index 36a9ed5989..0db08915a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java @@ -28,7 +28,7 @@ "StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java index 66a5b3ce94..4739b72884 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java @@ -23,7 +23,7 @@ description = "StatefulSetCondition describes the state of a statefulset at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java index 1f5d4976e4..5eff44a789 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java @@ -23,7 +23,7 @@ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java index 76db07b47d..8d71057336 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java @@ -26,7 +26,7 @@ "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java index 4c6d178d88..e3b529e5f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java index 6dcbc9af1d..37ca86853c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java index 8bb824d929..f2cd366b9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java @@ -27,7 +27,7 @@ "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java index f26b26f306..03b3ad7deb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java @@ -21,7 +21,7 @@ @ApiModel(description = "Status is a return value for calls that don't return other objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java index 19b8187f62..95674dfd8d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java @@ -26,7 +26,7 @@ "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java index 9ef3fe2829..52a71e7d9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java @@ -30,7 +30,7 @@ "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java index 6e75c1e72e..120b9bbbb8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java @@ -31,7 +31,7 @@ "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java index 996349bdd9..1facbf601e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java @@ -23,7 +23,7 @@ @ApiModel(description = "StorageClassList is a collection of storage classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java index 6938eddc69..96fe846d2b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a StorageOS persistent volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java index cc6b0fd6f7..40b1ed4df6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a StorageOS persistent volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java index cd8af0bb61..506ad6a5d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java @@ -27,7 +27,7 @@ "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java index a47e36bb46..51a8cc2814 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java @@ -23,7 +23,7 @@ "SubjectAccessReview checks whether or not a user or group can perform an action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java index 0d9f7e2d84..c3a33f2fc8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java @@ -30,7 +30,7 @@ "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java index a4d93bc315..1247b9108a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "SubjectAccessReviewStatus") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java index f3fb90f633..e53a57ef08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java @@ -30,7 +30,7 @@ "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java index 2099b192f9..35c7a932f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java @@ -21,7 +21,7 @@ @ApiModel(description = "Sysctl defines a kernel parameter to be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java index 0311ab58d8..1f15f04e8a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java @@ -22,7 +22,7 @@ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java index d97a41d237..5c13150418 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java @@ -27,7 +27,7 @@ "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java index 983c68f109..3df9852b1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java index 0bb886809f..6764b9818f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java @@ -22,7 +22,7 @@ @ApiModel(description = "TokenRequestStatus is the result of a token request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java index 5e163532ed..ab3c996275 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java @@ -26,7 +26,7 @@ "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java index 2469855fa8..e801fbf3da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java index 8bf4cbbc1b..48359098a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java index 8efbf521ae..2eaf466446 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java @@ -26,7 +26,7 @@ "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java index 3210fb7155..41977f87c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java @@ -28,7 +28,7 @@ "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java index 58b8a094f9..e2e4cc8b31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java @@ -29,7 +29,7 @@ "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java index fe24de6672..fc4fe0175b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java @@ -25,7 +25,7 @@ "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java index 97b78456c4..1119e5b970 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java @@ -26,7 +26,7 @@ "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java index 9ff1094125..76f63041da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java @@ -28,7 +28,7 @@ "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java index 8acdeaa9be..04a32c703e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java @@ -27,7 +27,7 @@ "UserInfo holds the information about the user needed to implement the user.Info interface.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java index 89c657eb23..65e2359108 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java @@ -27,7 +27,7 @@ "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java index 1bed7e12a9..347f881146 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java @@ -28,7 +28,7 @@ "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java index 5bfb419b72..81acf8cfe1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java @@ -24,7 +24,7 @@ description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java index df6c6fa821..6491d5189b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java @@ -23,7 +23,7 @@ "ValidationRule describes a validation rule written in the CEL expression language.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ValidationRule { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java index dd0a70b566..bc4c0609bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java @@ -23,7 +23,7 @@ "Volume represents a named volume in a pod that may be accessed by any container in the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java index 2cf6a1b40a..5cbb79c005 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java @@ -26,7 +26,7 @@ "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java index a563fbe10a..7484243264 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java index b9a4125827..be1f8bcaf7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java @@ -27,7 +27,7 @@ "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java index 524c530838..f29455f5c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java index 84c58c825f..eaed7aa1de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java index 26de0c58fc..470d8b3ddd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java @@ -22,7 +22,7 @@ description = "volumeDevice describes a mapping of a raw block device within a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java index c4963d9206..0b8af42ed8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java @@ -22,7 +22,7 @@ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeError { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java index 5280ca57a4..20012072e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java index 3565439d36..7c499489c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java @@ -25,7 +25,7 @@ "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java index 3df200af17..425d18a0d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java @@ -22,7 +22,7 @@ description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java index 9b36a339e6..efa26f840e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java @@ -21,7 +21,7 @@ @ApiModel(description = "Projection that may be projected along with other supported volume types") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java index ab4d42cc7e..cd65d3534f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a vSphere volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java index c50973f739..0da884d7bc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java @@ -21,7 +21,7 @@ @ApiModel(description = "Event represents a single event to a watched resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java index 95092f026e..17c34f5832 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java @@ -23,7 +23,7 @@ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java index 350a4ac63f..a0d9f0e326 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java @@ -26,7 +26,7 @@ "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java index 8eb859c1e0..4a4edc1019 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java @@ -22,7 +22,7 @@ description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java index 8c3c93a460..c830ddb1ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java @@ -31,7 +31,7 @@ "ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1ClusterCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java index 47d5def092..dedf53a060 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterCIDRList contains a list of ClusterCIDR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1ClusterCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java index 26c0f82dac..2fe3695a39 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java @@ -21,7 +21,7 @@ @ApiModel(description = "ClusterCIDRSpec defines the desired state of ClusterCIDR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1ClusterCIDRSpec { public static final String SERIALIZED_NAME_IPV4 = "ipv4"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java index 64ddee52ec..1db24288be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java @@ -28,7 +28,7 @@ "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java index c5da365d0e..7235129dfc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java @@ -21,7 +21,7 @@ @ApiModel(description = "Storage version of a specific resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java index 1afcaf474b..8a8f32b409 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java index 9901826ceb..5c93da8d66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java @@ -23,7 +23,7 @@ @ApiModel(description = "A list of StorageVersions.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java index d3294dab28..67faf01feb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java @@ -28,7 +28,7 @@ "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java index 022320312a..6f9c79b44d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java @@ -40,7 +40,7 @@ "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java index 1ecc9911d8..ad9c841525 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java @@ -23,7 +23,7 @@ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java index e378b54f2f..f2bb8856e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java @@ -21,7 +21,7 @@ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java index d0837366f2..a75397c284 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java @@ -27,7 +27,7 @@ "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java index 7f93908dd2..b886cf5189 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java index db49ecf29f..231811c2c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java index b64d5d8e65..40948b3608 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java index d3ce7524d8..28f90d1100 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java index 14f925f3d4..ba46cb7df2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java index 39b585d702..94733a16ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java @@ -23,7 +23,7 @@ "LimitResponse defines how to handle requests that can not be executed right now.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java index dd7c078a75..abdc6d72a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java @@ -27,7 +27,7 @@ "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit?") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_ASSURED_CONCURRENCY_SHARES = "assuredConcurrencyShares"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java index d99bbdbedc..b19867f53c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java @@ -30,7 +30,7 @@ "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java index 8069097a40..34ca01ff52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java @@ -31,7 +31,7 @@ "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java index 04a17aea61..590e439568 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfiguration represents the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java index fccc4c5953..4fce595df8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java @@ -23,7 +23,7 @@ description = "PriorityLevelConfigurationCondition defines the condition of priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java index 2b431e4728..36a5b52f6f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java @@ -24,7 +24,7 @@ description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java index 2e6893ddd2..cc1981d810 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java @@ -26,7 +26,7 @@ "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java index a80433c69a..6fab805205 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_LIMITED = "limited"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java index b549d8d1e3..87d2d2571e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java @@ -28,7 +28,7 @@ "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java index 9be20956b8..5735663487 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java @@ -21,7 +21,7 @@ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java index 658e00b55d..c80ee27974 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java @@ -33,7 +33,7 @@ "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java index 7298bfed4c..c4ce7e3058 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java @@ -23,7 +23,7 @@ "ServiceAccountSubject holds detailed information for service-account-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java index 74425058ef..d69eab8a8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java @@ -26,7 +26,7 @@ "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java index 28e13ee5ee..3f7a42adb1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java index 1ec1009847..d6c67d5ba3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java @@ -21,7 +21,7 @@ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java index 9144eea60d..be59897847 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java @@ -27,7 +27,7 @@ "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java index 70ee26c7c4..e44c55adb8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java index 9f933f95e2..7add2f8c3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java index 7ae39d2fc8..c480cacd80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java index 8ef845b778..89047b80eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java index c561cbae01..57874d0d0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java index d5604b926c..f21bbd7ab5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java @@ -23,7 +23,7 @@ "LimitResponse defines how to handle requests that can not be executed right now.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java index dcb0a16af4..a5d1ce67dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java @@ -27,7 +27,7 @@ "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit?") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_ASSURED_CONCURRENCY_SHARES = "assuredConcurrencyShares"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java index f484746c40..0a150cc255 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java @@ -30,7 +30,7 @@ "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java index f1b6807c7c..b28e1093ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java @@ -31,7 +31,7 @@ "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java index 6661620e5c..47300d37ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfiguration represents the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java index 7ec4804a3f..28d44fe351 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java @@ -23,7 +23,7 @@ description = "PriorityLevelConfigurationCondition defines the condition of priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java index 63357272de..eadb32589b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java @@ -24,7 +24,7 @@ description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java index d754211998..14c708263c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java @@ -26,7 +26,7 @@ "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java index f3c35371eb..318b30d74c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_LIMITED = "limited"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java index 760e717ee6..b9d42d8e1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java @@ -28,7 +28,7 @@ "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java index d32b0f5390..eb7a662947 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java @@ -21,7 +21,7 @@ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java index edc67d6115..f7d4789c07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java @@ -33,7 +33,7 @@ "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java index 70084dbd62..8d4a32c799 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java @@ -23,7 +23,7 @@ "ServiceAccountSubject holds detailed information for service-account-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java index 731174db6e..4d4a60bf8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java @@ -26,7 +26,7 @@ "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2Subject { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java index 32b0ea2a2a..51e97e8fda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1beta2UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java index 479ed6fd94..ff43d544cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java @@ -30,7 +30,7 @@ "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java index ce1353639d..22c4ab6f56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java @@ -29,7 +29,7 @@ "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java index 76f71d7857..5b06a6a81d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java index 13be738eac..6b43ae9c2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java @@ -27,7 +27,7 @@ "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java index 983fcaeead..6255bb4a0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java @@ -26,7 +26,7 @@ "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java index c43b8ac68a..af99f38583 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java @@ -23,7 +23,7 @@ "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java index 668b786a58..0339e31807 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java @@ -31,7 +31,7 @@ "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java index c2bc69f06a..2b863af47b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java index 5ad850d84c..c05d2f1696 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java index 77ccd11058..d320ef1803 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java index c970a6f063..20a860ace5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java @@ -24,7 +24,7 @@ description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java index dc8318ac58..72ad811d5a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java index c044786717..b4f9508476 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java index a86c95d65c..06bf9d0741 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java @@ -21,7 +21,7 @@ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java index f19371f826..99993646ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java @@ -26,7 +26,7 @@ "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java index a997683d42..3d0a95fd3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java index 9e8eeaa1a3..29fa424cd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java @@ -26,7 +26,7 @@ "MetricTarget defines the target value, average value, or average utilization of a specific metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java index 6ddcbec603..a4c9e85436 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java @@ -22,7 +22,7 @@ @ApiModel(description = "MetricValueStatus holds the current value for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java index 911d9ddf4a..124fb4dcd8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java @@ -26,7 +26,7 @@ "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java index abbd7f5d32..2f8df01aba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java @@ -26,7 +26,7 @@ "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java index 787f93efd1..bfb1d94bfc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java @@ -27,7 +27,7 @@ "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java index 2fad74603a..3ca13abbc9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java @@ -26,7 +26,7 @@ "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java index d79f3ea1b0..b9b525a8cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java @@ -30,7 +30,7 @@ "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java index a6402f1878..282b004506 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java @@ -28,7 +28,7 @@ "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java index 4b25cfc7bb..543fd4191a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java @@ -30,7 +30,7 @@ "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java index 79ee2f15ef..f29a5b35c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java @@ -29,7 +29,7 @@ "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java index 15ac110b2f..8ebdaf88fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java index bcb00434e0..bd7c83e5b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java @@ -27,7 +27,7 @@ "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java index cc8ee8619a..e2b1043810 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java @@ -26,7 +26,7 @@ "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java index d583c5b7e8..e89303316a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java @@ -23,7 +23,7 @@ "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java index b88ae9c857..152795c88f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java @@ -31,7 +31,7 @@ "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java index 14496e6cf9..d97add9b41 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java index 0b8d465d6b..3b433b6bdc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java index 108dbad9f6..16639f009e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java index 9406d11421..a766b6c6f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java @@ -24,7 +24,7 @@ description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java index 2d6c0eaaa2..35eea1d457 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java index 7a6b15f4c3..74f6bea54b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java index 3972f2eb0c..41b06c7a60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java @@ -21,7 +21,7 @@ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java index d26cf8cd3d..96a736fd8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java @@ -26,7 +26,7 @@ "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java index aac0b0b4f8..fdfbd1fc13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java index 7782a227d1..69f381ff40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java @@ -26,7 +26,7 @@ "MetricTarget defines the target value, average value, or average utilization of a specific metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java index b13a0f72a7..2e7d120211 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java @@ -22,7 +22,7 @@ @ApiModel(description = "MetricValueStatus holds the current value for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java index fe840abdf1..7c2a42517a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java @@ -26,7 +26,7 @@ "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java index b5aa2ddcb3..1034deecbd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java @@ -26,7 +26,7 @@ "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java index 899a340927..af57b43132 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java @@ -27,7 +27,7 @@ "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java index 6ba02d912d..85307aac32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java @@ -26,7 +26,7 @@ "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java index c4bd23fd90..2714dedf68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java @@ -30,7 +30,7 @@ "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java index 9ae7aaad6e..f3c6a66b60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java @@ -28,7 +28,7 @@ "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java index 31954d2d71..ff5aa756ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java @@ -23,7 +23,7 @@ "Info contains versioning information. how we'll want to distribute that information.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-09-15T17:00:37.921Z[Etc/UTC]") + date = "2022-12-05T08:14:34.919Z[Etc/UTC]") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index d01f84b6ee..594cb3f9cf 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -77075,6 +77075,51 @@ ] } }, + "/apis/{group}/{version}": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + } + ], + "get": { + "operationId": "getAPIResources", + "description": "get available resources", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, "/apis/{group}/{version}/{plural}": { "parameters": [ { diff --git a/pom.xml b/pom.xml index ac719f646d..b6c67e4868 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 client-java-parent io.kubernetes - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT pom Kubernetes Client API https://github.com/kubernetes-client/java diff --git a/proto/pom.xml b/proto/pom.xml index f4b026e939..5125e00c42 100644 --- a/proto/pom.xml +++ b/proto/pom.xml @@ -9,7 +9,7 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/spring-aot/pom.xml b/spring-aot/pom.xml index adbd697fee..b283ffae42 100644 --- a/spring-aot/pom.xml +++ b/spring-aot/pom.xml @@ -10,7 +10,7 @@ client-java-parent io.kubernetes - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/spring/pom.xml b/spring/pom.xml index 93cb0df61a..1ec29d2d19 100644 --- a/spring/pom.xml +++ b/spring/pom.xml @@ -10,7 +10,7 @@ client-java-parent io.kubernetes - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml diff --git a/util/pom.xml b/util/pom.xml index a114b7e36f..13d27feb11 100644 --- a/util/pom.xml +++ b/util/pom.xml @@ -8,7 +8,7 @@ io.kubernetes client-java-parent - 16.0.0-SNAPSHOT + 17.0.0-SNAPSHOT ../pom.xml